Back to skills directory
bwdurst/rule-curator

bwdurst/rule-curator

@bwdurst 1

Audit and prune stale agent rules (CLAUDE.md, memory, ADRs) in one pass with a browser UI.

rule-curatorrules-auditclaude-mdagent-rulesprompt-engineeringworkflowskillproductivity

Install

$ npx skills add bwdurst/rule-curator

README

# GitHub Repository: bwdurst/rule-curator

**URL:** https://github.com/bwdurst/rule-curator
**Author:** bwdurst
**Description:** Audit and prune the standing rules a project operates under (CLAUDE.md, memory, AGENTS.md, ADRs, conventions) in one whole-corpus pass.
**Homepage:** 
**Language:** HTML

## Stats
- Stars: 1
- Forks: 0
- Open Issues: 0
- Commits: 14
- Created: 2026-06-18T13:29:45Z
- Updated: 2026-06-18T13:46:49Z
- Pushed: 2026-06-18T13:29:52Z

## README
# Rule Curator

A skill that audits the behavioral rules an agent operates under and helps you
keep, drop, or rewrite them.

Agents accumulate rules across many files (global and project `CLAUDE.md`, a
memory system, project docs like `AGENTS.md`, ADRs, conventions). Nobody prunes
them, so they go stale, duplicate each other, duplicate installed skills, restate
default behavior, or impose rituals whose friction exceeds their value. Every
rule is a permanent tax: it costs context tokens every session and dilutes
instruction-following attention across more directives.

Rule Curator gathers those rules, analyzes each one against the whole set,
produces a self-contained browser UI where you decide keep / drop / modify, then
turns your decisions into an auditable apply-plan and (on confirmation) edits the
source files.

## What it does

For every rule it produces two things, kept separate:

1. A neutral, first-person **behavioral impact** statement (what following the
   rule actually changes, and its cost), always present.
2. An **audit note**, only when something is wrong, drawn from a fixed taxonomy:
   redundant, stale or superseded, misfiled, low-yield ritual, not actionable,
   brittle, or conflicting.

It deliberately checks the categories that capable models skip on their own
(brittle rules, misfiled entries), and it refuses to rubber-stamp or to invent
staleness on healthy rules.

## Repo contents

- `SKILL.md` the workflow, the analysis contract, and the disciplines
- `references/analysis-contract.md` the full rubric with worked examples
- `references/apply-plan-format.md` the apply-plan shape and per-verdict edit rules
- `build_curator.py` standard-library script that builds the self-contained UI
- `curator-template.html` the UI template (data is injected at build time)
- `evals/` the planted-issue test corpus, answer key, and RED/GREEN findings
- `docs/specs/` the design spec

## Install

Clone into your Claude Code skills directory:

```bash
git clone https://github.com/bwdurst/rule-curator.git ~/.claude/skills/rule-curator
```

(or copy the folder there manually). Once installed, invoke it by asking to
audit, prune, or clean up your rules, or run `/rule-curator`.

## Build the curation UI directly

You can also run the build step yourself once you have a `rules.json`:

```bash
python build_curator.py rules.json -o rule-curator.html
```

This injects the data into `curator-template.html` and writes one self-contained
file you can open offline. It uses the standard library only, so there is nothing
to install.

## How it was built

This skill was developed test-first. The `evals/` directory holds a synthetic
rule corpus with planted issues across every audit category, an answer key, and
the recorded baseline (without the skill) and verification (with the skill) runs
on both a strong and a weak model. See `evals/RED-baseline-findings.md` and
`evals/GREEN-verification-findings.md`.

Information

Language
HTML
Created
2026/6/18
Updated
2026/6/19