[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75W2NFV7Q7HAAEDAYP31FHV":3,"skill-same:01M75W2NFV7Q7HAAEDAYP31FHV":48},{"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":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M75W2NFV7Q7HAAEDAYP31FHV","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\"","PyModel\u002Fpythinker-code","PyModel","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F316629828?v=4","01M75W0KV82C1WDD31FBA5P1G6","pymodel","01M75W0KVYQADNDDQG70WHT35B",29,"MIT","https:\u002F\u002Fgithub.com\u002FPyModel\u002Fpythinker-code\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgitnexus\u002Fgitnexus-refactoring\u002FSKILL.md",[],[],"2026-11-12 13:55:43",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## Workflow\n\n```\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- [ ] rename({symbol_name: \"oldName\", new_name: \"newName\", dry_run: true}) — preview all edits\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- [ ] 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- [ ] 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\", 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\", 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**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\n## Example: Rename `validateUser` to `authenticateUser`\n\n```\n1. rename({symbol_name: \"validateUser\", new_name: \"authenticateUser\", 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\", dry_run: false})\n   → Applied 12 edits across 8 files\n\n4. 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. 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- [ ] rename({symbol_name: \"oldName\", new_name: \"newName\", dry_run: true}) — preview all edits\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- [ ] 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- [ ] 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\", 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\", 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**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\n## Example: Rename `validateUser` to `authenticateUser`\n\n```\n1. rename({symbol_name: \"validateUser\", new_name: \"authenticateUser\", 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\", dry_run: false})\n   → Applied 12 edits across 8 files\n\n4. detect_changes({scope: \"all\"})\n   → Affected: LoginFlow, TokenRefresh\n   → Risk: MEDIUM — run tests for these flows\n```\n",{"name":5,"description":7},"main","21e9d44fdaaca8c4f9214e5cc65f6a470cde9150",".agents\u002Fskills\u002Fgitnexus\u002Fgitnexus-refactoring",9,"https:\u002F\u002Fgithub.com\u002FPyModel\u002Fpythinker-code","https:\u002F\u002Fpythinker.com","https:\u002F\u002Fgithub.com\u002FPyModel","https:\u002F\u002Fpymodel.com","AI, LLM, and machine learning solutions. Think first, then code.","2026-11-14 19:27:49",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add PyModel\u002Fpythinker-code --skill gitnexus-refactoring",{"tool":40,"command":41},"bunx","bunx skills add PyModel\u002Fpythinker-code --skill gitnexus-refactoring",{"tool":43,"command":44},"pnpm","pnpm dlx skills add PyModel\u002Fpythinker-code --skill gitnexus-refactoring","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FPyModel\u002Fpythinker-code\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgitnexus\u002Fgitnexus-refactoring\u002FSKILL.md",true,[],[49,56,63,69,76,83],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M75W4KT7SF7713RMC0AW447N","pythinker-webbridge","Pythinker Browser Extension lets AI control the user's real browser — navigate, click, type, read, screenshot, and interact with any website using the user's actual login sessions. Use this skill whenever the user wants to interact with websites, automate browser tasks, scrape web content, or perform any action requiring a real browser. Also use when the user mentions \"browser\", \"webpage\", \"open URL\", \"screenshot\", or asks to read\u002Finteract with any website. Use even for simple-sounding browser requests — the daemon handles all complexity.","https:\u002F\u002Fgithub.com\u002FPyModel\u002Fpythinker-code\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Fpythinker-webbridge\u002Fskills\u002Fpythinker-webbridge\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M75W4JD3116MVVZM0DPRFNG2","golden-skill","Golden fixture skill","https:\u002F\u002Fgithub.com\u002FPyModel\u002Fpythinker-code\u002Fblob\u002Fmain\u002Fpackages\u002Fmigration-legacy\u002Ftest\u002Ffixtures\u002Fgolden\u002F.pythinker\u002Fskills\u002Fgolden-skill\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"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":66,"categories":67,"keywords":68,"publishedAt":19},"01M75W4D9XE0YP7GYTY7X9Y020","tools","https:\u002F\u002Fgithub.com\u002FPyModel\u002Fpythinker-code\u002Fblob\u002Fmain\u002Fpackages\u002Fagent-core-v2\u002Fsrc\u002Ffeatures\u002Fskill\u002Ftools\u002Fskill.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M75W44KYZ87VVKCFBR1MPX40","review","Analyze the available skill set and recommend candidate groups that could be consolidated into sub-skill bundles. Read-only — proposes a plan, does not move files.","https:\u002F\u002Fgithub.com\u002FPyModel\u002Fpythinker-code\u002Fblob\u002Fmain\u002Fpackages\u002Fagent-core-v2\u002Fsrc\u002Ffeatures\u002Fskill\u002Fcatalog\u002Fbuiltin\u002Fsub-skill\u002Freview\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M75W3V96RQ8N2E1DJB9A20PR","consolidate","Apply an approved sub-skill grouping by moving user-specified skills into a parent bundle, with timestamped backups of every modified directory.","https:\u002F\u002Fgithub.com\u002FPyModel\u002Fpythinker-code\u002Fblob\u002Fmain\u002Fpackages\u002Fagent-core-v2\u002Fsrc\u002Ffeatures\u002Fskill\u002Fcatalog\u002Fbuiltin\u002Fsub-skill\u002Fconsolidate\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"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},"01M75W3S1NEJ5N05CDYS292QQG","sub-skill","Discover and reorganize the skill inventory into hierarchical sub-skill bundles. Use when the user asks to review, group, or consolidate skills into a parent bundle.","https:\u002F\u002Fgithub.com\u002FPyModel\u002Fpythinker-code\u002Fblob\u002Fmain\u002Fpackages\u002Fagent-core-v2\u002Fsrc\u002Ffeatures\u002Fskill\u002Fcatalog\u002Fbuiltin\u002Fsub-skill\u002FSKILL.md",[],[]]