[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DJVF3PFCV4ZFQPACXYB1RZ":3,"skill-same:01M7DJVF3PFCV4ZFQPACXYB1RZ":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":28,"updatedAt":29,"install":30,"resources":43},"01M7DJVF3PFCV4ZFQPACXYB1RZ","maestro-codebase-design",null,"Use when a module interface, test seam, deepening opportunity or adapter placement needs design.","Orchestration-Maestro\u002Fmaestro-manifests","Orchestration-Maestro","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F322897002?v=4","01M7DJV5QYHV5358EX4AGZJZK3","01M7DJV5RPB4CBJZBKV9AHREM6",0,"MIT","https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests\u002Fblob\u002Fmain\u002Fmanifests\u002Fcapabilities\u002Fpractice\u002Fmaestro-skills\u002Fskills\u002Fmaestro-codebase-design\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: maestro-codebase-design\ndescription: \"Use when a module interface, test seam, deepening opportunity or adapter placement needs design.\"\n---\n\n# Design deep modules\n\n## Vocabulary\n\n- **Module:** something with an interface and an implementation, from a function to a tier-spanning slice.\n- **Interface:** everything a caller must know: types, invariants, ordering, errors, configuration and cost.\n- **Implementation:** the code hidden behind that interface.\n- **Depth:** behaviour callers can exercise per unit of interface they must learn.\n- **Seam:** the place where behaviour can vary without editing the consumer.\n- **Adapter:** a concrete implementation satisfying an interface at a seam.\n- **Leverage:** what callers gain from depth; one implementation serves many callers.\n- **Locality:** change and knowledge concentrated in one place rather than scattered among callers.\n\nUse these terms consistently. Depth is not a ratio of source lines. A small interface hiding useful behaviour\nis deep; an interface nearly as complex as its implementation is shallow.\n\n## Test the shape\n\nAsk whether fewer entry points or simpler parameters can hide more complexity without losing capability.\nApply the deletion test: if deleting a module makes complexity disappear, it was passing work through;\nif complexity reappears across its callers, it was earning its place.\n\nThe interface is the test surface. If a test needs to reach past it, reconsider the shape of the module.\nAn internal seam need not become public because a test uses it. One adapter is a hypothetical variation;\ntwo justified adapters establish a real seam. Do not add an abstraction for an imagined future consumer.\n\nAccept dependencies rather than constructing them inside logic, and return results where effects are unnecessary.\nReduce complexity rather than move it into another file. Search for and reuse the canonical helper instead of\nadding a nearly identical implementation. Follow the repository's dependency direction.\n\n## Explore alternatives\n\nUse [deepening](DEEPENING.md) to classify dependencies and replace shallow tests at the new seam.\nUse [design it twice](DESIGN-IT-TWICE.md) for independent parallel `subagent` designs with distinct constraints.\nCompare depth, locality and seam placement, then recommend a design with its trade-offs.\nUse [contracts](CONTRACTS.md) for public-surface commitments, validation and error policy.\n","# Design deep modules\n\n## Vocabulary\n\n- **Module:** something with an interface and an implementation, from a function to a tier-spanning slice.\n- **Interface:** everything a caller must know: types, invariants, ordering, errors, configuration and cost.\n- **Implementation:** the code hidden behind that interface.\n- **Depth:** behaviour callers can exercise per unit of interface they must learn.\n- **Seam:** the place where behaviour can vary without editing the consumer.\n- **Adapter:** a concrete implementation satisfying an interface at a seam.\n- **Leverage:** what callers gain from depth; one implementation serves many callers.\n- **Locality:** change and knowledge concentrated in one place rather than scattered among callers.\n\nUse these terms consistently. Depth is not a ratio of source lines. A small interface hiding useful behaviour\nis deep; an interface nearly as complex as its implementation is shallow.\n\n## Test the shape\n\nAsk whether fewer entry points or simpler parameters can hide more complexity without losing capability.\nApply the deletion test: if deleting a module makes complexity disappear, it was passing work through;\nif complexity reappears across its callers, it was earning its place.\n\nThe interface is the test surface. If a test needs to reach past it, reconsider the shape of the module.\nAn internal seam need not become public because a test uses it. One adapter is a hypothetical variation;\ntwo justified adapters establish a real seam. Do not add an abstraction for an imagined future consumer.\n\nAccept dependencies rather than constructing them inside logic, and return results where effects are unnecessary.\nReduce complexity rather than move it into another file. Search for and reuse the canonical helper instead of\nadding a nearly identical implementation. Follow the repository's dependency direction.\n\n## Explore alternatives\n\nUse [deepening](DEEPENING.md) to classify dependencies and replace shallow tests at the new seam.\nUse [design it twice](DESIGN-IT-TWICE.md) for independent parallel `subagent` designs with distinct constraints.\nCompare depth, locality and seam placement, then recommend a design with its trade-offs.\nUse [contracts](CONTRACTS.md) for public-surface commitments, validation and error policy.\n",{"name":5,"description":7},"main","f33b1a1de12042270a260ffdddd74b67671a1d9a","manifests\u002Fcapabilities\u002Fpractice\u002Fmaestro-skills\u002Fskills\u002Fmaestro-codebase-design","https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests","https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro","Automated guardrails for faster, better, more maintainable and more secure code. Our Northstar: never reached, always pursued.","2026-11-09 01:08:53",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add Orchestration-Maestro\u002Fmaestro-manifests --skill maestro-codebase-design",{"tool":36,"command":37},"bunx","bunx skills add Orchestration-Maestro\u002Fmaestro-manifests --skill maestro-codebase-design",{"tool":39,"command":40},"pnpm","pnpm dlx skills add Orchestration-Maestro\u002Fmaestro-manifests --skill maestro-codebase-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests\u002Fblob\u002Fmain\u002Fmanifests\u002Fcapabilities\u002Fpractice\u002Fmaestro-skills\u002Fskills\u002Fmaestro-codebase-design\u002FSKILL.md",true,[44,50,54],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"CONTRACTS.md","REFERENCE","参考文档",1702,"https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests\u002Fblob\u002Fmain\u002Fmanifests\u002Fcapabilities\u002Fpractice\u002Fmaestro-skills\u002Fskills\u002Fmaestro-codebase-design\u002FCONTRACTS.md",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"DEEPENING.md",997,"https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests\u002Fblob\u002Fmain\u002Fmanifests\u002Fcapabilities\u002Fpractice\u002Fmaestro-skills\u002Fskills\u002Fmaestro-codebase-design\u002FDEEPENING.md",{"path":55,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":56,"sourceHtmlUrl":57},"DESIGN-IT-TWICE.md",984,"https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests\u002Fblob\u002Fmain\u002Fmanifests\u002Fcapabilities\u002Fpractice\u002Fmaestro-skills\u002Fskills\u002Fmaestro-codebase-design\u002FDESIGN-IT-TWICE.md",[59,66,71,76,81,86],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M7DK0KB6JRRJRQPMXG075AQ6","audit","Fixture skill.","https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests\u002Fblob\u002Fmain\u002Ftests\u002Fscorecard_cases\u002Fskill-without-name-takes-its-folder-name\u002Fmanifests\u002Fcapabilities\u002Fsecurity\u002Fscan\u002Fskills\u002Faudit\u002FSKILL.md",[],[],{"skillNo":67,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M7DK0JAQG1J25DG064S7PR27","https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests\u002Fblob\u002Fmain\u002Ftests\u002Fscorecard_cases\u002Fskill-without-name-takes-its-folder-name\u002Fmanifests\u002Fcapabilities\u002Fpractice\u002Freview\u002Fskills\u002Faudit\u002FSKILL.md",[],[],{"skillNo":72,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M7DK0HBNY88V2B7PF5E4JWZS","https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests\u002Fblob\u002Fmain\u002Ftests\u002Fscorecard_cases\u002Fskill-with-empty-name-takes-its-folder-name\u002Fmanifests\u002Fcapabilities\u002Fsecurity\u002Fscan\u002Fskills\u002Faudit\u002FSKILL.md",[],[],{"skillNo":77,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7DK0G9CB5MFGRD73SNEXXYE","https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests\u002Fblob\u002Fmain\u002Ftests\u002Fscorecard_cases\u002Fskill-with-empty-name-takes-its-folder-name\u002Fmanifests\u002Fcapabilities\u002Fpractice\u002Freview\u002Fskills\u002Faudit\u002FSKILL.md",[],[],{"skillNo":82,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7DK0FA198RVD2KCEW9YDQ6K","https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests\u002Fblob\u002Fmain\u002Ftests\u002Fscorecard_cases\u002Fskill-in-dot-folder-is-skipped\u002Fmanifests\u002Fcapabilities\u002Fpractice\u002Freview\u002Fskills\u002Faudit\u002FSKILL.md",[],[],{"skillNo":87,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M7DK0EAZVV9A5CN27PD2MTMB","https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests\u002Fblob\u002Fmain\u002Ftests\u002Fscorecard_cases\u002Fskill-in-dot-folder-is-skipped\u002Fmanifests\u002Fcapabilities\u002Fpractice\u002Freview\u002Fskills\u002F.drafts\u002Faudit\u002FSKILL.md",[],[]]