[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71DX8364ZSNFW8SXWBV18JZ":3,"skill-same:01M71DX8364ZSNFW8SXWBV18JZ":79},{"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":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":48,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M71DX8364ZSNFW8SXWBV18JZ","domain-modeling",null,"Sharpen a project's domain terms and maintain GLOSSARY.md as its glossary. Triggers: \"what should we call this\", \"domain model\".","indigoai-us\u002Fhq-core","indigoai-us","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F122242446?v=4","01M71DTQ5NGD10GT1Z7E6XKWC5","HQ","01M71DTQ6BKSYYBNC9RAKT3YDK",95,"MIT","https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdomain-modeling\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"domain modeling","modeling","domain","terms","grep","edit","write","read","domain model","sharpen","glossary","maintain","call","triggers","project","model","as","2026-11-10 10:12:30",false,"---\nname: domain-modeling\ndescription: \"Sharpen a project's domain terms and maintain GLOSSARY.md as its glossary. Triggers: \\\"what should we call this\\\", \\\"domain model\\\".\"\nallowed-tools: Read, Write, Edit, Grep, Glob\n---\n\n# Domain Modeling\n\nActively build and sharpen the project's domain model as you design. This is the *active* discipline — challenging terms, inventing edge-case scenarios, and writing the glossary down the moment a term crystallises. Merely *reading* `GLOSSARY.md` for vocabulary is a one-line habit any skill can do (and `\u002Farchitect` and `\u002Fdiagnose` already do it). This skill is for when you are *changing* the model, not just consuming it — it is the producer that keeps `GLOSSARY.md` honest.\n\nPattern adapted from [mattpocock\u002Fskills](https:\u002F\u002Fgithub.com\u002Fmattpocock\u002Fskills) (skills\u002Fengineering\u002Fdomain-modeling), upstream commit 391a270; HQ cross-references and delegation to \u002Fadr added.\n\n## When this skill vs others\n\n| Situation | Skill |\n|---|---|\n| Fuzzy, overloaded, or conflicting domain terms; need a ubiquitous language | **`\u002Fdomain-modeling`** (this) |\n| A decision is hard to reverse, surprising, and a real trade-off | hand off to **`\u002Fadr`** |\n| The architecture (module shape, seams) is the problem, not the vocabulary | **`\u002Farchitect`** |\n| A bug you cannot reliably reproduce or measure | **`\u002Fdiagnose`** |\n\nThis skill never creates ADRs itself. When a decision qualifies, it hands off to `\u002Fadr` (see \"Offer ADRs sparingly\").\n\n## Step 0 — Resolve company + repo context\n\nSame resolution order the other engineering skills use:\n\n1. Honour an explicit `[company]` \u002F `[path]` argument\n2. Fall back to `workspace\u002Fthreads\u002Fhandoff.json` `.company`\n3. Fall back to cwd inference via `companies\u002Fmanifest.yaml`\n4. Last resort: ask the user (one question at a time — see below)\n\nThe domain model lives with the code. For a repo under `repos\u002F`, use `\u003Crepo>\u002FGLOSSARY.md` and `\u003Crepo>\u002Fdocs\u002Fadr\u002F`. These conventions are already HQ-adopted: `\u002Farchitect` and `\u002Fdiagnose` read `\u003Crepo>\u002FGLOSSARY.md` for vocabulary and `\u003Crepo>\u002Fdocs\u002Fadr\u002F` for decisions.\n\n## File structure\n\nMost repos have a single context:\n\n```\n\u003Crepo>\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\nIf a `GLOSSARY-MAP.md` exists at the repo root, the repo has multiple contexts. The map points to where each one lives:\n\n```\n\u003Crepo>\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\nInfer which structure applies:\n\n- If `GLOSSARY-MAP.md` exists, read it to find the contexts.\n- If only a root `GLOSSARY.md` exists, it is a single context.\n- If neither exists, create a root `GLOSSARY.md` lazily when the first term is resolved.\n\nCreate files lazily — only when you have something to write. If no `GLOSSARY.md` exists, create one when the first term is resolved. When multiple contexts exist, infer which one the current topic relates to; if it is unclear, ask.\n\n## During the session\n\n### Challenge against the glossary\n\nWhen the user uses a term that conflicts with the existing language in `GLOSSARY.md`, call it out immediately. \"Your glossary defines 'cancellation' as X, but you seem to mean Y — which is it?\"\n\n### Sharpen fuzzy language\n\nWhen the user uses vague or overloaded terms, propose a precise canonical term. \"You're saying 'account' — do you mean the Customer or the User? Those are different things.\"\n\n### Discuss concrete scenarios\n\nWhen domain relationships are being discussed, stress-test them with specific scenarios. Invent scenarios that probe edge cases and force the user to be precise about the boundaries between concepts.\n\n### Cross-reference with code\n\nWhen the user states how something works, check whether the code agrees. If you find a contradiction, surface it: \"Your code cancels entire Orders, but you just said partial cancellation is possible — which is right?\"\n\n### Update GLOSSARY.md inline\n\nWhen a term is resolved, update `GLOSSARY.md` right there. Don't batch these up — capture them as they happen. Use the format in [GLOSSARY-FORMAT.md](.\u002FGLOSSARY-FORMAT.md).\n\n`GLOSSARY.md` should be totally devoid of implementation details. Do not treat `GLOSSARY.md` as a spec, a scratch pad, or a repository for implementation decisions. It is a glossary and nothing else.\n\n### One decision at a time\n\nWhen a term, boundary, or naming choice needs a human call, ask it as a single, focused question and wait for the answer before moving on — the HQ charter's structured one-question-at-a-time discipline. Don't bundle five naming decisions into one wall of text; resolve them one at a time and write each into `GLOSSARY.md` as it lands. If an `AskUserQuestion`-style prompt is available in the harness, use it for the pick.\n\n### Offer ADRs sparingly — then hand off to \u002Fadr\n\nOnly offer to record a decision when all three are true:\n\n1. **Hard to reverse** — the cost of changing your mind later is meaningful.\n2. **Surprising without context** — a future reader will wonder \"why did they do it this way?\"\n3. **The result of a real trade-off** — there were genuine alternatives and you picked one for specific reasons.\n\nIf any of the three is missing, skip it. A naming decision with no trade-off belongs in `GLOSSARY.md`, not an ADR.\n\nWhen a decision *does* qualify, **do not write the ADR yourself — hand off to `\u002Fadr`.** `\u002Fadr` owns the three-condition gate, the numbering, the target-directory resolution (repo vs company scope), and the file format. Frame the hand-off as: _\"That's a hard-to-reverse call worth recording — want me to capture it via `\u002Fadr`?\"_ The [ADR-FORMAT.md](.\u002FADR-FORMAT.md) in this folder is reference only for what an ADR looks like; `\u002Fadr` is what produces one.\n\n## Cross-references\n\n- `\u002Fadr` — the producer for architectural decisions. This skill detects an ADR-worthy decision and hands off; `\u002Fadr` runs the gate and writes the record.\n- `\u002Farchitect` — consumes `GLOSSARY.md` vocabulary when scoring architecture candidates, and surfaces new domain terms back into it inline. Reach for it when the *module shape* is the problem, not the vocabulary.\n- `\u002Fdiagnose` — reads `\u003Crepo>\u002FGLOSSARY.md` and `\u003Crepo>\u002Fdocs\u002Fadr\u002F` when framing a bug; a sharper glossary makes its hypotheses sharper.\n- `\u002Fcodebase-design` — pairs a crisp ubiquitous language with the module-design pass.\n- Pattern source: [mattpocock\u002Fskills](https:\u002F\u002Fgithub.com\u002Fmattpocock\u002Fskills) (skills\u002Fengineering\u002Fdomain-modeling), upstream commit 391a270.\n","# Domain Modeling\n\nActively build and sharpen the project's domain model as you design. This is the *active* discipline — challenging terms, inventing edge-case scenarios, and writing the glossary down the moment a term crystallises. Merely *reading* `GLOSSARY.md` for vocabulary is a one-line habit any skill can do (and `\u002Farchitect` and `\u002Fdiagnose` already do it). This skill is for when you are *changing* the model, not just consuming it — it is the producer that keeps `GLOSSARY.md` honest.\n\nPattern adapted from [mattpocock\u002Fskills](https:\u002F\u002Fgithub.com\u002Fmattpocock\u002Fskills) (skills\u002Fengineering\u002Fdomain-modeling), upstream commit 391a270; HQ cross-references and delegation to \u002Fadr added.\n\n## When this skill vs others\n\n| Situation | Skill |\n|---|---|\n| Fuzzy, overloaded, or conflicting domain terms; need a ubiquitous language | **`\u002Fdomain-modeling`** (this) |\n| A decision is hard to reverse, surprising, and a real trade-off | hand off to **`\u002Fadr`** |\n| The architecture (module shape, seams) is the problem, not the vocabulary | **`\u002Farchitect`** |\n| A bug you cannot reliably reproduce or measure | **`\u002Fdiagnose`** |\n\nThis skill never creates ADRs itself. When a decision qualifies, it hands off to `\u002Fadr` (see \"Offer ADRs sparingly\").\n\n## Step 0 — Resolve company + repo context\n\nSame resolution order the other engineering skills use:\n\n1. Honour an explicit `[company]` \u002F `[path]` argument\n2. Fall back to `workspace\u002Fthreads\u002Fhandoff.json` `.company`\n3. Fall back to cwd inference via `companies\u002Fmanifest.yaml`\n4. Last resort: ask the user (one question at a time — see below)\n\nThe domain model lives with the code. For a repo under `repos\u002F`, use `\u003Crepo>\u002FGLOSSARY.md` and `\u003Crepo>\u002Fdocs\u002Fadr\u002F`. These conventions are already HQ-adopted: `\u002Farchitect` and `\u002Fdiagnose` read `\u003Crepo>\u002FGLOSSARY.md` for vocabulary and `\u003Crepo>\u002Fdocs\u002Fadr\u002F` for decisions.\n\n## File structure\n\nMost repos have a single context:\n\n```\n\u003Crepo>\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\nIf a `GLOSSARY-MAP.md` exists at the repo root, the repo has multiple contexts. The map points to where each one lives:\n\n```\n\u003Crepo>\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\nInfer which structure applies:\n\n- If `GLOSSARY-MAP.md` exists, read it to find the contexts.\n- If only a root `GLOSSARY.md` exists, it is a single context.\n- If neither exists, create a root `GLOSSARY.md` lazily when the first term is resolved.\n\nCreate files lazily — only when you have something to write. If no `GLOSSARY.md` exists, create one when the first term is resolved. When multiple contexts exist, infer which one the current topic relates to; if it is unclear, ask.\n\n## During the session\n\n### Challenge against the glossary\n\nWhen the user uses a term that conflicts with the existing language in `GLOSSARY.md`, call it out immediately. \"Your glossary defines 'cancellation' as X, but you seem to mean Y — which is it?\"\n\n### Sharpen fuzzy language\n\nWhen the user uses vague or overloaded terms, propose a precise canonical term. \"You're saying 'account' — do you mean the Customer or the User? Those are different things.\"\n\n### Discuss concrete scenarios\n\nWhen domain relationships are being discussed, stress-test them with specific scenarios. Invent scenarios that probe edge cases and force the user to be precise about the boundaries between concepts.\n\n### Cross-reference with code\n\nWhen the user states how something works, check whether the code agrees. If you find a contradiction, surface it: \"Your code cancels entire Orders, but you just said partial cancellation is possible — which is right?\"\n\n### Update GLOSSARY.md inline\n\nWhen a term is resolved, update `GLOSSARY.md` right there. Don't batch these up — capture them as they happen. Use the format in [GLOSSARY-FORMAT.md](.\u002FGLOSSARY-FORMAT.md).\n\n`GLOSSARY.md` should be totally devoid of implementation details. Do not treat `GLOSSARY.md` as a spec, a scratch pad, or a repository for implementation decisions. It is a glossary and nothing else.\n\n### One decision at a time\n\nWhen a term, boundary, or naming choice needs a human call, ask it as a single, focused question and wait for the answer before moving on — the HQ charter's structured one-question-at-a-time discipline. Don't bundle five naming decisions into one wall of text; resolve them one at a time and write each into `GLOSSARY.md` as it lands. If an `AskUserQuestion`-style prompt is available in the harness, use it for the pick.\n\n### Offer ADRs sparingly — then hand off to \u002Fadr\n\nOnly offer to record a decision when all three are true:\n\n1. **Hard to reverse** — the cost of changing your mind later is meaningful.\n2. **Surprising without context** — a future reader will wonder \"why did they do it this way?\"\n3. **The result of a real trade-off** — there were genuine alternatives and you picked one for specific reasons.\n\nIf any of the three is missing, skip it. A naming decision with no trade-off belongs in `GLOSSARY.md`, not an ADR.\n\nWhen a decision *does* qualify, **do not write the ADR yourself — hand off to `\u002Fadr`.** `\u002Fadr` owns the three-condition gate, the numbering, the target-directory resolution (repo vs company scope), and the file format. Frame the hand-off as: _\"That's a hard-to-reverse call worth recording — want me to capture it via `\u002Fadr`?\"_ The [ADR-FORMAT.md](.\u002FADR-FORMAT.md) in this folder is reference only for what an ADR looks like; `\u002Fadr` is what produces one.\n\n## Cross-references\n\n- `\u002Fadr` — the producer for architectural decisions. This skill detects an ADR-worthy decision and hands off; `\u002Fadr` runs the gate and writes the record.\n- `\u002Farchitect` — consumes `GLOSSARY.md` vocabulary when scoring architecture candidates, and surfaces new domain terms back into it inline. Reach for it when the *module shape* is the problem, not the vocabulary.\n- `\u002Fdiagnose` — reads `\u003Crepo>\u002FGLOSSARY.md` and `\u003Crepo>\u002Fdocs\u002Fadr\u002F` when framing a bug; a sharper glossary makes its hypotheses sharper.\n- `\u002Fcodebase-design` — pairs a crisp ubiquitous language with the module-design pass.\n- Pattern source: [mattpocock\u002Fskills](https:\u002F\u002Fgithub.com\u002Fmattpocock\u002Fskills) (skills\u002Fengineering\u002Fdomain-modeling), upstream commit 391a270.\n",{"name":5,"description":7,"allowed-tools":41},"Read, Write, Edit, Grep, Glob","main","205cf61728a27ef15e9153aa38df5856fc8d82f5",".claude\u002Fskills\u002Fdomain-modeling",18,"https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core","https:\u002F\u002Fgithub.com\u002Findigoai-us","https:\u002F\u002Fhqforwork.com\u002F","The AI Context Layer for Teams","2026-11-12 06:53:38",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add indigoai-us\u002Fhq-core --skill domain-modeling",{"tool":57,"command":58},"bunx","bunx skills add indigoai-us\u002Fhq-core --skill domain-modeling",{"tool":60,"command":61},"pnpm","pnpm dlx skills add indigoai-us\u002Fhq-core --skill domain-modeling","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdomain-modeling\u002FSKILL.md",true,[65,71,75],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"ADR-FORMAT.md","REFERENCE","参考文档",2766,"https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdomain-modeling\u002FADR-FORMAT.md",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"agents\u002Fopenai.yaml",144,"https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdomain-modeling\u002Fagents\u002Fopenai.yaml",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"GLOSSARY-FORMAT.md",2300,"https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdomain-modeling\u002FGLOSSARY-FORMAT.md",[80,88,95,102,109,116],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":87},"01M73NTNKZ3T2KJNDP2ZF23645","job","Deprecated alias for \u002Fschedule — Outpost recurring agent jobs. Prefer \u002Fschedule.","https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fjob\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":87},"01M73NTE0H9DQTT6DNHDKRWTXW","import-claude","Deprecated alias for \u002Fimport-context — bootstrap HQ from your prior AI footprint (Claude Code, Codex, Grok, claude.ai history plus on-disk artifacts).","https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimport-claude\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":87},"01M73NT67433KKX96CCJWDQQ0X","hq-whoami","Show current HQ Cognito identity and session expiry.","https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fhq-whoami\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":87},"01M73NT17SVXZV2QPT14C2RPJP","hq-share","Share HQ vault paths through single-use links or direct ACL grants.","https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fhq-share\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":87},"01M73NSXYFMD7EHGT8TFDZA3C8","hq-secrets","Use HQ CLI secrets safely through env injection or one-off exec.","https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fhq-secrets\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":87},"01M73NSWCXJK29Q8CNG8AS3ZZQ","hq-logout","Sign out of HQ Cognito and clear local tokens.","https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fhq-logout\u002FSKILL.md",[],[]]