[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H6D10FYG2Q67RZ2F974QVQ":3,"skill-same:01M6H6D10FYG2Q67RZ2F974QVQ":71},{"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":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":6,"ownerHtmlUrl":54,"ownerBlogUrl":55,"ownerDescription":6,"updatedAt":56,"install":57,"resources":70},"01M6H6D10FYG2Q67RZ2F974QVQ","m09-domain",null,"CRITICAL: Use for domain modeling. Triggers: domain model, DDD, domain-driven design, entity, value object, aggregate, repository pattern, business rules, validation, invariant, 领域模型, 领域驱动设计, 业务规则","0xharryriddle\u002Fcodex-field-kit","0xharryriddle","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F100945007?v=4","01M6H686JV0QKZYP2RWG6B2B8T","harryriddle","01M6H686PVZ8JGKWEG7B3GM5PD",3,"MIT","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Farchive\u002Fupstream\u002Fchasebuild-agent-skills\u002Frust\u002Fskills\u002Fm09-domain\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000015","视觉设计","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"m09 domain","domain","for","design","object","规则","false","critical","triggers","modeling","pattern","domain model","use","business","Rules","model","repository","ddd","validation","domain modeling","2026-11-10 10:12:30",false,"---\nname: m09-domain\ndescription: \"CRITICAL: Use for domain modeling. Triggers: domain model, DDD, domain-driven design, entity, value object, aggregate, repository pattern, business rules, validation, invariant, 领域模型, 领域驱动设计, 业务规则\"\nuser-invocable: false\n---\n\n# Domain Modeling\n\n> **Layer 2: Design Choices**\n\n## Core Question\n\n**What is this concept's role in the domain?**\n\nBefore modeling in code, understand:\n- Is it an Entity (identity matters) or Value Object (interchangeable)?\n- What invariants must be maintained?\n- Where are the aggregate boundaries?\n\n---\n\n## Domain Concept → Rust Pattern\n\n| Domain Concept | Rust Pattern | Ownership Implication |\n|----------------|--------------|----------------------|\n| Entity | struct + Id | Owned, unique identity |\n| Value Object | struct + Clone\u002FCopy | Shareable, immutable |\n| Aggregate Root | struct owns children | Clear ownership tree |\n| Repository | trait | Abstracts persistence |\n| Domain Event | enum | Captures state changes |\n| Service | impl block \u002F free fn | Stateless operations |\n\n---\n\n## Thinking Prompt\n\nBefore creating a domain type:\n\n1. **What's the concept's identity?**\n   - Needs unique identity → Entity (Id field)\n   - Interchangeable by value → Value Object (Clone\u002FCopy)\n\n2. **What invariants must hold?**\n   - Always valid → private fields + validated constructor\n   - Transition rules → type state pattern\n\n3. **Who owns this data?**\n   - Single owner (parent) → owned field\n   - Shared reference → Arc\u002FRc\n   - Weak reference → Weak\n\n---\n\n## Trace Up ↑\n\nTo domain constraints (Layer 3):\n\n```\n\"How should I model a Transaction?\"\n    ↑ Ask: What domain rules govern transactions?\n    ↑ Check: domain-fintech (audit, precision requirements)\n    ↑ Check: Business stakeholders (what invariants?)\n```\n\n| Design Question | Trace To | Ask |\n|-----------------|----------|-----|\n| Entity vs Value Object | domain-* | What makes two instances \"the same\"? |\n| Aggregate boundaries | domain-* | What must be consistent together? |\n| Validation rules | domain-* | What business rules apply? |\n\n---\n\n## Trace Down ↓\n\nTo implementation (Layer 1):\n\n```\n\"Model as Entity\"\n    ↓ m01-ownership: Owned, unique\n    ↓ m05-type-driven: Newtype for Id\n\n\"Model as Value Object\"\n    ↓ m01-ownership: Clone\u002FCopy OK\n    ↓ m05-type-driven: Validate at construction\n\n\"Model as Aggregate\"\n    ↓ m01-ownership: Parent owns children\n    ↓ m02-resource: Consider Rc for shared within aggregate\n```\n\n---\n\n## Quick Reference\n\n| DDD Concept | Rust Pattern | Example |\n|-------------|--------------|---------|\n| Value Object | Newtype | `struct Email(String);` |\n| Entity | Struct + ID | `struct User { id: UserId, ... }` |\n| Aggregate | Module boundary | `mod order { ... }` |\n| Repository | Trait | `trait UserRepo { fn find(...) }` |\n| Domain Event | Enum | `enum OrderEvent { Created, ... }` |\n\n## Pattern Templates\n\n### Value Object\n\n```rust\nstruct Email(String);\n\nimpl Email {\n    pub fn new(s: &str) -> Result\u003CSelf, ValidationError> {\n        validate_email(s)?;\n        Ok(Self(s.to_string()))\n    }\n}\n```\n\n### Entity\n\n```rust\nstruct UserId(Uuid);\n\nstruct User {\n    id: UserId,\n    email: Email,\n    \u002F\u002F ... other fields\n}\n\nimpl PartialEq for User {\n    fn eq(&self, other: &Self) -> bool {\n        self.id == other.id  \u002F\u002F Identity equality\n    }\n}\n```\n\n### Aggregate\n\n```rust\nmod order {\n    pub struct Order {\n        id: OrderId,\n        items: Vec\u003COrderItem>,  \u002F\u002F Owned children\n        \u002F\u002F ...\n    }\n\n    impl Order {\n        pub fn add_item(&mut self, item: OrderItem) {\n            \u002F\u002F Enforce aggregate invariants\n        }\n    }\n}\n```\n\n---\n\n## Common Mistakes\n\n| Mistake | Why Wrong | Better |\n|---------|-----------|--------|\n| Primitive obsession | No type safety | Newtype wrappers |\n| Public fields with invariants | Invariants violated | Private + accessor |\n| Leaked aggregate internals | Broken encapsulation | Methods on root |\n| String for semantic types | No validation | Validated newtype |\n\n---\n\n## Related Skills\n\n| When | See |\n|------|-----|\n| Type-driven implementation | m05-type-driven |\n| Ownership for aggregates | m01-ownership |\n| Domain error handling | m13-domain-error |\n| Specific domain rules | domain-* |\n","# Domain Modeling\n\n> **Layer 2: Design Choices**\n\n## Core Question\n\n**What is this concept's role in the domain?**\n\nBefore modeling in code, understand:\n- Is it an Entity (identity matters) or Value Object (interchangeable)?\n- What invariants must be maintained?\n- Where are the aggregate boundaries?\n\n---\n\n## Domain Concept → Rust Pattern\n\n| Domain Concept | Rust Pattern | Ownership Implication |\n|----------------|--------------|----------------------|\n| Entity | struct + Id | Owned, unique identity |\n| Value Object | struct + Clone\u002FCopy | Shareable, immutable |\n| Aggregate Root | struct owns children | Clear ownership tree |\n| Repository | trait | Abstracts persistence |\n| Domain Event | enum | Captures state changes |\n| Service | impl block \u002F free fn | Stateless operations |\n\n---\n\n## Thinking Prompt\n\nBefore creating a domain type:\n\n1. **What's the concept's identity?**\n   - Needs unique identity → Entity (Id field)\n   - Interchangeable by value → Value Object (Clone\u002FCopy)\n\n2. **What invariants must hold?**\n   - Always valid → private fields + validated constructor\n   - Transition rules → type state pattern\n\n3. **Who owns this data?**\n   - Single owner (parent) → owned field\n   - Shared reference → Arc\u002FRc\n   - Weak reference → Weak\n\n---\n\n## Trace Up ↑\n\nTo domain constraints (Layer 3):\n\n```\n\"How should I model a Transaction?\"\n    ↑ Ask: What domain rules govern transactions?\n    ↑ Check: domain-fintech (audit, precision requirements)\n    ↑ Check: Business stakeholders (what invariants?)\n```\n\n| Design Question | Trace To | Ask |\n|-----------------|----------|-----|\n| Entity vs Value Object | domain-* | What makes two instances \"the same\"? |\n| Aggregate boundaries | domain-* | What must be consistent together? |\n| Validation rules | domain-* | What business rules apply? |\n\n---\n\n## Trace Down ↓\n\nTo implementation (Layer 1):\n\n```\n\"Model as Entity\"\n    ↓ m01-ownership: Owned, unique\n    ↓ m05-type-driven: Newtype for Id\n\n\"Model as Value Object\"\n    ↓ m01-ownership: Clone\u002FCopy OK\n    ↓ m05-type-driven: Validate at construction\n\n\"Model as Aggregate\"\n    ↓ m01-ownership: Parent owns children\n    ↓ m02-resource: Consider Rc for shared within aggregate\n```\n\n---\n\n## Quick Reference\n\n| DDD Concept | Rust Pattern | Example |\n|-------------|--------------|---------|\n| Value Object | Newtype | `struct Email(String);` |\n| Entity | Struct + ID | `struct User { id: UserId, ... }` |\n| Aggregate | Module boundary | `mod order { ... }` |\n| Repository | Trait | `trait UserRepo { fn find(...) }` |\n| Domain Event | Enum | `enum OrderEvent { Created, ... }` |\n\n## Pattern Templates\n\n### Value Object\n\n```rust\nstruct Email(String);\n\nimpl Email {\n    pub fn new(s: &str) -> Result\u003CSelf, ValidationError> {\n        validate_email(s)?;\n        Ok(Self(s.to_string()))\n    }\n}\n```\n\n### Entity\n\n```rust\nstruct UserId(Uuid);\n\nstruct User {\n    id: UserId,\n    email: Email,\n    \u002F\u002F ... other fields\n}\n\nimpl PartialEq for User {\n    fn eq(&self, other: &Self) -> bool {\n        self.id == other.id  \u002F\u002F Identity equality\n    }\n}\n```\n\n### Aggregate\n\n```rust\nmod order {\n    pub struct Order {\n        id: OrderId,\n        items: Vec\u003COrderItem>,  \u002F\u002F Owned children\n        \u002F\u002F ...\n    }\n\n    impl Order {\n        pub fn add_item(&mut self, item: OrderItem) {\n            \u002F\u002F Enforce aggregate invariants\n        }\n    }\n}\n```\n\n---\n\n## Common Mistakes\n\n| Mistake | Why Wrong | Better |\n|---------|-----------|--------|\n| Primitive obsession | No type safety | Newtype wrappers |\n| Public fields with invariants | Invariants violated | Private + accessor |\n| Leaked aggregate internals | Broken encapsulation | Methods on root |\n| String for semantic types | No validation | Validated newtype |\n\n---\n\n## Related Skills\n\n| When | See |\n|------|-----|\n| Type-driven implementation | m05-type-driven |\n| Ownership for aggregates | m01-ownership |\n| Domain error handling | m13-domain-error |\n| Specific domain rules | domain-* |\n",{"name":5,"description":7,"user-invocable":45},"main","6c13f6f4ac5a3bc1e6b78cd2bb1704f122c4a73e","archive\u002Fupstream\u002Fchasebuild-agent-skills\u002Frust\u002Fskills\u002Fm09-domain",0,"https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit","https:\u002F\u002Fgithub.com\u002F0xharryriddle","https:\u002F\u002Fharryriddle.vercel.app","2026-04-11 11:49:51",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add 0xharryriddle\u002Fcodex-field-kit --skill m09-domain",{"tool":63,"command":64},"bunx","bunx skills add 0xharryriddle\u002Fcodex-field-kit --skill m09-domain",{"tool":66,"command":67},"pnpm","pnpm dlx skills add 0xharryriddle\u002Fcodex-field-kit --skill m09-domain","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Farchive\u002Fupstream\u002Fchasebuild-agent-skills\u002Frust\u002Fskills\u002Fm09-domain\u002FSKILL.md",true,[],[72,101,119,129,154,180],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":81,"publishedAt":44},"01M6H7ZKE6MR33HC84QZ1TA6MV","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-react-best-practices\u002FSKILL.md",[78],{"categoryNo":79,"categoryName":80,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000009","前端开发",[82,83,84,85,86,87,88,32,89,90,91,92,93,94,95,96,97,98,99,100],"react best practices","react","vercel react best practices","best practices","vercel","tasks","data fetching","pages","next","performance optimization","refactoring","Next.js","Optimization","code","guidelines","react components","components","performance","writing",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":44},"01M6H7ZGC2WK8SEKYHWDNTMDA9","swarm-planner","[EXPLICIT INVOCATION ONLY] Creates dependency-aware implementation plans optimized for parallel multi-agent execution.","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fswarm-planner\u002FSKILL.md",[],[108,109,110,111,112,113,114,115,116,26,117,118],"swarm","swarm planner","planner","parallel","multi-agent","only","execution","plans","dependency","multi","implementation",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":44},"01M6H7ZD93853RZCYQWH1D38TM","super-swarm-spark","Only to be triggered by explicit super-swarm-spark commands.","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fsuper-swarm-spark\u002FSKILL.md",[],[126,108,127,113,128],"super swarm spark","spark","commands",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":44},"01M6H7Z987QBY49JCCPT953EAZ","role-creator","Create and install Codex custom agent roles in ~\u002F.codex\u002Fconfig.toml, generate role config files, enforce supported keys, and guide users through required role inputs (model, reasoning effort, developer_instructions).","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Frole-creator\u002FSKILL.md",[],[136,137,138,139,140,141,142,143,144,145,146,39,147,148,149,150,151,152,153],"role","creator","role creator","keys","users","roles","toml","enforce","install","guide","instructions","developer","reasoning","generate","create","config","codex","files",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":163,"publishedAt":44},"01M6H7Z5TRPMDQ7YSZQXPN1G60","read-github","Read and search GitHub repository documentation via gitmcp.io MCP service.\n\n**WHEN TO USE:**\n- User provides a GitHub URL\n- User mentions a specific repo in owner\u002Frepo format\n- User asks \"what does this repo do?\", \"read the docs for X repo\", or similar\n- User wants to search code or docs within a repo","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fread-github\u002FSKILL.md",[160],{"categoryNo":161,"categoryName":162,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[164,165,166,95,167,168,169,170,26,171,172,173,174,175,176,36,177,178,179,40],"github","read github","read","documentation","docs","MCP","search","when to use","URL","via","io","service","do","user","repo","format",{"skillNo":181,"name":110,"nameZh":6,"description":182,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":183,"categories":184,"keywords":185,"publishedAt":44},"01M6H7Z215CTKYJ4Y1X6EQWN6M","Create comprehensive, phased implementation plans with sprints and atomic tasks. Use when user says: \"make a plan\", \"create a plan\", \"plan this out\", \"plan the implementation\", \"help me plan\", \"design a plan\", \"draft a plan\", \"write a plan\", \"outline the steps\", \"break this down into tasks\", \"what's the plan for\", or any similar planning request. Also triggers on explicit \"\u002Fplanner\" or \"\u002Fplan\" commands.","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fplanner\u002FSKILL.md",[],[110,186,26,187,188,189,32,115,128,190,191,36,192,193,194,195,196,150,87,27],"outline","atomic","with","sprints","draft","me","write","phased implementation","plan","help","planning"]