[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F0A4CVEC7CXP03ZX7F0BP7":3,"skill-same:01M7F0A4CVEC7CXP03ZX7F0BP7":46},{"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":30,"updatedAt":31,"install":32,"resources":45},"01M7F0A4CVEC7CXP03ZX7F0BP7","gitnexus-refactoring",null,"Use when the user wants to rename, extract, split, move, or restructure code safely. Examples: \"Rename this function\", \"Extract this into a module\", \"Refactor this class\", \"Move this to a separate file\"","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fgitnexus-refactoring\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: gitnexus-refactoring\ndescription: \"Use when the user wants to rename, extract, split, move, or restructure code safely. Examples: \\\"Rename this function\\\", \\\"Extract this into a module\\\", \\\"Refactor this class\\\", \\\"Move this to a separate file\\\"\"\n---\n\n# Refactoring with GitNexus\n\n## When to Use\n\n- \"Rename this function safely\"\n- \"Extract this into a module\"\n- \"Split this service\"\n- \"Move this to a new file\"\n- Any task involving renaming, extracting, splitting, or restructuring code\n\n## Bind the repository first\n\nRefactoring writes to disk. `rename` with `dry_run: false` edits files in\nwhichever repository was resolved, so binding identity here is a safety gate,\nnot bookkeeping.\n\nCall `list_repos {}` before the first tool call. With one indexed repository,\nuse the examples below as written. With more than one, pass `repo` on every\ncall: an omitted `repo` normally errors, but under an MCP policy with a\nconfigured default it resolves to that default silently. If you cannot tell\nwhich repository is meant, stop and ask. Never run `rename` with\n`dry_run: false` until the preview in the same bound repository has been\nreviewed — its returned `file_path` values show which checkout is about to be\nwritten, so read them as a confirmation of identity.\n\n`list_repos` is paginated, so page with `offset: pagination.nextOffset` until\n`hasMore` is false before concluding a repository is absent.\n\n`detect_changes` takes `worktree` when you are editing a linked worktree the\nMCP server was not launched from; otherwise `git diff` runs in the wrong\ncheckout and reports nothing changed, which reads as a verified refactor.\n\n## Workflow\n\n```\n0. list_repos {}                                  → Bind repo (and worktree)\n1. impact({target: \"X\", direction: \"upstream\"})  → Map all dependents\n2. query({search_query: \"X\"})                            → Find execution flows involving X\n3. context({name: \"X\"})                           → See all incoming\u002Foutgoing refs\n4. Plan update order: interfaces → implementations → callers → tests\n```\n\n> If \"Index is stale\" → run `node .gitnexus\u002Frun.cjs analyze` in terminal.\n\n## Checklists\n\n### Rename Symbol\n\n```\n- [ ] list_repos {} — bind repo; explicit repo when >1 indexed, ask if ambiguous\n- [ ] rename({symbol_name: \"oldName\", new_name: \"newName\", dry_run: true}) — preview all edits\n- [ ] Confirm the previewed file paths are in the bound repository\u002Fworktree\n- [ ] Review graph edits (high confidence) and text_search edits (review carefully)\n- [ ] If satisfied: rename({..., dry_run: false}) — apply edits\n- [ ] detect_changes() — verify only expected files changed\n- [ ] Run tests for affected processes\n```\n\n### Extract Module\n\n```\n- [ ] list_repos {} — bind repo; explicit repo when >1 indexed, ask if ambiguous\n- [ ] context({name: target}) — see all incoming\u002Foutgoing refs\n- [ ] impact({target, direction: \"upstream\"}) — find all external callers\n- [ ] Define new module interface\n- [ ] Extract code, update imports\n- [ ] detect_changes() — verify affected scope\n- [ ] Run tests for affected processes\n```\n\n### Split Function\u002FService\n\n```\n- [ ] list_repos {} — bind repo; explicit repo when >1 indexed, ask if ambiguous\n- [ ] context({name: target}) — understand all callees\n- [ ] Group callees by responsibility\n- [ ] impact({target, direction: \"upstream\"}) — map callers to update\n- [ ] Create new functions\u002Fservices\n- [ ] Update callers\n- [ ] detect_changes() — verify affected scope\n- [ ] Run tests for affected processes\n```\n\n## Tools\n\n**rename** — automated multi-file rename:\n\n```\nrename({symbol_name: \"validateUser\", new_name: \"authenticateUser\", repo: \"my-app\", dry_run: true})\n→ 12 edits across 8 files\n→ 10 graph edits (high confidence), 2 text_search edits (review)\n→ Changes: [{file_path, edits: [{line, old_text, new_text, confidence}]}]\n```\n\n**impact** — map all dependents first:\n\n```\nimpact({target: \"validateUser\", repo: \"my-app\", direction: \"upstream\"})\n→ d=1: loginHandler, apiMiddleware, testUtils\n→ Affected Processes: LoginFlow, TokenRefresh\n```\n\n**detect_changes** — verify your changes after refactoring:\n\n```\ndetect_changes({scope: \"all\"})\n→ Changed: 8 files, 12 symbols\n→ Affected processes: LoginFlow, TokenRefresh\n→ Risk: MEDIUM\n```\n\n`partial: true` (a graph query failed) or `truncated: true` (the changed-symbol\nlisting was capped) means the result is short of the truth: a short or empty\nlist is not proof that only the expected files changed. Re-run it rather than\ntreat the refactor as verified.\n\nA wrong-worktree zero carries neither flag and is indistinguishable from a\nclean verification, so confirm the diffed checkout is the one you edited.\n\n**cypher** — custom reference queries:\n\n```cypher\nMATCH (caller)-[:CodeRelation {type: 'CALLS'}]->(f:Function {name: \"validateUser\"})\nRETURN caller.name, caller.filePath ORDER BY caller.filePath\n```\n\n## Risk Rules\n\n| Risk Factor         | Mitigation                                |\n| ------------------- | ----------------------------------------- |\n| Many callers (>5)   | Use rename for automated updates |\n| Cross-area refs     | Use detect_changes after to verify scope  |\n| String\u002Fdynamic refs | query to find them               |\n| External\u002Fpublic API | Version and deprecate properly            |\n| Same name in another indexed repo | Bind `repo`; verify previewed paths before applying |\n\n## Example: Rename `validateUser` to `authenticateUser`\n\n```\n0. list_repos {}\n   → total: 2 (my-app, billing-api) — both define validateUser, so bind explicitly\n\n1. rename({symbol_name: \"validateUser\", new_name: \"authenticateUser\", repo: \"my-app\", dry_run: true})\n   → 12 edits: 10 graph (safe), 2 text_search (review)\n   → Files: validator.ts, login.ts, middleware.ts, config.json...\n\n2. Review text_search edits (config.json: dynamic reference!)\n\n3. rename({symbol_name: \"validateUser\", new_name: \"authenticateUser\", repo: \"my-app\", dry_run: false})\n   → Applied 12 edits across 8 files\n\n4. detect_changes({scope: \"all\", repo: \"my-app\"})\n   → Affected: LoginFlow, TokenRefresh\n   → Risk: MEDIUM — run tests for these flows\n   Repository: my-app (\u002Fabs\u002Fpath\u002Fmy-app)  Worktree: same  Index: current\n```\n\nWith a single indexed repository, step 0 returns `total: 1` and the `repo`\nargument drops out of every call above.\n","# Refactoring with GitNexus\n\n## When to Use\n\n- \"Rename this function safely\"\n- \"Extract this into a module\"\n- \"Split this service\"\n- \"Move this to a new file\"\n- Any task involving renaming, extracting, splitting, or restructuring code\n\n## Bind the repository first\n\nRefactoring writes to disk. `rename` with `dry_run: false` edits files in\nwhichever repository was resolved, so binding identity here is a safety gate,\nnot bookkeeping.\n\nCall `list_repos {}` before the first tool call. With one indexed repository,\nuse the examples below as written. With more than one, pass `repo` on every\ncall: an omitted `repo` normally errors, but under an MCP policy with a\nconfigured default it resolves to that default silently. If you cannot tell\nwhich repository is meant, stop and ask. Never run `rename` with\n`dry_run: false` until the preview in the same bound repository has been\nreviewed — its returned `file_path` values show which checkout is about to be\nwritten, so read them as a confirmation of identity.\n\n`list_repos` is paginated, so page with `offset: pagination.nextOffset` until\n`hasMore` is false before concluding a repository is absent.\n\n`detect_changes` takes `worktree` when you are editing a linked worktree the\nMCP server was not launched from; otherwise `git diff` runs in the wrong\ncheckout and reports nothing changed, which reads as a verified refactor.\n\n## Workflow\n\n```\n0. list_repos {}                                  → Bind repo (and worktree)\n1. impact({target: \"X\", direction: \"upstream\"})  → Map all dependents\n2. query({search_query: \"X\"})                            → Find execution flows involving X\n3. context({name: \"X\"})                           → See all incoming\u002Foutgoing refs\n4. Plan update order: interfaces → implementations → callers → tests\n```\n\n> If \"Index is stale\" → run `node .gitnexus\u002Frun.cjs analyze` in terminal.\n\n## Checklists\n\n### Rename Symbol\n\n```\n- [ ] list_repos {} — bind repo; explicit repo when >1 indexed, ask if ambiguous\n- [ ] rename({symbol_name: \"oldName\", new_name: \"newName\", dry_run: true}) — preview all edits\n- [ ] Confirm the previewed file paths are in the bound repository\u002Fworktree\n- [ ] Review graph edits (high confidence) and text_search edits (review carefully)\n- [ ] If satisfied: rename({..., dry_run: false}) — apply edits\n- [ ] detect_changes() — verify only expected files changed\n- [ ] Run tests for affected processes\n```\n\n### Extract Module\n\n```\n- [ ] list_repos {} — bind repo; explicit repo when >1 indexed, ask if ambiguous\n- [ ] context({name: target}) — see all incoming\u002Foutgoing refs\n- [ ] impact({target, direction: \"upstream\"}) — find all external callers\n- [ ] Define new module interface\n- [ ] Extract code, update imports\n- [ ] detect_changes() — verify affected scope\n- [ ] Run tests for affected processes\n```\n\n### Split Function\u002FService\n\n```\n- [ ] list_repos {} — bind repo; explicit repo when >1 indexed, ask if ambiguous\n- [ ] context({name: target}) — understand all callees\n- [ ] Group callees by responsibility\n- [ ] impact({target, direction: \"upstream\"}) — map callers to update\n- [ ] Create new functions\u002Fservices\n- [ ] Update callers\n- [ ] detect_changes() — verify affected scope\n- [ ] Run tests for affected processes\n```\n\n## Tools\n\n**rename** — automated multi-file rename:\n\n```\nrename({symbol_name: \"validateUser\", new_name: \"authenticateUser\", repo: \"my-app\", dry_run: true})\n→ 12 edits across 8 files\n→ 10 graph edits (high confidence), 2 text_search edits (review)\n→ Changes: [{file_path, edits: [{line, old_text, new_text, confidence}]}]\n```\n\n**impact** — map all dependents first:\n\n```\nimpact({target: \"validateUser\", repo: \"my-app\", direction: \"upstream\"})\n→ d=1: loginHandler, apiMiddleware, testUtils\n→ Affected Processes: LoginFlow, TokenRefresh\n```\n\n**detect_changes** — verify your changes after refactoring:\n\n```\ndetect_changes({scope: \"all\"})\n→ Changed: 8 files, 12 symbols\n→ Affected processes: LoginFlow, TokenRefresh\n→ Risk: MEDIUM\n```\n\n`partial: true` (a graph query failed) or `truncated: true` (the changed-symbol\nlisting was capped) means the result is short of the truth: a short or empty\nlist is not proof that only the expected files changed. Re-run it rather than\ntreat the refactor as verified.\n\nA wrong-worktree zero carries neither flag and is indistinguishable from a\nclean verification, so confirm the diffed checkout is the one you edited.\n\n**cypher** — custom reference queries:\n\n```cypher\nMATCH (caller)-[:CodeRelation {type: 'CALLS'}]->(f:Function {name: \"validateUser\"})\nRETURN caller.name, caller.filePath ORDER BY caller.filePath\n```\n\n## Risk Rules\n\n| Risk Factor         | Mitigation                                |\n| ------------------- | ----------------------------------------- |\n| Many callers (>5)   | Use rename for automated updates |\n| Cross-area refs     | Use detect_changes after to verify scope  |\n| String\u002Fdynamic refs | query to find them               |\n| External\u002Fpublic API | Version and deprecate properly            |\n| Same name in another indexed repo | Bind `repo`; verify previewed paths before applying |\n\n## Example: Rename `validateUser` to `authenticateUser`\n\n```\n0. list_repos {}\n   → total: 2 (my-app, billing-api) — both define validateUser, so bind explicitly\n\n1. rename({symbol_name: \"validateUser\", new_name: \"authenticateUser\", repo: \"my-app\", dry_run: true})\n   → 12 edits: 10 graph (safe), 2 text_search (review)\n   → Files: validator.ts, login.ts, middleware.ts, config.json...\n\n2. Review text_search edits (config.json: dynamic reference!)\n\n3. rename({symbol_name: \"validateUser\", new_name: \"authenticateUser\", repo: \"my-app\", dry_run: false})\n   → Applied 12 edits across 8 files\n\n4. detect_changes({scope: \"all\", repo: \"my-app\"})\n   → Affected: LoginFlow, TokenRefresh\n   → Risk: MEDIUM — run tests for these flows\n   Repository: my-app (\u002Fabs\u002Fpath\u002Fmy-app)  Worktree: same  Index: current\n```\n\nWith a single indexed repository, step 0 returns `total: 1` and the `repo`\nargument drops out of every call above.\n",{"name":5,"description":7},"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fgitnexus-refactoring",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill gitnexus-refactoring",{"tool":38,"command":39},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill gitnexus-refactoring",{"tool":41,"command":42},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill gitnexus-refactoring","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fgitnexus-refactoring\u002FSKILL.md",true,[],[47,54,59,66,73,80],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":55,"name":49,"nameZh":6,"description":50,"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},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]