
Code Change Verification
OfficialFreeAutomate code validation for OpenAI Agents.
Free · Opens the source repo
What Code Change Verification does
The Code Change Verification skill is designed for developers working within the OpenAI Agents Python repository. It ensures that any modifications to the runtime code, tests, or build/test configurations are thoroughly validated before being marked as complete. This skill acts as a final gatekeeper, running a series of mandatory checks that include formatting, linting, type checking, and executing tests. By enforcing these checks, it helps maintain code quality and consistency across the repository.
To utilize this skill, developers need to place it in the designated folder within their repository. The provided scripts can be executed in both macOS/Linux and Windows environments, facilitating a seamless integration into various workflows. The scripts are structured to run the verification commands in a specific order, starting with formatting and followed by linting, type checking, and tests, all executed in parallel to optimize the validation process. This fail-fast approach ensures that any issues are identified and addressed promptly, preventing incomplete or erroneous code from being merged.
This skill is particularly useful during the iterative review process, allowing developers to focus on targeted checks when necessary, and deferring broader validations until a clean review is established. It also includes mechanisms to handle potential contention for resources, ensuring that developers can continue working efficiently without unnecessary delays. The skill is intended for developers who are committed to maintaining high standards of code quality and want to automate the verification process to save time and reduce manual errors.
While this skill is powerful for validating code changes, it is not suitable for documentation-only updates or repository metadata changes, as it is specifically tailored for runtime code and related configurations. Developers should also ensure that their environment is properly set up with all necessary dependencies before running the verification scripts, as missing dependencies can hinder the process.
When to use it
Use this skill whenever changes are made to runtime code, tests, or build/test configurations in the OpenAI Agents Python repository.
When not to use it
Avoid using this skill for documentation-only changes or when the environment setup is incomplete due to missing dependencies.
What you can build with it
Validating Code Changes
Use this skill to ensure that all code changes meet quality standards before merging into the main branch.
Automating Test Processes
Integrate this skill into your CI/CD pipeline to automate the testing and validation of code changes.
Enhancing Code Review Efficiency
Leverage this skill to streamline the code review process by automatically checking for common issues.
How to install Code Change Verification
View source1. Install with the skills CLI
npx skills add openai/openai-agents-python/code-change-verification --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by openaiCode Change Verification
Overview
Ensure work is only marked complete after formatting, linting, type checking, and tests pass. Use this skill when changes affect runtime code, tests, or build/test configuration. You can skip it for docs-only or repository metadata unless a user asks for the full stack. 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
- Keep this skill at
./.agents/skills/code-change-verificationso it loads automatically for the repository. - macOS/Linux:
env UV_DEFAULT_INDEX=https://pypi.org/simple bash .agents/skills/code-change-verification/scripts/run.sh. - Windows:
powershell -ExecutionPolicy Bypass -File .agents/skills/code-change-verification/scripts/run.ps1. - The scripts run
make formatfirst, then runmake lint,make typecheck, andmake testsin parallel with fail-fast semantics. - While the parallel steps are still running, the scripts emit periodic heartbeat updates so you can tell that work is still in progress.
- If any command fails, fix the issue, rerun the script, and report the failing output.
- 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
make typecheckand 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
finalizemessage. If host telemetry is unavailable, do not block solely because capacity cannot be measured.
Codex execution policy
The full test suite exercises UnixLocalSandboxSession, which starts its own macOS sandbox. A
nested run inside the Codex filesystem sandbox fails with
sandbox-exec: sandbox_apply: Operation not permitted even when the implementation is correct.
When Codex invokes the macOS/Linux verification command:
- Use the exact command from Quick start so it matches the persistent command allow rule.
- Set
sandbox_permissions=require_escalatedon the first invocation. The matching allow rule makes this non-interactive; it does not require a new user approval. - Do not first run the suite inside the Codex sandbox and retry after the expected UnixLocal failures.
This execution policy changes only where the verification process runs. The SDK sandbox tests must remain enabled and unchanged.
Environment setup
The verification scripts assume repository dependencies are already installed. Do not run make sync as part of every verification pass; use it for a fresh checkout, after dependency files change, or when dependency resolution fails before the checks start.
On Linux, some Python packages with native extensions may require system packages such as libffi-dev, Python development headers, or build tools. If verification cannot start because one of these packages is missing, treat it as a local environment setup issue. Install the missing dependency when possible, or report the failing command and missing dependency in the PR test plan before rerunning verification in a prepared environment.
Manual workflow
- For a fresh checkout, or if dependencies are not installed or have changed, run
make syncfirst to install dev requirements viauv. - Run from the repository root with
make formatfirst, thenmake lint,make typecheck, andmake tests. - Do not skip steps; stop and fix issues immediately when a command fails.
- If you run the steps manually, you may parallelize
make lint,make typecheck, andmake testsaftermake formatcompletes, but you must stop the remaining steps as soon as one fails. - Re-run the full stack after applying fixes so the commands execute in the required order.
Resources
scripts/run.sh
- Executes
make formatfirst, then runsmake lint,make typecheck, andmake testsin parallel with fail-fast semantics from the repository root. It also emits periodic heartbeat updates while the parallel steps are still running. Prefer this entry point to preserve the required ordering while reducing total runtime.
scripts/run.ps1
- Windows-friendly wrapper that runs the same sequence with
make formatfirst and the remaining steps in parallel with fail-fast semantics, plus periodic heartbeat updates while work is still running. Use from PowerShell with execution policy bypass if required by your environment.
Frequently asked questions about Code Change Verification
Similar skills
Quality Playbook Generator
Run comprehensive quality audits on any codebase.
PR Draft Summary
Automate PR summary generation for openai-agents-python.
Final Release Review
Streamline your release candidate audits with ease.
Unit Test Vue Pinia
Efficiently write and review unit tests for Vue 3 applications.
Slang Shader Expert
Optimize and integrate Slang shaders with ease.
Telemetry Standards
Ensure consistent event tracking in Supabase Studio.
