writing-rules skillA
writing-rules is agent-read markdown (skill) from athola/claude-night-market: Creates behavioral rules in markdown to block dangerous commands or restrict AI behavior. Use when adding safety guardrails or preventing specific commands..
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# Hookify Rule Writing Guide
## When To Use
- Creating behavioral rules to prevent unwanted actions
- Defining persistent guardrails for Claude Code sessions
## When NOT To Use
- Complex multi-step workflows - use agents instead
- One-time operations that do not need persistent behavioral rules
## Overview
Hookify rules are markdown files with YAML frontmatter that define patterns to watch for and messages to show when those patterns match. Rules are stored in `.claude/hookify.{rule-name}.local.md` files.
## Quick Start
Create `.claude/hookify.dangerous-rm.local.md`:
```yaml
---
name: dangerous-rm
enabled: true
event: bash
pattern: rm\s+-rf
action: block
---
🛑 **Dangerous rm command detected!**
This command could delete important files.
```
**Verification:** Run the command with `--help` flag to verify availability.
The rule activates immediately - no restart needed!
## Rule File Format
### Frontmatter Fields
**name** (required): Unique identifier (kebab-case)
**enabled** (required): `true` or `false`
**event** (required): `bash`, `file`, `stop`, `prompt`, or `all`
**action** (optional): `warn` (default) or `block`
**pattern** (simple): Regex pattern to match
…Read the whole file at its exact version.
How to install
mdr add athola/claude-night-market/writing-rules@git:20260902.4a35d69mdr add athola/claude-night-market/writing-rules@sha256:a06167fbecc59159Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_hn2wgcca2bcfgron)
1 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260902.4a35d69 latest | 2026-09-02 | 4a35d69 | 5,566 B | A | view · diff |
| git:20260622.c7c8f6f | 2026-06-22 | c7c8f6f | 6,329 B | A | view · diff |
| git:20260521.6f5c7d9 | 2026-05-21 | 6f5c7d9 | 5,717 B | A | view · diff |
| git:20260508.c09f147 | 2026-05-08 | c09f147 | 5,659 B | A | view · diff |
| v1.9.5 | 2026-05-07 | 29eb49d | 5,674 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (5566 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
athola/claude-night-market · 338 stars · license MIT · pushed 2026-09-22 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_hn2wgcca2bcfgron GET https://markdownregistry.com/api/v1/resolve?ref=athola/claude-night-market/writing-rules GET https://markdownregistry.com/api/v1/blob/a06167fbecc59159f8330d0db27f9583d5ec5ed8b937e7b2d4577c51ac1735c5
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.