Skills

07 Refactor

Improve code across four axes (cleanup, performance, security, architecture) by...

Install

npx skills add ai-driven-dev/framework --skill 07-refactor -g -a claude-code -y
Category
Testing
Updated
4d ago
License
MIT
Context cost
Lightabout 520 tokens
Runs scripts
No, instructions only

What it does

Improve code across four axes (cleanup, performance, security, architecture) by scanning and fixing, or applying a pushed audit report. Use when the user wants to refactor, optimize, harden, or remove code. Not for read-only diagnosis or adding tests.

Skill: refactor

The act-side of code improvement: it changes code to make it better. Behavior-preserving for cleanup, performance, and architecture; security may change behavior on purpose to close a hole.

Actions

#ActionAxisLens
01performanceperformanceN+1, hot paths, batching, memoization, unnecessary I/O
02securitysecurityOWASP, input validation, authz, secrets: harden and fix
03cleanupcode-qualityclean code: rename, extract, DRY, dead code, complexity
04architecturearchitectureextract layers, fix coupling, enforce boundaries

Run the one axis named, or offer all applicable when the request is unscoped. Before running an action, read its file in actions/, not only the table or assets.

Transversal rules

Read the whole SKILL.md on GitHub

More in Testing