[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M759EB2CJXAXEDY5D34QATEZ":3,"skill-same:01M759EB2CJXAXEDY5D34QATEZ":63},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M759EB2CJXAXEDY5D34QATEZ","8-code",null,"Event-model each use case into slices, then author one aggregate design canvas per aggregate the slices touch — deciding what stays consistent inside one transaction and what is repaired afterwards. Use whenever a context has a defined canvas and a first-pass model.yaml and needs its aggregates designed, invariants and corrective policies pinned, or throughput\u002Fsize re-checked against a boundary — invoked by ddd-flow:design or directly. The last modelling step before the model becomes code; not for writing the implementation.","baodq97\u002Fgovkit","baodq97","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F50482002?v=4","01M759BJ9XC68CW9PQCFK22H1X","Bao Do","01M759BJAY1W696G8A8N841875",0,"MIT","https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fplugins\u002Fddd-flow\u002Fskills\u002F8-code\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: 8-code\ndescription: Event-model each use case into slices, then author one aggregate design canvas per aggregate the slices touch — deciding what stays consistent inside one transaction and what is repaired afterwards. Use whenever a context has a defined canvas and a first-pass model.yaml and needs its aggregates designed, invariants and corrective policies pinned, or throughput\u002Fsize re-checked against a boundary — invoked by ddd-flow:design or directly. The last modelling step before the model becomes code; not for writing the implementation.\npaths: docs\u002Fdomain\u002F**\n---\n\n# Code — what stays consistent in one transaction, and what gets repaired afterwards?\n\nYou already know event modelling, the aggregate design canvas, and the invariant-versus-corrective-\npolicy trade-off. This skill does **not** re-teach that — it gives only what a strong model gets\nwrong by default here, plus the exact output contract the gate parses.\n\n## Step 0 — load the law\nRead **`..\u002F..\u002Freferences\u002FRULES.md`** (the shared ddd-flow rules). The **Aggregates**, **Right-size**,\nand **Boundaries** sections govern this step (with the [8]-tagged **Grounding** and **Honesty**\nrules). They are the rules, not the method — do not proceed without them.\n\n## Consumes → produces\n- **Read:** `docs\u002Fdomain\u002F\u003Ccontext>\u002FREADME.md` (the context canvas — purpose, business decisions,\n  quality attributes), `docs\u002Fdomain\u002F\u003Ccontext>\u002Fmodel.yaml` (first-pass aggregates\u002Fentities\u002FVOs\u002Fevents),\n  and `docs\u002Fdomain\u002Fmessage-flows\u002F` (which commands cross in, and the throughput\u002Fclient inputs).\n- **Write:** one `docs\u002Fdomain\u002F\u003Ccontext>\u002Faggregates\u002F\u003CName>.md` canvas per aggregate the slices touch\n  (the gate's evidence); optionally the phase-1 `event-model\u002FREADME.md` and the `code-structure.md`\n  structural contract.\n\n## Output contract (what the gate parses — obey exactly)\nAuthor every canvas to the aggregate-canvas shape in **`..\u002F..\u002Freferences\u002Fartifact-shapes.md`**. Obey\nthe budgets (aggregate canvas ≤150, `event-model\u002FREADME.md` ≤200, `code-structure.md` ≤120) and the\none marker the gate parses: any `relax` \u002F `eventual` \u002F `not enforced` wording MUST be met by a\n`## Corrective policies` section (check 10 `relaxed-without-policy`, HIGH).\n\n## The one rule most often broken (echoed for salience; full set in RULES.md)\n**Never invent an invariant.** Take invariants only from stated business rules — inferring \"an invoice\nmust have at least one line\" because it sounds right manufactures a constraint the business never asked\nfor, and unlike a missing rule a fabricated one is enforced by the code and discovered by a customer.\n\n## Done\nRun `ddd_check` (grounding + structure gate); resolve blocking gaps; keep `open_questions` populated\nhonestly. Where a canvas contradicts `model.yaml`, **propose** the delta — `3-decompose` owns that\nfile, never hand-edit it here. Design stops at the structural contract — no skeleton classes.\n","# Code — what stays consistent in one transaction, and what gets repaired afterwards?\n\nYou already know event modelling, the aggregate design canvas, and the invariant-versus-corrective-\npolicy trade-off. This skill does **not** re-teach that — it gives only what a strong model gets\nwrong by default here, plus the exact output contract the gate parses.\n\n## Step 0 — load the law\nRead **`..\u002F..\u002Freferences\u002FRULES.md`** (the shared ddd-flow rules). The **Aggregates**, **Right-size**,\nand **Boundaries** sections govern this step (with the [8]-tagged **Grounding** and **Honesty**\nrules). They are the rules, not the method — do not proceed without them.\n\n## Consumes → produces\n- **Read:** `docs\u002Fdomain\u002F\u003Ccontext>\u002FREADME.md` (the context canvas — purpose, business decisions,\n  quality attributes), `docs\u002Fdomain\u002F\u003Ccontext>\u002Fmodel.yaml` (first-pass aggregates\u002Fentities\u002FVOs\u002Fevents),\n  and `docs\u002Fdomain\u002Fmessage-flows\u002F` (which commands cross in, and the throughput\u002Fclient inputs).\n- **Write:** one `docs\u002Fdomain\u002F\u003Ccontext>\u002Faggregates\u002F\u003CName>.md` canvas per aggregate the slices touch\n  (the gate's evidence); optionally the phase-1 `event-model\u002FREADME.md` and the `code-structure.md`\n  structural contract.\n\n## Output contract (what the gate parses — obey exactly)\nAuthor every canvas to the aggregate-canvas shape in **`..\u002F..\u002Freferences\u002Fartifact-shapes.md`**. Obey\nthe budgets (aggregate canvas ≤150, `event-model\u002FREADME.md` ≤200, `code-structure.md` ≤120) and the\none marker the gate parses: any `relax` \u002F `eventual` \u002F `not enforced` wording MUST be met by a\n`## Corrective policies` section (check 10 `relaxed-without-policy`, HIGH).\n\n## The one rule most often broken (echoed for salience; full set in RULES.md)\n**Never invent an invariant.** Take invariants only from stated business rules — inferring \"an invoice\nmust have at least one line\" because it sounds right manufactures a constraint the business never asked\nfor, and unlike a missing rule a fabricated one is enforced by the code and discovered by a customer.\n\n## Done\nRun `ddd_check` (grounding + structure gate); resolve blocking gaps; keep `open_questions` populated\nhonestly. Where a canvas contradicts `model.yaml`, **propose** the delta — `3-decompose` owns that\nfile, never hand-edit it here. Design stops at the structural contract — no skeleton classes.\n",{"name":5,"paths":24,"description":7},"docs\u002Fdomain\u002F**","main","850634e254ea6a5034bf2eddad5fe95091713231","plugins\u002Fddd-flow\u002Fskills\u002F8-code","https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit","https:\u002F\u002Fgithub.com\u002Fbaodq97","2026-09-07 14:26:00",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add baodq97\u002Fgovkit --skill 8-code",{"tool":37,"command":38},"bunx","bunx skills add baodq97\u002Fgovkit --skill 8-code",{"tool":40,"command":41},"pnpm","pnpm dlx skills add baodq97\u002Fgovkit --skill 8-code","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fplugins\u002Fddd-flow\u002Fskills\u002F8-code\u002FSKILL.md",true,[45,51,55,59],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Faggregate-design-canvas.md","REFERENCE","参考文档",14064,"https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fplugins\u002Fddd-flow\u002Fskills\u002F8-code\u002Freferences\u002Faggregate-design-canvas.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fcode-structure.md",5848,"https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fplugins\u002Fddd-flow\u002Fskills\u002F8-code\u002Freferences\u002Fcode-structure.md",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fevent-modeling.md",5174,"https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fplugins\u002Fddd-flow\u002Fskills\u002F8-code\u002Freferences\u002Fevent-modeling.md",{"path":60,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fworked-example.md",2447,"https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fplugins\u002Fddd-flow\u002Fskills\u002F8-code\u002Freferences\u002Fworked-example.md",[64,71,78,85,92,98],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M759HTCHQJVZ4JWDA2JNPJJZ","trigger-shaped","Use when the user says \"plan a sprint retro\"; drafts retro\u002Fnotes.md for the team.","https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fscripts\u002Ffixtures\u002Fskill-lint\u002Ftriggering\u002Fskills\u002Ftrigger-shaped\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M759HS3E2T97ZN1ED2Z96WAJ","terse-unguarded","Step 2 — writes docs\u002Fx\u002Foutput.json quietly.","https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fscripts\u002Ffixtures\u002Fskill-lint\u002Ftriggering\u002Fskills\u002Fterse-unguarded\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M759HPZN28VZHKYFR754CVXT","guarded","Summarizes ledger totals into reports\u002Fmonthly.csv.","https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fscripts\u002Ffixtures\u002Fskill-lint\u002Ftriggering\u002Fskills\u002Fguarded\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M759HMFQAZAWFVSS3KWPCCW0","open","Draft a spec. Use when asked to \"draft a spec\" or \"write the RFC\".","https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fscripts\u002Ffixtures\u002Fskill-lint\u002Fdead-hint\u002Fskills\u002Fopen\u002FSKILL.md",[],[],{"skillNo":93,"name":80,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M759HJ3XX74S70PW9AR8NS66","Deploy the thing.","https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fscripts\u002Ffixtures\u002Fskill-lint\u002Fdead-hint\u002Fskills\u002Fguarded\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M759HCWJN9ACRNC1JW76DR1E","working-discipline","Thinking-checkpoint discipline for substantive implementation, debugging, or autonomous work — 21 trigger-gated items (trigger → mandatory question → evidence to produce) that cut agent error and human escalation. Use before an autonomous or long-running run, when asked to \"work carefully\", \"double-check\", \"làm cẩn thận\", \"reduce errors\", \"be more autonomous\", or after looping twice on the same failing fix. NOT a procedure — checkpoints fire on their triggers and demand evidence, with an N\u002FA escape valve so a strong model pays near-zero overhead.","https:\u002F\u002Fgithub.com\u002Fbaodq97\u002Fgovkit\u002Fblob\u002Fmain\u002Fplugins\u002Fswe-flow\u002Fskills\u002Fworking-discipline\u002FSKILL.md",[],[]]