用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/vitalyruhl/esp32-bacnet-stack --skill validation-gate命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Canonical post-integration repository synchronization and compact reporting checks.
Canonical explicit GitHub Issue and Project synchronization procedure with read-back verification.
Canonical local, remote, and tracking-branch cleanup procedure with preservation guards.
正在显示 SKILL.md
| name | validation-gate |
| description | Canonical validation ordering, autofix handling, working-tree checks, and reuse rules. |
| user-invocable | false |
Load the project profile when selecting repository commands. Use enabled CI only;
if none exists, report that and use required local validation. Run relevant tests
when affected. Root builds, affected examples, affected tests, and relevant OTA
work use profile commands. Upload and monitor require explicit request.
For the narrow autofix-capable pre-commit component, run:
pwsh -NoProfile -ExecutionPolicy Bypass -File tools/quality/run-precommit-full.ps1
For a full repository or integration gate, use the canonical orchestrator:
pwsh -NoProfile -ExecutionPolicy Bypass -File tools/build/run-full-repository-gate.ps1
It discovers the current PlatformIO matrix from the repository; do not replace it
with a copied environment list in governance.
Governance-only changes require a consistency check of routing, shortcuts, branch/Git/PR rules, tools, Serena, validation, version, session close, checkpoint, planning, project profile, and reporting rules.
git status --short before validation so existing user changes are
distinguishable from validation output.git status --short and
compare it with the recorded baseline.FAILED/AUTOFIXED,
not passed. Report changed files, inspect the focused diff, confirm changes
are in scope, include them in intended scope, and rerun that command until it
exits successfully without further changes.git status --short
afterward. If files changed, stop: the expensive result does not cover the
changed state; restart the autofix-first sequence.Never infer success from hook names alone: exit status and post-command tree
state are required. Report indirectly covered formatter/cppcheck work as
wrapper-covered, not as independently executed commands. For touched C/C++
source or headers in checkpoint or integration workflows, request cppcheck via
the configured pre-commit path before expensive PlatformIO validation; report a
blocker if it cannot run.
Reuse validation across agents or sessions only when all of the following are
documented: identical commit/source state, clean working tree, exact command and
successful result, unchanged relevant scope, and continued sufficiency for the
pending decision. State: Validation reused: <command>, passed for identical commit/source state, clean tree, unchanged relevant scope, and documented result.
Changed relevant scope requires a rerun. Never reuse after branch change without
proven identical tree, merge, rebase, conflict resolution, dependency update,
PlatformIO config change, generated refresh, or any relevant
source/header/example/test/build or metadata modification. Reuse never bypasses
safety, release, package, or hardware requirements. Failed, partial, skipped,
ambiguous, or insufficient validation is never reusable.
For a GitHub Actions-only workflow dependency update, fresh successful Actions checks on the updated workflow may validate that workflow change. Report local PlatformIO as skipped, not reused.
For governance or documentation-only work, skip PlatformIO and state:
PlatformIO skipped: governance/docs-only changes.