跳到正文
cccskills
Codex 官方免费在 GitHub 公开

code-change-verification

Run the mandatory verification stack when changes affect runtime code, tests, examples, or build and test behavior in the OpenAI Guardrails Python repository.

中文简介正在准备中。当前显示原文说明。

集成工具OpenAI
查看安装方法

包含的文件(4)

  • SKILL.md3.5 KB
  • agents/openai.yaml266 B
  • scripts/run.ps11.4 KB
  • scripts/run.sh8.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Code Change Verification

Overview

Mark eligible work complete only after formatting, linting, both configured type checkers, and the test suite pass. Use this skill for runtime code, tests, examples, packaging, and build or test configuration. Skip it for repository metadata or editorial docs unless the user requests the full stack.

This is a post-review final gate. When $implementation-final-review applies, wait for its clean-review condition before running this broad stack.

Quick start

  1. Keep this skill at ./.agents/skills/code-change-verification.
  2. Codex on macOS/Linux: /usr/bin/env -u OPENAI_API_KEY bash .agents/skills/code-change-verification/scripts/run.sh.
  3. Other macOS/Linux environments: bash .agents/skills/code-change-verification/scripts/run.sh.
  4. Windows: powershell -ExecutionPolicy Bypass -File .agents/skills/code-change-verification/scripts/run.ps1.
  5. The scripts run make format first.
  6. They then run make lint, uv run mypy src tests, uv run pyright, and make tests.
  7. If any command fails, fix the issue and rerun the complete script.
  8. Confirm completion only when every command succeeds and the final diff contains no formatter-created surprises.

Start condition and host capacity

  • During iterative review, use focused tests and a narrowly targeted static check only when the changed boundary requires one.
  • 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 and check again later. Do not create or wait on a repository lock, host-wide mutex, sentinel file, or user-triggered finalize step.
  • Start automatically once review is clean, the diff is stable, and observable host capacity is available. Lack of host telemetry alone is not a blocker.

Environment and API safety

The verification scripts assume repository dependencies are already installed. Run make sync only for a fresh checkout, after dependency files change, or when dependency resolution fails before checks start.

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

The ordinary test suite must remain hermetic. In Codex, remove inherited OPENAI_API_KEY from the wrapper environment. Do not run live provider calls as part of this verification stack. If a future test requires a live service, keep it out of the default stack and require explicit user approval, the repository's service-account credential boundary, and a separate report.

Manual workflow

Run these commands from the repository root in this order:

make format
make lint
uv run mypy src tests
uv run pyright
make tests

Do not skip a failing step. After a fix, rerun the complete sequence so the final result applies to one stable diff.

Resources

scripts/run.sh

Runs the required macOS/Linux sequence, executing independent read-only gates concurrently after formatting and stopping sibling processes when one fails.

scripts/run.ps1

Runs the same required sequence on Windows PowerShell and reports the failing command.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

final-release-review

Codex 官方免费

Review an openai-guardrails-python release plan or final release candidate against the previous remote tag, determine the compatible release type, audit runtime and packaging risk, inspect current CI, and produce an English ship-or-block report. Use for pre-release readiness checks, not ordinary PR review or implementation.

中文简介正在准备中。当前显示原文说明。

openai/openai-guardrails-python2612026年10月20日 更新

implementation-final-review

Codex 官方免费

Perform the repository's risk-tiered independent final review before implementation completion. Use only when explicitly invoked or when repository instructions require it after behavior-impacting implementation work; audit the complete task diff, supported contracts, lifecycle and security boundaries, complexity, and tests before final verification.

中文简介正在准备中。当前显示原文说明。

openai/openai-guardrails-python2612026年10月20日 更新

implementation-kickoff

Codex 官方免费

Start and carry an explicitly invoked openai-guardrails-python implementation through a fresh isolated worktree and a local PR-ready handoff. Fetch the latest origin/main, keep task changes uncommitted, replay them onto the latest main before final review, run applicable verification and $implementation-final-review, use $pr-draft-summary to generate the complete PR draft and branch name, then create one clean local commit with takeover provenance when applicable. Use only when the user explicitly invokes this skill; never push, open a PR, or mutate GitHub.

中文简介正在准备中。当前显示原文说明。

openai/openai-guardrails-python2612026年10月20日 更新

implementation-strategy

Codex 官方免费

Choose compatibility-aware scope for runtime and API changes in openai-guardrails-python. Use before initial implementation and each review-feedback batch to decide whether to patch, reset the design, preserve compatibility, or reject unsupported cases.

中文简介正在准备中。当前显示原文说明。

openai/openai-guardrails-python2612026年10月20日 更新

maintainer-review

Codex 官方免费

Assess an openai-guardrails-python GitHub issue or pull request as a maintainer. Use to verify the claimed need and practical impact, compare supported alternatives or competing approaches, separate code quality from repository readiness, recommend the maintainer action, and draft a copy-ready comment when evidence, changes, or closure should be requested.

中文简介正在准备中。当前显示原文说明。

openai/openai-guardrails-python2612026年10月20日 更新

pr-draft-summary

Codex 官方免费

Create the required PR-ready summary block, branch suggestion, title, and draft description for openai-guardrails-python after runtime, tests, examples, build/test configuration, or behavior-impacting docs change.

中文简介正在准备中。当前显示原文说明。

openai/openai-guardrails-python2612026年10月20日 更新

查看 openai 的全部技能

报告此技能的问题