Prompt file imported from jlaws/dotfiles (
.codex/prompts/j-doc-sync.md). Fill in{{arguments}}before use. Copyright stays with the author.
Invoke the post-ship-doc-sync skill before doing anything else. Sync documentation with recent code changes.
Resolve the scope in this order:
- If arguments are provided, use them: {{arguments}}
- Else, check for a current PR:
gh pr view --json number,url,baseRefName,headRefName. If one exists, review it (gh pr diff) and treat its full change set as the scope (origin/<baseRefName>...HEAD) — updatedocs/and every README.md to reflect all changes made in the PR. - Else, default to
$(git describe --tags --abbrev=0)..HEAD.
For substantial rewrites, you may delegate to the documentation-writer agent (loads .agents/references/documentation/). Verify its output before committing.