[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GGRMTBB38DPCDJ87WQYZNW":3,"skill-same:01M6GGRMTBB38DPCDJ87WQYZNW":70},{"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":28,"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":6,"ownerDescription":6,"updatedAt":55,"install":56,"resources":69},"01M6GGRMTBB38DPCDJ87WQYZNW","data-model-mapping",null,"When adding, renaming, or removing a field on a data model that has a mapped counterpart elsewhere — an API\u002FDTO, a database\u002FORM entity, a serializer, or a cross-platform equivalent model (Android\u002FiOS\u002FBackend). Use whenever a model's fields change, before considering the change complete.","ahmadulhoq\u002Fagentskel","ahmadulhoq","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3884252?v=4","01M6GGC32SQTQ52FY4JB14FYSY","Ahmadul Hoq","01M6GGC37CJEYM63V3WEHY4Y8V",13,"MIT","https:\u002F\u002Fgithub.com\u002Fahmadulhoq\u002Fagentskel\u002Fblob\u002Fmain\u002Froles\u002Fdev\u002Fskills\u002Fdata-model-mapping\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"data","model","mapping","data model mapping","android","change","database","ios","api","orm","use","backend","cross-platform","platform","complete","2026-11-10 10:12:30",false,"---\nname: data-model-mapping\nlicense: MIT\ndescription: When adding, renaming, or removing a field on a data model that has a mapped counterpart elsewhere — an API\u002FDTO, a database\u002FORM entity, a serializer, or a cross-platform equivalent model (Android\u002FiOS\u002FBackend). Use whenever a model's fields change, before considering the change complete.\n---\n\n# Data Model Mapping Standards\n\n## Step 1 — Locate Every Side of the Mapping First\n- [ ] Before editing a model, grep for its name across mapper\u002Fserializer files (`*Mapper`, `*Serializer`, `toDto`\u002F`fromDto`, `toEntity`\u002F`fromEntity`, proto\u002FJSON codecs).\n- [ ] If a Blueprint is configured (`Blueprint Path` in `.memory\u002FCONFIG.md`), check its parity matrix and domain specs for a cross-platform counterpart of this model.\n- [ ] List every mapped side found — the field change must land on all of them, not just the origin model.\n\n## Step 2 — Propagate the Change\n- [ ] Add\u002Frename\u002Fremove the field on every mapped side identified in Step 1 in the same change, not as a follow-up.\n- [ ] Never consider a field change done because \"only this model\" needed it — a model with a mapping is never edited in isolation.\n\n## Step 3 — Cross-Platform Parity\n- [ ] If this model maps to a documented domain entity in the Blueprint, update the parity matrix \u002F domain spec to match.\n- [ ] If another platform repo has its own copy of this model and you can't update it directly, write a Knowledge Bus entry flagging the change.\n\n## Step 4 — Trace the Field End-to-End\n- [ ] Follow the changed field through the full mapping chain (model → mapper → serialized\u002FDB form) and confirm it isn't silently dropped anywhere along the way.\n- [ ] Pay special attention to mappers that build output field-by-field (e.g. manual `Dto(name = x.name, ...)` constructors) — these drop new fields silently unless every constructor call site is updated.\n\n## Step 5 — Defaults and Nullability\n- [ ] For a new field, explicitly decide its default\u002Fnull behavior on every side — don't rely on an implicit language-level fallback that may differ between sides.\n\n## Step 6 — Test the Round Trip\n- [ ] Add or update a mapping test that asserts the changed field survives a full round trip (model → mapped form → model) with a non-default value.\n\n## Common Rationalizations\n\n| Rationalization | Why it's wrong | Do this instead |\n|---|---|---|\n| \"I only changed the domain model, the mapper doesn't need touching\" | Mappers are usually explicit field-by-field — an unmapped field disappears silently, with no compile error. | Grep for the model name in mapper\u002Fserializer files and update every match. |\n| \"The field has a sensible default, I'll skip the mapper\" | A default on one side can diverge from the actual default on another side. | Explicitly wire the default\u002Fnull behavior into the mapper. |\n| \"Cross-platform parity isn't my job, I'm only touching this platform\" | Silent parity drift breaks other platforms without anyone noticing until a bug report. | Update the parity matrix or flag a Knowledge Bus entry. |\n| \"Tests already pass, mapping must be fine\" | Passing feature tests without a mapping-specific test don't catch a dropped field. | Add a round-trip mapping test for the changed field. |\n\n**Gate:** Do not consider a data model field change complete until every mapped representation found in Step 1 has been updated and verified via Step 4.\n","# Data Model Mapping Standards\n\n## Step 1 — Locate Every Side of the Mapping First\n- [ ] Before editing a model, grep for its name across mapper\u002Fserializer files (`*Mapper`, `*Serializer`, `toDto`\u002F`fromDto`, `toEntity`\u002F`fromEntity`, proto\u002FJSON codecs).\n- [ ] If a Blueprint is configured (`Blueprint Path` in `.memory\u002FCONFIG.md`), check its parity matrix and domain specs for a cross-platform counterpart of this model.\n- [ ] List every mapped side found — the field change must land on all of them, not just the origin model.\n\n## Step 2 — Propagate the Change\n- [ ] Add\u002Frename\u002Fremove the field on every mapped side identified in Step 1 in the same change, not as a follow-up.\n- [ ] Never consider a field change done because \"only this model\" needed it — a model with a mapping is never edited in isolation.\n\n## Step 3 — Cross-Platform Parity\n- [ ] If this model maps to a documented domain entity in the Blueprint, update the parity matrix \u002F domain spec to match.\n- [ ] If another platform repo has its own copy of this model and you can't update it directly, write a Knowledge Bus entry flagging the change.\n\n## Step 4 — Trace the Field End-to-End\n- [ ] Follow the changed field through the full mapping chain (model → mapper → serialized\u002FDB form) and confirm it isn't silently dropped anywhere along the way.\n- [ ] Pay special attention to mappers that build output field-by-field (e.g. manual `Dto(name = x.name, ...)` constructors) — these drop new fields silently unless every constructor call site is updated.\n\n## Step 5 — Defaults and Nullability\n- [ ] For a new field, explicitly decide its default\u002Fnull behavior on every side — don't rely on an implicit language-level fallback that may differ between sides.\n\n## Step 6 — Test the Round Trip\n- [ ] Add or update a mapping test that asserts the changed field survives a full round trip (model → mapped form → model) with a non-default value.\n\n## Common Rationalizations\n\n| Rationalization | Why it's wrong | Do this instead |\n|---|---|---|\n| \"I only changed the domain model, the mapper doesn't need touching\" | Mappers are usually explicit field-by-field — an unmapped field disappears silently, with no compile error. | Grep for the model name in mapper\u002Fserializer files and update every match. |\n| \"The field has a sensible default, I'll skip the mapper\" | A default on one side can diverge from the actual default on another side. | Explicitly wire the default\u002Fnull behavior into the mapper. |\n| \"Cross-platform parity isn't my job, I'm only touching this platform\" | Silent parity drift breaks other platforms without anyone noticing until a bug report. | Update the parity matrix or flag a Knowledge Bus entry. |\n| \"Tests already pass, mapping must be fine\" | Passing feature tests without a mapping-specific test don't catch a dropped field. | Add a round-trip mapping test for the changed field. |\n\n**Gate:** Do not consider a data model field change complete until every mapped representation found in Step 1 has been updated and verified via Step 4.\n",{"name":5,"license":15,"description":7},"main","d94c109a4fad51623dc6048315860e53b32673fb","roles\u002Fdev\u002Fskills\u002Fdata-model-mapping",3,"https:\u002F\u002Fgithub.com\u002Fahmadulhoq\u002Fagentskel","https:\u002F\u002Fgithub.com\u002Fahmadulhoq","2026-11-07 00:53:22",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add ahmadulhoq\u002Fagentskel --skill data-model-mapping",{"tool":62,"command":63},"bunx","bunx skills add ahmadulhoq\u002Fagentskel --skill data-model-mapping",{"tool":65,"command":66},"pnpm","pnpm dlx skills add ahmadulhoq\u002Fagentskel --skill data-model-mapping","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fahmadulhoq\u002Fagentskel\u002Fblob\u002Fmain\u002Froles\u002Fdev\u002Fskills\u002Fdata-model-mapping\u002FSKILL.md",true,[],[71,90,117,141,166,180],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":44},"01M6GGSN2D57Y8BR50X08Y695H","setup-project","When setting up agentskel on a new project that does not yet have .memory\u002F or .agents\u002F. Use when the user says \"set up agentskel\", \"install agentskel\", or \"add agent memory to this project\".","https:\u002F\u002Fgithub.com\u002Fahmadulhoq\u002Fagentskel\u002Fblob\u002Fmain\u002Fskills\u002Fsetup-project\u002FSKILL.md",[],[78,79,80,81,82,83,39,84,85,86,87,88,89],"setup project","project","setup","memory","add","up","install","add agent","user","new project","SET","agent memory",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":44},"01M6GGSJ6HD2DFVZQTESJ81GYM","using-git-worktrees","When running long feature implementations, parallel branch work, or build\u002Ftest scripts that must not interfere with the user's active working directory. Creates isolated execution environments via git worktrees in sibling directories.","https:\u002F\u002Fgithub.com\u002Fahmadulhoq\u002Fagentskel\u002Fblob\u002Fmain\u002Froles\u002Fdev\u002Fskills\u002Fusing-git-worktrees\u002FSKILL.md",[],[97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116],"git worktrees","worktrees","git","using git worktrees","Using git","test","directory","execution","parallel","work","branch","directories","environments","with","via","long","scripts","feature","active","build",{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":126,"publishedAt":44},"01M6GGSCFPK7MDSZH96XTNZR9B","test-engineer","When designing test strategy, analysing coverage, or writing tests outside the TDD cycle. Also use when working with CI pipelines or validating changes end-to-end.","https:\u002F\u002Fgithub.com\u002Fahmadulhoq\u002Fagentskel\u002Fblob\u002Fmain\u002Froles\u002Fdev\u002Fskills\u002Ftest-engineer\u002FSKILL.md",[123],{"categoryNo":124,"categoryName":125,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量",[127,128,102,129,130,131,132,133,134,39,135,110,136,137,138,139,140],"test engineer","engineer","tests","tdd cycle","cycle","end","test strategy","pipelines","tdd","strategy","ci","writing tests","writing","coverage",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":151,"publishedAt":44},"01M6GGS8YA9XZB6DWV22JC0YTB","test-driven-development","When implementing logic changes during develop-feature or implement-task. Use the Red-Green-Refactor cycle to write a failing test before any production code.","https:\u002F\u002Fgithub.com\u002Fahmadulhoq\u002Fagentskel\u002Fblob\u002Fmain\u002Froles\u002Fdev\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[147,150],{"categoryNo":148,"categoryName":149,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000007","代码审查",{"categoryNo":124,"categoryName":125,"taxonomyType":21,"taxonomyTypeDesc":22},[152,153,102,154,155,156,114,157,158,131,159,39,160,161,162,163,164,165],"development","test driven development","driven","task","red","logic","green","red-green-refactor","write","develop","refactor","Production","code","implement",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"publishedAt":44},"01M6GGS61D41ZJG4D8XAS97H62","task-planner","When decomposing a feature or spec into implementable subtasks, estimating scope, or orchestrating multi-step work across subagents.","https:\u002F\u002Fgithub.com\u002Fahmadulhoq\u002Fagentskel\u002Fblob\u002Fmain\u002Froles\u002Fdev\u002Fskills\u002Ftask-planner\u002FSKILL.md",[],[173,155,174,114,175,176,106,177,178,179],"task planner","planner","across","subagents","spec","scope","multi",{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":186,"publishedAt":44},"01M6GGS30NJW4Q7QN4KVT0CV08","systematic-debugger","When applying debugging techniques during any investigation — root cause tracing, bisect, defense-in-depth. Enforces hypothesis-first analysis and prohibits guess-and-check changes. Use standalone or inside the debug-issue workflow.","https:\u002F\u002Fgithub.com\u002Fahmadulhoq\u002Fagentskel\u002Fblob\u002Fmain\u002Froles\u002Fdev\u002Fskills\u002Fsystematic-debugger\u002FSKILL.md",[],[187,188,189,190,191,192,193,194,39,195,196,197,198,199,200,201,202,203,204,205],"systematic debugger","systematic","debugger","check","standalone","root","issue workflow","issue","bisect","investigation","analysis","first","defense","hypothesis","defense-in-depth","tracing","debugging","debug","workflow"]