Skip to content
affaan-m avatar

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
View on GitHub

Own this skill? Claim it

What it does

  • Ships in the affaan-m/ecc GitHub repository

Install

$ npx -y skills add affaan-m/ecc --skill rules-distill -y

Installs 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

Similar to Rules Distill

More Skill & Plugin Building