[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77JYH44ME43XHT2VRHPCXRR":3,"skill-same:01M77JYH44ME43XHT2VRHPCXRR":57},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":46},"01M77JYH44ME43XHT2VRHPCXRR","code-refactorer",null,"Autonomous code refactoring agent that rewrites messy functions, splits large files, removes duplication, improves naming, enforces structure, and preserves behavior.","Flow-Research\u002Fharnessy-v2","Flow-Research","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F204254796?v=4","01M6GVJZH9ZV0XGZTVBJRNW5BQ","Flow Research","01M77JYBHV7WQEBVS6R0AQ4YT6",13,"MIT","https:\u002F\u002Fgithub.com\u002FFlow-Research\u002Fharnessy-v2\u002Fblob\u002Fmain\u002Fpackages\u002Fcapability-harnessy-v1-full\u002Fresources\u002Fsource\u002F.agents\u002Fskills\u002Fcode-refactorer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: code-refactorer\ndescription: \"Autonomous code refactoring agent that rewrites messy functions, splits large files, removes duplication, improves naming, enforces structure, and preserves behavior.\"\ndisable-model-invocation: true\nallowed-tools: Read, Write, ApplyPatch, Grep, Glob, Bash\nargument-hint: \"[analyze|split|dedup|rename|status] or path to file\u002Fdirectory\"\n---\n\n# Code Refactorer\n\n## Purpose\nRefactor existing code to be cleaner, more maintainable, and better structured — **without changing observable behavior**.\n\n## Inputs\n- Optional arguments: `analyze`, `split`, `dedup`, `rename`, `status`\n- Path to a file or directory to refactor\n\n- Template paths are resolved from `${AGENTS_SKILLS_ROOT}\u002Fcode-refactorer\u002F`.\n\n## Steps\n1. Follow the command specification in `${AGENTS_SKILLS_ROOT}\u002Fcode-refactorer\u002Fcommands\u002Fcode-refactorer.md` exactly.\n2. Generate `code-refactorer\u002FREFACTOR_REPORT.md` and a patch\u002Fdiff of all changes.\n\n## Capabilities\n\n| Capability | Description |\n|------------|-------------|\n| **Rewrite messy functions** | Flatten deep nesting, reduce complexity, simplify logic |\n| **Split large files** | Break files exceeding size thresholds into focused modules |\n| **Remove duplication** | Extract repeated logic into shared utilities |\n| **Improve naming** | Rename symbols to clearly express intent |\n| **Enforce structure** | Apply consistent layout, ordering, and module boundaries |\n| **Preserve behavior** | Verify tests pass before and after every change |\n\n## Output\n- Refactored source files (in-place or via patch)\n- `code-refactorer\u002FREFACTOR_REPORT.md` summarising every change made and why\n","# Code Refactorer\n\n## Purpose\nRefactor existing code to be cleaner, more maintainable, and better structured — **without changing observable behavior**.\n\n## Inputs\n- Optional arguments: `analyze`, `split`, `dedup`, `rename`, `status`\n- Path to a file or directory to refactor\n\n- Template paths are resolved from `${AGENTS_SKILLS_ROOT}\u002Fcode-refactorer\u002F`.\n\n## Steps\n1. Follow the command specification in `${AGENTS_SKILLS_ROOT}\u002Fcode-refactorer\u002Fcommands\u002Fcode-refactorer.md` exactly.\n2. Generate `code-refactorer\u002FREFACTOR_REPORT.md` and a patch\u002Fdiff of all changes.\n\n## Capabilities\n\n| Capability | Description |\n|------------|-------------|\n| **Rewrite messy functions** | Flatten deep nesting, reduce complexity, simplify logic |\n| **Split large files** | Break files exceeding size thresholds into focused modules |\n| **Remove duplication** | Extract repeated logic into shared utilities |\n| **Improve naming** | Rename symbols to clearly express intent |\n| **Enforce structure** | Apply consistent layout, ordering, and module boundaries |\n| **Preserve behavior** | Verify tests pass before and after every change |\n\n## Output\n- Refactored source files (in-place or via patch)\n- `code-refactorer\u002FREFACTOR_REPORT.md` summarising every change made and why\n",{"name":5,"description":7,"allowed-tools":24,"argument-hint":25,"disable-model-invocation":26},"Read, Write, ApplyPatch, Grep, Glob, Bash","[analyze|split|dedup|rename|status] or path to file\u002Fdirectory",true,"main","437c399aef1913dab00310feea6d7962d3684949","packages\u002Fcapability-harnessy-v1-full\u002Fresources\u002Fsource\u002F.agents\u002Fskills\u002Fcode-refactorer",6,"https:\u002F\u002Fgithub.com\u002FFlow-Research\u002Fharnessy-v2","https:\u002F\u002Fgithub.com\u002FFlow-Research","2026-11-12 09:49:54",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":26},[36,39,42],{"tool":37,"command":38},"npx","npx skills add Flow-Research\u002Fharnessy-v2 --skill code-refactorer",{"tool":40,"command":41},"bunx","bunx skills add Flow-Research\u002Fharnessy-v2 --skill code-refactorer",{"tool":43,"command":44},"pnpm","pnpm dlx skills add Flow-Research\u002Fharnessy-v2 --skill code-refactorer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FFlow-Research\u002Fharnessy-v2\u002Fblob\u002Fmain\u002Fpackages\u002Fcapability-harnessy-v1-full\u002Fresources\u002Fsource\u002F.agents\u002Fskills\u002Fcode-refactorer\u002FSKILL.md",[47,53],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"commands\u002Fcode-refactorer.md","REFERENCE","参考文档",10586,"https:\u002F\u002Fgithub.com\u002FFlow-Research\u002Fharnessy-v2\u002Fblob\u002Fmain\u002Fpackages\u002Fcapability-harnessy-v1-full\u002Fresources\u002Fsource\u002F.agents\u002Fskills\u002Fcode-refactorer\u002Fcommands\u002Fcode-refactorer.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"manifest.yaml",758,"https:\u002F\u002Fgithub.com\u002FFlow-Research\u002Fharnessy-v2\u002Fblob\u002Fmain\u002Fpackages\u002Fcapability-harnessy-v1-full\u002Fresources\u002Fsource\u002F.agents\u002Fskills\u002Fcode-refactorer\u002Fmanifest.yaml",[58,65,72,79,86,93],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M77K5PBWD2KS3QRTWR7VHHXB","personal-knowledge","Save sources to the private Harnessy learning library, sync delivered readings, answer questions from saved evidence, browse its wiki, and generate weekly learning reviews.","https:\u002F\u002Fgithub.com\u002FFlow-Research\u002Fharnessy-v2\u002Fblob\u002Fmain\u002Fpackages\u002Fharnessy-core\u002Fresources\u002Fskills\u002Fpersonal-knowledge\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M77K5MNRTVCPCES38J7PGJCP","valid-skill","A valid skill for testing purposes.","https:\u002F\u002Fgithub.com\u002FFlow-Research\u002Fharnessy-v2\u002Fblob\u002Fmain\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fvalid-skill\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M77K5HQMHXFVQAWSJ9X90BDX","unknown-field","A skill with an unknown frontmatter field.","https:\u002F\u002Fgithub.com\u002FFlow-Research\u002Fharnessy-v2\u002Fblob\u002Fmain\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Funknown-field\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M77K5GNEGDBJ51MNS14A4N46","nested-child","Nested skill should be ignored.","https:\u002F\u002Fgithub.com\u002FFlow-Research\u002Fharnessy-v2\u002Fblob\u002Fmain\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Froot-skill-preferred\u002Fnested-child\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M77K5DY7RPPCFCEXV3AFH0R5","root-skill-preferred","Root skill should win.","https:\u002F\u002Fgithub.com\u002FFlow-Research\u002Fharnessy-v2\u002Fblob\u002Fmain\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Froot-skill-preferred\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":6,"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},"01M77K5CYV52QQ7CWV1TAPG63J","no-frontmatter","https:\u002F\u002Fgithub.com\u002FFlow-Research\u002Fharnessy-v2\u002Fblob\u002Fmain\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fno-frontmatter\u002FSKILL.md",[],[]]