[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72Y0ZGMWP5EZHRD5DB3SHKM":3,"skill-same:01M72Y0ZGMWP5EZHRD5DB3SHKM":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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M72Y0ZGMWP5EZHRD5DB3SHKM","waterfall-refactor",null,"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\".","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-refactor\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: waterfall-refactor\ndescription: 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\".\n---\n\n# Refactor\n\nAnalyze the codebase for refactoring opportunities relevant to the feature\nbeing built. This is not a general cleanup pass — it focuses on code the\nfeature touches and asks what changes would give it a better foundation.\n\nThe analysis adapts to when it runs. The caller provides a **review\nlevel**:\n\n- **Strategic**: Run during design, before approaches are generated.\n  Surface structural opportunities that could influence which approach to\n  take.\n- **Tactical**: Run before implementation, after the plan is approved.\n  Surface pre-work and incorporated refactors that make the\n  implementation cleaner.\n\n## Step 1: Determine scope\n\nExtract from the conversation:\n\n- The feature being built.\n- Which areas of the codebase are involved.\n- The review level (strategic or tactical).\n\nIf running at the strategic level, the scope is broader — look at the\nmodules and services the feature touches, not just individual files. If\ntactical, focus on the specific files in the plan's manifest.\n\n## Step 2: Analyze\n\nRead the affected code with the feature in mind. The question is not\n\"what is wrong with this code?\" but \"will this code give the feature a\ngood foundation?\"\n\nAt the **strategic** level, be willing to consider larger structural\nmoves. A refactor that turns the feature from complex to trivial is worth\nnaming, even if the user ultimately decides not to take it.\n\nAt the **tactical** level, look for smaller moves: pre-work that keeps\nthe implementation diff clean, or cleanups that fold naturally into the\nplanned changes.\n\n## Step 3: Classify\n\nFor each opportunity:\n\n- **Strategic** level:\n  - **Enables new approach**: A refactor that opens up a design option\n    that would otherwise be impractical. Note what approach it enables.\n  - **Simplifies all approaches**: A refactor that benefits the feature\n    regardless of which approach is chosen.\n  - **Unrelated**: Not relevant to this feature. Do not include.\n\n- **Tactical** level:\n  - **Pre-work**: Do before implementation starts.\n  - **Incorporate**: Fold into the implementation alongside planned\n    changes.\n  - **Skip**: Not relevant to the planned changes. Do not include.\n\nAt the **tactical** level, also assess two signals the implementation gate\nkeys on, for each included opportunity:\n\n- **Magnitude**: *bounded* — localized to a small area — or *large* —\n  spread across many files, or structural.\n- **Shape**: *self-contained*, or *risky* — it changes a contract other\n  code depends on, regardless of diff size.\n\nReport these as factual assessments; do not decide whether to proceed —\nthe orchestrator (`waterfall-implement` Step 2) owns the gate.\n\n## Step 4: Present\n\nReturn the opportunities with file paths, descriptions, and why each\nmatters for the feature. At the strategic level, explicitly note how\nopportunities connect to potential approaches. At the tactical level,\ninclude each opportunity's magnitude and shape so the implementation gate\ncan act on them.\n","# Refactor\n\nAnalyze the codebase for refactoring opportunities relevant to the feature\nbeing built. This is not a general cleanup pass — it focuses on code the\nfeature touches and asks what changes would give it a better foundation.\n\nThe analysis adapts to when it runs. The caller provides a **review\nlevel**:\n\n- **Strategic**: Run during design, before approaches are generated.\n  Surface structural opportunities that could influence which approach to\n  take.\n- **Tactical**: Run before implementation, after the plan is approved.\n  Surface pre-work and incorporated refactors that make the\n  implementation cleaner.\n\n## Step 1: Determine scope\n\nExtract from the conversation:\n\n- The feature being built.\n- Which areas of the codebase are involved.\n- The review level (strategic or tactical).\n\nIf running at the strategic level, the scope is broader — look at the\nmodules and services the feature touches, not just individual files. If\ntactical, focus on the specific files in the plan's manifest.\n\n## Step 2: Analyze\n\nRead the affected code with the feature in mind. The question is not\n\"what is wrong with this code?\" but \"will this code give the feature a\ngood foundation?\"\n\nAt the **strategic** level, be willing to consider larger structural\nmoves. A refactor that turns the feature from complex to trivial is worth\nnaming, even if the user ultimately decides not to take it.\n\nAt the **tactical** level, look for smaller moves: pre-work that keeps\nthe implementation diff clean, or cleanups that fold naturally into the\nplanned changes.\n\n## Step 3: Classify\n\nFor each opportunity:\n\n- **Strategic** level:\n  - **Enables new approach**: A refactor that opens up a design option\n    that would otherwise be impractical. Note what approach it enables.\n  - **Simplifies all approaches**: A refactor that benefits the feature\n    regardless of which approach is chosen.\n  - **Unrelated**: Not relevant to this feature. Do not include.\n\n- **Tactical** level:\n  - **Pre-work**: Do before implementation starts.\n  - **Incorporate**: Fold into the implementation alongside planned\n    changes.\n  - **Skip**: Not relevant to the planned changes. Do not include.\n\nAt the **tactical** level, also assess two signals the implementation gate\nkeys on, for each included opportunity:\n\n- **Magnitude**: *bounded* — localized to a small area — or *large* —\n  spread across many files, or structural.\n- **Shape**: *self-contained*, or *risky* — it changes a contract other\n  code depends on, regardless of diff size.\n\nReport these as factual assessments; do not decide whether to proceed —\nthe orchestrator (`waterfall-implement` Step 2) owns the gate.\n\n## Step 4: Present\n\nReturn the opportunities with file paths, descriptions, and why each\nmatters for the feature. At the strategic level, explicitly note how\nopportunities connect to potential approaches. At the tactical level,\ninclude each opportunity's magnitude and shape so the implementation gate\ncan act on them.\n",{"name":5,"description":7},"main","df264950149be91206d42ffeebdeb6b5289aa23b","skills\u002Fwaterfall\u002Fwaterfall-refactor","https:\u002F\u002Fgithub.com\u002Flithammer\u002Fai","https:\u002F\u002Fgithub.com\u002Flithammer","2026-11-13 19:30:46",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add lithammer\u002Fai --skill waterfall-refactor",{"tool":36,"command":37},"bunx","bunx skills add lithammer\u002Fai --skill waterfall-refactor",{"tool":39,"command":40},"pnpm","pnpm dlx skills add lithammer\u002Fai --skill waterfall-refactor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flithammer\u002Fai\u002Fblob\u002Fmain\u002Fskills\u002Fwaterfall\u002Fwaterfall-refactor\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"agents\u002Fopenai.yaml","REFERENCE","参考文档",122,"https:\u002F\u002Fgithub.com\u002Flithammer\u002Fai\u002Fblob\u002Fmain\u002Fskills\u002Fwaterfall\u002Fwaterfall-refactor\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},"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",[],[],{"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},"01M72Y0T92QZ341Y26XJ7H50AQ","waterfall-implement","Implement a planned and challenged feature one increment at a time. Each increment is delegated to a subagent, then run through a review-fix loop until clean. Orchestrator stays in oversight.","https:\u002F\u002Fgithub.com\u002Flithammer\u002Fai\u002Fblob\u002Fmain\u002Fskills\u002Fwaterfall\u002Fwaterfall-implement\u002FSKILL.md",[],[]]