Skip to content

docs(codex): rename Step 0 to avoid collision with platform-detect prelude#1394

Open
mvanhorn wants to merge 2 commits intogarrytan:mainfrom
mvanhorn:docs/1388-codex-step-0-collision
Open

docs(codex): rename Step 0 to avoid collision with platform-detect prelude#1394
mvanhorn wants to merge 2 commits intogarrytan:mainfrom
mvanhorn:docs/1388-codex-step-0-collision

Conversation

@mvanhorn
Copy link
Copy Markdown
Contributor

@mvanhorn mvanhorn commented May 9, 2026

Summary

codex/SKILL.md had two ## Step 0: H2 headings sitting back-to-back: the platform-detect prelude (## Step 0: Detect platform and base branch, injected via scripts/resolvers/utility.ts) and the codex skill's own ## Step 0: Check codex binary from codex/SKILL.md.tmpl:42. An agent reading the skill in order hits both with no clear cue which to follow.

Why this matters

#1388 reports the collision and proposes three options (Step 0a/0b, merge, or relabel one as Step 0.5). The Step 0.5 option is taken, so this PR uses the next free fractional slot.

Changes

Renamed codex/SKILL.md.tmpl:42 from ## Step 0: Check codex binary to ## Step 0.4: Check codex binary. The new label slots between the prelude (Step 0) and the existing Step 0.5: Auth probe + version check / Step 0.6: Resolve portable roots sections, so reading order stays correct and no downstream renumbering is needed.

After the rename, codex/SKILL.md has exactly one ## Step 0: heading: the platform-detect prelude at line 746.

Testing

  • bun test test/skill-validation.test.ts -> 327 pass
  • bun test test/gen-skill-docs.test.ts -> 378 pass, 1 unrelated pre-existing fail (package.json version matches VERSION file package.json is at 1.29.0.0 vs VERSION 1.30.0.0; not touched by this PR)
  • grep -n '^## Step 0' codex/SKILL.md returns only the prelude

Closes #1388

AI was used for assistance.


View in Codesmith
Need help on this PR? Tag @codesmith with what you need.

  • Let Codesmith autofix CI failures and bot reviews

mvanhorn and others added 2 commits May 9, 2026 09:36
…elude

The codex skill template had its own '## Step 0: Check codex binary'
heading (line 42), which after gen-skill-docs collided with the
platform-detection prelude '## Step 0: Detect platform and base branch'
(injected by scripts/resolvers/utility.ts). The generated codex/SKILL.md
ended up with two H2 headings labeled Step 0, which is ambiguous to an
agent reading the skill in order.

Renamed the local heading to Step 0.4, slotting it between the prelude
(Step 0) and the existing Step 0.5 / Step 0.6 sections. No renumbering
of downstream steps needed.

Closes garrytan#1388

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

codex skill: two ## Step 0 H2 headings in the same workflow

1 participant