Skip to content

Commit 2ecb980

Browse files
montfortclaude
andauthored
ci: verify .codex/skills stays in sync with .claude source (#234)
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) <noreply@anthropic.com>
1 parent 1bd62e0 commit 2ecb980

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'dist/.claude/skills/**'
7+
- 'dist/.codex/skills/**'
8+
- 'cli/src/bin/gen_codex_skills.rs'
9+
- '.github/workflows/ci.yml'
10+
push:
11+
branches: [main]
12+
paths:
13+
- 'dist/.claude/skills/**'
14+
- 'dist/.codex/skills/**'
15+
- 'cli/src/bin/gen_codex_skills.rs'
16+
- '.github/workflows/ci.yml'
17+
18+
permissions:
19+
contents: read
20+
21+
env:
22+
CARGO_TERM_COLOR: always
23+
24+
jobs:
25+
codex-skills-sync:
26+
name: Codex skills in sync with Claude source
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v6
30+
31+
- name: Install Rust toolchain
32+
uses: dtolnay/rust-toolchain@stable
33+
34+
- name: Install OpenSSL (Linux)
35+
run: sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config
36+
37+
- name: Verify .codex/skills is regenerated from .claude/skills
38+
working-directory: cli
39+
run: |
40+
# Fails if dist/.codex/skills/ drifted from what gen_codex_skills would
41+
# produce from dist/.claude/skills/. Fix locally with:
42+
# cd cli && cargo run --bin gen_codex_skills
43+
cargo run --quiet --bin gen_codex_skills -- --check

0 commit comments

Comments
 (0)