gitnexus-refactoring

Coordinate gitnexus tools to plan, execute, and validate code refactoring.

Updated Oct 25, 2025
One-click install
npx skills add https://github.com/shaythegay13/serenity-pocket-app-final --skill gitnexus-refactoring-shaythegay13
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gitnexus-refactoring
Source: https://github.com/shaythegay13/serenity-pocket-app-final/tree/main/.claude/skills/gitnexus/gitnexus-refactoring
Command: npx skills add https://github.com/shaythegay13/serenity-pocket-app-final --skill gitnexus-refactoring-shaythegay13

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

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"

Core Features & Use Cases

  • Context-aware refactoring planning and impact analysis
  • Safe symbol renaming, module extraction, and service splitting
  • Automatic updates to references and tests with guided checks
  • Use Case: Apply these steps to restructure a shared utility into a separate module without breaking callers

Quick Start

Run a safe rename or refactor with the gitnexus_rename workflow to preview 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 and update all references in my codebase?

Safe code refactoring automates symbol renaming across your project by planning changes and updating all dependent references. It coordinates impact analysis to preview modifications before applying them, ensuring callers remain intact.

What's the best way to extract a module from existing code without breaking dependencies?

Module extraction during code refactoring separates shared utilities into distinct files while guiding dependency updates. It analyzes the full impact scope to restructure code safely without breaking existing callers or tests.

How does impact analysis work when restructuring code modules?

Impact analysis for code refactoring evaluates the scope of changes by detecting affected modules and symbols before execution. It coordinates context gathering to validate that reference updates and test modifications are complete.

Can I preview code refactoring changes before applying them to my project?

Code refactoring allows you to preview changes by running a rename or extraction workflow to assess the impact. It plans all modifications and validates test updates before final execution to ensure safe restructuring.

How do I split a service or restructure files without breaking tests?

Service splitting and file moves in code refactoring automatically update references and guide test modifications. It validates changes through coordinated impact analysis and change detection to prevent broken tests.

When should I not use automated code refactoring?

Automated code refactoring should be approached with caution for highly complex or deeply nested dependencies where impact analysis may not capture all edge cases. Always validate the planned reference updates before applying.