[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ES4Z9E0W4DBSB0QNG3AXE4":3,"skill-same:01M7ES4Z9E0W4DBSB0QNG3AXE4":48},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M7ES4Z9E0W4DBSB0QNG3AXE4","design",null,"Designs the interface of a new class, module, API, service or feature before its code is written. Lists the knowledge the module hides, designs three competing interfaces in parallel, tests each on a reader who has never seen the code, compares the caller code each needs, and writes interface comments first. Use whenever the user asks to design, sketch, shape, structure or plan a class, module, API, interface or service, asks which methods or signatures something should have, wants to compare designs, or says \"design it twice\", even when they only describe what the code must do. Typical requests include \"design the class interface\", \"what methods should this class have\", \"how should I structure this module\", \"sketch an API for\", \"design X before I write it\", or any description of a class, module or API that does not exist yet.","iaserrat\u002Fsoftware-design","iaserrat","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1466476?v=4","01M7ES4AAZFN4N0FW0VTVRXMZE","ismael","01M7ES4ABKBNJ0V0X4BD75GKZR",2,"MIT","https:\u002F\u002Fgithub.com\u002Fiaserrat\u002Fsoftware-design\u002Fblob\u002Fmain\u002Fskills\u002Fdesign\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: design\ndescription: Designs the interface of a new class, module, API, service or feature before its code is written. Lists the knowledge the module hides, designs three competing interfaces in parallel, tests each on a reader who has never seen the code, compares the caller code each needs, and writes interface comments first. Use whenever the user asks to design, sketch, shape, structure or plan a class, module, API, interface or service, asks which methods or signatures something should have, wants to compare designs, or says \"design it twice\", even when they only describe what the code must do. Typical requests include \"design the class interface\", \"what methods should this class have\", \"how should I structure this module\", \"sketch an API for\", \"design X before I write it\", or any description of a class, module or API that does not exist yet.\nlicense: MIT\ncompatibility: Claude Code, Codex or pi with the software-design plugin, whose MCP server is built from source with Rust (rustup).\nallowed-tools: Read Grep Glob Agent AskUserQuestion mcp__plugin_software-design_software-design__interface mcp__plugin_software-design_software-design__check\n---\n\n# Design a module\n\nThe target is the deepest module that covers today's needs: the most functionality behind the smallest interface, with an interface that is not tied to the one caller that exists today. The rule table, with every principle, red flag and question, is `rules.json` at the plugin root.\n\n**Tools.** The plugin's `software-design` MCP server provides two tools: `check` returns findings as JSON; `interface` returns signatures and interface comments without bodies. In Claude Code their full names are `mcp__plugin_software-design_software-design__check` and `mcp__plugin_software-design_software-design__interface`. The plugin root is two directories above this skill. Pass `directory`, the repository's absolute path, on every call: outside Claude Code the server does not run in the project. If neither tool is available, run the global installer at `https:\u002F\u002Fgithub.com\u002Fiaserrat\u002Fsoftware-design` to build the runtime, then start a new session. From an installed plugin directory, `sh scripts\u002Fsoftware-design install` also builds it synchronously (log: `~\u002F.software-design\u002Fbuild.log`, needs Rust and a C compiler).\n\n**Agents.** This skill delegates to the plugin's agents, such as `software-design:flag-verifier`. Each agent's instructions are in the plugin root's `agents` directory, in the Markdown file named after the agent. Where those agent types do not exist, as outside Claude Code, give each task to a general subagent together with that file's instructions. With no subagents at all, follow the instructions yourself, one task at a time; for a cold read, look only at the `interface` tool's output before reading any implementation, and say in the report that the read was not independent.\n\nCopy this checklist and tick it off as you go:\n\n```\n- [ ] 1. Use cases written as concrete calls; existing modules checked\n- [ ] 2. Knowledge listed and assigned to one module each\n- [ ] 3. Three alternatives designed in parallel\n- [ ] 4. Each alternative cold-read\n- [ ] 5. Comparison table shown; user chose\n- [ ] 6. Interface comments written before code; none hard to describe\n```\n\nAlways run steps 3 and 4 with agents, whatever the size of the request; **Agents** above covers hosts without them. The value of this skill is the comparison between independent designs and the reader who has not seen them; a design written inline by one author has neither.\n\n## 1. Ground the design in the code\n\n- Read where the module will be used. Write down every **current use case** as a concrete call the code will make. Future use cases do not count: functionality covers today's needs only.\n- Look for an existing module that already owns this knowledge. Use the `interface` tool on candidates. Extending a module is often deeper than adding one: every new module, class, parameter and file is something readers must learn, so it has to remove more complexity than it adds.\n- Read the repository's conventions before designing: naming, error style, file layout. A design that breaks conventions costs more than it saves.\n- Ask the user only what the code cannot answer, one question at a time, with your recommended answer first.\n\n## 2. List the knowledge, then assign it\n\nList each design decision the work involves: data formats, protocols, policies, invariants, data structures, error cases. Assign each one to exactly one module. Then check the assignment:\n\n- **Information leakage:** a decision assigned to two modules. Merge them, or pull the decision into one.\n- **Temporal decomposition:** modules that follow the order operations happen in (\"read\", then \"parse\", then \"write\") while sharing knowledge. Split by knowledge instead.\n- **Special-general mixture:** a general mechanism holding code for one use. Move that code up to the use.\n\n## 3. Design it twice\n\nSpawn three `software-design:design-alternative` agents in parallel. Do this for small classes too: a second design is worth sketching even when the first one looks obviously right, because the comparison is what shows the first one's weaknesses. The agents run in parallel, so the cost is a short wait. Give each the use cases, the knowledge list, the constraints and a different **stance**. Choose stances that differ fundamentally for this problem. Draw them from these axes:\n\n- granularity of operations: per item, per range, or per document (for a text editor's buffer: per character, per line, or per range of text);\n- general versus special purpose;\n- one module versus two: together when the parts share information or a combined interface is simpler, apart when each can be understood alone;\n- where errors go: defined out of existence, masked inside, or aggregated in one handler.\n\n## 4. Test every interface on a cold reader\n\nFor each design, spawn a `software-design:cold-reader` agent, even when you believe the interface is clear: its author is the person least able to see what is missing. Pass it **only** that design's signatures and interface comments. The reader lists every question it cannot answer from the interface alone. Each such question is information a caller needs that the abstraction leaves out.\n\n## 5. Compare and recommend\n\nPresent one table:\n\n| Measure | Why it matters |\n|---|---|\n| Interface elements: methods, parameters, exceptions, configuration | The interface is the module's cost |\n| Caller code needed for all current use cases | Ease of use for today's needs |\n| Questions the cold reader could not answer | Gaps in the abstraction |\n| Methods that serve exactly one use case | Too special-purpose |\n| Errors every caller must handle | Exceptions widen interfaces |\n| Knowledge that appears in more than one module | Information leakage |\n\nRecommend one design. When the measures are close, prefer the design whose methods each serve several use cases: one method per caller action (a `backspace()` beside a `delete()`) puts the caller's knowledge into the module and multiplies its interface, while a general operation such as deleting a range serves every action. If several are weak, combine their strengths, or run another round driven by the weaknesses you found. Ask the user to choose with AskUserQuestion, your recommendation listed first.\n\n## 6. Write the comments first\n\nFor the chosen design, write the interface comment of each module and public method, then the signatures, and only then the bodies. If a comment is hard to write or comes out long, the design has a problem: flag **Hard to Describe** and revisit it before writing code. Follow the repository's comment conventions for length and format; the comment's job is what the code cannot say: units, boundaries, invariants, errors, and why.\n\n## Where these principles stop\n\n- Do not hide information callers need. Hiding it makes a false abstraction.\n- Pulling complexity down pays only when it is related to the module's job, simplifies callers, and simplifies the interface.\n- Fewer lines is not the goal. Fewer things a caller must know is.\n- A long method with a simple signature is fine; do not split code only to make it short.\n","# Design a module\n\nThe target is the deepest module that covers today's needs: the most functionality behind the smallest interface, with an interface that is not tied to the one caller that exists today. The rule table, with every principle, red flag and question, is `rules.json` at the plugin root.\n\n**Tools.** The plugin's `software-design` MCP server provides two tools: `check` returns findings as JSON; `interface` returns signatures and interface comments without bodies. In Claude Code their full names are `mcp__plugin_software-design_software-design__check` and `mcp__plugin_software-design_software-design__interface`. The plugin root is two directories above this skill. Pass `directory`, the repository's absolute path, on every call: outside Claude Code the server does not run in the project. If neither tool is available, run the global installer at `https:\u002F\u002Fgithub.com\u002Fiaserrat\u002Fsoftware-design` to build the runtime, then start a new session. From an installed plugin directory, `sh scripts\u002Fsoftware-design install` also builds it synchronously (log: `~\u002F.software-design\u002Fbuild.log`, needs Rust and a C compiler).\n\n**Agents.** This skill delegates to the plugin's agents, such as `software-design:flag-verifier`. Each agent's instructions are in the plugin root's `agents` directory, in the Markdown file named after the agent. Where those agent types do not exist, as outside Claude Code, give each task to a general subagent together with that file's instructions. With no subagents at all, follow the instructions yourself, one task at a time; for a cold read, look only at the `interface` tool's output before reading any implementation, and say in the report that the read was not independent.\n\nCopy this checklist and tick it off as you go:\n\n```\n- [ ] 1. Use cases written as concrete calls; existing modules checked\n- [ ] 2. Knowledge listed and assigned to one module each\n- [ ] 3. Three alternatives designed in parallel\n- [ ] 4. Each alternative cold-read\n- [ ] 5. Comparison table shown; user chose\n- [ ] 6. Interface comments written before code; none hard to describe\n```\n\nAlways run steps 3 and 4 with agents, whatever the size of the request; **Agents** above covers hosts without them. The value of this skill is the comparison between independent designs and the reader who has not seen them; a design written inline by one author has neither.\n\n## 1. Ground the design in the code\n\n- Read where the module will be used. Write down every **current use case** as a concrete call the code will make. Future use cases do not count: functionality covers today's needs only.\n- Look for an existing module that already owns this knowledge. Use the `interface` tool on candidates. Extending a module is often deeper than adding one: every new module, class, parameter and file is something readers must learn, so it has to remove more complexity than it adds.\n- Read the repository's conventions before designing: naming, error style, file layout. A design that breaks conventions costs more than it saves.\n- Ask the user only what the code cannot answer, one question at a time, with your recommended answer first.\n\n## 2. List the knowledge, then assign it\n\nList each design decision the work involves: data formats, protocols, policies, invariants, data structures, error cases. Assign each one to exactly one module. Then check the assignment:\n\n- **Information leakage:** a decision assigned to two modules. Merge them, or pull the decision into one.\n- **Temporal decomposition:** modules that follow the order operations happen in (\"read\", then \"parse\", then \"write\") while sharing knowledge. Split by knowledge instead.\n- **Special-general mixture:** a general mechanism holding code for one use. Move that code up to the use.\n\n## 3. Design it twice\n\nSpawn three `software-design:design-alternative` agents in parallel. Do this for small classes too: a second design is worth sketching even when the first one looks obviously right, because the comparison is what shows the first one's weaknesses. The agents run in parallel, so the cost is a short wait. Give each the use cases, the knowledge list, the constraints and a different **stance**. Choose stances that differ fundamentally for this problem. Draw them from these axes:\n\n- granularity of operations: per item, per range, or per document (for a text editor's buffer: per character, per line, or per range of text);\n- general versus special purpose;\n- one module versus two: together when the parts share information or a combined interface is simpler, apart when each can be understood alone;\n- where errors go: defined out of existence, masked inside, or aggregated in one handler.\n\n## 4. Test every interface on a cold reader\n\nFor each design, spawn a `software-design:cold-reader` agent, even when you believe the interface is clear: its author is the person least able to see what is missing. Pass it **only** that design's signatures and interface comments. The reader lists every question it cannot answer from the interface alone. Each such question is information a caller needs that the abstraction leaves out.\n\n## 5. Compare and recommend\n\nPresent one table:\n\n| Measure | Why it matters |\n|---|---|\n| Interface elements: methods, parameters, exceptions, configuration | The interface is the module's cost |\n| Caller code needed for all current use cases | Ease of use for today's needs |\n| Questions the cold reader could not answer | Gaps in the abstraction |\n| Methods that serve exactly one use case | Too special-purpose |\n| Errors every caller must handle | Exceptions widen interfaces |\n| Knowledge that appears in more than one module | Information leakage |\n\nRecommend one design. When the measures are close, prefer the design whose methods each serve several use cases: one method per caller action (a `backspace()` beside a `delete()`) puts the caller's knowledge into the module and multiplies its interface, while a general operation such as deleting a range serves every action. If several are weak, combine their strengths, or run another round driven by the weaknesses you found. Ask the user to choose with AskUserQuestion, your recommendation listed first.\n\n## 6. Write the comments first\n\nFor the chosen design, write the interface comment of each module and public method, then the signatures, and only then the bodies. If a comment is hard to write or comes out long, the design has a problem: flag **Hard to Describe** and revisit it before writing code. Follow the repository's comment conventions for length and format; the comment's job is what the code cannot say: units, boundaries, invariants, errors, and why.\n\n## Where these principles stop\n\n- Do not hide information callers need. Hiding it makes a false abstraction.\n- Pulling complexity down pays only when it is related to the module's job, simplifies callers, and simplifies the interface.\n- Fewer lines is not the goal. Fewer things a caller must know is.\n- A long method with a simple signature is fine; do not split code only to make it short.\n",{"name":5,"license":15,"description":7,"allowed-tools":24,"compatibility":25},"Read Grep Glob Agent AskUserQuestion mcp__plugin_software-design_software-design__interface mcp__plugin_software-design_software-design__check","Claude Code, Codex or pi with the software-design plugin, whose MCP server is built from source with Rust (rustup).","main","a8f011c9435defbcd56579e692b2622e054fd949","skills\u002Fdesign",0,"https:\u002F\u002Fgithub.com\u002Fiaserrat\u002Fsoftware-design","https:\u002F\u002Fiaserrat.github.io\u002Fsoftware-design\u002F","https:\u002F\u002Fgithub.com\u002Fiaserrat","2026-10-16 06:36:47",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add iaserrat\u002Fsoftware-design --skill design",{"tool":40,"command":41},"bunx","bunx skills add iaserrat\u002Fsoftware-design --skill design",{"tool":43,"command":44},"pnpm","pnpm dlx skills add iaserrat\u002Fsoftware-design --skill design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fiaserrat\u002Fsoftware-design\u002Fblob\u002Fmain\u002Fskills\u002Fdesign\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7ES5JTTF604G9E265WCBH4Z","review","Reviews code for design red flags, such as shallow modules, pass-through methods, information leakage, repeated code, comments that repeat code, vague names and ignored errors, and tests whether public interfaces can be used without reading their implementation. Ranks findings by how often the code changes and verifies each against the rule's own exemptions. Use when the user asks to review a diff, branch, pull request, file or directory for design quality, complexity or maintainability, asks whether code is well designed, or asks whether an API, class or module is clear or usable without reading its code.","https:\u002F\u002Fgithub.com\u002Fiaserrat\u002Fsoftware-design\u002Fblob\u002Fmain\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7ES5DPF9SW53SSYFDHXVQS4","perf","Make code faster without making it more complex. Measures before changing anything, looks for a fundamental fix first, and otherwise redesigns around the critical path with special cases moved off it. Use when the user asks to optimise, speed up, or reduce the latency, allocations or memory of code, or to review a change made for performance. Use it even when the user names a specific micro-optimisation, because measuring comes first.","https:\u002F\u002Fgithub.com\u002Fiaserrat\u002Fsoftware-design\u002Fblob\u002Fmain\u002Fskills\u002Fperf\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7ES57J7EY0EHG0JCWC8X14M","document","Write or improve the interface and implementation comments of a module. Comments carry what the code cannot say (units, boundaries, invariants, errors, reasons) and never repeat the code. A comment that is hard to write is reported as a design problem. Use when the user asks to document, comment or explain a module, class, function or API, to fix poor or outdated comments, or when the software-design hooks report comments that repeat the code. Use it even when the user only asks to add comments or docstrings.","https:\u002F\u002Fgithub.com\u002Fiaserrat\u002Fsoftware-design\u002Fblob\u002Fmain\u002Fskills\u002Fdocument\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7ES4QYA6KW2T309B4NJVWVK","change","Plan a change to existing code strategically. Before editing, works out what the code would look like had it been designed with this change in mind, compares that with the smallest patch, and lets the user choose. After editing, checks the diff for red flags and stale comments. Use when the user asks to add a feature to, fix, or extend existing code and the change adds a parameter, flag, special case or exception, touches a module's interface, or spreads across several files. Use it even when the request sounds like a small patch, because small patches are how complexity accumulates.","https:\u002F\u002Fgithub.com\u002Fiaserrat\u002Fsoftware-design\u002Fblob\u002Fmain\u002Fskills\u002Fchange\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7ES4HJGCDAN3SHZTST77KXX","audit","Audit a whole repository or a large directory for design complexity. Ranks red flags by how often each file changes, verifies candidates against each rule's exemptions in parallel, has a cold reader judge the interfaces of the most-changed modules, and returns the investments worth making first. Use when the user asks for an audit, a design or complexity review of an entire codebase or package, a hotspot map, or where design work would pay off most. Use it even when the user only asks where the code is worst or what to clean up first.","https:\u002F\u002Fgithub.com\u002Fiaserrat\u002Fsoftware-design\u002Fblob\u002Fmain\u002Fskills\u002Faudit\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7ES4EN817WN76HWHQFH994T","release","Bump the version in every manifest, update the changelog, tag main and publish a GitHub release marked latest.","https:\u002F\u002Fgithub.com\u002Fiaserrat\u002Fsoftware-design\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frelease\u002FSKILL.md",[],[]]