rules skillA
rules is agent-read markdown (skill) from chris-peterson/claudewatch: View and interactively edit ClaudeWatch safety rules — list each rule set's block/ask rules as tables, then add, move, or remove rules, toggle whole rule sets on/off, or scaffold a new set, with conflict detection, a preview, and a test run before writing..
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
A rule set is a `watches/watch-*.yml` file; each holds `block` and `ask` rules
that the PreToolUse hook matches against commands. This skill lists them and
walks any change through preview and tests before writing.
## Steps
### 1. Find the plugin root
All paths below are relative to `${CLAUDE_PLUGIN_ROOT}`, which Claude Code sets
when the skill runs. If it is empty, stop and report — do not guess a path, since
running against the wrong directory would edit the wrong rule files.
### 2. Discover rule sets
List YAML files in `${CLAUDE_PLUGIN_ROOT}/watches/`. Each file is a rule set
(e.g. `watch-git.yml`, `watch-installs.yml`).
Also check for disabled rule sets — files ending in `.yml.disabled` in the
same directory. These are rule sets that have been toggled off.
### 3. Read and display rules for each rule set
For each **enabled** rule set, present rules in two tables. Use the rule set
`name` field as the heading. Use the naming convention
`<ruleset>-block-NN` / `<ruleset>-ask-NN` for IDs, where `<ruleset>` is the
short name from the YAML `name` field (e.g. `watch-git` → `git`), and NN is
zero-padded (e.g. `git-block-01`, `installs-ask-03`):
…Read the whole file at its exact version.
How to install
mdr add chris-peterson/claudewatch/rules@git:20260705.3262d6amdr add chris-peterson/claudewatch/rules@sha256:df46f4cd3360ae97Pin 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_6v4jjjttg5vy4qna)
1 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260705.3262d6a latest | 2026-07-05 | 3262d6a | 5,872 B | A | view · diff |
| git:20260702.5fc47cc | 2026-07-02 | 5fc47cc | 5,272 B | A | view · diff |
| git:20260630.8f91666 | 2026-06-30 | 8f91666 | 5,235 B | B | view · diff |
| git:20260623.f75e2ab | 2026-06-23 | f75e2ab | 5,347 B | B | view · diff |
| git:20260323.92cfa7e | 2026-03-23 | 92cfa7e | 5,331 B | B | 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 (5872 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
chris-peterson/claudewatch · 3 stars · license MIT · pushed 2026-09-23 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_6v4jjjttg5vy4qna GET https://markdownregistry.com/api/v1/resolve?ref=chris-peterson/claudewatch/rules GET https://markdownregistry.com/api/v1/blob/df46f4cd3360ae970b9c3b4e507c988fd2af1972c6089a3696bd8abc8a51012a
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.
More from chris-peterson/claudewatch
Every file in chris-peterson/claudewatch