Skip to content

fix: make generated commit trailers host-aware#382

Open
wmzhai wants to merge 1 commit intogarrytan:mainfrom
wmzhai:fix/codex-coauthor-trailer
Open

fix: make generated commit trailers host-aware#382
wmzhai wants to merge 1 commit intogarrytan:mainfrom
wmzhai:fix/codex-coauthor-trailer

Conversation

@wmzhai
Copy link

@wmzhai wmzhai commented Mar 23, 2026

Summary

  • move commit footer generation into gen-skill-docs
  • keep the Claude trailer in Claude-generated skills
  • omit AI Co-Authored-By trailers from generated Codex /ship and /document-release commit examples
  • add regression coverage for both source templates and generated host outputs

Problem

Generated Codex skill docs for /ship and /document-release included a hardcoded Claude Co-Authored-By trailer in their sample commit messages. That makes Codex-authored commits inherit the wrong AI footer.

Fix

  • add a host-aware COMMIT_COAUTHOR_TRAILER_BLOCK placeholder to the skill-doc generator
  • update ship/SKILL.md.tmpl and document-release/SKILL.md.tmpl to use that placeholder instead of hardcoding a trailer
  • preserve the existing Claude output and omit the footer entirely for Codex output
  • add tests covering the templates and the generated Claude/Codex variants

Fixes #282.

Verification

  • bun run gen:skill-docs
  • bun run gen:skill-docs --host codex
  • bun test test/gen-skill-docs.test.ts
  • bun test

Resolve commit footer generation in gen-skill-docs so generated Codex skills
no longer inject a Claude co-author trailer into ship and document-release
commit examples. Add regression coverage for the templates and both host outputs.
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.

/ship skill under Codex uses Claude as co-author in commit message

1 participant