tirth8205/code-review-graph

refactor-safely

Plan and execute safe refactoring using dependency analysis

282 installs 32K stars

Before you install

Last update
Files in folder
1
Scripts
No script files found
SKILL.md size
1.3 KB (about 332 tokens of context each time it loads)
License
MIT

Skills are plain text instructions the agent follows, sometimes with scripts. Check the source, prefer repositories with many installs and stars, and read any script it ships.

Install

npx skills add tirth8205/code-review-graph@refactor-safely

Runs in a terminal with Node.js 18 or newer. Add -y to skip the prompts and -g to install for every project instead of this one.

Install for your agent

npx skills add tirth8205/code-review-graph@refactor-safely --agent claude-code -y
Project install writes to
.claude/skills/refactor-safely
Global install writes to
~/.claude/skills/refactor-safely

Start a new session afterwards so the agent picks the skill up. In Claude Code you can also call it directly with /refactor-safely.

What it does

Refactor Safely Plan a refactor from the dependency graph and apply renames from a preview. Steps 1. Call refactortool with mode="suggest" for refactoring candidates, or mode="deadcode" for unreferenced code. 2. For a rename, call refactortool with mode="rename", oldname and newname. Check the returned edit list before applying. 3. Call applyrefactortool with the returned refactorid to apply the rename. 4. Before a large refactor, call getimpactradiustool and getaffectedflowstool to see the dependents and critical paths involved. 5. Call findlargefunctionstool to find functions worth…

Excerpt from the skill's own SKILL.md. Read the full file on GitHub before installing: skills run with your agent's permissions.

Categories

Related skills

  • build-graph

    tirth8205/code-review-graph

    Build or update the code review knowledge graph. Run this first to initialize, or let hooks keep it updated automatically.

    1.3K installs 32KCode reviewGit & GitHub
  • review-delta

    tirth8205/code-review-graph

    Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection.

  • review-pr

    tirth8205/code-review-graph

    Review a PR or branch diff using the knowledge graph for full structural context. Outputs a structured review with blast-radius analysis.

  • explore-codebase

    tirth8205/code-review-graph

    Navigate and understand codebase structure using the knowledge graph

    307 installs 32KSEOAI & agentsCode review
  • review-changes

    tirth8205/code-review-graph

    Perform a structured code review using change detection and impact

    269 installs 32KTestingCode review
  • debug-issue

    tirth8205/code-review-graph

    Systematically debug issues using graph-powered code navigation

    263 installs 32K

← Search skills

/skills/tirth8205/code-review-graph/refactor-safely/