Community编程与开发github.com

更新 V8 版本

更新 Codex 所依赖的 `v8` / `rusty_v8` 版本,验证发布候选路径,并排查失败的 V8 canary 或工件构建。用于询问是否需要升级 V8、更新 `rusty_v8` 工件、准备或验证 V8 发布候选版本、检查 `v8-canary`,或诊断 V8 版本更新后构建失败的原因。

更新 V8 版本 是什么?

此技能用于安全、准确地更新项目(如 Codex)中固定的 V8 与 rusty_v8 版本。它严格按照 `third_party/v8/README.md` 中定义的版本升级流程操作,指导开发者逐一修改所有相关的版本锁定点,包括 `Cargo.toml`、`Cargo.lock`、`MODULE.bazel` 以及 `third_party/v8/` 下的各个文件。技能同时提供了自动化校验命令,以确保更新后的一致性。其核心验证环节优先利用 CI 上的 `v8-canary` 工作流结果;如果 CI 不可用,则执行本地替代验证。如果验证通过,任务结束并鼓励用户提交变更;如果验证失败,它会进入详细的故障排查路径,比较上游变更、分析构建图文件(如 `MODULE.bazel`、`BUILD.bazel` 及 GitHub Actions 工作流),并精确修复导致失败的最小改动集合。最终的报告会清晰区分验证来源(hosted canary 与本地替代结果)、状态(版本升级完成 vs 发布已发布)以及被阻时的具体故障点与建议修复方向。此技能适用于希望将 V8 版本升级纳入自动化工作流的开发者或 AI 编码助手。

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/openai/codex/tree/main/.codex/skills/update-v8-version

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

更新 V8 版本 是做什么的?

核心工作流

  1. 阅读 third_party/v8/README.md 并遵循其版本升级顺序。将该文档视为发布流程的最终权威来源。

  2. 检查并更新承载版本锁定的具体仓库表面:

    • codex-rs/Cargo.toml
    • codex-rs/Cargo.lock
    • MODULE.bazel
    • third_party/v8/BUILD.bazel
    • third_party/v8/README.md
    • 当剩余预构建输入变化时,对应的 third_party/v8/rusty_v8_<version>.sha256 清单文件
  3. 始终运行现有的校验辅助脚本:

    python3 .github/scripts/rusty_v8_bazel.py update-module-bazel
    python3 .github/scripts/rusty_v8_bazel.py check-module-bazel
    python3 -m unittest discover -s .github/scripts -p test_rusty_v8_bazel.py
    
  4. 在推广工作之前验证发布候选路径:

    • 如果存在候选分支或 PR,优先检查其 v8-canary CI 结果(使用 GitHub 检查工具或 gh)。
    • 如果 CI 不可用,或用户只要求本地检查,则针对变更的表面运行最接近的本地验证,并明确说明这是本地替代方案,而非完整的托管 canary。
  5. 如果 canary 路径通过,则在此停止。总结结果并鼓励用户提交候选变更或继续执行其要求的发布流程。除非用户要求,否则不要发布标签、版本或推送。

故障路径

仅在 canary 或本地构建路径失败时进入此路径。

  1. 捕获失败的构建目标、工作流作业和第一个可操作的错误。
  2. 将当前固定的版本与相关上游标签或 SHA 处的目标版本进行对比。检查两者:
    • denoland/rusty_v8
    • 目标 Bazel 锁定版本处的上游 V8 源代码
  3. 跟踪与构建相关的差异,而非广泛的源码变动:
    • 生成的绑定布局变化
    • 归档或资产命名变化
    • GN/Bazel 目标变化
    • 自定义的 libc++ / libc++abi / llvm-libc 输入
    • 沙箱或指针压缩功能关系
    • patches/ 目录中不再适用或不匹配上游的补丁块
  4. 将每个失败的差异追溯回 Codex 的构建图:
    • MODULE.bazel
    • third_party/v8/BUILD.bazel
    • .github/scripts/rusty_v8_bazel.py
    • .github/workflows/v8-canary.yml
    • .github/workflows/rusty-v8-release.yml
  5. 仅更新恢复目标版本构建和工件合约所需的部分。将补丁说明和文档变更放在受影响的文件附近。
  6. 重新运行有针对性的验证。如果变为绿色,则返回常规工作流,并以简洁的总结及剩余的发布步骤为止。

报告

  • 说明验证是来自托管的 v8-canary 还是本地替代方案。
  • 区分“版本升级完成”和“发布已发布”。
  • 当被阻塞时,报告重要的上游差异、受影响的 Codex 文件以及下一步要尝试的具体修复方案。

Individual skills in this repo

This repo contains 19 individual skills — each has its own dedicated page.

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep watching open PRs so fresh review feedback is surfaced promptly. Use when the user asks Codex to monitor a PR, watch CI, handle review comments, or keep an eye on failures and feedback on an open PR.

code-review

Run a final code review on a pull request

code-review-change-size

Change size guidance (800 lines)

code-review-context

Model visible context

code-review-testing

Test authoring guidance

codex-bug

Diagnose GitHub bug reports in openai/codex. Use when given a GitHub issue URL from openai/codex and asked to decide next steps such as verifying against the repo, requesting more info, or explaining why it is not a bug; follow any additional user-provided instructions.

codex-issue-digest

Run a GitHub issue digest for openai/codex by feature-area labels, all areas, and configurable time windows. Use when asked to summarize recent Codex bug reports or enhancement requests, especially for owner-specific labels such as tui, exec, app, or similar areas.

codex-pr-body

Update the title and body of one or more pull requests.

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG/vector/code-native assets, extending an established icon or logo system, or building the visual directly in HTML/CSS/canvas.

openai/babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep watching open PRs so fresh review feedback is surfaced promptly. Use when the user asks Codex to monitor a PR, watch CI, handle review comments, or keep an eye on failures and feedback on an open PR.

openai-docs

Use when the user asks how to build with OpenAI products or APIs, asks about Codex itself or choosing Codex surfaces, needs up-to-date official documentation with citations, help choosing the latest model for a use case, or model upgrade and prompt-upgrade guidance; use OpenAI docs MCP tools for non-Codex docs questions, use the Codex manual helper first for broad Codex self-knowledge, and restrict fallback browsing to official OpenAI domains.

openai/test-tui

Guide for testing Codex TUI interactively

path-types

Choose Rust types for operating system paths across the Codex repository. Use when defining new path-bearing types or explicitly migrating existing ones.

plugin-creator

Create and scaffold plugin directories for Codex with a required `.codex-plugin/plugin.json`, optional plugin folders/files, valid manifest defaults, and personal-marketplace entries by default. Use when Codex needs to create a new personal plugin, add optional plugin structure, generate or update marketplace entries for plugin ordering and availability metadata, or update an existing local plugin during development with the CLI-driven cachebuster and reinstall flow.

pushing-ci-changes

Pushing GitHub Actions changes, resolving push rejection, requesting upload exceptions.

remote-tests

Testing against remote executors in integration tests.

skill-creator

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Codex's capabilities with specialized knowledge, workflows, or tool integrations.

skill-installer

Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).

test-tui

Guide for testing Codex TUI interactively

相关技能