with one click
refactor
Iteratively simplify code, contracts, and data flow.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Iteratively simplify code, contracts, and data flow.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Apply the Systems Thinking workflow from AGENTS.md when a task may be misframed, under-specified, or tangled with adjacent concerns.
Test hypotheses through experiments and disposable tools.
Research the workspace for a topic. Report patterns in the corpus.
Open the files, directories, and links relevant to the current context.
Iteratively improve writing.
Design or refine software architecture.
Based on SOC occupation classification
| name | refactor |
| description | Iteratively simplify code, contracts, and data flow. |
Use @../../AGENTS.md#systems-thinking.
Ask: how can this code become simpler?
Bound the domain as a set of contracts.
Follow data from entry points to exit points.
Move or resize boundaries to de-complect responsibilities.
Preserve contracts by default.
Improve contracts when the change is locally verifiable.
Divide the flow into stages with explicit contracts.
Lift branches toward entry points.
Push loops toward leaf operations.
Iterate until the data flow is laminar: direct, staged, and unsurprising.
Surface a design or plan when changes require broader judgment, migration, or coordination.