Home / chris-peterson / claudewatch · skills/rules/SKILL.md · GitHub

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

Latest version
mdr add chris-peterson/claudewatch/rules@git:20260705.3262d6a
Exact content
mdr add chris-peterson/claudewatch/rules@sha256:df46f4cd3360ae97

Pin 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_6v4jjjttg5vy4qna.svg)](https://markdownregistry.com/a/art_6v4jjjttg5vy4qna)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260705.3262d6a latest2026-07-05 3262d6a 5,872 BA view · diff
git:20260702.5fc47cc2026-07-02 5fc47cc 5,272 BA view · diff
git:20260630.8f916662026-06-30 8f91666 5,235 BB view · diff
git:20260623.f75e2ab2026-06-23 f75e2ab 5,347 BB view · diff
git:20260323.92cfa7e2026-03-23 92cfa7e 5,331 BB view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • 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

GitHub

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

AGENTS.md agents
chris-peterson/claudewatch · AGENTS.md
git:20260919.4ac4e46 · audit A · 3 stars
CLAUDE.md claude
chris-peterson/claudewatch · CLAUDE.md
git:20260508.84b9d8b · audit A · 3 stars
learn skill
chris-peterson/claudewatch · skills/learn/SKILL.md · Analyze the ClaudeWatch decision log to find commands that repeatedly prompt, and propose allow-list entries and rule…
git:20260827.34d2077 · audit A · 3 stars

Every file in chris-peterson/claudewatch

Other files named rules

rules skill
code-yeongyu/oh-my-openagent · packages/omo-codex/plugin/components/rules/skills/rules/SKILL.md · Use when the user asks about Codex Rules behavior, injected project rules, supported rule file locations, matching, or…
git:20260603.44361cf · audit A · 69,349 stars
rules rules
thedaviddias/llms-txt-hub · .cursor/rules/rules.mdc · Rules for placing and organizing Cursor rule files in the repository.
git:20250224.001a864 · audit A · 906 stars
rules skill
kochetkov-ma/claude-brewcode · .codex/plugins/brewcode/skills/rules/SKILL.md · Maintains project .codex/rules and the AGENTS.md rule index. Explicit user invocation only.
git:20260810.60cc11c · audit A · 32 stars
rules skill
kochetkov-ma/claude-brewcode · brewcode/.codex/skills/rules/SKILL.md · Maintains project .codex/rules and the AGENTS.md rule index. Explicit user invocation only.
git:20260810.60cc11c · audit A · 32 stars
rules skill
kochetkov-ma/claude-brewcode · brewcode/skills/rules/SKILL.md · Syncs KNOWLEDGE.jsonl or session learnings to project rules. Triggers: rules, knowledge sync, extract rules.
git:20260912.7f5b5d8 · audit A · 32 stars
rules skill
mikeprasad/aria-knowledge · plugin-claude-cowork/skills/rules/SKILL.md · Quick lookup into working rules. Use when user says "/aria-cowork:rules", "/aria-cowork:rules 22", "/aria-cowork:rules…
git:20260827.e9e0353 · audit A · 17 stars
rules skill
mikeprasad/aria-knowledge · plugin-openai-codex/skills/rules/SKILL.md · Load and apply ARIA working rules, user rules, examples, and the change decision framework. Trigger on /rules, show…
git:20260725.82f826d · audit A · 17 stars
rules skill
mikeprasad/aria-knowledge · plugin-antigravity/skills/rules/SKILL.md · Quick lookup into working rules. Use when user says '/rules', '/rules 22', '/rules dependencies', 'look up rule…
git:20260725.82f826d · audit B · 17 stars

Browse by kind, by grade A, or by owner.