[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DF9N509A9EGDFQMSPBKEYN":3,"skill-same:01M7DF9N509A9EGDFQMSPBKEYN":45},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7DF9N509A9EGDFQMSPBKEYN","refactoring",null,"Restructure, rename, split, merge or simplify code while preserving its behavior. Use when improving code structure or enforcing a boundary without changing what users observe; use feature-development when behavior changes.","andersonmrodrigues\u002Fpaved","andersonmrodrigues","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F13907380?v=4","01M7DEV3FP2VMQZ3FP2FP1TK1C","Anderson Rodrigues","01M7DEV3GC2QAQBW4FMNT98H48",1,"MIT","https:\u002F\u002Fgithub.com\u002Fandersonmrodrigues\u002Fpaved\u002Fblob\u002Fmain\u002Fplugins\u002Fpaved\u002Fskills\u002Frefactoring\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: refactoring\ndescription: >-\n  Restructure, rename, split, merge or simplify code while preserving its behavior. Use when improving code structure or enforcing a boundary without changing what users observe; use feature-development when behavior changes.\n---\n\n\u003C!-- Generated by Paved plugin paved@2.29.0 from core.development.refactoring@0.2.1; edit Paved Core instead. -->\n# Refactoring\n\n## When to use\n\nIn the refactor workflow, or when a feature or fix needs the code reshaped first. If\nbehavior must change too, finish the refactoring, verify it, then change behavior with\n`feature-development`: never both in one step.\n\n## Required context\n\nThe code to restructure and the tests that cover it. Useful: architecture context for\nthe target structure, and the rules in scope.\n\n## Preconditions\n\n- The behavior to preserve is covered by tests that pass now. If coverage is missing,\n  first add characterization tests that pin the current behavior, including behavior\n  that looks wrong. Use `unit-testing` for them, or `integration-testing` when the\n  behavior only shows across a boundary.\n- The target structure is stated: what moves where, and why.\n\n## Procedure\n\n1. **Record the baseline**: run the covering tests and keep the result.\n2. **Pick the smallest step** toward the target: one rename, one extraction, one move.\n3. **Apply it** without changing any observable result: return values, errors, side\n   effects, ordering, logging that others rely on, public interfaces.\n4. **Run the covering tests.** On failure, undo the step rather than repair forward.\n5. **Repeat** until the target structure is reached.\n6. **Remove what is now dead**: old entry points, forwarding shims nobody calls,\n   duplicate helpers. Search for every reference first, including names in strings,\n   configuration and documentation.\n7. **Compare with the baseline**: the same tests pass with the same results; no test was\n   changed to make it pass, except for mechanical renames.\n\nFor a Paved workflow, save the reviewed refactoring plan at\n`.paved\u002Fdocuments\u002Fplans\u002F\u003Crun-id>.md`. Keep any structural task breakdown under\n`.paved\u002Fdocuments\u002Ftasks\u002F\u003Crun-id>.md`, using the same workflow run id.\n\n## Tools\n\nNone beyond the verification profile. Search the code for references before removing\nanything.\n\n## Rules\n\n`core.architecture.follow-existing-patterns`: the target structure is one the repository\nalready uses. `core.architecture.respect-declared-boundaries`: a refactor must not\nintroduce a dependency the boundaries forbid, even temporarily.\n\n## Verification\n\nRequired: `unit`. Recommended: `integration` for code with external collaborators,\n`architecture` when modules or dependencies move, `static-analysis` and `build`.\n\n## Evidence\n\nThe baseline and final check results, and the diff.\n\n## Completion criteria\n\n- The covering tests pass, unchanged except for mechanical renames.\n- Public interfaces are unchanged, or every caller was updated and the change recorded.\n- No dead code remains from the old structure.\n\n## Failure modes\n\n| Failure | Signal | Response |\n|---|---|---|\n| Hidden behavior change | A test assertion had to change | Undo; split out the behavior change |\n| Big-bang step | Many files change before tests run | Undo to the last green step; take smaller steps |\n| Refactoring without a net | No test fails when the code is broken on purpose | Add characterization tests first |\n| Orphaned references | A name survives in configuration or strings | Search again; update or remove them |\n\n## References\n\nNone.\n\n\n## Paved integration\n\nUse the project-local Paved contract as the source of truth. Discover state with `node \"\u003Cplugin root>\u002Fscripts\u002Fpaved.mjs\" status --json`, load only relevant `.paved\u002Fproject\u002F` context, and invoke verification with `node \"\u003Cplugin root>\u002Fscripts\u002Fpaved.mjs\" verify --json`. `\u003Cplugin root>` is the installed Paved plugin directory, two directories above this SKILL.md. Always run the launcher from the repository being worked on, never from the plugin directory. Do not edit generated integration files or bypass Paved lifecycle and ownership checks.\n","\u003C!-- Generated by Paved plugin paved@2.29.0 from core.development.refactoring@0.2.1; edit Paved Core instead. -->\n# Refactoring\n\n## When to use\n\nIn the refactor workflow, or when a feature or fix needs the code reshaped first. If\nbehavior must change too, finish the refactoring, verify it, then change behavior with\n`feature-development`: never both in one step.\n\n## Required context\n\nThe code to restructure and the tests that cover it. Useful: architecture context for\nthe target structure, and the rules in scope.\n\n## Preconditions\n\n- The behavior to preserve is covered by tests that pass now. If coverage is missing,\n  first add characterization tests that pin the current behavior, including behavior\n  that looks wrong. Use `unit-testing` for them, or `integration-testing` when the\n  behavior only shows across a boundary.\n- The target structure is stated: what moves where, and why.\n\n## Procedure\n\n1. **Record the baseline**: run the covering tests and keep the result.\n2. **Pick the smallest step** toward the target: one rename, one extraction, one move.\n3. **Apply it** without changing any observable result: return values, errors, side\n   effects, ordering, logging that others rely on, public interfaces.\n4. **Run the covering tests.** On failure, undo the step rather than repair forward.\n5. **Repeat** until the target structure is reached.\n6. **Remove what is now dead**: old entry points, forwarding shims nobody calls,\n   duplicate helpers. Search for every reference first, including names in strings,\n   configuration and documentation.\n7. **Compare with the baseline**: the same tests pass with the same results; no test was\n   changed to make it pass, except for mechanical renames.\n\nFor a Paved workflow, save the reviewed refactoring plan at\n`.paved\u002Fdocuments\u002Fplans\u002F\u003Crun-id>.md`. Keep any structural task breakdown under\n`.paved\u002Fdocuments\u002Ftasks\u002F\u003Crun-id>.md`, using the same workflow run id.\n\n## Tools\n\nNone beyond the verification profile. Search the code for references before removing\nanything.\n\n## Rules\n\n`core.architecture.follow-existing-patterns`: the target structure is one the repository\nalready uses. `core.architecture.respect-declared-boundaries`: a refactor must not\nintroduce a dependency the boundaries forbid, even temporarily.\n\n## Verification\n\nRequired: `unit`. Recommended: `integration` for code with external collaborators,\n`architecture` when modules or dependencies move, `static-analysis` and `build`.\n\n## Evidence\n\nThe baseline and final check results, and the diff.\n\n## Completion criteria\n\n- The covering tests pass, unchanged except for mechanical renames.\n- Public interfaces are unchanged, or every caller was updated and the change recorded.\n- No dead code remains from the old structure.\n\n## Failure modes\n\n| Failure | Signal | Response |\n|---|---|---|\n| Hidden behavior change | A test assertion had to change | Undo; split out the behavior change |\n| Big-bang step | Many files change before tests run | Undo to the last green step; take smaller steps |\n| Refactoring without a net | No test fails when the code is broken on purpose | Add characterization tests first |\n| Orphaned references | A name survives in configuration or strings | Search again; update or remove them |\n\n## References\n\nNone.\n\n\n## Paved integration\n\nUse the project-local Paved contract as the source of truth. Discover state with `node \"\u003Cplugin root>\u002Fscripts\u002Fpaved.mjs\" status --json`, load only relevant `.paved\u002Fproject\u002F` context, and invoke verification with `node \"\u003Cplugin root>\u002Fscripts\u002Fpaved.mjs\" verify --json`. `\u003Cplugin root>` is the installed Paved plugin directory, two directories above this SKILL.md. Always run the launcher from the repository being worked on, never from the plugin directory. Do not edit generated integration files or bypass Paved lifecycle and ownership checks.\n",{"name":5,"description":7},"main","1cd80f05aff924ea609012e864fa5c22c16c7d2d","plugins\u002Fpaved\u002Fskills\u002Frefactoring",0,"https:\u002F\u002Fgithub.com\u002Fandersonmrodrigues\u002Fpaved","https:\u002F\u002Fgithub.com\u002Fandersonmrodrigues","2026-11-14 20:09:28",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add andersonmrodrigues\u002Fpaved --skill refactoring",{"tool":37,"command":38},"bunx","bunx skills add andersonmrodrigues\u002Fpaved --skill refactoring",{"tool":40,"command":41},"pnpm","pnpm dlx skills add andersonmrodrigues\u002Fpaved --skill refactoring","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fandersonmrodrigues\u002Fpaved\u002Fblob\u002Fmain\u002Fplugins\u002Fpaved\u002Fskills\u002Frefactoring\u002FSKILL.md",true,[],[46,53,59,65,71,77],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M7DFBWJT4T1MPBHTWT19PBEK","sample-skill","Does a sample task. Use when a sample is needed.","https:\u002F\u002Fgithub.com\u002Fandersonmrodrigues\u002Fpaved\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fvalid\u002Fsample-skill\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7DFBS6WTK30PBSW4ZS0NPWT","unexplained-contract","https:\u002F\u002Fgithub.com\u002Fandersonmrodrigues\u002Fpaved\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Finvalid\u002Funexplained-contract\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":49,"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},"01M7DFBPJGG170V9WTMFWY73R4","shell-block","https:\u002F\u002Fgithub.com\u002Fandersonmrodrigues\u002Fpaved\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Finvalid\u002Fshell-block\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":49,"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},"01M7DFBMZYR20JPTXNE5A8EFG6","project-identifier","https:\u002F\u002Fgithub.com\u002Fandersonmrodrigues\u002Fpaved\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Finvalid\u002Fproject-identifier\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":49,"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},"01M7DFBJ8J533DAKA3FTF54SX3","oversized","https:\u002F\u002Fgithub.com\u002Fandersonmrodrigues\u002Fpaved\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Finvalid\u002Foversized\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},"01M7DFBFAD0RYCRHTZ2JW4RX7E","no-activation","Does a sample task.","https:\u002F\u002Fgithub.com\u002Fandersonmrodrigues\u002Fpaved\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Finvalid\u002Fno-activation\u002FSKILL.md",[],[]]