Skip to content
Back to skills

Rules Distill

ASecurity

Use when scan skills to extract cross-cutting principles and distill them into rules — append, revise, or create new rule files. Triggers on \"rules-distill\", \"rules distill\", \"distill\".

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 19, 2026
ai-agentsbash

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add majinmagros/magros.ai-skills --skill rules-distill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rules Distill?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rules Distill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majinmagros-rules-distill/badge)](https://www.skillsdirectory.com/skills/majinmagros-rules-distill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rules-distill
description: "Use when scan skills to extract cross-cutting principles and distill them into rules — append, revise, or create new rule files. Triggers on \"rules-distill\", \"rules distill\", \"distill\"."
metadata:
  origin: ECC
---

# Rules Distill

Scan installed skills, extract cross-cutting principles, and distill them into rules. Detalhes em `references/`.

## When to Activate

- 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
- Before a major release, to consolidate duplicated guidance

## Core Principles

1. **Deterministic collection, LLM judgment** — scripts gather facts, LLM cross-reads and verdicts
2. **2+ skills evidence** — single-skill principles stay in that skill
3. **What, not How** — principles only; code examples stay in skills
4. **Link back** — drafts include `See skill: [name]`
5. **Never auto-apply** — every candidate needs user approval

## Example

```bash
bash ~/.claude/skills/rules-distill/scripts/scan-skills.sh
bash ~/.claude/skills/rules-distill/scripts/scan-rules.sh
# then cross-read analysis → report → approve/modify/skip per candidate
```

## References

- `references/inventory.md` — Phase 1: scan scripts + inventory report
- `references/cross-read.md` — Phase 2: batching, subagent prompt, verdicts
- `references/review-execution.md` — Phase 3: report table, approval, results.json
- `references/example-principles.md` — end-to-end run + design principles

## Checklist

- [ ] Inventory scanned (skills + rules index)
- [ ] Every candidate has 2+ skills evidence + violation risk
- [ ] Verdict assigned (Append/Revise/New Section/New File/Covered/Too Specific)
- [ ] User approved each applied candidate explicitly
- [ ] Results saved to results.json (UTC timestamp, kebab-case IDs)

Files in this skill

  • SKILL.md1.9 KB
  • references/cross-read.md3.7 KB
  • references/example-principles.md2.4 KB
  • references/inventory.md552 B
  • references/review-execution.md1.7 KB
  • scripts/scan-rules.sh1.6 KB
  • scripts/scan-skills.sh3.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…