[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72Y0R5357JWV7SAAECG63C3":3,"skill-same:01M72Y0R5357JWV7SAAECG63C3":50},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":43},"01M72Y0R5357JWV7SAAECG63C3","waterfall-design",null,"Generate a range of approaches for a feature — from incremental to structural — with adversarial review before presenting. Divergent phase of the waterfall flow.","lithammer\u002Fai","lithammer","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F177685?v=4","01M72XZ1CBM905458R0T7AGP87","Peter Lithammer","01M72XZ1CYWE22YVYQ43NJQZQB",0,"MIT","https:\u002F\u002Fgithub.com\u002Flithammer\u002Fai\u002Fblob\u002Fmain\u002Fskills\u002Fwaterfall\u002Fwaterfall-design\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: waterfall-design\ndescription: Generate a range of approaches for a feature — from incremental to structural — with adversarial review before presenting. Divergent phase of the waterfall flow.\ndisable-model-invocation: true\n---\n\n# Design\n\nGiven a feature request, deeply explore the codebase, critically evaluate\nthe existing structure, and generate a range of approaches — from\nincremental to structural. The challenger reviews the approaches before\nthey are presented to the user.\n\nThis is the divergent phase. Do not converge on a solution yet. The goal is\nto exhaust the option space so the user can make an informed choice.\n\nDetailed planning is the comfortable escape — it feels productive and\nsidesteps the harder strategic question of whether the structure is even\nright. That question belongs here, not in `waterfall-plan`. If you find\nyourself sketching the implementation, stop and go back to the option\nspace.\n\n## Step 1: Understand the feature\n\nRead the feature description provided by the user. If critical details are\nmissing, ask the user — but prefer answering questions yourself by\nexploring the codebase. Do not ask about things you can discover by\nreading code.\n\n## Step 2: Explore and evaluate\n\nExplore the codebase to understand:\n\n- Where the feature would live (existing modules, packages, directories).\n- What existing code it touches or depends on.\n- What patterns and conventions the codebase follows.\n- What constraints exist (APIs, data models, config, tests).\n\nSpend real effort here. A design built on assumptions about code you did\nnot read is worthless.\n\n**Do not just map the code — evaluate it.** As you explore, ask:\n\n- Is the existing structure the right foundation for this feature, or is\n  it working around a previous limitation?\n- Are there services, layers, or abstractions that exist for historical\n  reasons but no longer earn their complexity?\n- Would a different structure make this feature (and future work)\n  simpler?\n- What would you build if you were starting from scratch with today's\n  requirements? How far is the current code from that?\n\nThe existing code is not sacred. It was written by someone making their\nbest decision at the time, possibly under different constraints than you\nhave now.\n\n## Step 3: Identify refactoring opportunities\n\nInvoke the `waterfall-refactor` skill at the **strategic** level. Send it\nthe feature description and the areas of the codebase involved.\n\nThis surfaces structural opportunities — rewrites, merges, eliminations —\nthat could influence which approach to take. Feed the results into\napproach generation: if a refactor enables a cleaner design, it should\nappear as part of an approach, not as a footnote.\n\n## Step 4: Generate approaches\n\nGenerate a range of approaches. For each, describe:\n\n- The approach in 2-3 sentences.\n- Which files to create, modify, or remove.\n- Trade-offs: what it makes easy, what it makes hard, what risks it\n  carries.\n- Scope: rough sense of how much changes (small\u002Fmedium\u002Flarge).\n\nWhen naming approaches, identify the algorithmic class (graph traversal,\ndynamic programming, bipartite matching, etc.), pattern family (event\nsourcing, state machine, finite automaton, etc.), or domain-modeling\nconcept (aggregate, bounded context, anti-corruption layer, etc.) when\none applies. Domain-modeling concepts apply most when the codebase has\nrich domain logic, not CRUD or infrastructure glue. If an approach is\nbespoke for a problem class that has known solutions, justify the bespoke\nchoice. Do not force a pattern where none fits, but do not reinvent one\neither.\n\n**The approaches must span the spectrum:**\n\n- **Incremental**: Fit the feature into the existing structure with\n  minimal changes. Describe what compromises this requires and what debt\n  it adds.\n- **Refactor-first**: Restructure the relevant code to properly\n  accommodate the feature, then build it on the improved foundation.\n  Describe what the refactor unlocks beyond this feature.\n- **Structural** (when applicable): Challenge whether the existing\n  components are the right ones. Could services be merged, split, or\n  replaced? Could a layer be eliminated? Describe what this makes\n  possible that the other approaches cannot.\n\nDo not pad with straw-man alternatives. Each approach must be genuinely\nviable. If a structural approach does not apply (the existing code is\nwell-suited), say so explicitly and explain why — do not skip the\nquestion.\n\nBigger scope is not automatically worse. A rewrite that simplifies three\nfuture features may be cheaper than three incremental hacks. Present\nscope as a trade-off, not a disqualification.\n\n## Step 5: Challenge the approaches\n\nInvoke the `waterfall-challenge` skill. It will detect strategic mode from\nthe conversation (approaches present, no detailed plan) and run the\nadversarial review against the approach list, returning revised approaches\nand resolved or open branches.\n\nWhen the challenge flow returns, incorporate any revisions into the\napproach list before Step 6.\n\n## Step 6: Present and recommend\n\nPresent all approaches (including any added or revised during the\nchallenge) with a clear recommendation. State which approach you\nrecommend and why, but make the case for the others too — the user may\nhave context you do not.\n\nAsk the user to pick an approach (or propose their own). **Stop and wait\nfor a response.** Do not proceed to detailed planning until the user has\nchosen.\n\nThe next phase is the `waterfall-plan` skill, which will detail the\nchosen approach into an implementation plan.\n","# Design\n\nGiven a feature request, deeply explore the codebase, critically evaluate\nthe existing structure, and generate a range of approaches — from\nincremental to structural. The challenger reviews the approaches before\nthey are presented to the user.\n\nThis is the divergent phase. Do not converge on a solution yet. The goal is\nto exhaust the option space so the user can make an informed choice.\n\nDetailed planning is the comfortable escape — it feels productive and\nsidesteps the harder strategic question of whether the structure is even\nright. That question belongs here, not in `waterfall-plan`. If you find\nyourself sketching the implementation, stop and go back to the option\nspace.\n\n## Step 1: Understand the feature\n\nRead the feature description provided by the user. If critical details are\nmissing, ask the user — but prefer answering questions yourself by\nexploring the codebase. Do not ask about things you can discover by\nreading code.\n\n## Step 2: Explore and evaluate\n\nExplore the codebase to understand:\n\n- Where the feature would live (existing modules, packages, directories).\n- What existing code it touches or depends on.\n- What patterns and conventions the codebase follows.\n- What constraints exist (APIs, data models, config, tests).\n\nSpend real effort here. A design built on assumptions about code you did\nnot read is worthless.\n\n**Do not just map the code — evaluate it.** As you explore, ask:\n\n- Is the existing structure the right foundation for this feature, or is\n  it working around a previous limitation?\n- Are there services, layers, or abstractions that exist for historical\n  reasons but no longer earn their complexity?\n- Would a different structure make this feature (and future work)\n  simpler?\n- What would you build if you were starting from scratch with today's\n  requirements? How far is the current code from that?\n\nThe existing code is not sacred. It was written by someone making their\nbest decision at the time, possibly under different constraints than you\nhave now.\n\n## Step 3: Identify refactoring opportunities\n\nInvoke the `waterfall-refactor` skill at the **strategic** level. Send it\nthe feature description and the areas of the codebase involved.\n\nThis surfaces structural opportunities — rewrites, merges, eliminations —\nthat could influence which approach to take. Feed the results into\napproach generation: if a refactor enables a cleaner design, it should\nappear as part of an approach, not as a footnote.\n\n## Step 4: Generate approaches\n\nGenerate a range of approaches. For each, describe:\n\n- The approach in 2-3 sentences.\n- Which files to create, modify, or remove.\n- Trade-offs: what it makes easy, what it makes hard, what risks it\n  carries.\n- Scope: rough sense of how much changes (small\u002Fmedium\u002Flarge).\n\nWhen naming approaches, identify the algorithmic class (graph traversal,\ndynamic programming, bipartite matching, etc.), pattern family (event\nsourcing, state machine, finite automaton, etc.), or domain-modeling\nconcept (aggregate, bounded context, anti-corruption layer, etc.) when\none applies. Domain-modeling concepts apply most when the codebase has\nrich domain logic, not CRUD or infrastructure glue. If an approach is\nbespoke for a problem class that has known solutions, justify the bespoke\nchoice. Do not force a pattern where none fits, but do not reinvent one\neither.\n\n**The approaches must span the spectrum:**\n\n- **Incremental**: Fit the feature into the existing structure with\n  minimal changes. Describe what compromises this requires and what debt\n  it adds.\n- **Refactor-first**: Restructure the relevant code to properly\n  accommodate the feature, then build it on the improved foundation.\n  Describe what the refactor unlocks beyond this feature.\n- **Structural** (when applicable): Challenge whether the existing\n  components are the right ones. Could services be merged, split, or\n  replaced? Could a layer be eliminated? Describe what this makes\n  possible that the other approaches cannot.\n\nDo not pad with straw-man alternatives. Each approach must be genuinely\nviable. If a structural approach does not apply (the existing code is\nwell-suited), say so explicitly and explain why — do not skip the\nquestion.\n\nBigger scope is not automatically worse. A rewrite that simplifies three\nfuture features may be cheaper than three incremental hacks. Present\nscope as a trade-off, not a disqualification.\n\n## Step 5: Challenge the approaches\n\nInvoke the `waterfall-challenge` skill. It will detect strategic mode from\nthe conversation (approaches present, no detailed plan) and run the\nadversarial review against the approach list, returning revised approaches\nand resolved or open branches.\n\nWhen the challenge flow returns, incorporate any revisions into the\napproach list before Step 6.\n\n## Step 6: Present and recommend\n\nPresent all approaches (including any added or revised during the\nchallenge) with a clear recommendation. State which approach you\nrecommend and why, but make the case for the others too — the user may\nhave context you do not.\n\nAsk the user to pick an approach (or propose their own). **Stop and wait\nfor a response.** Do not proceed to detailed planning until the user has\nchosen.\n\nThe next phase is the `waterfall-plan` skill, which will detail the\nchosen approach into an implementation plan.\n",{"name":5,"description":7,"disable-model-invocation":24},true,"main","df264950149be91206d42ffeebdeb6b5289aa23b","skills\u002Fwaterfall\u002Fwaterfall-design","https:\u002F\u002Fgithub.com\u002Flithammer\u002Fai","https:\u002F\u002Fgithub.com\u002Flithammer","2026-11-13 19:30:46",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":24},[33,36,39],{"tool":34,"command":35},"npx","npx skills add lithammer\u002Fai --skill waterfall-design",{"tool":37,"command":38},"bunx","bunx skills add lithammer\u002Fai --skill waterfall-design",{"tool":40,"command":41},"pnpm","pnpm dlx skills add lithammer\u002Fai --skill waterfall-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flithammer\u002Fai\u002Fblob\u002Fmain\u002Fskills\u002Fwaterfall\u002Fwaterfall-design\u002FSKILL.md",[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"agents\u002Fopenai.yaml","REFERENCE","参考文档",116,"https:\u002F\u002Fgithub.com\u002Flithammer\u002Fai\u002Fblob\u002Fmain\u002Fskills\u002Fwaterfall\u002Fwaterfall-design\u002Fagents\u002Fopenai.yaml",[51,59,66,73,80,87],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":58},"01M74AAAPNY933TSRZHM4PSKZ3","shape","Review a working change for its shape (cause, ownership, states, names, size, reuse, cost), then apply what you accept.","https:\u002F\u002Fgithub.com\u002Flithammer\u002Fai\u002Fblob\u002Fmain\u002Fskills\u002Fshape\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"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":58},"01M74AA65VBXVA11AA8JPBNYW6","correctness","Review a working change for defects (logic, state, lifecycle, concurrency, regression) and for drift from its ticket, docs, and rules, then apply what you accept.","https:\u002F\u002Fgithub.com\u002Flithammer\u002Fai\u002Fblob\u002Fmain\u002Fskills\u002Fcorrectness\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},"01M72Y19CBNJ6SDBY29A9JZ0GV","zero-tech-debt","Rework a change as if the intended UX and architecture existed from day one, deleting compatibility cruft and accidental complexity.","https:\u002F\u002Fgithub.com\u002Flithammer\u002Fai\u002Fblob\u002Fmain\u002Fskills\u002Fzero-tech-debt\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},"01M72Y1441P3HZAT87MT4MWMQQ","waterfall-review","Review a code change by dispatching specialized review subagents in parallel — each focused on a single dimension (correctness, security, architecture, etc.) — then triaging their findings into a unified report. Works standalone on a branch or as part of the waterfall flow after implementation. Invoke when the user explicitly asks to review a branch or diff, or as a step inside waterfall-implement; avoid auto-triggering on casual mentions of \"review\".","https:\u002F\u002Fgithub.com\u002Flithammer\u002Fai\u002Fblob\u002Fmain\u002Fskills\u002Fwaterfall\u002Fwaterfall-review\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},"01M72Y0ZGMWP5EZHRD5DB3SHKM","waterfall-refactor","Identify refactoring opportunities in code that a feature will touch. Runs at strategic level during design (looking for structural moves that could change which approach is chosen) or tactical level before implementation (looking for pre-work that gives the feature a better foundation). Primarily invoked by waterfall-design or waterfall-implement; avoid auto-triggering on casual mentions of \"refactor\".","https:\u002F\u002Fgithub.com\u002Flithammer\u002Fai\u002Fblob\u002Fmain\u002Fskills\u002Fwaterfall\u002Fwaterfall-refactor\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},"01M72Y0X02J7VCBG9S3AJV7W16","waterfall-plan","Detail a chosen design approach into an implementation plan (objective, file manifest, execution order, test strategy), then auto-proceed to waterfall-challenge. Convergent phase of the waterfall flow.","https:\u002F\u002Fgithub.com\u002Flithammer\u002Fai\u002Fblob\u002Fmain\u002Fskills\u002Fwaterfall\u002Fwaterfall-plan\u002FSKILL.md",[],[]]