[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B3KJX730E3WN7R3PJ7YSY1":3,"skill-same:01M7B3KJX730E3WN7R3PJ7YSY1":61},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M7B3KJX730E3WN7R3PJ7YSY1","rules-distill",null,"Scan an engine's skills for cross-cutting principles that recur in 2+ skills and are not already in rules\u002F, and propose promoting them into rules\u002Fcommon\u002F. Use periodically per engine, or after a skill-stocktake pass reveals repeated patterns.","peterbamuhigire\u002Fchwezi-engine-agents","peterbamuhigire","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4398529?v=4","01M7B3KAV96TTT77YHG98N88GQ","Peter Bamuhigire","01M7B3KAVY0D0DE7XCW3RD5XR4",1,"MIT","https:\u002F\u002Fgithub.com\u002Fpeterbamuhigire\u002Fchwezi-engine-agents\u002Fblob\u002Fmain\u002Fskills\u002Frules-distill\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: rules-distill\ndescription: Scan an engine's skills for cross-cutting principles that recur in 2+ skills and are not already in rules\u002F, and propose promoting them into rules\u002Fcommon\u002F. Use periodically per engine, or after a skill-stocktake pass reveals repeated patterns.\nmetadata:\n  origin: chwezi-engine-agents\n  adapted_from: \"ECC audit (kaizen-engines\u002FECC-audit-2026-09-20\u002F00-MASTER-REPORT.md, I-2), applying the same deterministic-collection-plus-LLM-judgment split\"\n---\n\n# Rules Distill\n\nScans one engine's skills, extracts principles that recur in **two or more**\nskills, checks them against that engine's existing `rules\u002F` content, and\nproposes verdicts. Never edits `rules\u002F` automatically — every promotion is\npresented for explicit approval.\n\n## When to Use\n\n- Periodic maintenance for an engine that already has a `rules\u002F` layer (all\n  eleven catalogued domain engines do, as checked on 29 Sep 2026; this\n  coordination package has none, and the dev engine's `rules\u002Fcommon\u002F` holds\n  topic files rather than a `core.md`).\n- After a skill-stocktake-style audit surfaces a pattern worth checking.\n- When a rule file feels thin relative to what the skills actually assume.\n\n## Design Principle: Deterministic Collection, LLM Judgment\n\n`scripts\u002Fscan-skills.sh` and `scripts\u002Fscan-rules.sh` do the exhaustive,\nmechanical part — listing every skill and every rule file, so nothing is missed\nby sampling. The judgment of *which* candidate principles are genuinely\ncross-cutting, whether they duplicate existing rules in different words, and how\nto word a promotion — that stays with the agent (or the model reading the scan\noutput), because it requires reading intent, not counting occurrences.\n\n## Workflow\n\n### Phase 1 — Inventory (deterministic)\n\n```bash\nbash scripts\u002Fscan-skills.sh \u003Cengine-root>   # every SKILL.md path + description\nbash scripts\u002Fscan-rules.sh \u003Cengine-root>    # every rules\u002F**\u002F*.md path + headings\n```\n\n### Phase 2 — Extraction and matching (judgment)\n\nRead the collected skill descriptions and, for any principle that appears to\nrecur, open the actual skill files (not just descriptions) to confirm it is the\nsame principle stated twice, not two different things that happen to use\nsimilar words.\n\nApply the same three-layer filter the source pattern specifies:\n\n1. **Appears in 2+ skills** — a principle found in exactly one skill stays a\n   skill concern, not a rule.\n2. **Actionable behaviour change** — must be statable as \"do X\" \u002F \"don't do Y\",\n   not \"X is important.\"\n3. **Clear violation risk** — one sentence on what goes wrong if ignored.\n\nFor each candidate that survives the filter, check it against the full text of\n`rules\u002F**\u002F*.md` (small enough per engine to read in full) and assign a verdict:\n\n| Verdict | Meaning |\n|---|---|\n| **Append** | Add to an existing section of an existing rule file |\n| **Revise** | Existing rule content is inaccurate or insufficient |\n| **New Section** | Add a new section to an existing rule file |\n| **New File** | Create a new rule file |\n| **Already Covered** | Sufficiently covered, even if worded differently |\n| **Too Specific** | Should remain at the skill level |\n\n### Phase 3 — Present and apply only on approval\n\nPresent a table: principle, evidence (which 2+ skills), violation risk, verdict,\ntarget file, draft text. **Never modify `rules\u002F` automatically.** Apply only the\ncandidates the user approves; skip or modify the rest as directed.\n\n## Output Format\n\n```markdown\n# Rules Distillation — \u003Cengine-name>\n\nSkills scanned: N | Rules: M files | Candidates: K\n\n| # | Principle | Verdict | Target | Evidence |\n|---|-----------|---------|--------|----------|\n| 1 | ... | Append | rules\u002Fcommon\u002Fsecurity.md §... | skill-a, skill-b |\n```\n\n## Anti-Pattern\n\nDo not promote a principle to a rule on the strength of one skill using strong\nlanguage (\"always\", \"never\") — that is still one skill's concern until a second,\nindependent skill assumes the same thing.\n\n## Related\n\n- `chwezi-dev-engine\u002Frules\u002FREADME.md` — the rules-vs-skills test this skill applies\n- The twelve `rules\u002Fcommon\u002F*.md` files created across the estate on 2026-09-20\n  are the current baseline this skill would check future skill growth against.\n","# Rules Distill\n\nScans one engine's skills, extracts principles that recur in **two or more**\nskills, checks them against that engine's existing `rules\u002F` content, and\nproposes verdicts. Never edits `rules\u002F` automatically — every promotion is\npresented for explicit approval.\n\n## When to Use\n\n- Periodic maintenance for an engine that already has a `rules\u002F` layer (all\n  eleven catalogued domain engines do, as checked on 29 Sep 2026; this\n  coordination package has none, and the dev engine's `rules\u002Fcommon\u002F` holds\n  topic files rather than a `core.md`).\n- After a skill-stocktake-style audit surfaces a pattern worth checking.\n- When a rule file feels thin relative to what the skills actually assume.\n\n## Design Principle: Deterministic Collection, LLM Judgment\n\n`scripts\u002Fscan-skills.sh` and `scripts\u002Fscan-rules.sh` do the exhaustive,\nmechanical part — listing every skill and every rule file, so nothing is missed\nby sampling. The judgment of *which* candidate principles are genuinely\ncross-cutting, whether they duplicate existing rules in different words, and how\nto word a promotion — that stays with the agent (or the model reading the scan\noutput), because it requires reading intent, not counting occurrences.\n\n## Workflow\n\n### Phase 1 — Inventory (deterministic)\n\n```bash\nbash scripts\u002Fscan-skills.sh \u003Cengine-root>   # every SKILL.md path + description\nbash scripts\u002Fscan-rules.sh \u003Cengine-root>    # every rules\u002F**\u002F*.md path + headings\n```\n\n### Phase 2 — Extraction and matching (judgment)\n\nRead the collected skill descriptions and, for any principle that appears to\nrecur, open the actual skill files (not just descriptions) to confirm it is the\nsame principle stated twice, not two different things that happen to use\nsimilar words.\n\nApply the same three-layer filter the source pattern specifies:\n\n1. **Appears in 2+ skills** — a principle found in exactly one skill stays a\n   skill concern, not a rule.\n2. **Actionable behaviour change** — must be statable as \"do X\" \u002F \"don't do Y\",\n   not \"X is important.\"\n3. **Clear violation risk** — one sentence on what goes wrong if ignored.\n\nFor each candidate that survives the filter, check it against the full text of\n`rules\u002F**\u002F*.md` (small enough per engine to read in full) and assign a verdict:\n\n| Verdict | Meaning |\n|---|---|\n| **Append** | Add to an existing section of an existing rule file |\n| **Revise** | Existing rule content is inaccurate or insufficient |\n| **New Section** | Add a new section to an existing rule file |\n| **New File** | Create a new rule file |\n| **Already Covered** | Sufficiently covered, even if worded differently |\n| **Too Specific** | Should remain at the skill level |\n\n### Phase 3 — Present and apply only on approval\n\nPresent a table: principle, evidence (which 2+ skills), violation risk, verdict,\ntarget file, draft text. **Never modify `rules\u002F` automatically.** Apply only the\ncandidates the user approves; skip or modify the rest as directed.\n\n## Output Format\n\n```markdown\n# Rules Distillation — \u003Cengine-name>\n\nSkills scanned: N | Rules: M files | Candidates: K\n\n| # | Principle | Verdict | Target | Evidence |\n|---|-----------|---------|--------|----------|\n| 1 | ... | Append | rules\u002Fcommon\u002Fsecurity.md §... | skill-a, skill-b |\n```\n\n## Anti-Pattern\n\nDo not promote a principle to a rule on the strength of one skill using strong\nlanguage (\"always\", \"never\") — that is still one skill's concern until a second,\nindependent skill assumes the same thing.\n\n## Related\n\n- `chwezi-dev-engine\u002Frules\u002FREADME.md` — the rules-vs-skills test this skill applies\n- The twelve `rules\u002Fcommon\u002F*.md` files created across the estate on 2026-09-20\n  are the current baseline this skill would check future skill growth against.\n",{"name":5,"metadata":24,"description":7},{"origin":25,"adapted_from":26},"chwezi-engine-agents","ECC audit (kaizen-engines\u002FECC-audit-2026-09-20\u002F00-MASTER-REPORT.md, I-2), applying the same deterministic-collection-plus-LLM-judgment split","main","869bc819ce944701cd64502bdfa22f595c5dfa28","skills\u002Frules-distill",0,"https:\u002F\u002Fgithub.com\u002Fpeterbamuhigire\u002Fchwezi-engine-agents","https:\u002F\u002Ftechguypeter.com\u002Fen\u002Fai\u002Fskills\u002F","https:\u002F\u002Fgithub.com\u002Fpeterbamuhigire","techguypeter.com","Software Engineer, ICT Consultant, Apps and Database Developer from Kampala, Uganda. Contact me to discuss new projects","2026-11-11 21:48:43",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add peterbamuhigire\u002Fchwezi-engine-agents --skill rules-distill",{"tool":43,"command":44},"bunx","bunx skills add peterbamuhigire\u002Fchwezi-engine-agents --skill rules-distill",{"tool":46,"command":47},"pnpm","pnpm dlx skills add peterbamuhigire\u002Fchwezi-engine-agents --skill rules-distill","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpeterbamuhigire\u002Fchwezi-engine-agents\u002Fblob\u002Fmain\u002Fskills\u002Frules-distill\u002FSKILL.md",true,[51,57],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"scripts\u002Fscan-rules.sh","SCRIPT","脚本",566,"https:\u002F\u002Fgithub.com\u002Fpeterbamuhigire\u002Fchwezi-engine-agents\u002Fblob\u002Fmain\u002Fskills\u002Frules-distill\u002Fscripts\u002Fscan-rules.sh",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"scripts\u002Fscan-skills.sh",735,"https:\u002F\u002Fgithub.com\u002Fpeterbamuhigire\u002Fchwezi-engine-agents\u002Fblob\u002Fmain\u002Fskills\u002Frules-distill\u002Fscripts\u002Fscan-skills.sh",[62,69,76,82,89,96],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7B3M6D50ME0WBN3M757F2KZ","printable-invoices","Lay out printable invoices with line items, tax totals, payment terms and remittance details for small businesses.","https:\u002F\u002Fgithub.com\u002Fpeterbamuhigire\u002Fchwezi-engine-agents\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgraph-workspace\u002Fengine-b\u002Fskills\u002Fdocs\u002Fprintable-invoices\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7B3M4QFC3MZCAVWR8VP7BEE","ledger-posting","Post journals to the general ledger.","https:\u002F\u002Fgithub.com\u002Fpeterbamuhigire\u002Fchwezi-engine-agents\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgraph-workspace\u002Fengine-a\u002Fskills\u002Fcore\u002Fledger-posting\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7B3M0X5800BHAC4YG9PXW2H","invoice-layout","https:\u002F\u002Fgithub.com\u002Fpeterbamuhigire\u002Fchwezi-engine-agents\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgraph-workspace\u002Fengine-a\u002Fskills\u002Fcore\u002Finvoice-layout\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7B3KYJJK6ATP7FPFWA24H89","gamma-skill","Synthetic gamma.","https:\u002F\u002Fgithub.com\u002Fpeterbamuhigire\u002Fchwezi-engine-agents\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fengine-workspace\u002Fdemo-engine\u002Fskills\u002Fcore\u002Fgamma-skill\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7B3KVTP2REHX7ZARXH15DG1","delta-orphan","Synthetic skill that nothing references (seeded zero-inbound).","https:\u002F\u002Fgithub.com\u002Fpeterbamuhigire\u002Fchwezi-engine-agents\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fengine-workspace\u002Fdemo-engine\u002Fskills\u002Fcore\u002Fdelta-orphan\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7B3KSGRBMPFCVG3V3YFX5VD","beta-skill","Synthetic beta.","https:\u002F\u002Fgithub.com\u002Fpeterbamuhigire\u002Fchwezi-engine-agents\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fengine-workspace\u002Fdemo-engine\u002Fskills\u002Fcore\u002Fbeta-skill\u002FSKILL.md",[],[]]