[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AGCZYWMGCVRPAAJ1VHD65V":3,"skill-same:01M7AGCZYWMGCVRPAAJ1VHD65V":49},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":48},"01M7AGCZYWMGCVRPAAJ1VHD65V","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\"","zloeber\u002FSecretZero","zloeber","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4702624?v=4","01M7AGCEQ32CCAQKAJJ3NS7BE3","Zachary Loeber","01M7AGCEQV5M7FRW8FYTJQAM64",8,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fzloeber\u002FSecretZero\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgitnexus\u002Fgitnexus-refactoring\u002FSKILL.md",[],[],"2026-11-15 14:19:17",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\\\"\"\nmetadata:\n  internal: true\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## Workflow\n\n```\n1. gitnexus_impact({target: \"X\", direction: \"upstream\"})  → Map all dependents\n2. gitnexus_query({query: \"X\"})                            → Find execution flows involving X\n3. gitnexus_context({name: \"X\"})                           → See all incoming\u002Foutgoing refs\n4. Plan update order: interfaces → implementations → callers → tests\n```\n\n> If \"Index is stale\" → run `npx gitnexus analyze` in terminal.\n\n## Checklists\n\n### Rename Symbol\n\n```\n- [ ] gitnexus_rename({symbol_name: \"oldName\", new_name: \"newName\", dry_run: true}) — preview all edits\n- [ ] Review graph edits (high confidence) and ast_search edits (review carefully)\n- [ ] If satisfied: gitnexus_rename({..., dry_run: false}) — apply edits\n- [ ] gitnexus_detect_changes() — verify only expected files changed\n- [ ] Run tests for affected processes\n```\n\n### Extract Module\n\n```\n- [ ] gitnexus_context({name: target}) — see all incoming\u002Foutgoing refs\n- [ ] gitnexus_impact({target, direction: \"upstream\"}) — find all external callers\n- [ ] Define new module interface\n- [ ] Extract code, update imports\n- [ ] gitnexus_detect_changes() — verify affected scope\n- [ ] Run tests for affected processes\n```\n\n### Split Function\u002FService\n\n```\n- [ ] gitnexus_context({name: target}) — understand all callees\n- [ ] Group callees by responsibility\n- [ ] gitnexus_impact({target, direction: \"upstream\"}) — map callers to update\n- [ ] Create new functions\u002Fservices\n- [ ] Update callers\n- [ ] gitnexus_detect_changes() — verify affected scope\n- [ ] Run tests for affected processes\n```\n\n## Tools\n\n**gitnexus_rename** — automated multi-file rename:\n\n```\ngitnexus_rename({symbol_name: \"validateUser\", new_name: \"authenticateUser\", dry_run: true})\n→ 12 edits across 8 files\n→ 10 graph edits (high confidence), 2 ast_search edits (review)\n→ Changes: [{file_path, edits: [{line, old_text, new_text, confidence}]}]\n```\n\n**gitnexus_impact** — map all dependents first:\n\n```\ngitnexus_impact({target: \"validateUser\", direction: \"upstream\"})\n→ d=1: loginHandler, apiMiddleware, testUtils\n→ Affected Processes: LoginFlow, TokenRefresh\n```\n\n**gitnexus_detect_changes** — verify your changes after refactoring:\n\n```\ngitnexus_detect_changes({scope: \"all\"})\n→ Changed: 8 files, 12 symbols\n→ Affected processes: LoginFlow, TokenRefresh\n→ Risk: MEDIUM\n```\n\n**gitnexus_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 gitnexus_rename for automated updates |\n| Cross-area refs     | Use detect_changes after to verify scope  |\n| String\u002Fdynamic refs | gitnexus_query to find them               |\n| External\u002Fpublic API | Version and deprecate properly            |\n\n## Example: Rename `validateUser` to `authenticateUser`\n\n```\n1. gitnexus_rename({symbol_name: \"validateUser\", new_name: \"authenticateUser\", dry_run: true})\n   → 12 edits: 10 graph (safe), 2 ast_search (review)\n   → Files: validator.ts, login.ts, middleware.ts, config.json...\n\n2. Review ast_search edits (config.json: dynamic reference!)\n\n3. gitnexus_rename({symbol_name: \"validateUser\", new_name: \"authenticateUser\", dry_run: false})\n   → Applied 12 edits across 8 files\n\n4. gitnexus_detect_changes({scope: \"all\"})\n   → Affected: LoginFlow, TokenRefresh\n   → Risk: MEDIUM — run tests for these flows\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## Workflow\n\n```\n1. gitnexus_impact({target: \"X\", direction: \"upstream\"})  → Map all dependents\n2. gitnexus_query({query: \"X\"})                            → Find execution flows involving X\n3. gitnexus_context({name: \"X\"})                           → See all incoming\u002Foutgoing refs\n4. Plan update order: interfaces → implementations → callers → tests\n```\n\n> If \"Index is stale\" → run `npx gitnexus analyze` in terminal.\n\n## Checklists\n\n### Rename Symbol\n\n```\n- [ ] gitnexus_rename({symbol_name: \"oldName\", new_name: \"newName\", dry_run: true}) — preview all edits\n- [ ] Review graph edits (high confidence) and ast_search edits (review carefully)\n- [ ] If satisfied: gitnexus_rename({..., dry_run: false}) — apply edits\n- [ ] gitnexus_detect_changes() — verify only expected files changed\n- [ ] Run tests for affected processes\n```\n\n### Extract Module\n\n```\n- [ ] gitnexus_context({name: target}) — see all incoming\u002Foutgoing refs\n- [ ] gitnexus_impact({target, direction: \"upstream\"}) — find all external callers\n- [ ] Define new module interface\n- [ ] Extract code, update imports\n- [ ] gitnexus_detect_changes() — verify affected scope\n- [ ] Run tests for affected processes\n```\n\n### Split Function\u002FService\n\n```\n- [ ] gitnexus_context({name: target}) — understand all callees\n- [ ] Group callees by responsibility\n- [ ] gitnexus_impact({target, direction: \"upstream\"}) — map callers to update\n- [ ] Create new functions\u002Fservices\n- [ ] Update callers\n- [ ] gitnexus_detect_changes() — verify affected scope\n- [ ] Run tests for affected processes\n```\n\n## Tools\n\n**gitnexus_rename** — automated multi-file rename:\n\n```\ngitnexus_rename({symbol_name: \"validateUser\", new_name: \"authenticateUser\", dry_run: true})\n→ 12 edits across 8 files\n→ 10 graph edits (high confidence), 2 ast_search edits (review)\n→ Changes: [{file_path, edits: [{line, old_text, new_text, confidence}]}]\n```\n\n**gitnexus_impact** — map all dependents first:\n\n```\ngitnexus_impact({target: \"validateUser\", direction: \"upstream\"})\n→ d=1: loginHandler, apiMiddleware, testUtils\n→ Affected Processes: LoginFlow, TokenRefresh\n```\n\n**gitnexus_detect_changes** — verify your changes after refactoring:\n\n```\ngitnexus_detect_changes({scope: \"all\"})\n→ Changed: 8 files, 12 symbols\n→ Affected processes: LoginFlow, TokenRefresh\n→ Risk: MEDIUM\n```\n\n**gitnexus_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 gitnexus_rename for automated updates |\n| Cross-area refs     | Use detect_changes after to verify scope  |\n| String\u002Fdynamic refs | gitnexus_query to find them               |\n| External\u002Fpublic API | Version and deprecate properly            |\n\n## Example: Rename `validateUser` to `authenticateUser`\n\n```\n1. gitnexus_rename({symbol_name: \"validateUser\", new_name: \"authenticateUser\", dry_run: true})\n   → 12 edits: 10 graph (safe), 2 ast_search (review)\n   → Files: validator.ts, login.ts, middleware.ts, config.json...\n\n2. Review ast_search edits (config.json: dynamic reference!)\n\n3. gitnexus_rename({symbol_name: \"validateUser\", new_name: \"authenticateUser\", dry_run: false})\n   → Applied 12 edits across 8 files\n\n4. gitnexus_detect_changes({scope: \"all\"})\n   → Affected: LoginFlow, TokenRefresh\n   → Risk: MEDIUM — run tests for these flows\n```\n",{"name":5,"metadata":24,"description":7},{"internal":25},true,"main","a682dba45de8f378811b7c88ac060527ce90a912",".agents\u002Fskills\u002Fgitnexus\u002Fgitnexus-refactoring",0,"https:\u002F\u002Fgithub.com\u002Fzloeber\u002FSecretZero","https:\u002F\u002Fsecret0.com\u002F","https:\u002F\u002Fgithub.com\u002Fzloeber","https:\u002F\u002Fblog.zacharyloeber.com","Infrastructure and cloud solutions architect. Automation engineer. Professional complexity eater.","2026-10-31 22:04:55",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":25},[38,41,44],{"tool":39,"command":40},"npx","npx skills add zloeber\u002FSecretZero --skill gitnexus-refactoring",{"tool":42,"command":43},"bunx","bunx skills add zloeber\u002FSecretZero --skill gitnexus-refactoring",{"tool":45,"command":46},"pnpm","pnpm dlx skills add zloeber\u002FSecretZero --skill gitnexus-refactoring","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzloeber\u002FSecretZero\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgitnexus\u002Fgitnexus-refactoring\u002FSKILL.md",[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7AGFT72DBDAFDCCS2SCY12Q","secretzero","Compatibility entrypoint for SecretZero skills. Enforces the absolute rule:\nnever consume secrets in agent context — use SecretZero for all secret\nhandling. Routes to secretzero-author, secretzero-agent, secretzero-handle,\nand secretzero-agent-adopt.","https:\u002F\u002Fgithub.com\u002Fzloeber\u002FSecretZero\u002Fblob\u002Fmain\u002Fsrc\u002Fsecretzero\u002Fdata\u002Fskills\u002Fsecretzero\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7AGFNGG84QMWQ97NP7SAQZE","secretzero-handle","Use when the task touches `.env`, dotenv\u002Fjson\u002Fyaml secret files, local `file` targets,\nor any workflow where secret material could enter agent context. Enforces\n`SZ_AGENT_MODE=true` spill-safe CLI usage, ingest preseed, strict manifest validation,\nand safe discovery patterns alongside `secretzero-agent` \u002F `secretzero-author`.","https:\u002F\u002Fgithub.com\u002Fzloeber\u002FSecretZero\u002Fblob\u002Fmain\u002Fsrc\u002Fsecretzero\u002Fdata\u002Fskills\u002Fsecretzero-handle\u002FSKILL.md",[],[],{"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},"01M7AGFDSKKWBQY3F3KE1DTVCE","secretzero-author","Use when authoring, reviewing, or walking a user through a new or existing\n`Secretfile.yml`. Guided session: manifest root, inventory table, optional\nlocal discovery, add\u002Fedit loop with secret-type and target menus, validate,\noptional `secretzero web`. Hermes + MCP notes included. Safe contextless\ndiscovery, `.szvar` lanes, policy-bound targets. Inherits absolute rule from\n`skills\u002Fsecretzero\u002FSKILL.md`. Co-load `skills\u002Fsecretzero-handle\u002FSKILL.md`\nfor `.env` \u002F spill-safe CLI.","https:\u002F\u002Fgithub.com\u002Fzloeber\u002FSecretZero\u002Fblob\u002Fmain\u002Fsrc\u002Fsecretzero\u002Fdata\u002Fskills\u002Fsecretzero-author\u002FSKILL.md",[],[],{"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},"01M7AGFAAKHFGJWNPE0R6Q6PT9","secretzero-agent","Use for agentic and operational SecretZero workflows including unified\n`agent sync`, CLI\u002FAPI\u002FMCP parity, secure human-in-the-loop vectors, and\nautomation-safe run loops.","https:\u002F\u002Fgithub.com\u002Fzloeber\u002FSecretZero\u002Fblob\u002Fmain\u002Fsrc\u002Fsecretzero\u002Fdata\u002Fskills\u002Fsecretzero-agent\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},"01M7AGF6EQTHKAE55FJA8M23PM","secretzero-agent-adopt","Use for agent runtime integration: discover Hermes\u002FOpenClaw installs,\nbootstrap SecretZero environments with `secretzero agent list` \u002F `agent adopt`,\nlockfile preseed, and restore loops. Inherits absolute rule from\n`skills\u002Fsecretzero\u002FSKILL.md` (SecretZero only; never secrets in context).","https:\u002F\u002Fgithub.com\u002Fzloeber\u002FSecretZero\u002Fblob\u002Fmain\u002Fsrc\u002Fsecretzero\u002Fdata\u002Fskills\u002Fsecretzero-agent-adopt\u002FSKILL.md",[],[],{"skillNo":86,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7AGF26S7HJT7571JWGV2E53","https:\u002F\u002Fgithub.com\u002Fzloeber\u002FSecretZero\u002Fblob\u002Fmain\u002Fskills\u002Fsecretzero\u002FSKILL.md",[],[]]