abhigyanpatwari avatar

Gitnexus Refactoring

This handles the hard part of refactoring: tracking down every place a symbol is used before you rename or move it. It maps dependencies with gitnexus_impact, then runs automated renames across multiple files with confidence scoring (graph-based edits are safe, AST search results need review). The workflow is structured around impact analysis first, then execution, then verification with detect_changes to see what you actually touched. Most useful when you're renaming something with more than five callers or extracting code that's referenced across different areas of the codebase. The dry run mode is smart since you can preview edits before committing to them.

skills.sh installs
1.8K
GitHub stars
48.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add abhigyanpatwari/gitnexus --skill gitnexus-refactoring --agent claude-code

Installs into .claude/skills of the current project.

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.

Sponsors

Details

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

More from abhigyanpatwari/gitnexus

All 7
1cxuu avatargo-code-reviewcxuu/golang-skillsUse when reviewing Go code or checking code against community style standards. Also use proactively before submitting a Go PR or when reviewing any Go code chan1.8Kskills.sh installs
2cxuu avatargo-style-corecxuu/golang-skillsUse when working with Go formatting, line length, nesting, naked returns, semicolons, or core style principles. Also use when a style question isn't covered by 1.3Kskills.sh installs
3davila7 avatarsenior-architectdavila7/claude-code-templatesComprehensive software architecture skill for designing scalable, maintainable systems using ReactJS, NextJS, NodeJS, Express, React Native, Swift, Kotlin, Flut1.2Kskills.sh installs
4aj-geddes avatarcss-architectureaj-geddes/useful-ai-promptsOrganize CSS using BEM, SMACSS, and CSS-in-JS patterns. Use when building scalable, maintainable styling systems with proper naming conventions.969skills.sh installs
5alirezarezvani avatarquality-documentation-manageralirezarezvani/claude-skillsDocument control system management for medical device QMS. Covers document numbering, version control, change management, and 21 CFR Part 11 compliance. Use whe819skills.sh installs
6postplusai avatarvideo-request-architectpostplusai/postplus-skillsTurn approved storyboard logic, beat sheets, or prompt plans into provider-ready short-form video requests. Use this when the segment structure is already known818skills.sh installs