rule-miner

Mine recurring corrections from Claude Code sessions and git history into CLAUDE.md rule proposals.

5|Updated May 2, 2026
One-click install
npx skills add https://github.com/vanducng/skills --skill rule-miner
Or copy as Structured Prompt for Agentโ–ผ
Please help me install this Agent Skill.
Skill: rule-miner
Source: https://github.com/vanducng/skills/tree/main/skills/rule-miner
Command: npx skills add https://github.com/vanducng/skills --skill rule-miner

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Mine recurring corrections from Claude Code sessions, code-review history, and PR feedback, cluster them into candidate governance rules, and validate them to distill durable CLAUDE.md instructions.

Core Features & Use Cases

  • Mine corrections across agent interactions and code reviews for repeated nits and patterns.
  • Cluster and deduplicate candidates against existing CLAUDE.md rules, then verify with paired evaluators.
  • Distill survivors into concrete rule proposals with target files and rationale for team review.
  • Manage global vs project scope by harmonizing CLAUDE.md rules across agents and repos.

Quick Start

Provide a prompt to begin mining rules and generating CLAUDE.md proposals for review.

Frequently Asked Questions about rule-miner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate CLAUDE.md rules from code review corrections?โ–ผ

To generate CLAUDE.md rules, this Skill mines recurring correction signals from Claude Code sessions, git history, and PR reviews, then clusters and verifies them to propose durable governance instructions.

What is the best way to automate Claude Code workflow rule generation?โ–ผ

Automating Claude Code rule generation involves extracting repeated nits and patterns from agent interactions, deduplicating candidates against existing rules, and validating survivors with paired evaluators before distillation.

Can I manage project and global scope rules across multiple repositories?โ–ผ

Yes, you can manage both project and global scopes by harmonizing CLAUDE.md rules across multiple agents and repositories, ensuring consistent governance throughout your workflow.

How does the rule verification process work before proposing CLAUDE.md updates?โ–ผ

Rule verification works by using dedicated paired evaluators to test clustered candidates before distillation, ensuring only validated rules become concrete proposals with target files and rationale for team review.

Why do I keep seeing the same code review nits in my Claude Code sessions?โ–ผ

Recurring code review nits appear because they have not been distilled into durable CLAUDE.md instructions; mining these correction signals clusters them into candidate rules to prevent future repetition.

Do I need an existing CLAUDE.md file to start mining correction patterns?โ–ผ

No, you do not need an existing CLAUDE.md file to start mining; the Skill deduplicates new candidate rules against any existing rules and outputs concrete proposals with target files for approval.