一键导入
cleanup-code
Polishes recently written or modified Python code for style, dead code, docstrings, type annotations, and checks. Use when coding task is completed.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Polishes recently written or modified Python code for style, dead code, docstrings, type annotations, and checks. Use when coding task is completed.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | cleanup-code |
| description | Polishes recently written or modified Python code for style, dead code, docstrings, type annotations, and checks. Use when coding task is completed. |
| argument-hint | ["directory or file"] |
| disable-model-invocation | true |
| allowed-tools | ["Read","Glob","Grep","Edit","Bash"] |
Do a final cleanup polish pass on the code in $ARGUMENTS (or the current package if no argument given).
Use the write-code skill to understand code conventions.
.format() or %pathlib instead of os.pathwrite-docstrings skill conventions).ruff format .ruff check .ty checkpytestWrite or review docstrings for code in this repo. Use when writing new docstrings, reviewing existing docstrings, or editing docstrings.
Write or review code in this repo. Use when writing new code, reviewing existing code, or editing code.
Write or review unit tests for code in this repo. Use when writing new tests, reviewing existing tests, or adding test coverage.
Write or review code in this repo. Use when writing new code, reviewing existing code, or editing code.
Write or revise scientific method documentation with equations, algorithm sketches, and implementation-status notes.