一键导入
batch-refactor-with-sub-agents
Use a sub-agent (like `generalist`) to perform repetitive code transformations across multiple files in a single turn.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use a sub-agent (like `generalist`) to perform repetitive code transformations across multiple files in a single turn.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run comprehensive Rust code quality checks including compilation, linting, documentation, and tests. Use after completing code changes and before creating commits.
Enforce the "Clean Imports over Inline Absolute Paths" rule by removing inline crate:: prefixes and adding proper use statements.
Rules and guidelines for creating well-formatted commit messages, including 72-char limits, scope prefixes, and trailer blocks for tasks, PR closing, and attribution.
Zero-allocation string building strategies. Use when formatting strings, generating ANSI codes, or writing hot loops to avoid heap allocations and Formatter state machine overhead.
Run clippy linting, enforce comment punctuation rules, format code with cargo fmt, and verify module organization patterns. Use after code changes and before creating commits.
Standard for writing structured tracing logs behind debug flags.
| name | batch-refactor-with-sub-agents |
| description | Use a sub-agent (like `generalist`) to perform repetitive code transformations across multiple files in a single turn. |
replace calls.grep_search to find all absolute file paths and line numbers that need modification.generalist (or similar) tool with a prompt that includes:
old_string vs new_string transformation.cargo check --all-targets or specific tests after finishing.unused_import warnings. Perform a final sweep with cargo clippy and fix manually or via a second batch call.cargo check fails after the sub-agent finishes.replace calls to fix the syntax errors.cargo check --all-targets to confirm zero compilation errors.cargo clippy --all-targets to find and fix any unused_import or style warnings introduced by the refactor.