一键导入
clang-tidy
Run clang-tidy on C++ files changed relative to main and report violations
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run clang-tidy on C++ files changed relative to main and report violations
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Write Bash commands that don't trigger unnecessary permission prompts. Use Read/Edit/Grep instead of head/tail/sed/awk/cat/echo; split chained commands (&&, ;, ||) into separate Bash calls; drop diagnostic suffixes like `; echo "EXIT=$?"`. The allowlist matches whole command strings — every mismatch costs the user attention.
Commit user-named files atomically via scripts/commit-pathspec.sh (which wraps `git commit -m "..." -- <files>` and writes the provenance token the pre-commit hook validates). Applies the CLAUDE.md "Pre-commit hook failures on unrelated changes" protocol when the hook fails. Never adds --no-verify silently — explicit user approval is required.
Scaffold a new epic file in docs/developers/tasks/open/ and run housekeep
Scaffold a new idea file in docs/developers/ideas/open/ and regenerate the ideas OVERVIEW.md
Set a task to active — updates status, moves to active/, runs housekeep. Also resumes paused tasks (paused/ → active/ or active/ with closed prerequisites).
Mark a task as closed — writes effort_actual, moves the file to closed/, runs housekeep, and commits
| name | clang-tidy |
| description | Run clang-tidy on C++ files changed relative to main and report violations |
Run clang-tidy on every C++ file that differs from main and report violations with
file:line context.
Steps:
Check that .vscode/build/compile_commands.json exists. If not, tell the user to run
cmake -B .vscode/build first and stop.
Find changed C++ files:
git diff --name-only main...HEAD -- '*.cpp' '*.h' '*.hpp'
Also include any untracked files in src/, lib/, or include/ that are not in
.pio/, build/, or _deps/.
If no C++ files are changed, report "No C++ files changed relative to main." and stop.
For each file, run:
clang-tidy -p .vscode/build <file>
Collect all output. Report:
If clang-tidy is not installed, report the error and stop. Do not auto-fix — report only.