[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71Q6FY2H8YNZSNZ52ENHRB6":3,"skill-same:01M71Q6FY2H8YNZSNZ52ENHRB6":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":24,"linkOnly":25,"markdownContent":26,"markdownBody":27,"frontMatter":28,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":34,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":36,"install":37,"resources":50},"01M71Q6FY2H8YNZSNZ52ENHRB6","domain-modeling",null,"构建并打磨项目的领域模型。适用于讨论 codebase 术语、编写或编辑 GLOSSARY.md，或记录或编辑 ADR。","vinvcn\u002Fmattpocock-skills-zh-CN","vinvcn","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F120928190?v=4","01M71Q60C4V98DEXHGN2VXFSZB","01M71Q60D6PRAJHKQRY33ZNE59",5797,"MIT","https:\u002F\u002Fgithub.com\u002Fvinvcn\u002Fmattpocock-skills-zh-CN\u002Fblob\u002Fmain\u002Fskills\u002Fengineering\u002Fdomain-modeling\u002FSKILL.md",[],[18,19,20,21,22,23],"domain modeling","domain","modeling","adr","glossary","codebase","2026-11-10 13:02:02",false,"---\nname: domain-modeling\ndescription: 构建并打磨项目的领域模型。适用于讨论 codebase 术语、编写或编辑 GLOSSARY.md，或记录或编辑 ADR。\n---\n\n# 领域建模\n\n在设计过程中主动构建并打磨项目的 domain model。这是 *active* discipline：挑战术语、发明 edge-case scenarios，并在概念成形的当下写入 glossary 和 decisions。\n\n## 文件结构\n\n多数 repos 只有一个 context：\n\n```text\n\u002F\n|- GLOSSARY.md\n|- docs\u002F\n|  `- adr\u002F\n|     |- 0001-event-sourced-orders.md\n|     `- 0002-postgres-for-write-model.md\n`- src\u002F\n```\n\n如果 root 有 `GLOSSARY-MAP.md`，说明 repo 有多个 contexts。map 指向每个 context 的位置：\n\n```text\n\u002F\n|- GLOSSARY-MAP.md\n|- docs\u002F\n|  `- adr\u002F                          -> system-wide decisions\n`- src\u002F\n   |- ordering\u002F\n   |  |- GLOSSARY.md\n   |  `- docs\u002Fadr\u002F                  -> context-specific decisions\n   `- billing\u002F\n      |- GLOSSARY.md\n      `- docs\u002Fadr\u002F\n```\n\n按需懒创建文件：只有在有内容要写时才创建。如果没有 `GLOSSARY.md`，当第一个 term 被解决时创建它。如果没有 `docs\u002Fadr\u002F`，当第一个 ADR 需要出现时创建它。\n\n## Session 期间\n\n### 对照术语表质询\n\n当用户使用的术语与 `GLOSSARY.md` 中既有语言冲突时，立即指出。\"Your glossary defines 'cancellation' as X, but you seem to mean Y - which is it?\"\n\n### 打磨模糊用语\n\n当用户使用模糊或过载术语时，提出一个精确的 canonical term。\"You're saying 'account' - do you mean the Customer or the User? Those are different things.\"\n\n### 讨论具体场景\n\n讨论 domain relationships 时，用具体场景做压力测试。发明能探测 edge cases 的场景，迫使用户精确定义概念之间的 boundaries。\n\n### 与代码交叉对照\n\n当用户描述某事如何工作时，检查代码是否同意。如果发现矛盾，要指出：\"Your code cancels entire Orders, but you just said partial cancellation is possible - which is right?\"\n\n### 就地更新 GLOSSARY.md\n\n当一个 term 被解决时，立刻更新 `GLOSSARY.md`。不要批量攒到最后；随着概念出现就捕获。使用 [GLOSSARY-FORMAT.md](.\u002FGLOSSARY-FORMAT.md) 中的格式。\n\n`GLOSSARY.md` 必须完全不包含 implementation details。不要把 `GLOSSARY.md` 当 spec、scratch pad 或 implementation decisions 的仓库。它只是一份 glossary。\n\n### 谨慎提议 ADR\n\n只有以下三项都成立时，才提出创建 ADR：\n\n1. **Hard to reverse** - 之后改变主意的成本有意义\n2. **Surprising without context** - 未来读者会疑惑 \"why did they do it this way?\"\n3. **The result of a real trade-off** - 确实存在替代方案，而你基于具体理由选择了其中一个\n\n缺少任一项就跳过 ADR。使用 [ADR-FORMAT.md](.\u002FADR-FORMAT.md) 中的格式。\n","# 领域建模\n\n在设计过程中主动构建并打磨项目的 domain model。这是 *active* discipline：挑战术语、发明 edge-case scenarios，并在概念成形的当下写入 glossary 和 decisions。\n\n## 文件结构\n\n多数 repos 只有一个 context：\n\n```text\n\u002F\n|- GLOSSARY.md\n|- docs\u002F\n|  `- adr\u002F\n|     |- 0001-event-sourced-orders.md\n|     `- 0002-postgres-for-write-model.md\n`- src\u002F\n```\n\n如果 root 有 `GLOSSARY-MAP.md`，说明 repo 有多个 contexts。map 指向每个 context 的位置：\n\n```text\n\u002F\n|- GLOSSARY-MAP.md\n|- docs\u002F\n|  `- adr\u002F                          -> system-wide decisions\n`- src\u002F\n   |- ordering\u002F\n   |  |- GLOSSARY.md\n   |  `- docs\u002Fadr\u002F                  -> context-specific decisions\n   `- billing\u002F\n      |- GLOSSARY.md\n      `- docs\u002Fadr\u002F\n```\n\n按需懒创建文件：只有在有内容要写时才创建。如果没有 `GLOSSARY.md`，当第一个 term 被解决时创建它。如果没有 `docs\u002Fadr\u002F`，当第一个 ADR 需要出现时创建它。\n\n## Session 期间\n\n### 对照术语表质询\n\n当用户使用的术语与 `GLOSSARY.md` 中既有语言冲突时，立即指出。\"Your glossary defines 'cancellation' as X, but you seem to mean Y - which is it?\"\n\n### 打磨模糊用语\n\n当用户使用模糊或过载术语时，提出一个精确的 canonical term。\"You're saying 'account' - do you mean the Customer or the User? Those are different things.\"\n\n### 讨论具体场景\n\n讨论 domain relationships 时，用具体场景做压力测试。发明能探测 edge cases 的场景，迫使用户精确定义概念之间的 boundaries。\n\n### 与代码交叉对照\n\n当用户描述某事如何工作时，检查代码是否同意。如果发现矛盾，要指出：\"Your code cancels entire Orders, but you just said partial cancellation is possible - which is right?\"\n\n### 就地更新 GLOSSARY.md\n\n当一个 term 被解决时，立刻更新 `GLOSSARY.md`。不要批量攒到最后；随着概念出现就捕获。使用 [GLOSSARY-FORMAT.md](.\u002FGLOSSARY-FORMAT.md) 中的格式。\n\n`GLOSSARY.md` 必须完全不包含 implementation details。不要把 `GLOSSARY.md` 当 spec、scratch pad 或 implementation decisions 的仓库。它只是一份 glossary。\n\n### 谨慎提议 ADR\n\n只有以下三项都成立时，才提出创建 ADR：\n\n1. **Hard to reverse** - 之后改变主意的成本有意义\n2. **Surprising without context** - 未来读者会疑惑 \"why did they do it this way?\"\n3. **The result of a real trade-off** - 确实存在替代方案，而你基于具体理由选择了其中一个\n\n缺少任一项就跳过 ADR。使用 [ADR-FORMAT.md](.\u002FADR-FORMAT.md) 中的格式。\n",{"name":5,"description":7},"main","c5c5e87cc1df26aeb7dba345ad9f846434d2b3d4","skills\u002Fengineering\u002Fdomain-modeling",450,"https:\u002F\u002Fgithub.com\u002Fvinvcn\u002Fmattpocock-skills-zh-CN","https:\u002F\u002Fskills.sh\u002Fvinvcn\u002Fmattpocock-skills-zh-CN","https:\u002F\u002Fgithub.com\u002Fvinvcn","2026-11-10 17:40:42",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add vinvcn\u002Fmattpocock-skills-zh-CN --skill domain-modeling",{"tool":43,"command":44},"bunx","bunx skills add vinvcn\u002Fmattpocock-skills-zh-CN --skill domain-modeling",{"tool":46,"command":47},"pnpm","pnpm dlx skills add vinvcn\u002Fmattpocock-skills-zh-CN --skill domain-modeling","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvinvcn\u002Fmattpocock-skills-zh-CN\u002Fblob\u002Fmain\u002Fskills\u002Fengineering\u002Fdomain-modeling\u002FSKILL.md",true,[51,57,61],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"ADR-FORMAT.md","REFERENCE","参考文档",2662,"https:\u002F\u002Fgithub.com\u002Fvinvcn\u002Fmattpocock-skills-zh-CN\u002Fblob\u002Fmain\u002Fskills\u002Fengineering\u002Fdomain-modeling\u002FADR-FORMAT.md",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"agents\u002Fopenai.yaml",96,"https:\u002F\u002Fgithub.com\u002Fvinvcn\u002Fmattpocock-skills-zh-CN\u002Fblob\u002Fmain\u002Fskills\u002Fengineering\u002Fdomain-modeling\u002Fagents\u002Fopenai.yaml",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"GLOSSARY-FORMAT.md",2280,"https:\u002F\u002Fgithub.com\u002Fvinvcn\u002Fmattpocock-skills-zh-CN\u002Fblob\u002Fmain\u002Fskills\u002Fengineering\u002Fdomain-modeling\u002FGLOSSARY-FORMAT.md",[66,77,87,97,104,113],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":24},"01M71Q8F3M8YFP6WYVYQP61KBT","writing-for-agents","为 agent 编写文档。适用于创建或编辑 skills，或修改 AGENTS.md 或 CLAUDE.md 时。","https:\u002F\u002Fgithub.com\u002Fvinvcn\u002Fmattpocock-skills-zh-CN\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fwriting-for-agents\u002FSKILL.md",[],[73,74,75,76],"for","writing for agents","writing","文档",{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":24},"01M71Q8DHRPYE6R648CQ7NAHYN","wait-what","停一下：刚才那条消息没有说清楚，重新表述一遍。","https:\u002F\u002Fgithub.com\u002Fvinvcn\u002Fmattpocock-skills-zh-CN\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fwait-what\u002FSKILL.md",[],[84,85,86],"wait","wait what","true",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":24},"01M71Q8C8CBSRJRP8Y0JRZ7RJ7","to-questionnaire","把你无法完整回答的 decision 转成一份交给他人填写的 questionnaire。","https:\u002F\u002Fgithub.com\u002Fvinvcn\u002Fmattpocock-skills-zh-CN\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fto-questionnaire\u002FSKILL.md",[],[94,95,96,86],"questionnaire","to questionnaire","decision",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":24},"01M71Q8ASS9A6P84PSC02YFKHB","teach","在这个工作区中教用户一个新技能或概念。","https:\u002F\u002Fgithub.com\u002Fvinvcn\u002Fmattpocock-skills-zh-CN\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fteach\u002FSKILL.md",[],[99,86],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":24},"01M71Q89C2C2QRR3J3H64ZKH0P","handoff","把当前对话压缩成交接文档，让另一个代理接手。","https:\u002F\u002Fgithub.com\u002Fvinvcn\u002Fmattpocock-skills-zh-CN\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fhandoff\u002FSKILL.md",[],[106,86,111,112,76],"对话","压缩",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":24},"01M71Q883CXWF0BGDQC3Y8TJZ2","grilling","围绕计划、decision 或 idea 持续追问用户。适用于用户想对自己的思路做压力测试，或使用任何 “grill” 触发措辞时。","https:\u002F\u002Fgithub.com\u002Fvinvcn\u002Fmattpocock-skills-zh-CN\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fgrilling\u002FSKILL.md",[],[115,120,121,96,122],"idea","grill","testing"]