[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71NQSJ42HHCW5YQRH5MWQP2":3,"skill-same:01M71NQSJ42HHCW5YQRH5MWQP2":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":13,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":48,"install":49,"resources":62},"01M71NQSJ42HHCW5YQRH5MWQP2","design-an-interface",null,"Use when the user wants multiple radically different interface designs for a module, generated by parallel sub-agents. Triggers include \"design an API\", \"design it twice\", \"explore interface options\", \"compare module shapes\".","max-kharena\u002Fnous","max-kharena","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F249811097?v=4","01M71NQQ2DRKPEV4AF9J318N31","01M71NQQ303XV5QX5DHCZKM41V",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmax-kharena\u002Fnous\u002Fblob\u002Fmain\u002Fskills\u002Fdesign-an-interface\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"interface","design an interface","design","user","it","options","compare","api","when","use","generated","module","triggers","explore","for","planning","parallel","design it","2026-11-10 10:56:23",false,"---\nname: design-an-interface\ndescription: Use when the user wants multiple radically different interface designs for a module, generated by parallel sub-agents. Triggers include \"design an API\", \"design it twice\", \"explore interface options\", \"compare module shapes\".\nversion: 0.1.0\ntype: planning\nrisk: low\n---\n\n# Design an Interface\n\nBased on **\"Design It Twice\"** from Ousterhout's *A Philosophy of Software Design*: your first idea is unlikely to be the best. Generate multiple radically different designs in parallel, then compare.\n\n## Workflow\n\n### 1. Gather requirements\n\nBefore designing:\n\n- [ ] What problem does this module solve?\n- [ ] Who are the callers? (other modules, external users, tests)\n- [ ] What are the key operations?\n- [ ] Any constraints? (performance, compatibility, existing patterns)\n- [ ] What should be hidden inside vs exposed?\n\nAsk: \"What does this module need to do? Who will use it?\"\n\n### 2. Generate designs (parallel sub-agents)\n\nSpawn 3+ sub-agents simultaneously using the host's parallel primitive (Task tool \u002F `dispatching-parallel-agents`). Each must produce a **radically different** approach.\n\nPrompt template per sub-agent:\n\n```\nDesign an interface for: [module description]\n\nRequirements: [gathered requirements]\n\nConstraints for this design: [assign a different constraint to each agent]\n- Agent 1: \"Minimize method count — aim for 1–3 methods max\"\n- Agent 2: \"Maximize flexibility — support many use cases\"\n- Agent 3: \"Optimize for the most common case\"\n- Agent 4: \"Take inspiration from [specific paradigm\u002Flibrary]\"\n\nOutput format:\n1. Interface signature (types\u002Fmethods)\n2. Usage example (how a caller uses it)\n3. What this design hides internally\n4. Trade-offs of this approach\n```\n\n### 3. Present designs\n\nShow each design with:\n\n1. **Interface signature** — types, methods, params\n2. **Usage examples** — how callers actually use it in practice\n3. **What it hides** — complexity kept internal\n\nPresent designs sequentially so the user can absorb each before comparison.\n\n### 4. Compare\n\nCompare on:\n\n- **Interface simplicity** — fewer methods, simpler params\n- **General-purpose vs specialized** — flexibility vs focus\n- **Implementation efficiency** — does the shape allow efficient internals?\n- **Depth** — small interface hiding significant complexity (good) vs large interface with thin implementation (bad)\n- **Ease of correct use vs ease of misuse**\n\nDiscuss trade-offs in prose, not tables. Highlight where designs diverge most.\n\n### 5. Synthesize\n\nOften the best design combines insights from multiple options. Ask:\n\n- \"Which design best fits your primary use case?\"\n- \"Any elements from other designs worth incorporating?\"\n\n## Evaluation criteria\n\nFrom *A Philosophy of Software Design*:\n\n- **Interface simplicity** — fewer methods, simpler params = easier to learn and use correctly.\n- **General-purpose** — can handle future use cases without changes. But beware over-generalization.\n- **Implementation efficiency** — does the interface shape allow efficient implementation? Or force awkward internals?\n- **Depth** — small interface hiding significant complexity = deep module (good). Large interface with thin implementation = shallow module (avoid).\n\n## Anti-patterns\n\n- Don't let sub-agents produce similar designs — **enforce radical difference**.\n- Don't skip comparison — the value is in contrast.\n- Don't implement — this is purely about interface shape.\n- Don't evaluate based on implementation effort.\n\n## Pairing\n\nUse after `nous:be-plan`, `nous:ui-plan`, or `nous:ultraplan` when one of the planned modules deserves \"design it twice\" treatment. Pairs with `improve-codebase-architecture` when the chosen design is a deepened module.\n\n## Related Skills\n\nThis is the divergent-exploration lane (multiple radically different shapes).\n\n- `frontend-design` — applied direction for a single committed UI design. Use after `design-an-interface` has chosen a winner, or when there is no need for multiple alternatives.\n- `frontend-design-skill-ultra` — pixel-perfect Refactoring UI rule system. Use after the interface shape is decided and the goal is premium visual polish.\n\n`design-an-interface` runs *before* committing to a single shape; `frontend-design*` runs *after*.\n","# Design an Interface\n\nBased on **\"Design It Twice\"** from Ousterhout's *A Philosophy of Software Design*: your first idea is unlikely to be the best. Generate multiple radically different designs in parallel, then compare.\n\n## Workflow\n\n### 1. Gather requirements\n\nBefore designing:\n\n- [ ] What problem does this module solve?\n- [ ] Who are the callers? (other modules, external users, tests)\n- [ ] What are the key operations?\n- [ ] Any constraints? (performance, compatibility, existing patterns)\n- [ ] What should be hidden inside vs exposed?\n\nAsk: \"What does this module need to do? Who will use it?\"\n\n### 2. Generate designs (parallel sub-agents)\n\nSpawn 3+ sub-agents simultaneously using the host's parallel primitive (Task tool \u002F `dispatching-parallel-agents`). Each must produce a **radically different** approach.\n\nPrompt template per sub-agent:\n\n```\nDesign an interface for: [module description]\n\nRequirements: [gathered requirements]\n\nConstraints for this design: [assign a different constraint to each agent]\n- Agent 1: \"Minimize method count — aim for 1–3 methods max\"\n- Agent 2: \"Maximize flexibility — support many use cases\"\n- Agent 3: \"Optimize for the most common case\"\n- Agent 4: \"Take inspiration from [specific paradigm\u002Flibrary]\"\n\nOutput format:\n1. Interface signature (types\u002Fmethods)\n2. Usage example (how a caller uses it)\n3. What this design hides internally\n4. Trade-offs of this approach\n```\n\n### 3. Present designs\n\nShow each design with:\n\n1. **Interface signature** — types, methods, params\n2. **Usage examples** — how callers actually use it in practice\n3. **What it hides** — complexity kept internal\n\nPresent designs sequentially so the user can absorb each before comparison.\n\n### 4. Compare\n\nCompare on:\n\n- **Interface simplicity** — fewer methods, simpler params\n- **General-purpose vs specialized** — flexibility vs focus\n- **Implementation efficiency** — does the shape allow efficient internals?\n- **Depth** — small interface hiding significant complexity (good) vs large interface with thin implementation (bad)\n- **Ease of correct use vs ease of misuse**\n\nDiscuss trade-offs in prose, not tables. Highlight where designs diverge most.\n\n### 5. Synthesize\n\nOften the best design combines insights from multiple options. Ask:\n\n- \"Which design best fits your primary use case?\"\n- \"Any elements from other designs worth incorporating?\"\n\n## Evaluation criteria\n\nFrom *A Philosophy of Software Design*:\n\n- **Interface simplicity** — fewer methods, simpler params = easier to learn and use correctly.\n- **General-purpose** — can handle future use cases without changes. But beware over-generalization.\n- **Implementation efficiency** — does the interface shape allow efficient implementation? Or force awkward internals?\n- **Depth** — small interface hiding significant complexity = deep module (good). Large interface with thin implementation = shallow module (avoid).\n\n## Anti-patterns\n\n- Don't let sub-agents produce similar designs — **enforce radical difference**.\n- Don't skip comparison — the value is in contrast.\n- Don't implement — this is purely about interface shape.\n- Don't evaluate based on implementation effort.\n\n## Pairing\n\nUse after `nous:be-plan`, `nous:ui-plan`, or `nous:ultraplan` when one of the planned modules deserves \"design it twice\" treatment. Pairs with `improve-codebase-architecture` when the chosen design is a deepened module.\n\n## Related Skills\n\nThis is the divergent-exploration lane (multiple radically different shapes).\n\n- `frontend-design` — applied direction for a single committed UI design. Use after `design-an-interface` has chosen a winner, or when there is no need for multiple alternatives.\n- `frontend-design-skill-ultra` — pixel-perfect Refactoring UI rule system. Use after the interface shape is decided and the goal is premium visual polish.\n\n`design-an-interface` runs *before* committing to a single shape; `frontend-design*` runs *after*.\n",{"name":5,"risk":41,"type":33,"version":42,"description":7},"low","0.1.0","main","05ddbcce9e3471b880e9edc7c63e4bdd40359861","skills\u002Fdesign-an-interface","https:\u002F\u002Fgithub.com\u002Fmax-kharena\u002Fnous","https:\u002F\u002Fgithub.com\u002Fmax-kharena","2026-04-28 22:54:20",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add max-kharena\u002Fnous --skill design-an-interface",{"tool":55,"command":56},"bunx","bunx skills add max-kharena\u002Fnous --skill design-an-interface",{"tool":58,"command":59},"pnpm","pnpm dlx skills add max-kharena\u002Fnous --skill design-an-interface","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmax-kharena\u002Fnous\u002Fblob\u002Fmain\u002Fskills\u002Fdesign-an-interface\u002FSKILL.md",true,[],[64,85,102,117,139,157],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":36},"01M71NSZ170Z45TAP4CWY74YH3","write-a-skill","Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when the user wants to create, write, or build a new skill.","https:\u002F\u002Fgithub.com\u002Fmax-kharena\u002Fnous\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-a-skill\u002FSKILL.md",[],[71,72,73,74,75,76,77,78,21,79,80,81,82,27,26,83,84],"write a skill","write","a skill","create","structure","build","new skill","with","new agent","resources","progressive","new","progressive disclosure","Meta",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":36},"01M71NSX1D1C2MK3NJ42E1GQ47","verification-before-completion","Use when about to claim work is complete, fixed, passing, ready, merged, shippable, reviewed, or verified.","https:\u002F\u002Fgithub.com\u002Fmax-kharena\u002Fnous\u002Fblob\u002Fmain\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[],[92,93,27,26,94,95,96,97,98,99,100,101],"verification","verification before completion","verified","claim","complete","quality","about","high","work","ready",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":36},"01M71NSVRTWNA5RYBRRRBQ4830","using-nous","Use when a request needs NOUS command routing or personality-driven planning.","https:\u002F\u002Fgithub.com\u002Fmax-kharena\u002Fnous\u002Fblob\u002Fmain\u002Fskills\u002Fusing-nous\u002FSKILL.md",[],[109,110,111,26,27,112,113,33,114,115,116],"using nous","personality","driven","command routing","request","command","routing","router",{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":36},"01M71NST398KW57VNX72Z35MC2","using-git-worktrees","Use when NOUS execution needs isolated implementation branches, phase worktrees, parallel worktrees, or safe branch setup before executing a plan.","https:\u002F\u002Fgithub.com\u002Fmax-kharena\u002Fnous\u002Fblob\u002Fmain\u002Fskills\u002Fusing-git-worktrees\u002FSKILL.md",[],[124,125,126,127,128,129,130,131,132,99,133,134,26,27,135,136,137,138,34],"git","worktrees","git worktrees","using git worktrees","Using git","execution","branch setup","implementation","safe","plan","phase","parallel worktrees","setup","branches","branch",{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":36},"01M71NSRQ1VYJT15323W6HE1X1","ubiquitous-language","Use when the user wants to define domain terms, build a glossary, harden terminology, or extract a DDD-style ubiquitous language. Saves to UBIQUITOUS_LANGUAGE.md.","https:\u002F\u002Fgithub.com\u002Fmax-kharena\u002Fnous\u002Fblob\u002Fmain\u002Fskills\u002Fubiquitous-language\u002FSKILL.md",[],[146,147,148,149,76,150,151,152,27,21,153,154,155,26,156],"language","ubiquitous language","define","ddd","domain","style","terminology","extract","terms","harden","glossary",{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":36},"01M71NSPGTE0PY0YJ9HSDWB62B","triage-issue","Use when the user reports a bug and wants it investigated and filed as a durable GitHub issue with a TDD-based fix plan.","https:\u002F\u002Fgithub.com\u002Fmax-kharena\u002Fnous\u002Fblob\u002Fmain\u002Fskills\u002Ftriage-issue\u002FSKILL.md",[],[164,165,166,167,21,22,168,97,169,170,133,78,171,26,27,172,173],"issue","triage issue","triage","github issue","bug","tdd","github","reports","fix","as"]