gitnexus-refactoring

Map dependents and preview graph and AST edits for repository-wide refactoring.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/CuongTran69/tramthientra --skill gitnexus-refactoring-cuongtran69
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gitnexus-refactoring
Source: https://github.com/CuongTran69/tramthientra/tree/main/.claude/skills/gitnexus/gitnexus-refactoring
Command: npx skills add https://github.com/CuongTran69/tramthientra --skill gitnexus-refactoring-cuongtran69

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill reduces the risk and manual effort of renaming, extracting, splitting, moving, or restructuring code across a repository by mapping dependencies, previewing edits, and validating changes before they are applied.

Core Features & Use Cases

  • Impact mapping: Identify upstream and downstream dependents to understand the full scope of a change.
  • Preview edits: Provide graph-based high-confidence edits and AST-based edits that require human review, with dry-run previews.
  • Change detection & verification: Detect which files, symbols, and processes are affected and recommend running targeted tests.
  • Use Cases: Rename a widely-referenced function safely, extract a piece of logic into a new module, split a service into focused functions, or move code to a new file while preserving callers and tests.

Quick Start

Run a dry-run rename of the function validateUser to authenticateUser and review the previewed graph and AST edits before applying changes.

Frequently Asked Questions about gitnexus-refactoring

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely rename a function across a large codebase without breaking references?

To safely rename a function across a large codebase, map upstream and downstream dependents, preview graph and AST-based edits via dry runs, and verify affected tests before applying changes.

What is AST-based code refactoring and when do I need it for moving files?

AST-based code refactoring analyzes the abstract syntax tree to preserve callers and tests when moving files or splitting services. You need it to restructure code while ensuring high-confidence edits and reference integrity.

How do I preview the impact of extracting a module before applying edits?

Preview the impact of extracting a module by running a dry run, which detects affected files and symbols, maps dependency graphs, and provides AST-based edits that require human review before final application.

Can I split a service into focused functions while preserving existing tests?

Yes, you can split a service into focused functions while preserving existing tests by mapping downstream dependents, detecting post-change impacts, and verifying affected processes and tests before applying edits.

Does dependency mapping detect all affected processes for repository-wide refactoring?

Dependency mapping identifies upstream and downstream dependents to detect affected files, symbols, and processes for repository-wide refactoring, recommending targeted tests to verify changes before they are applied.