abhigyanpatwari avatar

Gitnexus Refactoring

Semantic, plan-gated rename and refactoring workflow that binds repository identity before any file writes.

skills.sh installs
1.8K
GitHub stars
48.7K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers safe rename, extract, split, and move workflows, using dependency impact and execution-flow analysis before edits
  • Includes rename with a dry-run preview, single-use plan_token apply, and checklists for rename, extract module, and split service
  • Enforces repository binding through list_repos and fails closed on stale indexes, source changes, and ambiguous or unsupported references
  • Designed for multi-repository workspaces and linked worktrees where an unbound write could edit the wrong checkout

Install

$ npx -y skills add abhigyanpatwari/gitnexus --skill gitnexus-refactoring -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

Bind the repository first

Refactoring writes to disk. rename with dry_run: false edits files in whichever repository was resolved, so binding identity here is a safety gate, not bookkeeping.

Call list_repos {} before the first tool call. With one indexed repository, use the examples below as written. With more than one, pass repo on every call: an omitted repo normally errors, but under an MCP policy with a configured default it resolves to that default silently. If you cannot tell which repository is meant, stop and ask. Never run rename with dry_run: false until the preview in the same bound repository has been reviewed — its returned file_path values show which checkout is about to be written, so read them as a confirmation of identity.

list_repos is paginated, so page with offset: pagination.nextOffset until hasMore is false before concluding a repository is absent.

Details

Repository
github.com/abhigyanpatwari/gitnexus
Category
Code Review & Quality
First seen
May 16, 2026

More from abhigyanpatwari/gitnexus

All 7

Similar to Gitnexus Refactoring

More Code Review & Quality