This is a refactoring assistant that uses a knowledge graph to show you what breaks before you break it. It lets you preview renames across your entire codebase, find dead code, and check impact radius before making changes. The workflow is deliberate: suggest refactorings, preview affected locations, apply with a refactor ID, then verify with change detection. It also surfaces large functions that need breaking down. Good for codebases where you're afraid to rename things because you don't know what depends on what. The safety checks are the main value here, not the speed.

skills.sh installs
323
GitHub stars
32.7K
last updated
Aug 21, 2026

Install

$ npx -y skills add tirth8205/code-review-graph --skill 'Refactor Safely' --agent claude-code

Installs into .claude/skills of the current project.

Files

Refactor Safely

Plan a refactor from the dependency graph and apply renames from a preview.

Steps

  1. Call refactor_tool with mode="suggest" for refactoring candidates, or mode="dead_code" for unreferenced code.
  2. For a rename, call refactor_tool with mode="rename", old_name and new_name. Check the returned edit list before applying.
  3. Call apply_refactor_tool with the returned refactor_id to apply the rename.
  4. Before a large refactor, call get_impact_radius_tool and get_affected_flows_tool to see the dependents and critical paths involved.
  5. Call find_large_functions_tool to find functions worth splitting.
  6. After the change, call detect_changes_tool to confirm the impact matches the plan.

Sponsors

Details

Repository
github.com/tirth8205/code-review-graph
Categories
Git & Pull Requests, Code Review & Quality, Productivity & Planning
First seen
Jun 3, 2026

More from tirth8205/code-review-graph

All 7
1pr-pm avatarhuman-writingpr-pm/prpmWrite content that sounds natural, conversational, and authentically human - avoiding AI-generated patterns, corporate speak, and generic phrasing316skills.sh installs
2github avatardata-breach-blast-radiusgithub/awesome-copilotPre-breach impact analysis: inventories sensitive data (PII, PHI, PCI-DSS, credentials), traces data flows, scores exposure vectors, and produces a regulatory b110skills.sh installs
3github avatarsql-server-table-reconciliationgithub/awesome-copilotUse when: comparing SQL Server tables across instances, data migration validation, ETL verification, row mismatch detection, schema drift, reconciliation report104skills.sh installs
4github avataraws-cloudwatch-investigationgithub/awesome-copilotReusable investigation patterns for AWS CloudWatch: Logs Insights query templates, alarm-to-deployment correlation, blast-radius narrowing decision tree, and Pr0skills.sh installs
5github avataraws-resource-health-diagnosegithub/awesome-copilotAnalyze AWS resource health, diagnose issues from CloudWatch logs and metrics, and create a remediation plan for identified problems.0skills.sh installs
6github avatartm7-threat-modelgithub/awesome-copilotCreates valid Microsoft Threat Modeling Tool (.tm7) files compatible with the Microsoft Threat Modeling Tool v7.3+. Use this skill whenever asked to create, gen0skills.sh installs