rule-miner

Solid

Mine your Claude Code sessions and code-review history for the corrections you keep repeating, cluster them, adversarially verify each candidate, and distill the survivors into CLAUDE.md rules - or check that existing rules still hold. Uses a dynamic Workflow harness with one verifier per rule to avoid false positives. Use when the user says 'mine my sessions for rules', 'what corrections do I keep making', 'turn my repeated feedback into CLAUDE.md rules', 'audit my CLAUDE.md rules', or 'why does Claude keep missing X'.

AI & Automation 7 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
30
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Rule Miner Turn the corrections you keep making into durable rules - and keep the rules you already wrote honest. It runs as a **dynamic [Workflow](#how-it-runs)**: separate agents with their own context windows, so verification can't be biased by the agent that proposed the rule. ## What this skill is - and isn't | Skill | Question it answers | Output | |---|---|---| | **`vd:rule-miner` (--mine)** | **"What do I keep correcting that should be a rule?"** | **CLAUDE.md rule proposals, evidence-backed** | | **`vd:rule-miner` (--check)** | **"Do my existing rules still hold on this code?"** | **Confirmed rule violations, false-positives filtered** | | `vd:docs` | "Is the team documentation current?" | Updated `docs/` | | `vd:code-review` | "Is this change ready to land?" | Inline PR comments | Rule-miner manages the **rules Claude follows** (CLAUDE.md, `~/.claude/rules/*.md`), not project docs and not a specific diff's review. It proposes; it never silently rewrites your rule files. ## Two directions | Mode | Direction | What it does | |---|---|---| | `--mine` *(default)* | history → rules | Sweep sessions + git + PR reviews for repeated corrections, cluster, verify each candidate, distill survivors into proposed rules | | `--check` | rules → code | Load the existing rule set, run one verifier agent per rule against a diff/codebase, skeptic-filter false positives, report real violations | Detect from the argument. "what do I keep correcting / turn my feedback into rules...

Details

Author
vanducng
Repository
vanducng/skills
Created
4 months ago
Last Updated
today
Language
HTML
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category