[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72Y6KCYFGTYYF4K6TDEK2ZD":3,"skill-same:01M72Y6KCYFGTYYF4K6TDEK2ZD":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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M72Y6KCYFGTYYF4K6TDEK2ZD","tactical-ddd",null,"Detects anemic domain models, validates and refactors them into rich domain models, and enforces tactical DDD patterns (Entities, Value Objects, Aggregates, Domain Services, Domain Events). Use when the user asks to validate, review, or check domain models or DDD code; detect anemia; refactor domain objects; improve encapsulation; or mentions terms like \"anemic model\", \"rich domain\", \"aggregate\", \"value object\", \"domain event\", \"ubiquitous language\", \"is this good DDD\", \"does this follow DDD\", or \"check my domain\". Do NOT use for module or service boundary design, architectural decomposition, strategic DDD context mapping, or code outside the domain layer (DTOs, controllers, infrastructure adapters).","marcioaltoe\u002Fskills","marcioaltoe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1562865?v=4","01M72Y3750J2CG00P0H2AHDRSZ","Marcio Altoé","01M72Y37642F46H36R4E4S7BNA",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F03-engineering-design\u002Ftactical-ddd\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: tactical-ddd\ndescription: Detects anemic domain models, validates and refactors them into rich domain models, and enforces tactical DDD patterns (Entities, Value Objects, Aggregates, Domain Services, Domain Events). Use when the user asks to validate, review, or check domain models or DDD code; detect anemia; refactor domain objects; improve encapsulation; or mentions terms like \"anemic model\", \"rich domain\", \"aggregate\", \"value object\", \"domain event\", \"ubiquitous language\", \"is this good DDD\", \"does this follow DDD\", or \"check my domain\". Do NOT use for module or service boundary design, architectural decomposition, strategic DDD context mapping, or code outside the domain layer (DTOs, controllers, infrastructure adapters).\n---\n\n# Tactical DDD — Rich Domain Modeling\n\n## Workflow\n\nDetermine the user's intent first:\n\n| Intent                                         | Phases to run                                              |\n| ---------------------------------------------- | ---------------------------------------------------------- |\n| \"validate \u002F review \u002F check \u002F is this correct?\" | Phase 1 + 2 only → report findings, ask before refactoring |\n| \"fix \u002F refactor \u002F improve \u002F clean up\"          | Phase 1 + 2 + 3                                            |\n| \"how should I design \u002F model this?\"            | Load [reference.md](reference.md) directly                 |\n\n### Phase 1 — Detect\n\nLoad [detection.md](detection.md) and scan the target code for anemia signals. Produce a severity score and list of affected classes.\n\n### Phase 2 — Assess\n\nFor each affected class, determine the correct building block:\n\n| Has unique identity tracked over time?                    | Has invariants tying multiple objects? | → Building Block   |\n| --------------------------------------------------------- | -------------------------------------- | ------------------ |\n| Yes                                                       | —                                      | **Entity**         |\n| No                                                        | —                                      | **Value Object**   |\n| Yes (root) + children with shared invariants              | Yes                                    | **Aggregate**      |\n| Operation spans multiple Aggregates\u002Fdoesn't belong to any | —                                      | **Domain Service** |\n\nPrefer Value Objects over Entities. Prefer small Aggregates over large ones.\n\n**If intent was validate\u002Freview**: stop here. Report findings using the output format below. Ask \"Would you like me to apply these fixes?\" before proceeding.\n\n### Phase 3 — Refactor\n\nLoad [refactoring.md](refactoring.md) for step-by-step moves. Apply in this order:\n\n1. Replace setter chains with a single expressive method\n2. Move service logic into the Aggregate that owns it\n3. Add business guards at the top of each method\n4. Publish a Domain Event after each successful state change\n5. Replace primitive types with Value Objects\n\nFor deep pattern questions (boundary design, event modeling, service vs. entity decision), load [reference.md](reference.md).\n\n---\n\n## Quick Anemia Signals (scan first)\n\n```\npublic setX() \u002F public setY()        → behaviour should be encapsulated\nservice.doX(entity, ...)              → logic likely belongs in entity\nentity.setA(); entity.setB(); ...     → setter chain = missing intent method\nno domain methods beyond getters      → pure data bag\n```\n\n---\n\n## Golden Rules\n\n1. **Behaviour with data** — Objects own both state and the operations that change it\n2. **Ubiquitous Language** — Method names come from the domain, not CRUD (`commitTo`, not `setStatus`)\n3. **Small Aggregates** — Root + Value Objects by default; add child Entities only for true invariants\n4. **One transaction = one Aggregate** — Cross-Aggregate rules use eventual consistency via Domain Events\n5. **Reference by ID** — Never hold object references to other Aggregates\n6. **Value Objects first** — Use Entities only when individual identity is essential\n7. **Domain Services sparingly** — Excessive services → anemic model\n8. **Protect invariants** — The Aggregate is the last line of defence; never trust the caller\n\n---\n\n## Output Format\n\nWhen reviewing code, report:\n\n```\n## Anemia Diagnosis: \u003CClassName>\n\nSeverity: [None | Mild | Moderate | Severe]\n\nIssues:\n- \u003Cdescription of problem>\n\nRecommended refactoring:\n- \u003Cspecific move from refactoring.md>\n```\n\nWhen refactoring, show a before\u002Fafter diff for each class touched.\n","# Tactical DDD — Rich Domain Modeling\n\n## Workflow\n\nDetermine the user's intent first:\n\n| Intent                                         | Phases to run                                              |\n| ---------------------------------------------- | ---------------------------------------------------------- |\n| \"validate \u002F review \u002F check \u002F is this correct?\" | Phase 1 + 2 only → report findings, ask before refactoring |\n| \"fix \u002F refactor \u002F improve \u002F clean up\"          | Phase 1 + 2 + 3                                            |\n| \"how should I design \u002F model this?\"            | Load [reference.md](reference.md) directly                 |\n\n### Phase 1 — Detect\n\nLoad [detection.md](detection.md) and scan the target code for anemia signals. Produce a severity score and list of affected classes.\n\n### Phase 2 — Assess\n\nFor each affected class, determine the correct building block:\n\n| Has unique identity tracked over time?                    | Has invariants tying multiple objects? | → Building Block   |\n| --------------------------------------------------------- | -------------------------------------- | ------------------ |\n| Yes                                                       | —                                      | **Entity**         |\n| No                                                        | —                                      | **Value Object**   |\n| Yes (root) + children with shared invariants              | Yes                                    | **Aggregate**      |\n| Operation spans multiple Aggregates\u002Fdoesn't belong to any | —                                      | **Domain Service** |\n\nPrefer Value Objects over Entities. Prefer small Aggregates over large ones.\n\n**If intent was validate\u002Freview**: stop here. Report findings using the output format below. Ask \"Would you like me to apply these fixes?\" before proceeding.\n\n### Phase 3 — Refactor\n\nLoad [refactoring.md](refactoring.md) for step-by-step moves. Apply in this order:\n\n1. Replace setter chains with a single expressive method\n2. Move service logic into the Aggregate that owns it\n3. Add business guards at the top of each method\n4. Publish a Domain Event after each successful state change\n5. Replace primitive types with Value Objects\n\nFor deep pattern questions (boundary design, event modeling, service vs. entity decision), load [reference.md](reference.md).\n\n---\n\n## Quick Anemia Signals (scan first)\n\n```\npublic setX() \u002F public setY()        → behaviour should be encapsulated\nservice.doX(entity, ...)              → logic likely belongs in entity\nentity.setA(); entity.setB(); ...     → setter chain = missing intent method\nno domain methods beyond getters      → pure data bag\n```\n\n---\n\n## Golden Rules\n\n1. **Behaviour with data** — Objects own both state and the operations that change it\n2. **Ubiquitous Language** — Method names come from the domain, not CRUD (`commitTo`, not `setStatus`)\n3. **Small Aggregates** — Root + Value Objects by default; add child Entities only for true invariants\n4. **One transaction = one Aggregate** — Cross-Aggregate rules use eventual consistency via Domain Events\n5. **Reference by ID** — Never hold object references to other Aggregates\n6. **Value Objects first** — Use Entities only when individual identity is essential\n7. **Domain Services sparingly** — Excessive services → anemic model\n8. **Protect invariants** — The Aggregate is the last line of defence; never trust the caller\n\n---\n\n## Output Format\n\nWhen reviewing code, report:\n\n```\n## Anemia Diagnosis: \u003CClassName>\n\nSeverity: [None | Mild | Moderate | Severe]\n\nIssues:\n- \u003Cdescription of problem>\n\nRecommended refactoring:\n- \u003Cspecific move from refactoring.md>\n```\n\nWhen refactoring, show a before\u002Fafter diff for each class touched.\n",{"name":5,"description":7},"main","dea450cfd9df78b5cf721964ef178a75cea55cbb","skills\u002F03-engineering-design\u002Ftactical-ddd",2,"https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills","https:\u002F\u002Fmarcioaltoe.github.io\u002Fskills\u002F","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe","Senior Software Engineer · Backend, Systems & AI","2026-11-14 18:29:56",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add marcioaltoe\u002Fskills --skill tactical-ddd",{"tool":39,"command":40},"bunx","bunx skills add marcioaltoe\u002Fskills --skill tactical-ddd",{"tool":42,"command":43},"pnpm","pnpm dlx skills add marcioaltoe\u002Fskills --skill tactical-ddd","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F03-engineering-design\u002Ftactical-ddd\u002FSKILL.md",true,[47,53,57],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"detection.md","REFERENCE","参考文档",3327,"https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F03-engineering-design\u002Ftactical-ddd\u002Fdetection.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"refactoring.md",5901,"https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F03-engineering-design\u002Ftactical-ddd\u002Frefactoring.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"reference.md",7051,"https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F03-engineering-design\u002Ftactical-ddd\u002Freference.md",[62,70,77,84,91,98],{"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":69},"01M72YNVSF4JTTQG3YTR9QNT4Z","startup-validator","Comprehensive startup idea validation and market analysis tool. Use when users need to evaluate a startup idea, assess market fit, analyze competition, validate problem-solution fit, or determine market positioning. Triggers include requests to \"validate my startup idea\", \"analyze market opportunity\", \"check if there's demand for\", \"research competition for\", \"evaluate business idea\", or \"see if my idea is viable\". Provides data-driven analysis using web search, market frameworks, competitive research, and positioning recommendations.","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F10-marketing\u002Fstartup-validator\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":69},"01M72YNN34B4MYKEX1X6BB1NS1","positioning-icp","When the user wants to define their ideal customer profile, position an AI product, build messaging architecture, or validate product-market fit. Also use when the user mentions 'ICP,' 'ideal customer profile,' 'positioning,' 'PMF,' 'product-market fit,' 'messaging,' 'buyer persona,' 'enrichment signals,' 'market positioning,' or 'competitive positioning.' This skill covers market positioning, ICP definition, messaging architecture, and PMF validation for AI-native products. Do NOT use for technical implementation, code review, or software architecture.","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F10-marketing\u002Fpositioning-icp\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":69},"01M72YNG8XJ4RHRB5DQMCY9C1N","copywriting","When the user wants to write or rewrite page copy (homepage, landing, pricing, feature), or asks which headline, promise, or message to lead with. Diagnoses the input first (blank brief, real voice, or point edit) and changes only what it calls for. Claims must be supportable; a declined claim names the evidence that would unlock it. No AI tells like 'it's not X, it's Y' or 'no X, no Y, no Z'. For editing, see copy-editing. For emails, see emails. For the offer, see offers.","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F10-marketing\u002Fcopywriting\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":69},"01M72YNBF4JMQ4VCFHTW0WS6SD","business-storyteller","Transforms technical work into persuasive business-language documents for non-technical stakeholders, including internal announcements, approval proposals, incident explainers, technical-debt cases, product explainers, and investor or partner memos. Use when the user asks to present technical work to the company, explain software to business teams, write a business case, make an approval document, or convert a technical artifact into stakeholder communication in the requested language. Do not use for READMEs, specs, ADRs, external marketing pages, or customer-facing sales copy.","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F10-marketing\u002Fbusiness-storyteller\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"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":69},"01M72YN8NQ6QR0GHX2A8YW2K4T","brand-storytelling","Help users craft compelling brand narratives. Use when someone is defining brand strategy, writing company positioning, creating pitch narratives, developing messaging frameworks, or trying to make their company story more memorable.","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F10-marketing\u002Fbrand-storytelling\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":102,"licenseFileUrl":103,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":69},"01M72YN3CJH7CKPF4AXNY79Q9S","skill-creator","Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F09-learning-loop\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F09-learning-loop\u002Fskill-creator\u002FSKILL.md",[],[]]