Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By hiroro-workv1.31.0MITIn 1 marketplace
Turns a codebase, pull request or conversation into project coding rules that AI agents follow, with modes to update, realign or compact them. Each incremental run re-judges its own output with a separate pass that never sees the source session.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Operational guide for the extract-rules skill. SKILL.md holds the procedure the agent follows; this file holds the guidance a user needs when deciding how and when to run it.
Four modes rewrite rules that already exist, and they are easy to confuse.
| You want to | Run |
|---|---|
| Add newly observed patterns, keeping everything already written | --update |
Change the file layout — new frameworks, new architectural layers, a split_output switch | --restructure |
| Re-judge written rules against the current extraction criteria, dropping or trimming what no longer qualifies | --realign |
| Shrink an over-threshold file without changing the set of norms it states | --compact |
After the extract-rules skill itself is updated, the change decides the mode: --restructure when the file layout should change, --realign when the extraction criteria did.
--realign can take a norm away outright; --compact never does — it merges near-duplicates and drops an entry only where another already subsumes it. When both apply to one file, realign first.
Run --update. Its staleness check flags patterns whose inline `symbol` no longer resolves in the codebase, which is what a major bump tends to produce. Two limits are worth knowing:
`symbol` in the ## Project-specific patterns section. .examples.md files are not scanned — review them by hand for the affected frameworks.--restructure does not run the check. Run --update first when both are needed.Stale patterns are reported, never auto-deleted.
Incremental runs (--from-conversation, --from-pr) do not write a newly observed project-level pattern straight into .claude/rules/. The first observation lands in the staging file under staging_output_dir; the second observation promotes it to canonical and removes it from staging. Language, framework, and integration patterns bypass staging entirely.
Two consequences:
.local.md by hand rather than waiting for a re-observation.output_dir and re-running a full extraction leaves the staging file untouched, because it lives outside output_dir. The next incremental run will promote those candidates against the rebuilt canonical. Delete the staging directory by hand first when the staged candidates no longer apply.When an incremental run writes a rule (not a staged first observation) that a check the project already runs could enforce with a rule or option it does not yet set, it still writes the rule and also appends a bullet to lint-candidates.md under staging_output_dir: the tool, the rule id or option, the configuration edit, and the rule it would enforce. dev-workflow's Workability Retrospective reads this file and offers each bullet as an apply / backlog / skip choice, removing it once decided. Used on its own, the file is a to-do list: make the configuration edit, then delete the bullet. Once the check enforces the convention, --realign drops the rule as already enforced elsewhere.
Every incremental run (--from-conversation, --from-pr, --update) ends by reading back what it just wrote and judging it again against the extraction criteria. The judgement is made by a separate analysis pass that never sees the conversation, the PR comments, or the code the run scanned — only the written rule text. That is the one reading under which the criteria's exit test works: a rule that only makes sense to someone who remembers the session it came from fails it.
The pass drops, splits, or trims what no longer qualifies, and lists every such entry with its reason at the end of the run's report. It never touches rules written before the run — --realign is for those.
There is no setting to turn it off, and it never asks for confirmation, so a run invoked from an automated workflow behaves the same as an interactive one. Review its report before committing if you want the last word on a drop.
merge-rules promotes a project-specific pattern to a Principle across projects: the bullet `useAuth() → { user, login, logout }` - auth hook interface becomes the Principle Auth hook interface (useAuth), and its example moves from ## Project-specific Examples to ## Principles Examples under the converted name.
After apply-rules applies merged organization rules, a project's .examples.md can hold both sections at once — ## Principles Examples covering original and promoted principles, ## Project-specific Examples covering what stayed local. apply-rules removes the duplicate: when a .local.md pattern is dropped because a promoted Principle now covers it, its ## Project-specific Examples entry goes with it.
7-day copy clicks
npx claudepluginhub hiroro-work/claude-plugins --plugin extract-rulesBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground