一键导入
refactor
Safely refactor code with test coverage as a safety net. Use `--diff` to simplify just the current working diff before committing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Safely refactor code with test coverage as a safety net. Use `--diff` to simplify just the current working diff before committing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Set up dotclaude in any project. Deep-scans the codebase, interviews the user, installs only justified components, customized to the stack.
Rebuild working context fast after /clear or a fresh session — reads the handoff note and the branch's changes, then summarizes where work stands. Add `handoff` to write the note before stopping.
Keep CLAUDE.md current and lean — capture this session's durable learnings into it (default), or `audit` it for stale commands, drift, and bloat. Enforces the line budget either way.
Take a GitHub issue from number to tested fix — read the issue and comments, reproduce, locate the cause, fix with a regression test, and prep a PR that closes it.
Review code changes or a pull request. Delegates to specialist agents (code quality, security, performance, silent failures, test quality, docs) in parallel.
Scan changes, commit, push, and create a PR. With confirmation at each step
| name | refactor |
| description | Safely refactor code with test coverage as a safety net. Use `--diff` to simplify just the current working diff before committing. |
| argument-hint | [file, function, or pattern | --diff] |
| disable-model-invocation | true |
Refactor $ARGUMENTS safely. If $ARGUMENTS contains --diff, use Diff mode below instead.
--diff): simplify what you just wroteThe pre-commit polish pass. Target = the current working diff (git diff + git diff --cached; if clean, the last commit). Goal: make the diff smaller and clearer with identical behavior.