07 refactor

From ai-driven-dev/framework · View interactive version

07 refactor is an AI agent skill from the GitHub repository ai-driven-dev/framework. 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.

How to use this skill

Skill file

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.

Transversal rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.