Skip to content
Back to skills

Safe Refactor Checklist

ASecurity

Checklist for safe code refactoring without breaking changes

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
code-qualitytypescriptgorefactoringapiperformancedocumentation

Works with

  • api

Security analysis

A100/100

Scanned September 8, 2026

npx -y skills add Burburton/amazingteam --skill safe-refactor-checklist --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Safe Refactor Checklist?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Safe Refactor Checklist
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/burburton-safe-refactor-checklist-amazingteam/badge)](https://www.skillsdirectory.com/skills/burburton-safe-refactor-checklist-amazingteam)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: safe-refactor-checklist
description: Checklist for safe code refactoring without breaking changes
license: MIT
---
# Safe Refactor Checklist

## When to Use

- Refactoring existing code
- Improving code structure
- Reducing technical debt
- Optimizing performance

## Pre-Refactor Checklist

- [ ] All existing tests pass
- [ ] Test coverage is adequate (>80%)
- [ ] Understand the code's current behavior
- [ ] Identify all consumers of the code
- [ ] Document the refactoring goal

## During Refactor

### 1. Make Small Changes
- One refactoring at a time
- Run tests after each change
- Commit frequently

### 2. Preserve Behavior
- Don't change public interfaces
- Keep the same inputs/outputs
- Maintain backward compatibility

### 3. Update Tests
- Update tests if behavior changes
- Add tests for new code paths
- Remove obsolete tests

## Post-Refactor Checklist

- [ ] All tests pass
- [ ] No new lint errors
- [ ] No TypeScript errors
- [ ] Test coverage maintained or improved
- [ ] Documentation updated
- [ ] No breaking changes to public API

## Common Refactoring Patterns

### Extract Method
```typescript
// Before
function process(data) {
  // validation logic
  // processing logic
  // formatting logic
}

// After
function process(data) {
  validate(data);
  const result = processData(data);
  return formatResult(result);
}
```

### Rename Variable
- Use IDE refactoring tools
- Update all references
- Run tests to verify

### Move Method
- Update imports
- Check for circular dependencies
- Verify all callers updated

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in code-quality →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.