一键导入
style-check
Check code style of modified files using astyle and whitespace checks. Use when the user wants to verify formatting before committing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Check code style of modified files using astyle and whitespace checks. Use when the user wants to verify formatting before committing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | style-check |
| description | Check code style of modified files using astyle and whitespace checks. Use when the user wants to verify formatting before committing. |
Check formatting of modified files against ArduPilot's coding standards.
If $ARGUMENTS specifies files, check those. Otherwise check all modified files:
git diff --name-only HEAD
Filter to only .cpp and .h files.
git diff --check HEAD
This reports any trailing whitespace or space-before-tab issues.
For each modified C++ file, run astyle in dry-run mode to see what would change:
astyle --options=Tools/CodeStyle/astylerc --dry-run <file>
If astyle reports "Formatted" the file needs changes. "Unchanged" means it passes.
To see the actual formatting diff:
astyle --options=Tools/CodeStyle/astylerc < <file> | diff <file> -
For each file, report:
if, for, while, switch — not after function names--dry-run flag ensures no files are modified by this checkReview an ArduPilot new-board hwdef PR. Stashes any local changes, checks the PR out as a branch in the current repo, runs DMA / board-ID / file-presence / commit-structure checks, layers the hwdef playbook on top, and (after confirmation) posts a review comment on the PR — then restores the original branch and pops the stash. Use when the user asks to review or pre-review an hwdef PR.
Review an ArduPilot new-board hwdef PR. Stashes any local changes, checks the PR out as a branch in the current repo, runs DMA / board-ID / file-presence / commit-structure checks, layers the hwdef playbook on top, and (after confirmation) posts a review comment on the PR — then restores the original branch and pops the stash. Use when the user asks to review or pre-review an hwdef PR.
Analyze ArduPilot DataFlash .bin log files or MAVLink .tlog telemetry logs. Use when the user provides a .bin or .tlog log file path or asks to analyze flight log data.
Analyze ArduPilot DataFlash .bin log files or MAVLink .tlog telemetry logs. Use when the user provides a .bin or .tlog log file path or asks to analyze flight log data.
Check the local ArduPilot AI Playbook version against the upstream GitHub version and update if newer. Use when the user asks to update the playbooks, check for playbook updates, or wants to know which version is installed.
Write ArduPilot CRSF (Crossfire) menu scripts using crsf_helper.lua. Use when the user asks to create or modify CRSF/ELRS transmitter menus.