[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78CZ36RRZ2K16XW7FPQBMG3":3,"skill-same:01M78CZ36RRZ2K16XW7FPQBMG3":63},{"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":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":37,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":39,"install":40,"resources":52},"01M78CZ36RRZ2K16XW7FPQBMG3","refactor-plan",null,"PRODUCES a refactoring plan ONLY -- impact analysis, step ordering, risk, rollback -- NO code changes. NOT for executing refactors (use functional-design) or dependency upgrades (use deps-check).","atretyak1985\u002Fswarmery","atretyak1985","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1436737?v=4","01M78CTSX57YH0EYY9YGH0TWKX","Andrii Tretiak","01M78CTSXRPJPYQ7GNPMP45TYX",8,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Fplugins\u002Fcore\u002Fskills\u002Frefactor-plan\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: refactor-plan\ndescription: \"PRODUCES a refactoring plan ONLY -- impact analysis, step ordering, risk, rollback -- NO code changes. NOT for executing refactors (use functional-design) or dependency upgrades (use deps-check).\"\nversion: \"1.0.0\"\nowner: \"swarmery-core\"\nallowed-tools: Read, Grep, Glob\ndisable-model-invocation: true\ndocs:\n  status: reviewed\n  source_sha: 5d88f40704d6\n  updated: 2026-08-06\n---\n\n# Purpose\n\nGenerate a structured refactoring plan for a proposed code change: current state, cross-repo impact, step-by-step migration order, risks, and rollback. The output is a markdown document reviewed before execution — this skill plans only, never edits code. Success: every cited file was found via Grep\u002FGlob, all affected repos in every stack language are covered, and the rollback is executable without interpretation.\n\n# Rules (never violate)\n\n1. Read-only: Read\u002FGrep\u002FGlob only — no file is ever modified.\n2. Every file cited in the plan is a real Grep\u002FGlob result, never a guess.\n3. Blast radius over 50 files → stop and escalate to the user before continuing.\n4. Save the plan to the workspace task dir (`...\u002Fplan\u002FREADME.md`), never inside a code repo.\n5. Rollback must be specific — commit references, migration file names, revert order.\n6. Schema changes go through migrations (landing before dependent code), never manual DDL.\n\n# Resources\n\n- Read `resources\u002Fplanning-procedure.md` when building the plan: the 7-step procedure with checkpoints, self-check, mistakes, escalation triggers, and what to surface.\n- Read `resources\u002Fplan-template.md` when writing the output: the template, save-location contract, length budget, a full worked rename example, and failure modes.\n\n# How to use\n\n## What it does\n\nWrites a refactoring plan for a change you are considering — and nothing else. It greps the codebase for every real reference, maps which repos and files are hit, orders steps so nothing lands before its dependency, names the risks, and spells out how to undo each step, all for review before anyone touches code.\n\n## When to use it\n\n- Renaming a type, table, or module and needing to know how far the change reaches.\n- Extracting shared logic or splitting a module across repo boundaries.\n- Changing a streamed (WebSocket\u002FSSE) message format between producer and consumer; migrating one pattern to another across many files.\n\nNot for: executing refactors (`functional-design`), dependency bumps (`deps-check`), one-line fixes, or release\u002Fenvironment rollback (the project's infra pack skills).\n\n## How to invoke\n\n```\nSkill(skill: \"core:refactor-plan\")\n```\n\nState the refactoring goal, the repos in scope (defaults to all `project.json → repos`), and any constraints (freeze windows, untouchable areas).\n\n## Worked example\n\n```\nSkill(skill: \"core:refactor-plan\")\n\"Rename the legacy_entity table and every reference to device,\n across apps\u002F\u003CmainApp> and the edge repo.\"\n```\n\nThe skill greps both repos and finds 47 references in 23 files plus 8 in the edge service. The plan orders the migration first, then the ORM schema, the API route directory, imports and tests; flags that renaming the public route breaks external callers, proposes an alias, and names the exact revert migration in the rollback.\n\n## Related\n\n`monorepo-coordination` (cross-repo merge ordering), `functional-design` (execute instead of plan), `migration-check` (verify an introduced migration), `code-standards` (conventions while executing).\n","# Purpose\n\nGenerate a structured refactoring plan for a proposed code change: current state, cross-repo impact, step-by-step migration order, risks, and rollback. The output is a markdown document reviewed before execution — this skill plans only, never edits code. Success: every cited file was found via Grep\u002FGlob, all affected repos in every stack language are covered, and the rollback is executable without interpretation.\n\n# Rules (never violate)\n\n1. Read-only: Read\u002FGrep\u002FGlob only — no file is ever modified.\n2. Every file cited in the plan is a real Grep\u002FGlob result, never a guess.\n3. Blast radius over 50 files → stop and escalate to the user before continuing.\n4. Save the plan to the workspace task dir (`...\u002Fplan\u002FREADME.md`), never inside a code repo.\n5. Rollback must be specific — commit references, migration file names, revert order.\n6. Schema changes go through migrations (landing before dependent code), never manual DDL.\n\n# Resources\n\n- Read `resources\u002Fplanning-procedure.md` when building the plan: the 7-step procedure with checkpoints, self-check, mistakes, escalation triggers, and what to surface.\n- Read `resources\u002Fplan-template.md` when writing the output: the template, save-location contract, length budget, a full worked rename example, and failure modes.\n\n# How to use\n\n## What it does\n\nWrites a refactoring plan for a change you are considering — and nothing else. It greps the codebase for every real reference, maps which repos and files are hit, orders steps so nothing lands before its dependency, names the risks, and spells out how to undo each step, all for review before anyone touches code.\n\n## When to use it\n\n- Renaming a type, table, or module and needing to know how far the change reaches.\n- Extracting shared logic or splitting a module across repo boundaries.\n- Changing a streamed (WebSocket\u002FSSE) message format between producer and consumer; migrating one pattern to another across many files.\n\nNot for: executing refactors (`functional-design`), dependency bumps (`deps-check`), one-line fixes, or release\u002Fenvironment rollback (the project's infra pack skills).\n\n## How to invoke\n\n```\nSkill(skill: \"core:refactor-plan\")\n```\n\nState the refactoring goal, the repos in scope (defaults to all `project.json → repos`), and any constraints (freeze windows, untouchable areas).\n\n## Worked example\n\n```\nSkill(skill: \"core:refactor-plan\")\n\"Rename the legacy_entity table and every reference to device,\n across apps\u002F\u003CmainApp> and the edge repo.\"\n```\n\nThe skill greps both repos and finds 47 references in 23 files plus 8 in the edge service. The plan orders the migration first, then the ORM schema, the API route directory, imports and tests; flags that renaming the public route breaks external callers, proposes an alias, and names the exact revert migration in the rollback.\n\n## Related\n\n`monorepo-coordination` (cross-repo merge ordering), `functional-design` (execute instead of plan), `migration-check` (verify an introduced migration), `code-standards` (conventions while executing).\n",{"docs":24,"name":5,"owner":28,"version":29,"description":7,"allowed-tools":30,"disable-model-invocation":31},{"status":25,"updated":26,"source_sha":27},"reviewed",1785974400000,"5d88f40704d6","swarmery-core","1.0.0","Read, Grep, Glob",true,"main","2d9e918cc79c9b17b59356780ff0a3da38a3e98a","plugins\u002Fcore\u002Fskills\u002Frefactor-plan",5,"https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery","https:\u002F\u002Fatretyak1985.github.io\u002Fswarmery\u002F","https:\u002F\u002Fgithub.com\u002Fatretyak1985","2026-11-11 04:29:12",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":31},[42,45,48],{"tool":43,"command":44},"npx","npx skills add atretyak1985\u002Fswarmery --skill refactor-plan",{"tool":46,"command":47},"bunx","bunx skills add atretyak1985\u002Fswarmery --skill refactor-plan",{"tool":49,"command":50},"pnpm","pnpm dlx skills add atretyak1985\u002Fswarmery --skill refactor-plan","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Fplugins\u002Fcore\u002Fskills\u002Frefactor-plan\u002FSKILL.md",[53,59],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"resources\u002Fplan-template.md","REFERENCE","参考文档",3880,"https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Fplugins\u002Fcore\u002Fskills\u002Frefactor-plan\u002Fresources\u002Fplan-template.md",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":61,"sourceHtmlUrl":62},"resources\u002Fplanning-procedure.md",7352,"https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Fplugins\u002Fcore\u002Fskills\u002Frefactor-plan\u002Fresources\u002Fplanning-procedure.md",[64,71,77,84,91,98],{"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":19},"01M78D4T1FFWFW19Z44AHH5BSY","short-desc","Too short.","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fshort-desc\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"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":74,"categories":75,"keywords":76,"publishedAt":19},"01M78D4S0TWT42WXFJHC1DBN0R","no-frontmatter","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fno-frontmatter\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M78D4Q14P8DJ4W78N62F3EG2","global-skill","Fixture global skill (minimal user-scope shape, format doc §2.3).","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fglobal-skill\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M78D4N1JHGQJQ7EZ43KY5SV3","documented-skill","Fixture skill whose usage guide deliberately omits the Worked example subsection.","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fdocumented-skill\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M78D4KVNZ03GBKGDFJZWW5FJ","z","NOT auto-discovered — only skills\u002F is scanned for plugins (§2.2).","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fplugins\u002Fcache\u002Fmkt\u002Ftoolpack\u002F1.0.0\u002Fworkflow-skills\u002Fz\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M78D4JMBRZWK51HFE5RZJGHC","y","Plugin skill y from toolpack — stored as \"toolpack:y\".","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fplugins\u002Fcache\u002Fmkt\u002Ftoolpack\u002F1.0.0\u002Fskills\u002Fy\u002FSKILL.md",[],[]]