一键导入
refactoring
Change the shape of code without changing behavior — safely, in small steps, preserving the project's layers and public contracts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Change the shape of code without changing behavior — safely, in small steps, preserving the project's layers and public contracts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Guard the project's architecture invariants. Use to evaluate any change affecting layers, boundaries, lifecycles, or contracts, and to decide whether an ADR is required.
Senior-level code review for the agent platform — architecture and boundaries first, then correctness, security, testability, and simplicity. Outputs a structured review.
Keep the repository's documentation accurate, honest, and synchronized with the code. Use when editing docs, README, AGENTS.md, or ADRs.
Work safely with Git — keep changes scoped and reviewable, never overwrite the user's work, and produce clear history. Use before editing, branching, staging, or committing.
Working on Python plugin tools, MCP server connections, tool invocation, or tool tracing. Primary task is tasks/0007-mcp-tools-and-permissions.md.
Foundational rules and layout for the declarative agent platform. Read this before any change, regardless of area; it anchors every other skill.
| name | refactoring |
| description | Change the shape of code without changing behavior — safely, in small steps, preserving the project's layers and public contracts. |
| generated | true |
| source | .ai/skills/refactoring.md |
Change the shape of code without changing its behavior, safely and in small steps, while preserving the project's layers and public contracts.
AGENTS.md (boundaries and "no large uncontrolled rewrites")..ai/skills/architecture-review.md (invariants you must preserve).make test after each meaningful step.make check; diff should be structure-only.make check passes.State: the goal of the refactor and its scope; the safety net used (existing or
added tests); the small steps taken; confirmation that public behavior/contracts
are unchanged and layers are intact; any renamed concepts and where they were
updated; and the make check result.