bwdurst

Rule Curator — Security skill for Claude Code

Security community

Audit and prune the standing rules a project operates under (CLAUDE.md, memory, AGENTS.md, ADRs, conventions) in one whole-corpus pass.

How to install Rule Curator

This entry records only its repository, not the path inside it, so there is no exact command to give. Open bwdurst/rule-curator and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Rule Curator does

Audit and prune the standing rules a project operates under (CLAUDE.md, memory, AGENTS.md, ADRs, conventions) in one whole-corpus pass.

Alternatives in Security

  • Maestro Knowledge — Intent-driven knowledge-store and Run knowledge lifecycle management — audit/prune, stage candidates (with sig 530 ★
  • Review Branch — Review an existing branch holistically before merging — blast radius, conventions, security, and spec complian 55 ★
  • Trustabl Rulebook — Agent reliability rulebook: the threat model and rationale behind each Agent Reliability Analyzer rule 52 ★

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. Rules go stale, contradict each other, duplicate installed skills, or restate things the model already does by default. Every rule also costs context tokens each session, and the more rules there are, the less attention each one gets.

Rule Curator gathers the rules, analyzes each one against the whole set, and builds a page in your browser where you mark each rule keep, drop, or modify. It then turns your decisions into a reviewable edit plan and, once you confirm, applies the edits to the source files.

What it does

Every rule gets two separate write-ups:

  1. A behavioral impact statement: what following the rule actually changes about the agent's behavior, and what it costs. Every rule gets one.
  2. An audit note, only when something is wrong, from a fixed set of categories: redundant, stale or superseded, misfiled, low-yield ritual, not actionable, brittle, or conflicting.

The skill checks the categories that audits usually skip (brittle rules, misfiled entries), and it does not invent problems on healthy rules to look thorough.

If your rule files live in git, the audit records the commit it ran against (`meta.commits` in rules.json, shown in the UI header and included in both exports). When you come back to your decisions days later, that record shows exactly which files changed in the meantime. If your rule files are not in git, the skill says so up front and warns you before applying anything that a deleted rule cannot be recovered.

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 edit-plan format an