[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ASSV38A4RZD59QCKM2167F":3,"skill-same:01M7ASSV38A4RZD59QCKM2167F":51},{"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":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7ASSV38A4RZD59QCKM2167F","design-an-interface",null,"Generate multiple radically different interface designs for a module using parallel sub-agents. Use when user wants to design an API, explore interface options, compare module shapes, or mentions \"design it twice\".","Diffusity\u002FrepoSphere_java_backend","Diffusity","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F119410541?v=4","01M7ASS8Z2BQV85KY5WA3C6G5E","Parth Maharaja","01M7ASS8ZRRXZNDAY7F88NBB4N",0,"MIT","https:\u002F\u002Fgithub.com\u002FDiffusity\u002FrepoSphere_java_backend\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdesign-an-interface\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\r\nname: design-an-interface\r\ndescription: Generate multiple radically different interface designs for a module using parallel sub-agents. Use when user wants to design an API, explore interface options, compare module shapes, or mentions \"design it twice\".\r\n---\r\n\r\n# Design an Interface\r\n\r\nBased on \"Design It Twice\" from \"A Philosophy of Software Design\": your first idea is unlikely to be the best. Generate multiple radically different designs, then compare.\r\n\r\n## Workflow\r\n\r\n### 1. Gather Requirements\r\n\r\nBefore designing, understand:\r\n\r\n- [ ] What problem does this module solve?\r\n- [ ] Who are the callers? (other modules, external users, tests)\r\n- [ ] What are the key operations?\r\n- [ ] Any constraints? (performance, compatibility, existing patterns)\r\n- [ ] What should be hidden inside vs exposed?\r\n\r\nAsk: \"What does this module need to do? Who will use it?\"\r\n\r\n### 2. Generate Designs (Parallel Sub-Agents)\r\n\r\nSpawn 3+ sub-agents simultaneously using Task tool. Each must produce a **radically different** approach.\r\n\r\n```\r\nPrompt template for each sub-agent:\r\n\r\nDesign an interface for: [module description]\r\n\r\nRequirements: [gathered requirements]\r\n\r\nConstraints for this design: [assign a different constraint to each agent]\r\n- Agent 1: \"Minimize method count - aim for 1-3 methods max\"\r\n- Agent 2: \"Maximize flexibility - support many use cases\"\r\n- Agent 3: \"Optimize for the most common case\"\r\n- Agent 4: \"Take inspiration from [specific paradigm\u002Flibrary]\"\r\n\r\nOutput format:\r\n1. Interface signature (types\u002Fmethods)\r\n2. Usage example (how caller uses it)\r\n3. What this design hides internally\r\n4. Trade-offs of this approach\r\n```\r\n\r\n### 3. Present Designs\r\n\r\nShow each design with:\r\n\r\n1. **Interface signature** - types, methods, params\r\n2. **Usage examples** - how callers actually use it in practice\r\n3. **What it hides** - complexity kept internal\r\n\r\nPresent designs sequentially so user can absorb each approach before comparison.\r\n\r\n### 4. Compare Designs\r\n\r\nAfter showing all designs, compare them on:\r\n\r\n- **Interface simplicity**: fewer methods, simpler params\r\n- **General-purpose vs specialized**: flexibility vs focus\r\n- **Implementation efficiency**: does shape allow efficient internals?\r\n- **Depth**: small interface hiding significant complexity (good) vs large interface with thin implementation (bad)\r\n- **Ease of correct use** vs **ease of misuse**\r\n\r\nDiscuss trade-offs in prose, not tables. Highlight where designs diverge most.\r\n\r\n### 5. Synthesize\r\n\r\nOften the best design combines insights from multiple options. Ask:\r\n\r\n- \"Which design best fits your primary use case?\"\r\n- \"Any elements from other designs worth incorporating?\"\r\n\r\n## Evaluation Criteria\r\n\r\nFrom \"A Philosophy of Software Design\":\r\n\r\n**Interface simplicity**: Fewer methods, simpler params = easier to learn and use correctly.\r\n\r\n**General-purpose**: Can handle future use cases without changes. But beware over-generalization.\r\n\r\n**Implementation efficiency**: Does interface shape allow efficient implementation? Or force awkward internals?\r\n\r\n**Depth**: Small interface hiding significant complexity = deep module (good). Large interface with thin implementation = shallow module (avoid).\r\n\r\n## Anti-Patterns\r\n\r\n- Don't let sub-agents produce similar designs - enforce radical difference\r\n- Don't skip comparison - the value is in contrast\r\n- Don't implement - this is purely about interface shape\r\n- Don't evaluate based on implementation effort\r\n","# Design an Interface\r\n\r\nBased on \"Design It Twice\" from \"A Philosophy of Software Design\": your first idea is unlikely to be the best. Generate multiple radically different designs, then compare.\r\n\r\n## Workflow\r\n\r\n### 1. Gather Requirements\r\n\r\nBefore designing, understand:\r\n\r\n- [ ] What problem does this module solve?\r\n- [ ] Who are the callers? (other modules, external users, tests)\r\n- [ ] What are the key operations?\r\n- [ ] Any constraints? (performance, compatibility, existing patterns)\r\n- [ ] What should be hidden inside vs exposed?\r\n\r\nAsk: \"What does this module need to do? Who will use it?\"\r\n\r\n### 2. Generate Designs (Parallel Sub-Agents)\r\n\r\nSpawn 3+ sub-agents simultaneously using Task tool. Each must produce a **radically different** approach.\r\n\r\n```\r\nPrompt template for each sub-agent:\r\n\r\nDesign an interface for: [module description]\r\n\r\nRequirements: [gathered requirements]\r\n\r\nConstraints for this design: [assign a different constraint to each agent]\r\n- Agent 1: \"Minimize method count - aim for 1-3 methods max\"\r\n- Agent 2: \"Maximize flexibility - support many use cases\"\r\n- Agent 3: \"Optimize for the most common case\"\r\n- Agent 4: \"Take inspiration from [specific paradigm\u002Flibrary]\"\r\n\r\nOutput format:\r\n1. Interface signature (types\u002Fmethods)\r\n2. Usage example (how caller uses it)\r\n3. What this design hides internally\r\n4. Trade-offs of this approach\r\n```\r\n\r\n### 3. Present Designs\r\n\r\nShow each design with:\r\n\r\n1. **Interface signature** - types, methods, params\r\n2. **Usage examples** - how callers actually use it in practice\r\n3. **What it hides** - complexity kept internal\r\n\r\nPresent designs sequentially so user can absorb each approach before comparison.\r\n\r\n### 4. Compare Designs\r\n\r\nAfter showing all designs, compare them on:\r\n\r\n- **Interface simplicity**: fewer methods, simpler params\r\n- **General-purpose vs specialized**: flexibility vs focus\r\n- **Implementation efficiency**: does shape allow efficient internals?\r\n- **Depth**: small interface hiding significant complexity (good) vs large interface with thin implementation (bad)\r\n- **Ease of correct use** vs **ease of misuse**\r\n\r\nDiscuss trade-offs in prose, not tables. Highlight where designs diverge most.\r\n\r\n### 5. Synthesize\r\n\r\nOften the best design combines insights from multiple options. Ask:\r\n\r\n- \"Which design best fits your primary use case?\"\r\n- \"Any elements from other designs worth incorporating?\"\r\n\r\n## Evaluation Criteria\r\n\r\nFrom \"A Philosophy of Software Design\":\r\n\r\n**Interface simplicity**: Fewer methods, simpler params = easier to learn and use correctly.\r\n\r\n**General-purpose**: Can handle future use cases without changes. But beware over-generalization.\r\n\r\n**Implementation efficiency**: Does interface shape allow efficient implementation? Or force awkward internals?\r\n\r\n**Depth**: Small interface hiding significant complexity = deep module (good). Large interface with thin implementation = shallow module (avoid).\r\n\r\n## Anti-Patterns\r\n\r\n- Don't let sub-agents produce similar designs - enforce radical difference\r\n- Don't skip comparison - the value is in contrast\r\n- Don't implement - this is purely about interface shape\r\n- Don't evaluate based on implementation effort\r\n",{"name":5,"description":7},"main","7623da0074c7f2756326dd104a40d1b0861a7edf",".agents\u002Fskills\u002Fdesign-an-interface","https:\u002F\u002Fgithub.com\u002FDiffusity\u002FrepoSphere_java_backend","https:\u002F\u002Fgithub.com\u002FDiffusity","Member @gdg-da | @ossdaiict ","2026-08-18 17:58:04",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Diffusity\u002FrepoSphere_java_backend --skill design-an-interface",{"tool":37,"command":38},"bunx","bunx skills add Diffusity\u002FrepoSphere_java_backend --skill design-an-interface",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Diffusity\u002FrepoSphere_java_backend --skill design-an-interface","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDiffusity\u002FrepoSphere_java_backend\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdesign-an-interface\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"agents\u002Fopenai.yaml","REFERENCE","参考文档",113,"https:\u002F\u002Fgithub.com\u002FDiffusity\u002FrepoSphere_java_backend\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdesign-an-interface\u002Fagents\u002Fopenai.yaml",[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7ASXG7ZJ4SX5JDCYSQFWBNG","writing-shape","Writing, exploit — shape raw material into an article, paragraph by paragraph.","https:\u002F\u002Fgithub.com\u002FDiffusity\u002FrepoSphere_java_backend\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-shape\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7ASXCE1RQCW502FDAJZ7J3X","writing-great-skills","Reference for writing and editing skills well — the vocabulary and principles that make a skill predictable.","https:\u002F\u002Fgithub.com\u002FDiffusity\u002FrepoSphere_java_backend\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-great-skills\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7ASXA5NMS4ZEBCTWX29RNZ8","writing-fragments","Writing, explore — mine raw fragments, no structure yet.","https:\u002F\u002Fgithub.com\u002FDiffusity\u002FrepoSphere_java_backend\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-fragments\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7ASX7AM9T3DAJ6A0A6GYTFZ","writing-beats","Writing, exploit — assemble raw material into a journey of beats, grounding each term before a beat leans on it.","https:\u002F\u002Fgithub.com\u002FDiffusity\u002FrepoSphere_java_backend\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-beats\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"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},"01M7ASX2F6FY5EW9SHSV5X2DHC","wizard","Generate an interactive bash wizard that walks a human through a manual procedure — third-party setup, a one-off migration, an A→B state transition — opening URLs, capturing values, confirming each step, and writing .env files and GitHub Actions secrets.","https:\u002F\u002Fgithub.com\u002FDiffusity\u002FrepoSphere_java_backend\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwizard\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},"01M7ASWY2DYFMW5PK6X6YWCC90","wayfinder","Plan a huge chunk of work — more than one agent session can hold — as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.","https:\u002F\u002Fgithub.com\u002FDiffusity\u002FrepoSphere_java_backend\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwayfinder\u002FSKILL.md",[],[]]