一键导入
auto-linter
Run linters/formatters on changed files and apply safe, mechanical fixes. Use in Flow 3 and Flow 4.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run linters/formatters on changed files and apply safe, mechanical fixes. Use in Flow 3 and Flow 4.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | auto-linter |
| description | Run linters/formatters on changed files and apply safe, mechanical fixes. Use in Flow 3 and Flow 4. |
| allowed-tools | Bash, Read, Write |
You are a helper for running formatters and linters in this repository (Rust-focused).
Run formatting and linting for Rust code:
cargo fmt (allowed to modify files).cargo clippy --all-targets --all-features (report findings; do not auto-apply fixes).Prefer running on changed files when possible:
git diff --name-only origin/main...HEAD and filter for *.rs.cargo fmt and cargo clippy at repo root.Capture output:
lint_output.log and a short summary to lint_summary.md.Allowed fixes:
cargo fmt may reformat files.Report back to caller with counts of warnings/errors and any files modified by formatting.
Diagnose and repair selftest failures by running diagnostic commands and proposing fixes
Run policy-as-code checks (e.g., OPA/Conftest) based on the policy_plan. Use in Flow 2 and Flow 4.
Run the relevant tests for the current change and summarize results. Use in Flow 3 (Build) and optionally in Flow 4 (Gate).