
Refactor Safely
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-codeInstalls into .claude/skills of the current project.
Files
Refactor Safely
Plan a refactor from the dependency graph and apply renames from a preview.
Steps
- Call
refactor_toolwithmode="suggest"for refactoring candidates, ormode="dead_code"for unreferenced code. - For a rename, call
refactor_toolwithmode="rename",old_nameandnew_name. Check the returned edit list before applying. - Call
apply_refactor_toolwith the returnedrefactor_idto apply the rename. - Before a large refactor, call
get_impact_radius_toolandget_affected_flows_toolto see the dependents and critical paths involved. - Call
find_large_functions_toolto find functions worth splitting. - After the change, call
detect_changes_toolto confirm the impact matches the plan.
Sponsors
Promote your product hereReach 125k+ visitors monthlyPromote your product hereReach 125k+ visitors monthly
Agent CaffeineSponsoredClose your lid, come back to finished work
SnugSponsoredThe clipboard manager for the AI eraPromote your product hereReach 125k+ visitors monthly
WaxSponsoredBlock anything with supervision, without erasing your iPhonePromote your product hereReach 125k+ visitors monthly
knobsSponsoredSee your site on any phone, any day, in any language
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 7Recommended
More Git & Pull Requests1
human-writingpr-pm/prpmWrite content that sounds natural, conversational, and authentically human - avoiding AI-generated patterns, corporate speak, and generic phrasing316skills.sh installs
2
data-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
3
sql-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
4
aws-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
5
aws-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
6
tm7-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