[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CNTKD0SFT7F2HVWT20Q2ZX":3,"skill-same:01M6CNTKD0SFT7F2HVWT20Q2ZX":52},{"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":26,"linkOnly":27,"markdownContent":28,"markdownBody":29,"frontMatter":30,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":37,"install":38,"resources":51},"01M6CNTKD0SFT7F2HVWT20Q2ZX","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\".","pi-ohm\u002Fpi-ohm","pi-ohm","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F262023816?v=4","01M6CNTCE7T5BD4AE48NFEWH81","01M6CNTCJ83RRVSF9QX0EDR06G",2,"MIT","https:\u002F\u002Fgithub.com\u002Fpi-ohm\u002Fpi-ohm\u002Fblob\u002Fdev\u002F.agents\u002Fskills\u002Fdesign-an-interface\u002FSKILL.md",[],[18,19,20,21,22,23,24,25],"design","design an interface","generate","api","explore","parallel","user","use","2026-11-10 10:12:30",false,"---\nname: design-an-interface\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\".\n---\n\n# Design an Interface\n\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.\n\n## Workflow\n\n### 1. Gather Requirements\n\nBefore designing, understand:\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 Task tool. Each must produce a **radically different** approach.\n\n```\nPrompt template for each sub-agent:\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 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 user can absorb each approach before comparison.\n\n### 4. Compare Designs\n\nAfter showing all designs, compare them on:\n\n- **Interface simplicity**: fewer methods, simpler params\n- **General-purpose vs specialized**: flexibility vs focus\n- **Implementation efficiency**: does 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\n**General-purpose**: Can handle future use cases without changes. But beware over-generalization.\n\n**Implementation efficiency**: Does interface shape allow efficient implementation? Or force awkward internals?\n\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","# Design an Interface\n\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.\n\n## Workflow\n\n### 1. Gather Requirements\n\nBefore designing, understand:\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 Task tool. Each must produce a **radically different** approach.\n\n```\nPrompt template for each sub-agent:\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 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 user can absorb each approach before comparison.\n\n### 4. Compare Designs\n\nAfter showing all designs, compare them on:\n\n- **Interface simplicity**: fewer methods, simpler params\n- **General-purpose vs specialized**: flexibility vs focus\n- **Implementation efficiency**: does 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\n**General-purpose**: Can handle future use cases without changes. But beware over-generalization.\n\n**Implementation efficiency**: Does interface shape allow efficient implementation? Or force awkward internals?\n\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",{"name":5,"description":7},"dev","ed016badd38d092bc11a87accdf64e60631337c2",".agents\u002Fskills\u002Fdesign-an-interface",1,"https:\u002F\u002Fgithub.com\u002Fpi-ohm\u002Fpi-ohm","https:\u002F\u002Fgithub.com\u002Fpi-ohm","2026-06-24 00:53:12",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add pi-ohm\u002Fpi-ohm --skill design-an-interface",{"tool":44,"command":45},"bunx","bunx skills add pi-ohm\u002Fpi-ohm --skill design-an-interface",{"tool":47,"command":48},"pnpm","pnpm dlx skills add pi-ohm\u002Fpi-ohm --skill design-an-interface","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpi-ohm\u002Fpi-ohm\u002Fblob\u002Fdev\u002F.agents\u002Fskills\u002Fdesign-an-interface\u002FSKILL.md",true,[],[53,75,87,97,113,123],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":26},"01M6CNV1BTR42BQ76RDEWJA7EC","tuistory","Playwright for terminal apps. Like tmux but designed for agents — virtual terminals you can type into, press keys, wait for text, take snapshots, and screenshot as images. tuistory has **2 modes**:\n\n- **CLI** (`tuistory` command) — shell-based. Launch sessions, type, press keys, snapshot, screenshot.\n  Runs a background daemon that persists sessions across commands. Install globally or use `npx`\u002F`bunx`.\n  **You MUST run `tuistory --help` before using the CLI** to see the latest commands and options.\n- **JS\u002FTS API** (`import { launchTerminal } from 'tuistory'`) — programmatic. Use in vitest\u002Fbun:test to write Playwright-style tests for CLIs and TUIs with inline snapshots.\n\nUse tuistory when you need to:\n- Write e2e tests for CLI\u002FTUI apps (vitest, bun:test) with inline snapshots\n- Automate terminal interactions (launch a REPL, debugger, or TUI and drive it)\n- Screenshot terminal as images to send to users (Discord bots, agent UIs like kimaki\u002Fopenclaw)\n- Reproduce bugs in interactive CLIs by scripting the exact steps\n- Explore TUI apps progressively with observe-act-observe loops","https:\u002F\u002Fgithub.com\u002Fpi-ohm\u002Fpi-ohm\u002Fblob\u002Fdev\u002F.pi\u002Fskills\u002Ftuistory\u002FSKILL.md",[],[55,22,60,61,62,63,64,65,21,66,67,68,69,70,25,71,72,73,41,74],"cli","discord","playwright","test","sessions","e2e","vitest","wait for","text","virtual","interactive","snapshots","observe","images","bots",{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":26},"01M6CNTYZBGHNGECR0M0YE4YJN","better-result","Adopt better-result in an existing TypeScript codebase. Use when replacing try\u002Fcatch, Promise rejection handling, null sentinels, or thrown domain exceptions with typed Result workflows.","https:\u002F\u002Fgithub.com\u002Fpi-ohm\u002Fpi-ohm\u002Fblob\u002Fdev\u002F.pi\u002Fskills\u002Fbetter-result\u002FSKILL.md",[],[82,83,84,85,25,86],"better result","references","promise","workflows","typescript",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":26},"01M6CNTTFMTT1JW4VEBH7JFBXE","tsdown","Bundle TypeScript and JavaScript libraries with blazing-fast speed powered by Rolldown. Use when building libraries, generating type declarations, bundling for multiple formats, or migrating from tsup.","https:\u002F\u002Fgithub.com\u002Fpi-ohm\u002Fpi-ohm\u002Fblob\u002Fdev\u002F.agents\u002Fskills\u002Ftsdown\u002FSKILL.md",[],[89,86,94,95,96,25],"javascript","libraries","fast",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":26},"01M6CNTRH6X4AXAJXEN1XRFXDW","improve-codebase-architecture","Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.","https:\u002F\u002Fgithub.com\u002Fpi-ohm\u002Fpi-ohm\u002Fblob\u002Fdev\u002F.agents\u002Fskills\u002Fimprove-codebase-architecture\u002FSKILL.md",[],[104,105,106,107,108,109,110,111,112],"improve","architecture","improve codebase architecture","pick","report","html report","html","grill","scan",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":26},"01M6CNTPT5C2HH0TTD5TATM08B","grilling","Interview the user relentlessly about a plan or design. Use when the user wants to stress-test a plan before building, or uses any 'grill' trigger phrases.","https:\u002F\u002Fgithub.com\u002Fpi-ohm\u002Fpi-ohm\u002Fblob\u002Fdev\u002F.agents\u002Fskills\u002Fgrilling\u002FSKILL.md",[],[115,63,120,121,24,122,25,111,18],"plan","before building","interview",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":26},"01M6CNTNC91VSQZZ9950TKAV2C","grill-me","A relentless interview to sharpen a plan or design.","https:\u002F\u002Fgithub.com\u002Fpi-ohm\u002Fpi-ohm\u002Fblob\u002Fdev\u002F.agents\u002Fskills\u002Fgrill-me\u002FSKILL.md",[],[130,111,120,18,122,131],"grill me","sharpen"]