跳到正文
cccskills
免费在 GitHub 公开

changeset-validation

Validate changesets in openai-agents-js using LLM judgment against git diffs (including uncommitted local changes). Use when packages/ or .changeset/ are modified, or when verifying PR changeset compliance and bump level.

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

查看安装方法

包含的文件(8)

  • SKILL.md2.4 KB
  • agents/openai.yaml276 B
  • references/validation-prompt.md4.5 KB
  • scripts/changeset-assign-milestone.mjs6.9 KB
  • scripts/changeset-prompt.mjs14.0 KB
  • scripts/changeset-prompt.test.mjs7.7 KB
  • scripts/changeset-validation-result.mjs1.7 KB
  • scripts/run-fixtures.sh4.9 KB

SKILL.md(原文)

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

Changeset Validation

Overview

This skill validates whether changesets correctly reflect package changes and follow the repository rules. It relies on the shared prompt in references/validation-prompt.md so local Codex reviews and GitHub Actions share the same logic. Experimental or preview-only feature additions that are explicitly labeled as such in the diff may remain a patch bump when they do not change existing behavior. Major bumps are only allowed after the first major release; before that, do not use major bumps for feature-level changes.

Quick start

Local (Codex-driven):

  1. Run:
    pnpm changeset:validate-prompt
    
  2. Apply the rules from references/validation-prompt.md to the generated prompt.
  3. Respond with a JSON verdict containing ok/errors/warnings/required_bump (English-only strings).

CI (Codex Action):

  1. Run:
    pnpm changeset:validate-prompt -- --ci --output .github/codex/prompts/changeset-validation.generated.md
    
  2. Use openai/codex-action with the generated prompt and JSON schema to get a structured verdict.

Workflow

  1. Generate the prompt context via pnpm changeset:validate-prompt.
  2. Apply the rules in references/validation-prompt.md to judge correctness.
  3. Provide a clear verdict and required bump (patch/minor/major/none).
  4. If the changeset needs edits, update it and re-run the validation.

Branch-level changeset rule (do not skip)

  • If any .changeset/*.md file is already present in the current branch diff, treat it as the active changeset. Do not add a new changeset file.
  • Instead, update the existing changeset file by rewriting its summary to reflect the primary change relative to main. Do not try to capture every incremental update.
  • Keep the summary at one line; replace the line as needed rather than appending. If you must include multiple points, compress them into a single line.

Shared source of truth

  • Keep the prompt file as the single source of validation rules.
  • Keep the script lightweight: it should only gather context and emit the prompt.

Resources

  • references/validation-prompt.md

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

Run the required final install, build, type, lint, test, and format checks after eligible SDK changes pass review.

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

openai/openai-agents-js39242026年10月16日 更新

Fix the tiny credit-note formatting bug and rerun the exact targeted test command.

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

openai/openai-agents-js39242026年10月16日 更新

Analyze CSV files in /mnt/data and return concise numeric summaries.

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

openai/openai-agents-js39242026年10月16日 更新

docs-sync

免费

Audit or update authored English SDK documentation within a requested topic or diff using implementation evidence.

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

openai/openai-agents-js39242026年10月16日 更新

Analyze logs and source from a completed repository example run. Never execute or control examples.

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

openai/openai-agents-js39242026年10月16日 更新

Assess a JS SDK release candidate or release plan against the previous release and recommend ship or block.

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

openai/openai-agents-js39242026年10月16日 更新

查看 openai 的全部技能

报告此技能的问题