Agent skill

rules-distill

Scan skills to extract cross-cutting principles and distill them into rules — append, revise, or create new rule files

mturacgithub.com/mturacGitHub ↗
codexcopilotcursorships scriptsMIT
Install
npx skills add mturac/everything-openai-codex --skill rules-distill --agent codex

Same command for any agent — swap --agent for claude-code, cursor, copilot.

Facts
Files in the skill folder: 3
SKILL.md size: 9 KB
Bundled scripts: yes
Path: skills/rules-distill/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 84
Language: JavaScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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 bash ~/.codex/skills/rules-distill/scripts/scan-skills.sh ``` #### 1b. Collect rules index ```bash bash ~/.codex/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... ``` ### Phase 2: Cross-read, Match & Verdict (LLM Judgment) Extract

What's inside
Steps it walks through
  1. When to Use
  2. How It Works
  3. Phase 1: Inventory (Deterministic Collection)
  4. Phase 2: Cross-read, Match & Verdict (LLM Judgment)
  5. Phase 3: User Review & Execution
  6. Example
  7. End-to-end run
  8. Design Principles
Ships with 2 files
  • scripts/scan-rules.sh
  • scripts/scan-skills.sh
Commands it runs
bash ~/.codex/skills/rules-distill/scripts/scan-skills.sh
bash ~/.codex/skills/rules-distill/scripts/scan-rules.sh
More from everything-openai-codex
All skills →
About this skill
What does the rules-distill skill do?

Scan skills to extract cross-cutting principles and distill them into rules — append, revise, or create new rule files

How do I install it?

Run `npx skills add mturac/everything-openai-codex --skill rules-distill --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From mturac/everything-openai-codex, a repository with 84 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going