一键导入
refactor
Iteratively simplify code, contracts, and data flow.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Iteratively simplify code, contracts, and data flow.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
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.
| 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.