원클릭으로
rules-distill
Find cross-cutting principles repeated across skills and promote them into rule files, with user approval per candidate.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Find cross-cutting principles repeated across skills and promote them into rule files, with user approval per candidate.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Build Flutter APK/IPA, generate changelog, update buildlog, and commit version bump. Handles platform selection, build mode, and artifact renaming.
Build Unity APK/IPA on macOS with Unity 6.x — pre-flight checks, version bump, iOS signing params, post-build verification, buildlog, and commit.
Evidence-driven bug investigation and fix pipeline. Use when something is broken, not working, or the root cause is ambiguous.
Two independent reviewers must both approve high-stakes output before it ships, breaking the single-reviewer blind-spot problem.
Team-orchestrated feature development with parallel specialist agents. Use when building a feature that benefits from multiple agents working concurrently. You act as Product Director coordinating the team.
Interactive agent picker for composing and dispatching parallel teams. Browse available agents across domains, pick a roster, dispatch in parallel.
| name | rules-distill |
| description | Find cross-cutting principles repeated across skills and promote them into rule files, with user approval per candidate. |
| when_to_use | Use for periodic rules maintenance, after adding several new skills, or when the rules feel incomplete relative to how skills actually behave. Triggers: "distill rules", "what should be a rule", "extract principles from the skills", "rules maintenance". Skip for one-off principles that belong to a single skill. |
| allowed-tools | Read Write Edit Grep Glob Bash Agent |
Source: adapted from affaan-m/ecc
skills/rules-distill(MIT). Retargeted to this repo's layout: skills live in*/skills/*/SKILL.md, rules inrules/nextc-claude/*.md.
Scan the skills, extract principles that recur across 2+ skills, and distill them into rules —
appending to, revising, or creating rule files. Method: deterministic collection + LLM judgment —
collect exhaustively with scripts, then cross-read with an agent. Never modify rules automatically;
every candidate needs user approval (mirrors latest-spec-wins.md Branch B discipline for rules).
# Skills across all plugins
ls -d */skills/*/SKILL.md
# Rules (the single source of cross-cutting truth)
ls rules/nextc-claude/*.md
Report: Skills: {N} scanned · Rules: {M} files. The rules text is small enough (~1 file ≈ a few
hundred lines) to read in full — no grep pre-filtering needed.
Group skills into thematic clusters by their description/when_to_use. For each cluster, spawn a
reader agent with the cluster's skill text AND the full rules text:
Agent(subagent_type: "claude", model: "sonnet",
description: "distill rules from <cluster>",
prompt: <criteria + output schema below>)
After all clusters return, merge across clusters: dedupe overlapping principles, and re-check the "2+ skills" bar using evidence from all clusters combined (1 skill per cluster but 2+ total is valid).
Inclusion criteria — a candidate qualifies only if ALL hold:
Per-candidate output (JSON):
{ "principle": "1-2 sentences, do X / don't Y",
"evidence": ["skill-name: §Section", "skill-name: §Section"],
"violation_risk": "1 sentence",
"verdict": "Append | Revise | New Section | New File | Already Covered | Too Specific",
"target_rule": "rules/nextc-claude/<file>.md §Section, or 'new'",
"confidence": "high | medium | low",
"draft": "draft text for Append/New Section/New File",
"revision": { "reason": "...", "before": "...", "after": "..." } }
Exclude: principles already in rules, language/framework-specific knowledge (belongs in a skill), and code/commands (belong in skills — rules are "what", not "how").
Present a summary table (# | Principle | Verdict | Target | Confidence) then per-candidate detail
(evidence, violation risk, draft). The user approves / modifies / skips each by number. Apply only the
approved ones, then — per latest-spec-wins.md and skill-authoring.md — if a new rule changes how
skills should be written, note any skills that now need updating. Bump the rule count in CLAUDE.md
and README.md if a New File landed.
See skill: <name> reference to the detailed how.skill-authoring.md (rule) — how to write the skills this scans.writing-skills — authoring a single skill; this distills across many.skill-audit / /validate — quality and conformance of individual skills.