[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71K6K0PT5V89GS7JP9QC4MJ":3,"skill-same:01M71K6K0PT5V89GS7JP9QC4MJ":67},{"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":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":53,"install":54,"resources":66},"01M71K6K0PT5V89GS7JP9QC4MJ","refactor",null,"Use when refactoring code while preserving behavior — checkpoint, extract, test, audit","KeiSeiLab\u002FKeiSeiKit","KeiSeiLab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F283315582?v=4","01M71K2EW81JRFHSGF0T844B32","KeiSei Lab","01M71K2EWXTB52KWC65E55S6M2",7,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FKeiSeiLab\u002FKeiSeiKit\u002Fblob\u002Fmain\u002Fskills\u002Frefactor\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"file","extract","behavior","refactoring","goal","audit","what the","test","code","when","false","use","module","true","checkpoint","achieve","target","2026-11-10 10:12:30",false,"---\nname: refactor\ndescription: Use when refactoring code while preserving behavior — checkpoint, extract, test, audit\narguments:\n  - name: target\n    description: File or module to refactor\n    required: true\n  - name: goal\n    description: \"What the refactoring should achieve\"\n    required: false\n---\n\n# Refactor Workflow\n\n## When to use\n\n- Restructuring code that violates the Constructor Pattern (file >200 LOC, function >30 LOC, multiple responsibilities, duplicated code).\n- Safe refactoring that must preserve existing behaviour — checkpoint, tests baseline, extract, verify.\n- When `wave-audit` or `\u002Fdev-guard` flags a structural issue that requires decomposition.\n\n## Step 1: Understand Current State\n- Read target file(s) completely\n- Identify existing tests for the target\n- Run existing tests — baseline must pass\n- Document current behavior (inputs → outputs)\n\n## Step 2: Plan Refactoring\n- Identify what violates Constructor Pattern:\n  - File >200 lines → decompose\n  - Function >30 lines → extract\n  - Multiple responsibilities → split\n  - Duplicated code → single source\n  - Overlay\u002Fpatches → root formula\n- List concrete changes BEFORE making them\n\n## Step 3: Checkpoint\n- `checkpoint: before refactor $target`\n\n## Step 4: Refactor (Incremental)\n- ONE structural change at a time\n- After each change: run tests\n- If test breaks → fix immediately or revert\n- Preserve all public interfaces unless explicitly changing them\n\n## Step 5: Audit\n- Check: does refactored code follow Constructor Pattern?\n- Check: no overlay, no dead code, no orphaned imports\n- Check: SSOT — no duplicated logic\n- Check: file sizes within limits\n\n## Step 6: Final Verification\n- Run full test suite — all pass\n- Diff review: no accidental behavior changes\n- No new dependencies added without reason\n\n## Step 7: Commit\n- `refactor: \u003Cwhat was restructured and why>`\n","# Refactor Workflow\n\n## When to use\n\n- Restructuring code that violates the Constructor Pattern (file >200 LOC, function >30 LOC, multiple responsibilities, duplicated code).\n- Safe refactoring that must preserve existing behaviour — checkpoint, tests baseline, extract, verify.\n- When `wave-audit` or `\u002Fdev-guard` flags a structural issue that requires decomposition.\n\n## Step 1: Understand Current State\n- Read target file(s) completely\n- Identify existing tests for the target\n- Run existing tests — baseline must pass\n- Document current behavior (inputs → outputs)\n\n## Step 2: Plan Refactoring\n- Identify what violates Constructor Pattern:\n  - File >200 lines → decompose\n  - Function >30 lines → extract\n  - Multiple responsibilities → split\n  - Duplicated code → single source\n  - Overlay\u002Fpatches → root formula\n- List concrete changes BEFORE making them\n\n## Step 3: Checkpoint\n- `checkpoint: before refactor $target`\n\n## Step 4: Refactor (Incremental)\n- ONE structural change at a time\n- After each change: run tests\n- If test breaks → fix immediately or revert\n- Preserve all public interfaces unless explicitly changing them\n\n## Step 5: Audit\n- Check: does refactored code follow Constructor Pattern?\n- Check: no overlay, no dead code, no orphaned imports\n- Check: SSOT — no duplicated logic\n- Check: file sizes within limits\n\n## Step 6: Final Verification\n- Run full test suite — all pass\n- Diff review: no accidental behavior changes\n- No new dependencies added without reason\n\n## Step 7: Commit\n- `refactor: \u003Cwhat was restructured and why>`\n",{"name":5,"arguments":41,"description":7},[42,45],{"name":35,"required":43,"description":44},true,"File or module to refactor",{"name":23,"required":37,"description":46},"What the refactoring should achieve","main","32e85218a997294f68da27ff3dfd638196186ae5","skills\u002Frefactor",8,"https:\u002F\u002Fgithub.com\u002FKeiSeiLab\u002FKeiSeiKit","https:\u002F\u002Fgithub.com\u002FKeiSeiLab","2026-10-11 11:17:46",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":43},[56,59,62],{"tool":57,"command":58},"npx","npx skills add KeiSeiLab\u002FKeiSeiKit --skill refactor",{"tool":60,"command":61},"bunx","bunx skills add KeiSeiLab\u002FKeiSeiKit --skill refactor",{"tool":63,"command":64},"pnpm","pnpm dlx skills add KeiSeiLab\u002FKeiSeiKit --skill refactor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKeiSeiLab\u002FKeiSeiKit\u002Fblob\u002Fmain\u002Fskills\u002Frefactor\u002FSKILL.md",[],[68,94,118,144,167,189],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":36},"01M71K887N78V089XR5BWT0JAV","wave-audit","3-wave parallel audit — Wave 1 discovery (4 agents), Wave 2 verification (4 agents), Wave 3 cross-optimization (1 synthesizer). Each wave runs agents in parallel. Combines security review, runtime analysis, quality check, and constructor pattern into one unified workflow with evidence grading and Go\u002FNo-Go verdict.","https:\u002F\u002Fgithub.com\u002FKeiSeiLab\u002FKeiSeiKit\u002Fblob\u002Fmain\u002Fskills\u002Fwave-audit\u002FSKILL.md",[],[75,24,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],"wave audit","unified workflow","workflow","analysis","review","verification","security review","pattern","grading","go","security","parallel","evidence","runtime","quality check","discovery","Optimization","one","check",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":36},"01M71K85100JQS4Y10EGCTWQXW","vm-provision","End-to-end VPS provisioning — select provider → plan → provision → harden → verify (ssh-check + firewall-diff hard-gate) → handoff. 6 phases, ≥6 AskUserQuestion calls, defensive-only. Stops if either verification primitive fails.","https:\u002F\u002Fgithub.com\u002FKeiSeiLab\u002FKeiSeiKit\u002Fblob\u002Fmain\u002Fskills\u002Fvm-provision\u002FSKILL.md",[],[101,102,103,104,105,106,107,108,109,110,92,111,112,93,80,113,114,115,116,117],"vm","vm provision","firewall","diff","provider","select","end","calls","only","either","api","hetzner","plan","defensive","verify","intent","line",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":122,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":36},"01M71K80ZRH2H5ES83QS97BB91","visual-explainer","Generate beautiful, self-contained HTML pages that visually explain systems, code changes, plans, and data. Use when the user asks for a diagram, architecture overview, diff review, plan review, project recap, comparison table, or any visual explanation of technical concepts. Also use proactively when you are about to render a complex ASCII table (4+ rows or 3+ columns) — present it as a styled HTML page instead.","MIT","https:\u002F\u002Fgithub.com\u002FKeiSeiLab\u002FKeiSeiKit\u002Fblob\u002Fmain\u002Fskills\u002Fvisual-explainer\u002FSKILL.md",[],[126,127,128,129,130,131,132,133,113,134,135,136,137,138,139,140,141,142,143,30],"visual","visual explainer","explainer","project","files","image","you","architecture","generate","present","concepts","table","as","view","for","ascii table","ascii","surf",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":36},"01M71K7VSD5ZWN26QJEC4T0770","video-gen","Use when generating video from frame sequences — FFmpeg extraction, WebP\u002FAVIF conversion, sprite sheets, scroll-synced playback, video encoding\u002Ftranscoding. Covers the full pipeline from video source to web-ready frame sequence or optimized video.","https:\u002F\u002Fgithub.com\u002FKeiSeiLab\u002FKeiSeiKit\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-gen\u002FSKILL.md",[],[151,152,153,154,155,156,157,158,29,28,131,159,160,161,162,163,164,165,166,35],"Video","gen","video gen","ready","pipeline","default","generated","synced","conversion","directory","sequences","sequence","source","full","path","webp",{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":36},"01M71K7R88RM8ENVCRZHZSMM5T","test-matrix","Use when a project needs testing BEYOND unit tests — fuzzing, property-based, load, E2E, or mutation. Five-phase hub-and-spoke pipeline composes the right mix per language × critical path × CI target, scaffolds configs + corpus + fixtures, wires CI jobs, and defines the crash\u002Fregression triage workflow. Pure-click: every decision except intake is an AskUserQuestion.","https:\u002F\u002Fgithub.com\u002FKeiSeiLab\u002FKeiSeiKit\u002Fblob\u002Fmain\u002Fskills\u002Ftest-matrix\u002FSKILL.md",[],[26,174,175,176,35,177,129,178,155,179,180,181,182,183,184,185,186,30,187,188],"matrix","test matrix","unit","click","regression","mix","intake","testing","decision","ci","tests","e2e","mutation","load","fuzzing",{"skillNo":190,"name":191,"nameZh":6,"description":192,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":193,"categories":194,"keywords":195,"publishedAt":36},"01M71K7N3ZY9FMMH3CSE1H8K5J","test-gen","Use when generating tests for untested code — happy path, edge cases, error handling","https:\u002F\u002Fgithub.com\u002FKeiSeiLab\u002FKeiSeiKit\u002Fblob\u002Fmain\u002Fskills\u002Ftest-gen\u002FSKILL.md",[],[196,152,26,197,35,140,32,184,198,30,28,19,27,199,200,165],"test gen","error","edge","error handling","name"]