Skip to content
agentscamp

Refactor Commands

A curated collection of 2 refactor commands for building with AI coding agents.

Command

Extract Function

Extract a code region into a well-named function and update the call site.

/extract-function<file:lines or description>
Command

Refactor

Refactor the target for readability and structure without changing behavior.

/refactor[file or function]