Agent skill

refactor-risk-assess

[Code Quality] Evaluates risk level of proposed refactoring changes. Use to assess dependencies, blast radius, rollback difficulty, and determine if changes are safe to proceed.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/refactor-risk-assess

SKILL.md

Refactor: Risk Assessment

Evaluate and mitigate risks before executing changes.

Risk Dimensions

1. Blast Radius

Level Description Example
LOW Single file, private methods Rename local variable
MEDIUM Multiple files, internal APIs Extract helper class
HIGH Public APIs, many dependents Change interface signature

2. Reversibility

Level Description
LOW RISK Git revert fixes everything
MEDIUM Requires coordinated rollback
HIGH Data migration, external deps

3. Test Coverage

Coverage Risk Impact
> 80% Safe to proceed
50-80% Add tests first
< 50% HIGH RISK

Go/No-Go Criteria

PROCEED if: Test coverage adequate, Blast radius understood, Rollback plan exists BLOCK if: Critical path no tests, Public API change without review

Didn't find tool you were looking for?

Be as detailed as possible for better results