[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72Y001APH2MWG2Z6ENQ60R7":3,"skill-same:01M72Y001APH2MWG2Z6ENQ60R7":55},{"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":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":44},"01M72Y001APH2MWG2Z6ENQ60R7","refactor",null,"Find structural refactors that remove caller obligations, then implement the chosen change.","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\u002Frefactor\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: refactor\ndescription: Find structural refactors that remove caller obligations, then implement the chosen change.\ndisable-model-invocation: true\nargument-hint: \"[scope, concern, or ticket]\"\n---\n\n# Refactor\n\nExplore existing code for structural changes that remove obligations from\ncallers. No feature or diff is needed.\n\n## 1. Scope\n\nRead the repository's instructions and the requested scope or concern: a\npath, subsystem, goal such as making invalid checkout states\nunrepresentable, or a ticket and its map from `research-codebase`. With a\nticket, inspect the code its change touches; a candidate's cost is what that\nchange would otherwise have to work around. With no target, map the\nrepository's major subsystems and choose promising areas to inspect.\n\n## 2. Discover\n\nUse a single agent by default. Apply these related questions in one pass;\nthey overlap and are not separate work queues. Split a large scope only\nalong genuinely independent subsystems.\n\n- **Representation:** which units, identities, states, or operations rely\n  on primitives, flags, naming, or caller discipline?\n- **Derivability:** which stored or passed values could be derived from\n  authoritative state instead of kept in sync?\n- **Invariant ownership:** which rules do callers repeatedly enforce that\n  one owning module or storage constraint could guarantee?\n- **Lifecycle ownership:** which acquire\u002Frelease or transaction protocols\n  could a scoped operation own instead of each caller?\n- **Least capability:** which callers receive authority they do not need?\n- **Altitude:** which special cases compensate for limitations in the\n  underlying mechanism? Where should the rule live?\n- **Deep modules:** which repeated orchestration could sit behind an\n  interface that hides knowledge callers currently need?\n\n## 3. Substantiate\n\nRead each promising implementation and its callers in full, with the tests\nand contracts needed to judge the change. Trace the burden or possible\nmisuse to concrete code. A candidate needs a present cost or credible\nfailure mode; an observed bug is not required.\n\nDescribe the replacement and check which guarantees it actually enforces,\nand which still need validation or tests. Distinguish tighter internal\nrepresentations from changes to accepted external behavior. Preserve\nrequired boundary validation.\n\nMerge candidates that address the same underlying mechanism.\n\n## 4. Present and wait\n\nRank candidates by concrete benefit and migration risk. With a ticket, rank\nfirst a candidate that removes the ticket's need at its cause, making the\nticket's change unnecessary. For each, give:\n\n- Locations and evidence of the current burden or possible misuse.\n- The proposed representation or owning module, and what callers stop doing.\n- Expected size (small\u002Fmedium\u002Flarge), justified by the affected modules,\n  callers, and migration work. State any uncertainty.\n- Guarantees gained, affected contracts, migration risks, and verification\n  needed.\n\nState what you explored and what remains unread. Return no candidates when\nnone meet the evidence bar.\n\nRender the candidates as an HTML report following\n[HTML-REPORT.md](HTML-REPORT.md), and reply with its path and the ranked\ncandidate titles, one line each.\n\nWait for the user to select a candidate and approve any changes to accepted\nbehavior before editing.\n\n## 5. Implement\n\nUse the `develop` skill for the chosen change. Pass the selected candidate's\nevidence, scope, accepted contracts, and risks as its requirements.\nWith a ticket, finish the refactor before the ticket's change, so each\nlands as its own diff. When the refactor removes the ticket's need, verify\nthe need is met and drop the ticket's change.\n","# Refactor\n\nExplore existing code for structural changes that remove obligations from\ncallers. No feature or diff is needed.\n\n## 1. Scope\n\nRead the repository's instructions and the requested scope or concern: a\npath, subsystem, goal such as making invalid checkout states\nunrepresentable, or a ticket and its map from `research-codebase`. With a\nticket, inspect the code its change touches; a candidate's cost is what that\nchange would otherwise have to work around. With no target, map the\nrepository's major subsystems and choose promising areas to inspect.\n\n## 2. Discover\n\nUse a single agent by default. Apply these related questions in one pass;\nthey overlap and are not separate work queues. Split a large scope only\nalong genuinely independent subsystems.\n\n- **Representation:** which units, identities, states, or operations rely\n  on primitives, flags, naming, or caller discipline?\n- **Derivability:** which stored or passed values could be derived from\n  authoritative state instead of kept in sync?\n- **Invariant ownership:** which rules do callers repeatedly enforce that\n  one owning module or storage constraint could guarantee?\n- **Lifecycle ownership:** which acquire\u002Frelease or transaction protocols\n  could a scoped operation own instead of each caller?\n- **Least capability:** which callers receive authority they do not need?\n- **Altitude:** which special cases compensate for limitations in the\n  underlying mechanism? Where should the rule live?\n- **Deep modules:** which repeated orchestration could sit behind an\n  interface that hides knowledge callers currently need?\n\n## 3. Substantiate\n\nRead each promising implementation and its callers in full, with the tests\nand contracts needed to judge the change. Trace the burden or possible\nmisuse to concrete code. A candidate needs a present cost or credible\nfailure mode; an observed bug is not required.\n\nDescribe the replacement and check which guarantees it actually enforces,\nand which still need validation or tests. Distinguish tighter internal\nrepresentations from changes to accepted external behavior. Preserve\nrequired boundary validation.\n\nMerge candidates that address the same underlying mechanism.\n\n## 4. Present and wait\n\nRank candidates by concrete benefit and migration risk. With a ticket, rank\nfirst a candidate that removes the ticket's need at its cause, making the\nticket's change unnecessary. For each, give:\n\n- Locations and evidence of the current burden or possible misuse.\n- The proposed representation or owning module, and what callers stop doing.\n- Expected size (small\u002Fmedium\u002Flarge), justified by the affected modules,\n  callers, and migration work. State any uncertainty.\n- Guarantees gained, affected contracts, migration risks, and verification\n  needed.\n\nState what you explored and what remains unread. Return no candidates when\nnone meet the evidence bar.\n\nRender the candidates as an HTML report following\n[HTML-REPORT.md](HTML-REPORT.md), and reply with its path and the ranked\ncandidate titles, one line each.\n\nWait for the user to select a candidate and approve any changes to accepted\nbehavior before editing.\n\n## 5. Implement\n\nUse the `develop` skill for the chosen change. Pass the selected candidate's\nevidence, scope, accepted contracts, and risks as its requirements.\nWith a ticket, finish the refactor before the ticket's change, so each\nlands as its own diff. When the refactor removes the ticket's need, verify\nthe need is met and drop the ticket's change.\n",{"name":5,"description":7,"argument-hint":24,"disable-model-invocation":25},"[scope, concern, or ticket]",true,"main","df264950149be91206d42ffeebdeb6b5289aa23b","skills\u002Frefactor","https:\u002F\u002Fgithub.com\u002Flithammer\u002Fai","https:\u002F\u002Fgithub.com\u002Flithammer","2026-11-13 19:30:46",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":25},[34,37,40],{"tool":35,"command":36},"npx","npx skills add lithammer\u002Fai --skill refactor",{"tool":38,"command":39},"bunx","bunx skills add lithammer\u002Fai --skill refactor",{"tool":41,"command":42},"pnpm","pnpm dlx skills add lithammer\u002Fai --skill refactor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flithammer\u002Fai\u002Fblob\u002Fmain\u002Fskills\u002Frefactor\u002FSKILL.md",[45,51],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"agents\u002Fopenai.yaml","REFERENCE","参考文档",119,"https:\u002F\u002Fgithub.com\u002Flithammer\u002Fai\u002Fblob\u002Fmain\u002Fskills\u002Frefactor\u002Fagents\u002Fopenai.yaml",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"HTML-REPORT.md",4827,"https:\u002F\u002Fgithub.com\u002Flithammer\u002Fai\u002Fblob\u002Fmain\u002Fskills\u002Frefactor\u002FHTML-REPORT.md",[56,64,71,78,85,92],{"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":63},"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":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":63},"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":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"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":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"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":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"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":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"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",[],[]]