gitnexus-refactoring
Use when the user wants to rename, extract, split, move, or restructure code safely.
Skill by funky-eyes
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/funky-eyes-gitnexus-refactoring
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/gitnexus-refactoring
What's inside
- Skill name
gitnexus-refactoring- Description
- 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"
- License
- Apache-2.0
- Instructions
- 118 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Refactoring with GitNexus
## When to Use
- "Rename this function safely"
- "Extract this into a module"
- "Split this service"
- "Move this to a new file"
- Any task involving renaming, extracting, splitting, or restructuring code
## Workflow
```
1. gitnexus_impact({target: "X", direction: "upstream"}) → Map all dependents
2. gitnexus_query({query: "X"}) → Find execution flows involving X
3. gitnexus_context({name: "X"}) → See all incoming/outgoing refs
4. Plan update order: interfaces → implementations → callers → tests
```
> If "Index is stale" → run `npx gitnexus analyze` in terminal.
## Checklists
### Rename Symbol
```
- [ ] gitnexus_rename({symbol_name: "oldName", new_name: "newName", dry_run: true}) — preview all edits
- [ ] Review graph edits (high confidence) and ast_search edits (review carefully)
- [ ] If satisfied: gitnexus_rename({..., dry_run: false}) — apply edits
- [ ] gitnexus_detect_changes() — verify only expected files changed
- [ ] Run tests for affected processes
```
### Extract Module
```
- [ ] gitnexus_context({name: target}) — see all incoming/outgoing refs
- [ ] gitnexus_impact({target, direction: "upstream"}) — find all external callers
- [ ] Define new module interface
- [ ] Extract code, update imports
- [ ] gitnexus_detect_changes() — verify affected scope
- [ ] Run tests for affected processes
```
### Split Function/Service
```
- [ ] gitnexus_context({name: target}) — understand all callees
- [ ] Group callees by responsibility
- [ ] gitnexus_impact({target, direction: "upstream"}) — map callers to update
- [ ] Create new functions/services
- [ ] Update callers
- [ ] gitnexus_detect_changes() — verify affected scope
- [ ] Run tests for affected processes
```
## Tools
**gitnexus_rename** — automated multi-file rename:
```
gitnexus_rename({symbol_name: "validateUser", new_name: "authenticateUser", dry_run: true})
→ 12 edits across 8 files
→ 10 graph edits (high confidence), 2 ast_search edits (review)
→ Changes: [{file_path, edits: [{line, old_text, new_text, confidence}]}]
```
**gitnexus_impact** — map all dependents first:
```
gitnexus_impact({target: "validateUser", direction: "upstream"})
→ d=1: loginHandler, apiMiddleware, testUtils
→ Affected Processes: LoginFlow, TokenRefresh
```
**gitnexus_detect_changes** — verify your changes after refactoring:
```
gitnexus_detect_changes({scope: "all"})
→ Changed: 8 files, 12 symbols
→ Affected processes: LoginFlow, TokenRefresh
→ Risk: MEDIUM
```
**gitnexus_cypher** — custom reference queries:
```cypher
MATCH (caller)-[:CodeRelation {type: 'CALLS'}]->(f:Function {name: "validateUser"})
RETURN caller.name, caller.filePath ORDER BY caller.filePath
```
## Risk Rules
| Risk Factor | Mitigation |
| ------------------- | ----------------------------------------- |
| Many callers (>5) | Use gitnexus_rename for automated updates |
| Cross-area refs | Use detect_changes after to verify scope |
| String/dynamic refs | gitnexus_query to find them |
| External/public API | Version and deprecate properly |
## Example: Rename `validateUser` to `authenticateUser`
```
1. gitnexus_rename({symbol_name: "validateUser", new_name: "authenticateUser", dry_run: true})
→ 12 edits: 10 graph (safe), 2 ast_search (review)
→ Files: validator.ts, login.ts, middleware.ts, config.json...
2. Review ast_search edits (config.json: dynamic reference!)
3. gitnexus_rename({symbol_name: "validateUser", new_name: "authenticateUser", dry_run: false})
→ Applied 12 edits across 8 files
4. gitnexus_detect_changes({scope: "all"})
→ Affected: LoginFlow, TokenRefresh
→ Risk: MEDIUM — run tests for these flows
```From funky-eyes/best-copilot, Apache-2.0.
More from funky-eyes/best-copilot
- 0.599score
td-python-coding-guidelines
funky-eyes
Use when writing or reviewing Python code, fixing lint/docstring/import/naming/exception/type annotation issues, unifying team style, or migrating `.py` files…
SkillBFreshness: B★ 12Claude Code +9 - 0.599score
td-java-coding-guidelines
funky-eyes
Use when writing or reviewing Java code involving Tongdun/Alibaba Java rules, exceptions, logging, SQL/MyBatis, security, middleware, concurrency, virtual…
SkillBFreshness: B★ 12Claude Code +9 - 0.599score
structured-review
funky-eyes
Use when reviewing code diffs, implementation changes, agent/skill/instruction customization, targeted re-review, review feedback intake, review handoff…
SkillBFreshness: B★ 12Claude Code +9 - 0.599score
evolution-loop
funky-eyes
Use after meaningful task closeout, repeated failure, review loops, stale triggers, or user feedback that an agent/skill/workflow should improve.
SkillBFreshness: B★ 12Claude Code +9 - 0.599score
target-instructions-bootstrap
funky-eyes
Create the target repository's local AI instruction scaffold during first-use bootstrap.
SkillBFreshness: B★ 12Claude Code +9 - 0.599score
core-workflow-contract
funky-eyes
Use when an agent needs the shared best-copilot contract for source priority, runtime adapters, init gates, work modes, dispatch packets, review…
SkillBFreshness: B★ 12Claude Code +9 - 0.596score
target-spec-bootstrap
funky-eyes
Create the target repository's local spec skeleton and reusable requirements/design/tasks templates.
SkillBFreshness: B★ 12Claude Code +9 - 0.596score
target-memory-bootstrap
funky-eyes
Create the target repository's local memory skeleton after repo init.
SkillBFreshness: B★ 12Claude Code +9 - 0.596score
repo-init-gate
funky-eyes
Use before repo-init-scan to cheaply decide whether a target repository already satisfies the current best-copilot init contract by reading only the root…
SkillBFreshness: B★ 12Claude Code +9 - 0.596score
repo-init-official
funky-eyes
Use inside repo-init-scan to try a target-local `init` skill, Claude `/init`, or `copilot init`, normalize official init output into…
SkillBFreshness: B★ 12Claude Code +9 - 0.596score
repo-init-manual-fallback
funky-eyes
Use inside repo-init-scan after the official stage whenever scaffold verification, bounded repair, or `best-copilot.md` rewrite is still needed.
SkillBFreshness: B★ 12Claude Code +9 - 0.594score
gitnexus-guide
funky-eyes
Use when the user asks about GitNexus itself — available tools, how to query the knowledge graph, MCP resources, graph schema, or workflow reference.
SkillBFreshness: B★ 12Claude Code +9
Signals
- Stars
- 12
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Jun 1, 2026 (5 months ago)
- Last release
- Aug 3, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/funky-eyes/best-copilot
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.350score
gitnexus-refactoring
metagit-ai
Use when the user wants to rename, extract, split, move, or restructure code safely.
SkillAFreshness: A★ 4Claude Code +9 - 0.350score
gitnexus-refactoring
metagit-ai
Use when the user wants to rename, extract, split, move, or restructure code safely.
SkillAFreshness: A★ 4Claude Code +9 - 0.283score
gitnexus-refactoring
3rdAI-admin
Use when the user wants to rename, extract, split, move, or restructure code safely.
SkillCFreshness: C★ 1Claude Code +9 - 0.283score
gitnexus-refactoring
novolei
Use when the user wants to rename, extract, split, move, or restructure code safely.
SkillCFreshness: C★ 1Claude Code +9 - 0.270score
gitnexus-refactoring
buihongduc132
Use when the user wants to rename, extract, split, move, or restructure code safely.
SkillCFreshness: CClaude Code +9 - 0.270score
gitnexus-refactoring
novolei
Use when the user wants to rename, extract, split, move, or restructure code safely.
SkillCFreshness: CClaude Code +9 - 0.267score
gitnexus-refactoring
Iranb
Use when the user wants to rename, extract, split, move, or restructure code safely.
SkillCFreshness: CClaude Code +9 - 0.228score
gitnexus-refactoring
cruldra
Use when the user wants to rename, extract, split, move, or restructure code safely.
SkillDFreshness: DClaude Code +9
More from funky-eyes
- 0.599score
td-python-coding-guidelines
funky-eyes
Use when writing or reviewing Python code, fixing lint/docstring/import/naming/exception/type annotation issues, unifying team style, or migrating `.py` files…
SkillBFreshness: B★ 12Claude Code +9 - 0.599score
evolution-loop
funky-eyes
Use after meaningful task closeout, repeated failure, review loops, stale triggers, or user feedback that an agent/skill/workflow should improve.
SkillBFreshness: B★ 12Claude Code +9 - 0.599score
core-workflow-contract
funky-eyes
Use when an agent needs the shared best-copilot contract for source priority, runtime adapters, init gates, work modes, dispatch packets, review…
SkillBFreshness: B★ 12Claude Code +9 - 0.599score
td-java-coding-guidelines
funky-eyes
Use when writing or reviewing Java code involving Tongdun/Alibaba Java rules, exceptions, logging, SQL/MyBatis, security, middleware, concurrency, virtual…
SkillBFreshness: B★ 12Claude Code +9 - 0.599score
target-instructions-bootstrap
funky-eyes
Create the target repository's local AI instruction scaffold during first-use bootstrap.
SkillBFreshness: B★ 12Claude Code +9 - 0.599score
structured-review
funky-eyes
Use when reviewing code diffs, implementation changes, agent/skill/instruction customization, targeted re-review, review feedback intake, review handoff…
SkillBFreshness: B★ 12Claude Code +9
Cite this page
gitnexus-refactoring skill. Agent Mart. https://agentmart.dev/skills/funky-eyes-gitnexus-refactoring (last updated 2026-10-24)