Agent Skills › openai/openai-agents-js › code-change-verification

code-change-verification

GitHub

在代码变更通过审核后,执行依赖安装、构建、类型检查、Lint、测试及格式化等最终验证流程。确保工作仅在全部命令成功且无遗留问题时标记完成,作为发布前的最后关卡。

.agents/skills/code-change-verification/SKILL.md openai/openai-agents-js

触发场景

SDK或运行时代码变更通过审核 需要执行构建和测试的最终验证

安装

npx skills add openai/openai-agents-js --skill code-change-verification -g -y
更多选项

非标准路径

npx skills add https://github.com/openai/openai-agents-js/tree/main/.agents/skills/code-change-verification -g -y

不安装直接使用

npx skills use openai/openai-agents-js@code-change-verification

指定 Agent (Claude Code)

npx skills add openai/openai-agents-js --skill code-change-verification -a claude-code -g -y

安装 repo 全部 skill

npx skills add openai/openai-agents-js --all -g -y

预览 repo 内 skill

npx skills add openai/openai-agents-js --list

SKILL.md

Frontmatter
{
    "name": "code-change-verification",
    "description": "Run the required final install, build, type, lint, test, and format checks after eligible SDK changes pass review."
}

Code Change Verification

Overview

Ensure work is only marked complete after installing dependencies, building, linting, type checking (including generated declarations), and tests pass. Use this skill when changes affect runtime code, tests, or build/test configuration. This is a post-review final gate: when $implementation-final-review applies, do not invoke the broad stack until its clean-review condition applies to the stable task diff.

Quick start

  1. Keep this skill at ./.agents/skills/code-change-verification so it loads automatically for the repository.
  2. Run the skill in the user's selected checkout without changing worktrees or branches.
  3. Codex on macOS/Linux: /usr/bin/env -u OPENAI_API_KEY bash .agents/skills/code-change-verification/scripts/run.sh.
  4. Other macOS/Linux environments: bash .agents/skills/code-change-verification/scripts/run.sh.
  5. Windows: powershell -ExecutionPolicy Bypass -File .agents/skills/code-change-verification/scripts/run.ps1.
  6. If any command fails, fix the issue, rerun the script, and report the failing output.
  7. Confirm completion only when all commands succeed with no remaining issues.

Start condition and host capacity

  • During iterative review, use only focused tests and a narrowly targeted static check when the changed typing boundary requires one. Defer repository-wide pnpm -r build-check and the rest of this complete stack until review is clean.
  • Immediately before starting the complete stack, use available read-only task or process evidence to check whether another repository-wide test, typecheck, build, examples runner, or integration command is already active on the same host.
  • When concrete contention is visible, continue useful non-heavy work such as review, remediation, evidence preparation, or focused checks, then check again later. Do not create or wait on a repository lock, host-wide mutex, or sentinel file.
  • Start automatically once review is clean, the diff is stable, and observable host capacity is available. Do not require a user-triggered finalize message. If host telemetry is unavailable, do not block solely because capacity cannot be measured.

Codex execution policy

Repository verification and all child processes must remain in the normal Codex workspace sandbox. Never request elevated sandbox permissions for verification, and never retry with broader host access after a failure.

On macOS/Linux, use the exact Codex command from Quick start so an inherited OPENAI_API_KEY is removed before the repository-controlled wrapper starts. Investigate failures inside the workspace sandbox and report any coverage that the sandbox cannot provide instead of weakening the sandbox boundary.

Manual workflow

  • Run from the repository root in these phases: pnpm i --frozen-lockfile, pnpm build, then pnpm -r build-check, pnpm -r -F "@openai/*" dist:check, pnpm lint, pnpm test, and pnpm format:check:changed.
  • The skill may execute the final validation phase in parallel, but every step above must still pass.
  • Do not skip steps; stop and fix issues immediately when any step fails.
  • Re-run the full stack after applying fixes so the commands execute with the same barriers and coverage.
  • The install intentionally runs without forcing CI or prompt-confirmation settings. If pnpm reports incompatible node_modules, stop and diagnose the configuration mismatch instead of silently recreating dependencies.

Resources

scripts/run.sh

  • Executes the full verification sequence (including declaration checks) with fail-fast semantics.
  • Keeps pnpm i --frozen-lockfile and pnpm build as barriers, then runs the root verify:* scripts in parallel with pnpm.
  • Prefer this entry point to ensure the commands always run from the repo root with the expected fail-fast behavior.

scripts/run.ps1

  • Windows-friendly wrapper that runs the same verification sequence with fail-fast semantics.
  • Use from PowerShell with execution policy bypass if required by your environment.

版本历史

  • 9687b54 当前 2026-10-19 14:11

    将并发工具替换为 pnpm 12 并行脚本,移除未使用的依赖声明,要求使用 pnpm 12 进行并行进程清理。

  • a3a9215 2026-09-09 13:00
  • 443c33e 2026-08-20 05:59

    新增迭代审查期间的聚焦检查策略及主机容量检测机制;明确 Codex 沙箱执行策略以防止权限提升;优化触发条件以在审查清洁后自动启动。

  • 13f68fa 2026-07-25 11:30

同 Skill 集合

.agents/skills/changeset-validation/SKILL.md
.agents/skills/docs-sync/SKILL.md
.agents/skills/examples-auto-run/SKILL.md
.agents/skills/examples-run-analysis/SKILL.md
.agents/skills/final-release-review/SKILL.md
.agents/skills/implementation-final-review/SKILL.md
.agents/skills/implementation-kickoff/SKILL.md
.agents/skills/implementation-strategy/SKILL.md
.agents/skills/integration-tests/SKILL.md
.agents/skills/maintainer-review/SKILL.md
.agents/skills/openai-knowledge/SKILL.md
.agents/skills/pnpm-upgrade/SKILL.md
.agents/skills/pr-draft-summary/SKILL.md
.agents/skills/runtime-behavior-probe/SKILL.md
.agents/skills/sensitive-logging-audit/SKILL.md
.agents/skills/test-coverage-improver/SKILL.md
examples/docs/sandbox-agents/skills/invoice-total-fixer/SKILL.md
examples/tools/skills/csv-workbench/SKILL.md

元信息

文件数
0
版本
9b33d73
Hash
41772e68
收录时间
2026-07-25 11:30

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-07 05:24
浙ICP备14020137号-1