一键导入
rt-claw-precommit
Use when committing or opening a PR for rt-claw to review staged changes, detect secrets, run checks, and enforce commit conventions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when committing or opening a PR for rt-claw to review staged changes, detect secrets, run checks, and enforce commit conventions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when adding CI coverage for a new rt-claw module, feature chain, endpoint backend, service integration, or regression.
Use when building rt-claw, choosing a platform target, running QEMU, flashing hardware, or debugging C/Meson/native build failures.
Use when finding rt-claw definitions, call sites, subsystem ownership, build wiring, OSAL boundaries, or platform-specific implementations.
Use when analyzing rt-claw build logs, QEMU output, serial monitor logs, CI failures, network/API failures, or boot/runtime crashes.
Use when rt-claw behavior, APIs, configuration, build commands, platforms, or developer workflows change and documentation may need synchronization.
Use when adding a new rt-claw service, driver, tool, platform helper, platform port, or RTOS backend.
| name | rt-claw-precommit |
| description | Use when committing or opening a PR for rt-claw to review staged changes, detect secrets, run checks, and enforce commit conventions. |
| license | MIT |
Prepare one focused, signed commit. Never stage unrelated local changes silently.
git status -sbgit diff --statgit diff --cached --statgit diff --cachedsdkconfig and local config files that should remain ignoredscripts/check-patch.sh --stagedmake check-agent-skills when .agents/ changedsubsystem: descriptionSigned-off-by: Chao Liu <chao.liu.zevorn@gmail.com>| Change area | Narrow validation |
|---|---|
| docs or agent guidance | scripts/check-patch.sh --staged if source files are staged; otherwise manual diff review |
.agents/ | make check-agent-skills |
shared claw/ or include/ | make build-linux and relevant unit tests |
| OSAL | build affected backend and at least one shared target |
| platform | platform-specific build target |
| tests | run the changed or narrowest affected test |
git add -A when unrelated changes are present.build/.vendor/.