Guardrails 变更验证
code-change-verification
针对代码、依赖、测试、工具链、文档或仓库工作流变更,选择并运行 Guardrails 验证。
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 114
- Forks
- 22
01 前言 Front Matter
- name
- code-change-verification
- description
- Select and run Guardrails verification for code, dependency, test, tooling, documentation, or repository-workflow changes.
02 资源文件 1
- 参考文档agents/openai.yaml123 B
03 SKILL.md 正文
Code Change Verification
Follow repository verification and
inspect the current package.json scripts before selecting checks. Run from the
selected linked worktree's root; preserve its branch and user-owned changes.
Select the evidence
| Changed area | Verification |
|---|---|
| Runtime, public types, dependencies, build/test configuration, packaging | Full sequence below; focused tests during implementation |
| SDK integration or dependency compatibility | Build first, then the relevant src/__tests__/integration/sdk-*.test.ts tests; full sequence before handoff |
| Site content, links, navigation, or VitePress tooling | npm ci, then npm run docs:check |
| Contributor instructions or skill metadata only | Validate commands, relative links, frontmatter/UI metadata, and git diff --check |
When areas overlap, combine their required checks. A test described as "integration" is not necessarily live: inspect its fixtures and calls before running it. The normal suite uses local fixtures and mocks; do not turn ordinary verification into a credentialed eval or an external API experiment.
Full sequence
Run each command separately and inspect its exit status before proceeding:
npm ci
npm run build
npm run test:run
npm run lint
npm run docs:check
The build emits CommonJS and declarations consumed by compatibility tests.
test:run avoids watch mode. Biome lint includes formatting and import checks;
VitePress and the Node documentation tests run through docs:check. Invoke npm
directly in the host shell, including PowerShell; no platform-specific wrapper
or additional formatter is needed.
Keep verification within the available sandbox. Diagnose failures and fix only in-scope defects; report unrelated failures and missing coverage. Retry a transient failure when evidence supports that diagnosis. After a fix, repeat checks whose evidence it invalidated. Never report a skipped or failed gate as passing, and do not infer Windows coverage from Linux or macOS results.
Report the command, result, tested Node version, and any coverage limits. For remote checks, associate the result with the current PR head. The review gate in AGENTS.md also applies before pushing; passing tests do not replace it.
04 同仓库更多 Skills
Guardrails PR 起草与跟进
pr-draft-summary
根据完整的最终 diff 起草 Guardrails PR,并执行经授权的 CI 和审查跟进,包括堆叠 PR 和接管。
Guardrails 实现策略规划
implementation-strategy
在对 Guardrails 运行时、配置、客户端、资源、流式处理、Agents 或 SDK 进行兼容性更改及反馈修复之前,确定有限的实现范围和现有的归属模块。
Guardrails 实现启动
implementation-kickoff
在选定的关联 worktree 中,以有限的范围和验证机制启动或恢复所请求的 Guardrails 实现或 PR 接管。
Guardrails 变更最终评审
implementation-final-review
在推送或更新 PR 之前,按照仓库的对抗式评审流程,为完整的 Guardrails 变更准备独立评审。