[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79M738CFHA6XQAR5E1MCHKN":3,"skill-same:01M79M738CFHA6XQAR5E1MCHKN":52},{"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":6,"updatedAt":31,"install":32,"resources":45},"01M79M738CFHA6XQAR5E1MCHKN","api-contract-change",null,"Use when changing an API request or response shape, validation, error code, pagination, route, or other \u002Fapi\u002Fv1 semantics.","DrewBrunning\u002Fmycorrhizal-crm","DrewBrunning","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6752526?v=4","01M79M5Q84HEMNMKVCSH7RXV78","Drew Brunning","01M79M5Q90WKHZRQC3MEBRYB4Y",4,"MIT","https:\u002F\u002Fgithub.com\u002FDrewBrunning\u002Fmycorrhizal-crm\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fapi-contract-change\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: api-contract-change\ndescription: Use when changing an API request or response shape, validation, error code, pagination, route, or other \u002Fapi\u002Fv1 semantics.\nlicense: MIT\n---\n\n# API contract change\n\nOutcome: the server, `backend\u002Fopenapi.yaml`, the generated fixtures\u002Ftypes, the\nbaseline, and both clients agree. Read `docs\u002Fbreaking-change-policy.md` and\n`docs\u002Fadrs\u002F0008-conditional-write-enforcement.md` before editing.\n\n## Steps\n\n1. Change the handler\u002Fmodel and the spec together. The spec example is the\n   source for contract fixtures; a hand-edited response shape is a failure.\n2. Open [route-change-checklist](references\u002Froute-change-checklist.md) and update\n   every matrix the route belongs to: authorization, ownership, idempotency,\n   conditional writes, pagination and error shape.\n3. Regenerate the artifact chain in order: `gencontract`, then `gentsapi`, then\n   `genapibaseline`. Commit the diffs; the baseline diff is the review.\n4. Make the consumers compile: `npx tsc --noEmit` for web and the Android\n   contract-fixture test for the shared JSON.\n5. A removed or narrowed field is a breaking change under MAINT-02: add the\n   deprecation window and migration path, not just the baseline diff.\n6. Every new route or access path needs an ownership regression test scoped by\n   `user_id` (or `Contact.VCardUID` for graph entities).\n\n## DoD\n\n```bash\ncd backend && go run .\u002Fcmd\u002Fgencontract\ncd backend && go run .\u002Fcmd\u002Fgentsapi\ncd backend && go run .\u002Fcmd\u002Fgenapibaseline\ncd backend && go test .\u002Finternal\u002Fapibaseline\u002F... .\u002Finternal\u002Fcontractfixtures\u002F... .\u002Finternal\u002Ftsapi\u002F...\ncd frontend && npx tsc --noEmit\ncd android && .\u002Fgradlew :core:network:testDebugUnitTest --tests '*ContractFixtureTest*'\n```\n\nReport any check you could not run; never imply it passed.\n\n## Stop and ask\n\n- The change removes or narrows a field, status code or route without a\n  deprecation window.\n- The spec and the implementation disagree and you are tempted to hand-edit a\n  generated fixture or baseline.\n- A new route has no ownership regression test.\n- A client would need a coordinated release before the server changes.\n\nCanonical detail: `docs\u002Fbreaking-change-policy.md`, `docs\u002Fdeprecation-policy.md`,\n`backend\u002FAGENTS.md` (generated artifacts).\n","# API contract change\n\nOutcome: the server, `backend\u002Fopenapi.yaml`, the generated fixtures\u002Ftypes, the\nbaseline, and both clients agree. Read `docs\u002Fbreaking-change-policy.md` and\n`docs\u002Fadrs\u002F0008-conditional-write-enforcement.md` before editing.\n\n## Steps\n\n1. Change the handler\u002Fmodel and the spec together. The spec example is the\n   source for contract fixtures; a hand-edited response shape is a failure.\n2. Open [route-change-checklist](references\u002Froute-change-checklist.md) and update\n   every matrix the route belongs to: authorization, ownership, idempotency,\n   conditional writes, pagination and error shape.\n3. Regenerate the artifact chain in order: `gencontract`, then `gentsapi`, then\n   `genapibaseline`. Commit the diffs; the baseline diff is the review.\n4. Make the consumers compile: `npx tsc --noEmit` for web and the Android\n   contract-fixture test for the shared JSON.\n5. A removed or narrowed field is a breaking change under MAINT-02: add the\n   deprecation window and migration path, not just the baseline diff.\n6. Every new route or access path needs an ownership regression test scoped by\n   `user_id` (or `Contact.VCardUID` for graph entities).\n\n## DoD\n\n```bash\ncd backend && go run .\u002Fcmd\u002Fgencontract\ncd backend && go run .\u002Fcmd\u002Fgentsapi\ncd backend && go run .\u002Fcmd\u002Fgenapibaseline\ncd backend && go test .\u002Finternal\u002Fapibaseline\u002F... .\u002Finternal\u002Fcontractfixtures\u002F... .\u002Finternal\u002Ftsapi\u002F...\ncd frontend && npx tsc --noEmit\ncd android && .\u002Fgradlew :core:network:testDebugUnitTest --tests '*ContractFixtureTest*'\n```\n\nReport any check you could not run; never imply it passed.\n\n## Stop and ask\n\n- The change removes or narrows a field, status code or route without a\n  deprecation window.\n- The spec and the implementation disagree and you are tempted to hand-edit a\n  generated fixture or baseline.\n- A new route has no ownership regression test.\n- A client would need a coordinated release before the server changes.\n\nCanonical detail: `docs\u002Fbreaking-change-policy.md`, `docs\u002Fdeprecation-policy.md`,\n`backend\u002FAGENTS.md` (generated artifacts).\n",{"name":5,"license":15,"description":7},"main","9536dc2059e7970271680a546c4beef69e191b1b",".agents\u002Fskills\u002Fapi-contract-change",2,"https:\u002F\u002Fgithub.com\u002FDrewBrunning\u002Fmycorrhizal-crm","https:\u002F\u002Fdrewbrunning.github.io\u002Fmycorrhizal-crm\u002F","https:\u002F\u002Fgithub.com\u002FDrewBrunning","2026-11-14 11:31:00",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add DrewBrunning\u002Fmycorrhizal-crm --skill api-contract-change",{"tool":38,"command":39},"bunx","bunx skills add DrewBrunning\u002Fmycorrhizal-crm --skill api-contract-change",{"tool":41,"command":42},"pnpm","pnpm dlx skills add DrewBrunning\u002Fmycorrhizal-crm --skill api-contract-change","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDrewBrunning\u002Fmycorrhizal-crm\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fapi-contract-change\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Froute-change-checklist.md","REFERENCE","参考文档",2708,"https:\u002F\u002Fgithub.com\u002FDrewBrunning\u002Fmycorrhizal-crm\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fapi-contract-change\u002Freferences\u002Froute-change-checklist.md",[53,60,67,74,81,87],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M79M8PCVKS3QREKY3QXJEBR9","valid","Use when exercising a well-formed skill fixture in the agent-context tests.","https:\u002F\u002Fgithub.com\u002FDrewBrunning\u002Fmycorrhizal-crm\u002Fblob\u002Fmain\u002Fbackend\u002Finternal\u002Fagentcontext\u002Ftestdata\u002Fskills\u002Fvalid\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M79M8KBDD3M00TXB79N8794H","unregistered-dod","Use when a fixture must carry a DoD command no Suite registers.","https:\u002F\u002Fgithub.com\u002FDrewBrunning\u002Fmycorrhizal-crm\u002Fblob\u002Fmain\u002Fbackend\u002Finternal\u002Fagentcontext\u002Ftestdata\u002Fskills\u002Funregistered-dod\u002FSKILL.md",[],[],{"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":19},"01M79M8H040AE9HFB8P8J394G9","orphan-reference","Use when a fixture must exercise an unlinked reference file.","https:\u002F\u002Fgithub.com\u002FDrewBrunning\u002Fmycorrhizal-crm\u002Fblob\u002Fmain\u002Fbackend\u002Finternal\u002Fagentcontext\u002Ftestdata\u002Fskills\u002Forphan-reference\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M79M8FHJVP35DG9MAGFV6P2W","missing-reference","Use when a fixture must link to a reference file that does not exist.","https:\u002F\u002Fgithub.com\u002FDrewBrunning\u002Fmycorrhizal-crm\u002Fblob\u002Fmain\u002Fbackend\u002Finternal\u002Fagentcontext\u002Ftestdata\u002Fskills\u002Fmissing-reference\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":6,"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":19},"01M79M8D1PNZ7JA7N8MCGXQ5JH","missing-description","https:\u002F\u002Fgithub.com\u002FDrewBrunning\u002Fmycorrhizal-crm\u002Fblob\u002Fmain\u002Fbackend\u002Finternal\u002Fagentcontext\u002Ftestdata\u002Fskills\u002Fmissing-description\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79M8AT8A2GD6CJPEJXW21C4","long-reference","Use when a fixture must exceed the reference line maximum.","https:\u002F\u002Fgithub.com\u002FDrewBrunning\u002Fmycorrhizal-crm\u002Fblob\u002Fmain\u002Fbackend\u002Finternal\u002Fagentcontext\u002Ftestdata\u002Fskills\u002Flong-reference\u002FSKILL.md",[],[]]