[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CZWPGSCNGHCKQ1ATHH3H49":3,"skill-same:01M6CZWPGSCNGHCKQ1ATHH3H49":66},{"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":32,"linkOnly":33,"markdownContent":34,"markdownBody":35,"frontMatter":36,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M6CZWPGSCNGHCKQ1ATHH3H49","j5ik2o-ddd-domain-primitives-and-always-valid",null,"Use when replacing raw primitive values with validated domain primitives or value objects so invalid domain states cannot be represented. Covers always-valid construction, smart constructors, parse-don't-validate, and avoiding primitive obsession. Trigger for domain primitive design, validated IDs, email\u002Fmoney\u002Frange types, always-valid models, or preventing invalid states.","j5ik2o\u002Fai-tools","j5ik2o","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F461711?v=4","01M6CR6HZJM242J0HDRJT5GY6J","Junichi Kato","01M6CZP6PXKYDDNX5A7PZ3P4DY",28,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fj5ik2o\u002Fai-tools\u002Fblob\u002Fmain\u002Fplugins\u002Fsoftware-design\u002Fskills\u002Fj5ik2o-ddd-domain-primitives-and-always-valid\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31],"valid","ddd","primitives","domain","j5ik2o ddd domain primitives and always valid","design","validate","email","ids","use","models","money","objects","2026-11-10 10:12:30",false,"---\nname: j5ik2o-ddd-domain-primitives-and-always-valid\ndescription: >-\n  Use when replacing raw primitive values with validated domain primitives or value objects so invalid domain states cannot be represented. Covers always-valid construction, smart constructors, parse-don't-validate, and avoiding primitive obsession. Trigger for domain primitive design, validated IDs, email\u002Fmoney\u002Frange types, always-valid models, or preventing invalid states.\n---\n\n# Domain Primitives And Always-Valid Models\n\nMake illegal states unrepresentable when the domain rule is stable enough to deserve a type.\n\n## Workflow\n\n1. Identify primitives that carry domain meaning or repeated validation.\n\n2. Separate syntax checks from domain invariants.\n\n3. Add a domain primitive with a private constructor and smart constructor or parser.\n\n4. Store only valid values inside entities and aggregates.\n\n5. Keep formatting, localization, and transport parsing outside the core type unless they are domain rules.\n\n## Use A Domain Primitive When\n\n- The value has a domain name.\n\n- Validation appears in multiple places.\n\n- Mixing two values of the same primitive type would be dangerous.\n\n- Behavior belongs with the value.\n\n## Avoid Wrapping When\n\n- The value is purely technical, temporary, or has no invariant.\n\n- A wrapper would add ceremony without changing correctness.\n\n## Detailed Reference\n\nFor non-trivial implementation, review, or refactoring work, read `references\u002Fdetails.md` before giving final guidance. It contains the detailed rules, examples, smells, and migration notes that do not belong in the short invocation body.\n\n## Output\n\nReturn the primitive candidates, chosen wrappers, construction API, error type, and migration steps.\n","# Domain Primitives And Always-Valid Models\n\nMake illegal states unrepresentable when the domain rule is stable enough to deserve a type.\n\n## Workflow\n\n1. Identify primitives that carry domain meaning or repeated validation.\n\n2. Separate syntax checks from domain invariants.\n\n3. Add a domain primitive with a private constructor and smart constructor or parser.\n\n4. Store only valid values inside entities and aggregates.\n\n5. Keep formatting, localization, and transport parsing outside the core type unless they are domain rules.\n\n## Use A Domain Primitive When\n\n- The value has a domain name.\n\n- Validation appears in multiple places.\n\n- Mixing two values of the same primitive type would be dangerous.\n\n- Behavior belongs with the value.\n\n## Avoid Wrapping When\n\n- The value is purely technical, temporary, or has no invariant.\n\n- A wrapper would add ceremony without changing correctness.\n\n## Detailed Reference\n\nFor non-trivial implementation, review, or refactoring work, read `references\u002Fdetails.md` before giving final guidance. It contains the detailed rules, examples, smells, and migration notes that do not belong in the short invocation body.\n\n## Output\n\nReturn the primitive candidates, chosen wrappers, construction API, error type, and migration steps.\n",{"name":5,"description":7},"main","3e6b722545091ed1bb6b81fe15f38189099154c1","plugins\u002Fsoftware-design\u002Fskills\u002Fj5ik2o-ddd-domain-primitives-and-always-valid",0,"https:\u002F\u002Fgithub.com\u002Fj5ik2o\u002Fai-tools","https:\u002F\u002Fgithub.com\u002Fj5ik2o","https:\u002F\u002Flapras.com\u002Fpublic\u002FNHXS5RH","I'm a tech-lead in the IDEO;PLUS Inc, is lover to Scala\u002FRust, Akka, DDD\u002FCQRS+Event Sourcing.","2026-11-12 10:31:08",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add j5ik2o\u002Fai-tools --skill j5ik2o-ddd-domain-primitives-and-always-valid",{"tool":52,"command":53},"bunx","bunx skills add j5ik2o\u002Fai-tools --skill j5ik2o-ddd-domain-primitives-and-always-valid",{"tool":55,"command":56},"pnpm","pnpm dlx skills add j5ik2o\u002Fai-tools --skill j5ik2o-ddd-domain-primitives-and-always-valid","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fj5ik2o\u002Fai-tools\u002Fblob\u002Fmain\u002Fplugins\u002Fsoftware-design\u002Fskills\u002Fj5ik2o-ddd-domain-primitives-and-always-valid\u002FSKILL.md",true,[60],{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fdetails.md","REFERENCE","参考文档",1079,"https:\u002F\u002Fgithub.com\u002Fj5ik2o\u002Fai-tools\u002Fblob\u002Fmain\u002Fplugins\u002Fsoftware-design\u002Fskills\u002Fj5ik2o-ddd-domain-primitives-and-always-valid\u002Freferences\u002Fdetails.md",[67,77,84,101,112,123],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":32},"01M6D03X604YGMM6YFEG4M6767","takt","TAKT ワークフローエンジン。Agent Team を使ったマルチエージェントオーケストレーション。ワークフロー YAML（steps \u002F initial_step）に従ってマルチエージェントを実行する。","https:\u002F\u002Fgithub.com\u002Fj5ik2o\u002Fai-tools\u002Fblob\u002Fmain\u002Fplugins\u002Ftakt\u002Fskills\u002Fj5ik2o-takt-workflow-builder\u002Freferences\u002Ftakt\u002Fbuiltins\u002Fskill\u002FSKILL.md",[],[69,74,75,76],"agent team","team","yaml",{"skillNo":78,"name":69,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":32},"01M6D03TAJ6WKRV6XACZHZ70NS","TAKT ワークフローエンジン。codex exec でサブエージェントを起動し、ワークフロー YAML（steps \u002F initial_step）に従って マルチエージェントオーケストレーションを実行する。","https:\u002F\u002Fgithub.com\u002Fj5ik2o\u002Fai-tools\u002Fblob\u002Fmain\u002Fplugins\u002Ftakt\u002Fskills\u002Fj5ik2o-takt-workflow-builder\u002Freferences\u002Ftakt\u002Fbuiltins\u002Fskill-codex\u002FSKILL.md",[],[69,76,83],"codex",{"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":32},"01M6D02V9SQ13TEDYDGN67K3WA","j5ik2o-takt-workflow-builder","TAKTワークフロー（ワークフローYAML）の作成・カスタマイズスキル。Faceted Prompting （Persona\u002FPolicy\u002FInstruction\u002FKnowledge\u002FOutput Contract）に基づくファセット群の 生成を含む。references\u002Ftaktにあるtaktのソースコード・ドキュメント・ビルトインワークフロー群を 参照資料として活用する。ユーザーの要件をヒアリングし、step構成、ルール設計、 ファセットファイル生成を一括で行う。 トリガー：「ワークフローを作りたい」「ワークフローを定義」「taktのワークフローを作成」 「新しいtaktワークフローを作って」「takt workflow」「ワークフローYAML」","https:\u002F\u002Fgithub.com\u002Fj5ik2o\u002Fai-tools\u002Fblob\u002Fmain\u002Fplugins\u002Ftakt\u002Fskills\u002Fj5ik2o-takt-workflow-builder\u002FSKILL.md",[],[91,69,92,93,94,95,96,97,98,99,100],"j5ik2o takt workflow builder","builder","workflow builder","workflow","生成","contract","references","knowledge","persona","policy",{"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":32},"01M6D02P0Y4DEJ19J6V4S5VZ2S","j5ik2o-takt-task-builder","TAKTのtasks.yaml（タスクメタデータ）とタスクディレクトリ（.takt\u002Ftasks\u002F{slug}\u002Forder.md）の 作成・編集を支援するスキル。TaskRecordスキーマに準拠したYAMLエントリの生成、 order.mdタスク仕様書の作成、ステータス遷移ルールの検証を行う。 references\u002Ftaktにあるtaskスキーマ定義・ドキュメントを参照資料として活用する。 トリガー：「タスクを追加」「tasks.yamlを編集」「taktタスクを作成」 「タスク仕様書を書く」「order.mdを作成」「takt task」「タスクを定義」 「pendingタスクを追加」「GitHub Issueからタスク作成」","https:\u002F\u002Fgithub.com\u002Fj5ik2o\u002Fai-tools\u002Fblob\u002Fmain\u002Fplugins\u002Ftakt\u002Fskills\u002Fj5ik2o-takt-task-builder\u002FSKILL.md",[],[69,108,109,92,97,95,76,110,111],"j5ik2o takt task builder","task","tasks","github",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":32},"01M6D022WYSR825B6KB2CSNNY0","j5ik2o-takt-skill-updater","nrslib\u002Ftakt の新バージョンリリース時に、takt-*スキル群（j5ik2o-takt-task-builder, j5ik2o-takt-workflow-builder, j5ik2o-takt-facet-builder, j5ik2o-takt-analyzer, j5ik2o-takt-optimizer）を最新のtaktバージョンに追従させるスキル。 TypeScriptスキーマ（taskRecordSchemas.ts \u002F taskExecutionSchemas.ts）、ワークフローYAML、ファセットMarkdownの差分を検出し、 SKILL.md・参照ドキュメント（task-schema.md等）を体系的に更新する。 トリガー：「taktスキルを更新」「takt-*スキルの鮮度チェック」「taktバージョンアップ対応」 「スキルが古くないか確認」「takt skill updater」","https:\u002F\u002Fgithub.com\u002Fj5ik2o\u002Fai-tools\u002Fblob\u002Fmain\u002Fplugins\u002Ftakt\u002Fskills\u002Fj5ik2o-takt-skill-updater\u002FSKILL.md",[],[69,119,120,94,121,92,109,122],"skill updater","j5ik2o takt skill updater","schema","optimizer",{"skillNo":124,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":32},"01M6D01Z6WJEXJTXRKEK6N2NBM","https:\u002F\u002Fgithub.com\u002Fj5ik2o\u002Fai-tools\u002Fblob\u002Fmain\u002Fplugins\u002Ftakt\u002Fskills\u002Fj5ik2o-takt-optimizer\u002Freferences\u002Ftakt\u002Fbuiltins\u002Fskill\u002FSKILL.md",[],[69,75,74,76]]