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- Repository
- ai-driven-dev/framework542
- 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
| # | Action | Axis | Lens |
|---|---|---|---|
| 01 | performance | performance | N+1, hot paths, batching, memoization, unnecessary I/O |
| 02 | security | security | OWASP, input validation, authz, secrets: harden and fix |
| 03 | cleanup | code-quality | clean code: rename, extract, DRY, dead code, complexity |
| 04 | architecture | architecture | extract 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.


