ci: verify .codex/skills stays in sync with .claude source#234
Merged
Conversation
Adds a CI workflow running `gen_codex_skills --check` on PRs (and pushes to main) that touch the Claude skill sources, the generated Codex tree, or the generator itself. Until now nothing enforced the regeneration step, so a hand-edit to .claude/skills/ without re-running the generator could ship a stale .codex/skills/ tree (the exact failure mode behind the #232 identity drift). Fix locally with `cd cli && cargo run --bin gen_codex_skills`. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a CI workflow (
.github/workflows/ci.yml) that runsgen_codex_skills --checkto guaranteedist/.codex/skills/is always the regenerated output ofdist/.claude/skills/.Until now there was no PR CI — only the release and website-deploy workflows. The Codex skill tree is generated from the Claude source by
cli/src/bin/gen_codex_skills.rsand must be regenerated by hand before each framework release. Nothing enforced that step, so a hand-edit to.claude/skills/without re-running the generator could ship a stale.codex/skills/tree. That is exactly the drift class behind #232 (Codex inheritingclaude-code-v1.0).Behavior
pull_requestandpushtomain):dist/.claude/skills/**dist/.codex/skills/**cli/src/bin/gen_codex_skills.rs.codex/skills/differs from what the generator would produce. The job log prints the fix:cd cli && cargo run --bin gen_codex_skills.actions/checkout@v6,dtolnay/rust-toolchain@stable, OpenSSL install for the crate's deps).Verification
main:Codex skills are in sync (12 skills).🤖 Generated with Claude Code