SKILL.md
SKILL.mdBrowse 5 files
851 tokens
4,211 bytes
Token encoding: o200k_base
Snapshot 506f736
1---2name: code-change-verification3description: Run the required final install, build, type, lint, test, and format checks after eligible SDK changes pass review.4---5 6# Code Change Verification7 8## Overview9 10Ensure 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.11 12## Quick start13 141. Keep this skill at `./.agents/skills/code-change-verification` so it loads automatically for the repository.152. Run the skill in the user's selected checkout without changing worktrees or branches.163. Codex on macOS/Linux: `/usr/bin/env -u OPENAI_API_KEY bash .agents/skills/code-change-verification/scripts/run.sh`.174. Other macOS/Linux environments: `bash .agents/skills/code-change-verification/scripts/run.sh`.185. Windows: `powershell -ExecutionPolicy Bypass -File .agents/skills/code-change-verification/scripts/run.ps1`.196. If any command fails, fix the issue, rerun the script, and report the failing output.207. Confirm completion only when all commands succeed with no remaining issues.21 22## Start condition and host capacity23 24- 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.25- 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.26- 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.27- 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.28 29## Codex execution policy30 31Repository 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.32 33On 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.34 35## Manual workflow36 37- 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`.38- The skill may execute the final validation phase in parallel, but every step above must still pass.39- Do not skip steps; stop and fix issues immediately when any step fails.40- Re-run the full stack after applying fixes so the commands execute with the same barriers and coverage.41- 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.42 43## Resources44 45### scripts/run.sh46 47- Executes the full verification sequence (including declaration checks) with fail-fast semantics.48- Keeps `pnpm i --frozen-lockfile` and `pnpm build` as barriers, then delegates independent validation steps to `concurrently`.49- Prefer this entry point to ensure the commands always run from the repo root with the expected fail-fast behavior.50 51### scripts/run.ps152 53- Windows-friendly wrapper that runs the same verification sequence with fail-fast semantics.54- Use from PowerShell with execution policy bypass if required by your environment.55 Discovery context
Discovered by repository scan. No exact path reference found in the snapshot’s root AGENTS.md.