[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75M95Z8M047W0AP32BVY8RS":3,"skill-same:01M75M95Z8M047W0AP32BVY8RS":70},{"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":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M75M95Z8M047W0AP32BVY8RS","Refactor Engine",null,"Improves existing codebases by restructuring for clarity, performance, and maintainability without changing external behavior","Razaib-khan\u002FForgeWeave","Razaib-khan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160170334?v=4","01M75M7QPJVP3N29AZVG6RN6R7","Razaib Khan","01M75M7QQS6KEPD0W2ZB99ENKK",1,"MIT","https:\u002F\u002Fgithub.com\u002FRazaib-khan\u002FForgeWeave\u002Fblob\u002Fmain\u002Fsrc\u002Fforgeweave\u002Ftemplates\u002Fclaude\u002F.claude\u002Fskills\u002Frefactor-engine\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nskill_id: refactor-engine\nname: Refactor Engine\nversion: 1.0.0\ndescription: Improves existing codebases by restructuring for clarity, performance, and maintainability without changing external behavior\nauthor: ForgeWeave Core\ntui_compatibility:\n  - opencode\n  - claude\n  - gemini\n  - qwen\ntags:\n  - refactoring\n  - cleanup\n  - optimization\n---\n\n# Refactor Engine\n\n## Purpose\n\nRestructure existing code to improve readability, performance, and maintainability while preserving exact external behavior. Every refactor is verified by ensuring existing tests continue to pass and no observable behavior changes.\n\n## When to Use\n\n- Code has duplicated logic that should be extracted\n- A function or module is too long or does too many things\n- Naming is unclear or inconsistent with project conventions\n- Performance can be improved by algorithmic changes\n- Dead code, commented-out code, or unused imports need removal\n\n## When Not to Use\n\n- The code has a bug — use `debugger` first\n- New features need to be added — use `code-builder`\n- The code works fine and doesn't need changes\n\n## Inputs\n\n| Input | Type | Required | Description |\n|---|---|---|---|\n| `target` | string | Yes | File, module, or code area to refactor |\n| `goal` | enum | Yes | clarity, performance, maintainability, or all |\n| `constraints` | string | No | What must NOT change (public API, performance bounds) |\n\n## Expected Outputs\n\n| Output | Description |\n|---|---|\n| Refactored code | Restructured code preserving external behavior |\n| Diff summary | What changed and why |\n| Verification | Test results confirming no behavior change |\n\n## Exact Workflow Steps\n\n1. Read and understand the target code fully\n2. Run existing tests to establish baseline\n3. Identify refactoring opportunities (duplication, complexity, naming)\n4. Apply one refactoring at a time (small, atomic changes)\n5. Run tests after each change to confirm no regression\n6. Repeat until all planned refactorings are applied\n\n## Required Checks\n\n- [ ] All existing tests pass before and after\n- [ ] No public API changed unless explicitly requested\n- [ ] Each change is atomic (one concern per change)\n- [ ] No dead code or debug artifacts left behind\n\n## Failure Modes\n\n| Failure Condition | Response |\n|---|---|\n| Test fails after refactor | Revert last change and re-approach differently |\n| Refactor touches too many files | Break into smaller, focused refactors |\n| Goal is unclear | Ask for specific examples of what to improve |\n\n## References\n\n| Reference | Path |\n|---|---|\n| Test Generator skill | `..\u002Ftest-generator\u002FSKILL.md` |\n| Code Builder skill | `..\u002Fcode-builder\u002FSKILL.md` |\n","# Refactor Engine\n\n## Purpose\n\nRestructure existing code to improve readability, performance, and maintainability while preserving exact external behavior. Every refactor is verified by ensuring existing tests continue to pass and no observable behavior changes.\n\n## When to Use\n\n- Code has duplicated logic that should be extracted\n- A function or module is too long or does too many things\n- Naming is unclear or inconsistent with project conventions\n- Performance can be improved by algorithmic changes\n- Dead code, commented-out code, or unused imports need removal\n\n## When Not to Use\n\n- The code has a bug — use `debugger` first\n- New features need to be added — use `code-builder`\n- The code works fine and doesn't need changes\n\n## Inputs\n\n| Input | Type | Required | Description |\n|---|---|---|---|\n| `target` | string | Yes | File, module, or code area to refactor |\n| `goal` | enum | Yes | clarity, performance, maintainability, or all |\n| `constraints` | string | No | What must NOT change (public API, performance bounds) |\n\n## Expected Outputs\n\n| Output | Description |\n|---|---|\n| Refactored code | Restructured code preserving external behavior |\n| Diff summary | What changed and why |\n| Verification | Test results confirming no behavior change |\n\n## Exact Workflow Steps\n\n1. Read and understand the target code fully\n2. Run existing tests to establish baseline\n3. Identify refactoring opportunities (duplication, complexity, naming)\n4. Apply one refactoring at a time (small, atomic changes)\n5. Run tests after each change to confirm no regression\n6. Repeat until all planned refactorings are applied\n\n## Required Checks\n\n- [ ] All existing tests pass before and after\n- [ ] No public API changed unless explicitly requested\n- [ ] Each change is atomic (one concern per change)\n- [ ] No dead code or debug artifacts left behind\n\n## Failure Modes\n\n| Failure Condition | Response |\n|---|---|\n| Test fails after refactor | Revert last change and re-approach differently |\n| Refactor touches too many files | Break into smaller, focused refactors |\n| Goal is unclear | Ask for specific examples of what to improve |\n\n## References\n\n| Reference | Path |\n|---|---|\n| Test Generator skill | `..\u002Ftest-generator\u002FSKILL.md` |\n| Code Builder skill | `..\u002Fcode-builder\u002FSKILL.md` |\n",{"name":5,"tags":24,"author":28,"version":29,"skill_id":30,"description":7,"tui_compatibility":31},[25,26,27],"refactoring","cleanup","optimization","ForgeWeave Core","1.0.0","refactor-engine",[32,33,34,35],"opencode","claude","gemini","qwen","main","93f2582acd699b8d3917b2b61fdd2178b69f921c","src\u002Fforgeweave\u002Ftemplates\u002Fclaude\u002F.claude\u002Fskills\u002Frefactor-engine",0,"https:\u002F\u002Fgithub.com\u002FRazaib-khan\u002FForgeWeave","https:\u002F\u002Fgithub.com\u002FRazaib-khan","Web dev & AI explorer | Building, breaking, learning | Long-term mindset","2026-06-22 22:46:11",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add Razaib-khan\u002FForgeWeave --skill \"Refactor Engine\"",{"tool":50,"command":51},"bunx","bunx skills add Razaib-khan\u002FForgeWeave --skill \"Refactor Engine\"",{"tool":53,"command":54},"pnpm","pnpm dlx skills add Razaib-khan\u002FForgeWeave --skill \"Refactor Engine\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FRazaib-khan\u002FForgeWeave\u002Fblob\u002Fmain\u002Fsrc\u002Fforgeweave\u002Ftemplates\u002Fclaude\u002F.claude\u002Fskills\u002Frefactor-engine\u002FSKILL.md",true,[58,64],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Frefactoring-patterns.md","REFERENCE","参考文档",1099,"https:\u002F\u002Fgithub.com\u002FRazaib-khan\u002FForgeWeave\u002Fblob\u002Fmain\u002Fsrc\u002Fforgeweave\u002Ftemplates\u002Fclaude\u002F.claude\u002Fskills\u002Frefactor-engine\u002Freferences\u002Frefactoring-patterns.md",{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"scripts\u002Fextract_function.py","SCRIPT","脚本",1641,"https:\u002F\u002Fgithub.com\u002FRazaib-khan\u002FForgeWeave\u002Fblob\u002Fmain\u002Fsrc\u002Fforgeweave\u002Ftemplates\u002Fclaude\u002F.claude\u002Fskills\u002Frefactor-engine\u002Fscripts\u002Fextract_function.py",[71,78,85,92,99,106],{"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},"01M75MEJ4J1S2ZERWSM5ZBKRTE","Workflow Orchestrator","Coordinates multi-skill execution pipelines (e.g., research → plan → build → test)","https:\u002F\u002Fgithub.com\u002FRazaib-khan\u002FForgeWeave\u002Fblob\u002Fmain\u002Fsrc\u002Fforgeweave\u002Ftemplates\u002Fqwen\u002F.qwen\u002Fskills\u002Fworkflow-orchestrator\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},"01M75MEEZQ0V89BABKZF5XQ3MW","Web Research","Browser-driven or scraping-based skill for real-time internet extraction using Playwright and HTTP-based fetching","https:\u002F\u002Fgithub.com\u002FRazaib-khan\u002FForgeWeave\u002Fblob\u002Fmain\u002Fsrc\u002Fforgeweave\u002Ftemplates\u002Fqwen\u002F.qwen\u002Fskills\u002Fweb-research\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},"01M75MECJV3NEN6GY89ZT7NWFA","Validation Engine","Checks outputs from other skills for consistency, correctness, and adherence to AGENTS.md rules","https:\u002F\u002Fgithub.com\u002FRazaib-khan\u002FForgeWeave\u002Fblob\u002Fmain\u002Fsrc\u002Fforgeweave\u002Ftemplates\u002Fqwen\u002F.qwen\u002Fskills\u002Fvalidation-engine\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},"01M75MEAAXKRA9HJWWQH0MMBGY","Tool Selector","Determines which tools, APIs, MCP actions, or system capabilities are required for a given task","https:\u002F\u002Fgithub.com\u002FRazaib-khan\u002FForgeWeave\u002Fblob\u002Fmain\u002Fsrc\u002Fforgeweave\u002Ftemplates\u002Fqwen\u002F.qwen\u002Fskills\u002Ftool-selector\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M75ME7JAXQG26T1NEB3VNDM6","Test Generator","Creates test plans and test cases (unit, integration, edge cases) based on existing or planned code","https:\u002F\u002Fgithub.com\u002FRazaib-khan\u002FForgeWeave\u002Fblob\u002Fmain\u002Fsrc\u002Fforgeweave\u002Ftemplates\u002Fqwen\u002F.qwen\u002Fskills\u002Ftest-generator\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M75ME52949X3D8JQSYAWGDRB","Skill Generator","Meta-skill that creates new SKILL.md files from research outputs and patterns discovered in execution","https:\u002F\u002Fgithub.com\u002FRazaib-khan\u002FForgeWeave\u002Fblob\u002Fmain\u002Fsrc\u002Fforgeweave\u002Ftemplates\u002Fqwen\u002F.qwen\u002Fskills\u002Fskill-generator\u002FSKILL.md",[],[]]