Rules Distill
Scan skills to extract cross-cutting principles and distill them into rules, append, revise, or create new rule files.
- CCM score
- 71 of 100
- skills.sh installs
- 11.3K
- GitHub stars
- 312.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Ships in the
affaan-m/eccGitHub repository
Install
$ npx -y skills add affaan-m/ecc --skill rules-distill -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Rules Distill
Scan installed skills, extract cross-cutting principles that appear in multiple skills, and distill them into rules — appending to existing rule files, revising outdated content, or creating new rule files.
Applies the "deterministic collection + LLM judgment" principle: scripts collect facts exhaustively, then an LLM cross-reads the full context and produces verdicts.
When to Use
- Periodic rules maintenance (monthly or after installing new skills)
- After a skill-stocktake reveals patterns that should be rules
- When rules feel incomplete relative to the skills being used
How It Works
The rules distillation process follows three phases:
Phase 1: Inventory (Deterministic Collection)
1a. Collect skill inventory
bash ~/.claude/skills/rules-distill/scripts/scan-skills.sh
1b. Collect rules index
bash ~/.claude/skills/rules-distill/scripts/scan-rules.sh
1c. Present to user
Rules Distillation — Phase 1: Inventory
────────────────────────────────────────
Skills: {N} files scanned
Rules: {M} files ({K} headings indexed)
Proceeding to cross-read analysis...
Details
- Repository
- github.com/affaan-m/ecc
- Categories
- Skill & Plugin Building, Agent Workflow & Planning
- First seen
- Jul 14, 2026
Questions
What does the rules-distill skill do?
It scans installed skills to find cross-cutting principles that recur across several skills. It then appends them to existing rule files, revises outdated content, or creates new rule files, always with user approval.
How do I install the rules-distill skill?
Run npx -y skills add affaan-m/ecc --skill rules-distill -y in a project. Once installed, the agent can run its inventory scripts and cross-read skills to propose rule updates.
Where does rules-distill rank in its category?
It sits in the Skill & Plugin Building category, where it ranks in the top 50. Other skills in that category include find-skills, writing-for-agents, skill-creator and discover-azure-skills.
When should I use rules-distill?
Use it for periodic rules maintenance, after installing new skills, or after a skill stocktake shows patterns that belong in rules. It is meant for when the same principle keeps recurring across skills.
More from affaan-m/ecc
All 257- Skill Comply11.3K
- Click Path Audit11.3K
- Council11.2K
- Healthcare Phi Compliance11.2K
- Dashboard Builder11.2K
- Dart Flutter Patterns11.2K
- Santa Method11.2K
- Benchmark11.1K
- Healthcare Emr Patterns11.1K
- Safety Guard11K
- Claude Devfleet11K
- Product Lens11K
- Repo Scan11K
- Laravel Plugin Discovery11K
- Agent Introspection Debugging11K
- Agent Payment X40210.9K
- Ck10.9K
- Canary Watch10.9K
- Healthcare Cdss Patterns10.9K
- Security Bounty Hunter10.9K
- Dotnet Patterns10.9K
- Healthcare Eval Harness10.9K
- Llm Trading Agent Security10.8K
- Nodejs Keccak25610.8K
Similar to Rules Distill
More Skill & Plugin Buildingskill-scoutSkillaffaan-m/ecc8.6K installsPre-creation search workflow that checks local, marketplace, GitHub, and web skill sources before building anything new.
skill-skillPlugindavepoon/buildwithclaude3.8K starsWrite, upgrade or audit Claude skills so they change what gets generated: distil rules from real corrections, turn them into required artifacts, gates and scrip
agent-sortSkillaffaan-m/ecc10.7K installsClassifies ECC components into DAILY and LIBRARY buckets using repo-specific evidence to produce a trimmed install plan.
autoskillSkillecnu-icalk/autoskill622 starsManages personal local skill files by detecting reusable workflows, checking for duplicates, and drafting changes for approval.
skill-creatorSkillanthropics/skills441.5K installsGuided workflow that creates, tests, benchmarks, and refines agent skills, including description optimization for triggering accuracy.
skill-reviewerSkilldaymade/claude-code-skills1.5K installsReviews skill quality against evidence-based rubrics, with self-review, external audit, and authorized auto-PR modes.