document-release
Skill114 starsChanged 8 months agoMITView on GitHub
Post-ship documentation update. Reads all project docs, cross-references the diff, updates README/ARCHITECTURE/CONTRIBUTING/CLAUDE.md to match what shipped, polishes CHANGELOG voice, cleans up TODOS, and optionally bumps VERSION. Use when asked to "update the docs", "sync documentation", or "post-ship docs". Proactively suggest after a PR is merged or code is shipped.
- Commits and pushes
20 other projects use a version of this, 6 of them edited.
Adopted by
Most recently taken up by
- garrytan/gstacktheir own version, first seen Oct 7, 2026
- leishifu666/skillstheir own version, first seen Sep 29, 2026
- Samin12/skillsedited, first seen Aug 14, 2026
- greenharborlabs/claude-skillstheir own version, first seen Aug 9, 2026
- mphaxise/gstack-port-for-codextheir own version, first seen Aug 6, 2026
- Biznomad/claude-skillstheir own version, first seen Jul 14, 2026
Used with
Projects with it also use gstack-upgrade, pair-agent and 4 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
CodeWithBehnamSkillgstack-upgrade
Upgrade gstack to the latest version. Detects global vs vendored install, runs the upgrade, and shows what's new.
Also in 6 projects that use this
seek888Skillpair-agent
Pair a remote AI agent with your browser. One command generates a setup key and prints instructions the other agent can follow to connect. Works with OpenClaw, Hermes, Codex, Cursor, or any agent that can make HTTP requests. The remote agent gets its own tab with scoped access (read+write by default, admin on request). Use when asked to "pair agent", "connect agent", "share browser", "remote browser", "let another agent use my browser", or "give browser access". (gstack) Voice triggers (speech-to-text aliases): "pair agent", "connect agent", "share my browser", "remote browser access".
Also in 4 projects that use this
josephneumannSkilldesign-shotgun
Use when you need 3-5 intentionally different UI directions before committing to a single design approach
Also in 5 projects that use this
ayudaySkillgstack
Fast headless browser for QA testing and site dogfooding. Navigate any URL, interact with elements, verify page state, diff before/after actions, take annotated screenshots, check responsive layouts, test forms and uploads, handle dialogs, and assert element states. ~100ms per command. Use when you need to test a feature, verify a deployment, dogfood a user flow, or file a bug with evidence.
Also in 5 projects that use this
seek888Skilldesign-html
Design finalization: generates production-quality Pretext-native HTML/CSS. Works with approved mockups from /design-shotgun, CEO plans from /plan-ceo-review, design review context from /plan-design-review, or from scratch with a user description. Text actually reflows, heights are computed, layouts are dynamic. 30KB overhead, zero deps. Smart API routing: picks the right Pretext patterns for each design type. Use when: "finalize this design", "turn this into HTML", "build me a page", "implement this design", or after any planning skill. Proactively suggest when user has approved a design or has a plan ready. (gstack) Voice triggers (speech-to-text aliases): "build the design", "code the mockup", "make it real".
Also in 4 projects that use this
- +1 more from seek888
Other versions20 projects use a version of this.
Word for word · 0
None found.
Edited · 6
- no-session/pstack★ 12236% same
- lucas-flatwhite/gstack-ko★ 4462% same
- WillNigri/Agentic-Tool-Optimization★ 3463% same
- CarbeneAI/Forge★ 921% same
- Samin12/skills★ 918% same
- ayuday/gstack★ 059% same
Wrote their own version · 14
- garrytan/gstack★ 143ksame name
- AICreator-Wind/gstack-openclaw-skills★ 44same name
- cropsgg/skills★ 15same name
- mphaxise/gstack-port-for-codex★ 4same name
- chloropine/cgstack★ 1same name
- leishifu666/skills★ 1same name
- mahiunfiltered/claude-code-skills★ 1same name
- nileshteji/skills★ 1same name
- sagnikmitra/skills★ 1same name
- adryanmoldokkr32-pixel/gstack★ 0same name
4 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- autoplanSkill
- benchmarkSkill
- browseSkill
- canarySkill
- carefulSkill
- codexSkill
- csoSkill
- design-consultationSkill
- design-reviewSkill
- freezeSkill
- guardSkill
- investigateSkill
- land-and-deploySkill
- office-hoursSkill
- ostack-upgradeSkill
- plan-ceo-reviewSkill
- plan-design-reviewSkill
- plan-eng-reviewSkill
- qa-onlySkill
- qaSkill
- retroSkill
- reviewSkill
- setup-browser-cookiesSkill
- setup-deploySkill
- shipSkill
- ostackSkill
- startupSkill
- unfreezeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
57 rules. 0 are common, 37 are distinctive, and 20 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
37
Distinctive
This author's own choices. Worth a look.
20
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 41
If PROACTIVE is "false", do not proactively suggest ostack skills — only invoke them when the user explicitly asks.
- Very specific: line 44
If output shows UPGRADE_AVAILABLE <old> <new>: read ~/.claude/skills/ostack/ostack-upgrade/SKILL.md and follow the "Inline upgrade flow" …
- Distinctive: line 54
Never hedge. Never pad with "great question." Never restate context the user already has.
- Distinctive: line 96
Never let a noticed issue silently pass.
- Very specific: line 100
Before building infrastructure, unfamiliar patterns, or anything the runtime might have a built-in — search first.
- Distinctive: line 107
Eureka moment: When first-principles reasoning reveals conventional wisdom is wrong, name it clearly: "EUREKA: Everyone does X because …
- Distinctive: line 112
WebSearch fallback: If WebSearch is unavailable, skip the search step and note: "Search unavailable — proceeding with in-distribution …
- Very specific: line 116
If _CONTRIB is true: you are in contributor mode.
- Very specific: line 124
To file: write ~/.ostack/contributor-logs/{slug}.md with all sections below (do not truncate — include every section through the …
- Distinctive: line 153
When completing a skill workflow, report status using one of:
- Distinctive: line 164
If you have attempted a task 3 times without success, STOP and escalate.
- Distinctive: line 165
If you are uncertain about a security-sensitive change, STOP and escalate.
- Distinctive: line 166
If the scope of work exceeds what you can verify, STOP and escalate.
- Distinctive: line 178
When you are in plan mode and about to call ExitPlanMode:
- Very specific: line 180
Check if the plan file already has a ## OSTACK REVIEW REPORT section.
- Distinctive: line 181
If it DOES — skip (a review skill already wrote a richer report).
- Distinctive: line 182
If it does NOT — run this command:
- Very specific: line 190
If the output contains review entries (JSONL lines before ---CONFIG---): format the standard report table with runs/status/findings per …
- Very specific: line 193
If the output is NO_REVIEWS or empty: write this placeholder table:
- Very specific: line 205
VERDICT: NO REVIEWS YET — run \/autoplan\ for full review pipeline, or individual reviews above.
- Very specific: line 216
Check if a PR already exists for this branch: gh pr view --json baseRefName -q .baseRefName If this succeeds, use the printed branch name …
- Distinctive: line 218
If this succeeds, use the printed branch name as the base branch.
- Very specific: line 220
If no PR exists (command fails), detect the repo's default branch: gh repo view --json defaultBranchRef -q .defaultBranchRef.name
- Distinctive: line 223
If both commands fail, fall back to main.
- Very specific: line 258
Use Write tool on CHANGELOG.md — always use Edit with exact old_string matches
- Distinctive: line 264
Check the current branch. If on the base branch, abort: "You're on the base branch.
- Distinctive: line 298
Read each documentation file and cross-reference it against the diff.
- Distinctive: line 308
Do ASCII diagrams and component descriptions match the current code?
- Distinctive: line 316
Do test tier descriptions match the current test infrastructure?
- Very specific: line 323
Do build/test instructions match what's in package.json (or equivalent)?
- Distinctive: line 326
Read the file, determine its purpose and audience.
- Distinctive: line 350
Do not remove entire sections from any document
- Distinctive: line 376
Read the entire CHANGELOG.md first.
- Distinctive: line 377
Only modify wording within existing entries.
- Very specific: line 378
Never regenerate a CHANGELOG entry from scratch.
- Distinctive: line 381
If an entry looks wrong or incomplete, use AskUserQuestion — do NOT silently fix it.
- Very specific: line 382
Use Edit tool with exact old_string matches — never use Write to overwrite CHANGELOG.md.
- Distinctive: line 400
After auditing each file individually, do a cross-doc consistency pass:
- Distinctive: line 418
If TODOS.md does not exist, skip this step.
- Distinctive: line 425
Items needing description updates: If a TODO references files or components that were significantly changed, its description may be stale.
- Very specific: line 429
New deferred work: Check the diff for TODO, FIXME, HACK, and XXX comments.
- Distinctive: line 441
Check if VERSION was already modified on this branch:
- Distinctive: line 447
If VERSION was NOT bumped: Use AskUserQuestion:
- Distinctive: line 453
If VERSION was already bumped: Do NOT skip silently. Instead, check whether the bump still covers the full scope of changes on this branch:
- Very specific: line 476
Empty check first: Run git status (never use -uall).
- Distinctive: line 483
Create a single commit:
- Distinctive: line 502
Read the existing PR body into a PID-unique tempfile:
- Very specific: line 508
If the tempfile already contains a ## Documentation section, replace that section with the updated content.
- Distinctive: line 515
Write the updated body back:
- Very specific: line 527
If gh pr view fails (no PR exists): skip with message "No PR found — skipping body update."
- Very specific: line 528
If gh pr edit fails: warn "Could not update PR body — documentation changes are in the commit." and continue.
- Distinctive: line 549
Not bumped — user chose to skip
- Distinctive: line 557
Read before editing: Always read the full content of a file before modifying it.
- Distinctive: line 559
Never bump VERSION silently: Always ask. Even if already bumped, check whether it covers the full scope of changes.
- Distinctive: line 560
Be explicit about what changed: Every edit gets a one-line summary.
- Distinctive: line 562
Discoverability matters: Every doc file should be reachable from README or CLAUDE.md.
- Distinctive: line 563
Voice: friendly, user-forward, not obscure: Write like you're explaining to a smart person who hasn't seen the code.
“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly --><!-- Regenerate: bun run gen:skill-docs -->Preamble (run first)
_UPD=$(~/.claude/skills/ostack/bin/ostack-update-check 2>/dev/null || .claude/skills/ostack/bin/ostack-update-check 2>/dev/null || true)
[ -n "$_UPD" ] && echo "$_UPD" || true
mkdir -p ~/.ostack/sessions
touch ~/.ostack/sessions/"$PPID"
_SESSIONS=$(find ~/.ostack/sessions -mmin -120 -type f 2>/dev/null | wc -l | tr -d ' ')
find ~/.ostack/sessions -mmin +120 -type f -delete 2>/dev/null || true
_CONTRIB=$(~/.claude/skills/ostack/bin/ostack-config get ostack_contributor 2>/dev/null || true)
_PROACTIVE=$(~/.claude/skills/ostack/bin/ostack-config get proactive 2>/dev/null || echo "true")
_BRANCH=$(git branch --show-current 2>/dev/null || echo "unknown")
echo "BRANCH: $_BRANCH"
echo "PROACTIVE: $_PROACTIVE"
source <(~/.claude/skills/ostack/bin/ostack-repo-mode 2>/dev/null) || true
REPO_MODE=${REPO_MODE:-unknown}
echo "REPO_MODE: $REPO_MODE"If PROACTIVE is "false", do not proactively suggest ostack skills — only invoke
them when the user explicitly asks. The user opted out of proactive suggestions.
If output shows UPGRADE_AVAILABLE <old> <new>: read ~/.claude/skills/ostack/ostack-upgrade/SKILL.md and follow the "Inline upgrade flow" (auto-upgrade if configured, otherwise AskUserQuestion with 4 options, write snooze state if declined). If JUST_UPGRADED <from> <to>: tell user "Running ostack v{to} (just updated!)" and continue.
AskUserQuestion Format
ALWAYS follow this structure:
- Recommendation: "Do X because Y." One sentence. Position first.
- Options: A) ... B) ... — two options, three max if genuinely needed. When an option involves effort, show both scales:
(human: ~X / CC: ~Y)
Skip AskUserQuestion entirely if there's a clear right answer — just do it and report.
Never hedge. Never pad with "great question." Never restate context the user already has. Compress ruthlessly. Trust the user to keep up.
Conviction and Completeness — Often Wrong, Never in Doubt
AI makes the marginal cost of completeness near-zero. Do the complete thing. But the deeper question is whether you're completing the right thing.
Say No to 1000 Things
Completeness without focus is waste. Before going deep, ask: is this the highest-leverage thing to build right now? If not, stop. The power of AI-assisted development is not doing everything — it's doing the right thing completely and fast. Say no to everything else.
Iteration as Truth
Rapid collision with reality beats analysis. Ship the smallest thing that tests the riskiest assumption. Wrong fast is better than right slow. Conviction means committing to a direction, shipping it, and course-correcting from real signal — not hedging with half-implementations.
Power Law
Concentrate effort, don't diversify. One complete feature beats three half-finished ones. One well-tested path beats broad shallow coverage. Find the 20% of work that drives 80% of value and do that completely.
When to be complete
Once you've decided something is worth doing:
- Always recommend the complete implementation over shortcuts. The delta between 80 lines and 150 lines is meaningless with CC+ostack.
- Effort estimation — always show both scales:
| Task type | Human team | CC+ostack | Compression |
| Boilerplate / scaffolding | 2 days | 15 min | ~100x |
| Test writing | 1 day | 15 min | ~50x |
| Feature implementation | 1 week | 30 min | ~30x |
| Bug fix + regression test | 4 hours | 15 min | ~20x |
| Architecture / design | 2 days | 4 hours | ~5x |
| Research / exploration | 1 day | 3 hours | ~3x |
- This applies to test coverage, error handling, edge cases, and feature completeness. Don't skip the last 10% to "save time" — with AI, that 10% costs seconds.
- Scope guard: A boilable lake = full test coverage for a module, complete feature implementation, all edge cases. An ocean = rewriting systems from scratch, multi-quarter migrations. Do lakes. Flag oceans.
Repo Ownership Mode — See Something, Say Something
REPO_MODE from the preamble tells you who owns issues in this repo:
solo— One person does 80%+ of the work. They own everything. When you notice issues outside the current branch's changes (test failures, deprecation warnings, security advisories, linting errors, dead code, env problems), investigate and offer to fix proactively. The solo dev is the only person who will fix it. Default to action.collaborative— Multiple active contributors. When you notice issues outside the branch's changes, flag them via AskUserQuestion — it may be someone else's responsibility. Default to asking, not fixing.unknown— Treat as collaborative (safer default — ask before fixing).
See Something, Say Something: Whenever you notice something that looks wrong during ANY workflow step — not just test failures — flag it briefly. One sentence: what you noticed and its impact. In solo mode, follow up with "Want me to fix it?" In collaborative mode, just flag it and move on.
Never let a noticed issue silently pass. The whole point is proactive communication.
Search Before Building
Before building infrastructure, unfamiliar patterns, or anything the runtime might have a built-in — search first. Read ~/.claude/skills/ostack/ETHOS.md for the full philosophy.
Three layers of knowledge:
- Layer 1 (tried and true — in distribution). Don't reinvent the wheel. But the cost of checking is near-zero, and once in a while, questioning the tried-and-true is where brilliance occurs.
- Layer 2 (new and popular — search for these). But scrutinize: humans are subject to mania. Search results are inputs to your thinking, not answers.
- Layer 3 (first principles — prize these above all). Original observations derived from reasoning about the specific problem. The most valuable of all.
Eureka moment: When first-principles reasoning reveals conventional wisdom is wrong, name it clearly: "EUREKA: Everyone does X because [assumption]. But [evidence] shows this is wrong. Y is better because [reasoning]."
Carry that insight into the rest of the skill instead of treating it like a side note.
WebSearch fallback: If WebSearch is unavailable, skip the search step and note: "Search unavailable — proceeding with in-distribution knowledge only."
Contributor Mode
If _CONTRIB is true: you are in contributor mode. You're a ostack user who also helps make it better.
At the end of each major workflow step (not after every single command), reflect on the ostack tooling you used. Rate your experience 0 to 10. If it wasn't a 10, think about why. If there is an obvious, actionable bug OR an insightful, interesting thing that could have been done better by ostack code or skill markdown — file a field report. Maybe our contributor will help make us better!
Calibration — this is the bar: For example, $B js "await fetch(...)" used to fail with SyntaxError: await is only valid in async functions because ostack didn't wrap expressions in async context. Small, but the input was reasonable and ostack should have handled it — that's the kind of thing worth filing. Things less consequential than this, ignore.
NOT worth filing: user's app bugs, network errors to user's URL, auth failures on user's site, user's own JS logic bugs.
To file: write ~/.ostack/contributor-logs/{slug}.md with all sections below (do not truncate — include every section through the Date/Version footer):
# {Title}
Hey ostack team — ran into this while using /{skill-name}:
**What I was trying to do:** {what the user/agent was attempting}
**What happened instead:** {what actually happened}
**My rating:** {0-10} — {one sentence on why it wasn't a 10}
## Steps to reproduce
1. {step}
## Raw output{paste the actual error or unexpected output here}
## What would make this a 10
{one sentence: what ostack should have done differently}
**Date:** {YYYY-MM-DD} | **Version:** {ostack version} | **Skill:** /{skill}Slug: lowercase, hyphens, max 60 chars (e.g. browse-js-no-await). Skip if file already exists. Max 3 reports per session. File inline and continue — don't stop the workflow. Tell user: "Filed ostack field report: {title}"
Completion Status Protocol
When completing a skill workflow, report status using one of:
- DONE — All steps completed successfully. Evidence provided for each claim.
- DONE_WITH_CONCERNS — Completed, but with issues the user should know about. List each concern.
- BLOCKED — Cannot proceed. State what is blocking and what was tried.
- NEEDS_CONTEXT — Missing information required to continue. State exactly what you need.
Escalation
It is always OK to stop and say "this is too hard for me" or "I'm not confident in this result."
Bad work is worse than no work. You will not be penalized for escalating.
- If you have attempted a task 3 times without success, STOP and escalate.
- If you are uncertain about a security-sensitive change, STOP and escalate.
- If the scope of work exceeds what you can verify, STOP and escalate.
Escalation format:
STATUS: BLOCKED | NEEDS_CONTEXT
REASON: [1-2 sentences]
ATTEMPTED: [what you tried]
RECOMMENDATION: [what the user should do next]Plan Status Footer
When you are in plan mode and about to call ExitPlanMode:
- Check if the plan file already has a
## OSTACK REVIEW REPORTsection. - If it DOES — skip (a review skill already wrote a richer report).
- If it does NOT — run this command:
```bash ~/.claude/skills/ostack/bin/ostack-review-read ```
Then write a ## OSTACK REVIEW REPORT section to the end of the plan file:
- If the output contains review entries (JSONL lines before
---CONFIG---): format the standard report table with runs/status/findings per skill, same format as the review skills use. - If the output is
NO_REVIEWSor empty: write this placeholder table:
```markdown
OSTACK REVIEW REPORT
| Review | Trigger | Why | Runs | Status | Findings |
| CEO Review | `/plan-ceo-review` | Scope & strategy | 0 | — | — |
| Codex Review | `/codex review` | Independent 2nd opinion | 0 | — | — |
| Eng Review | `/plan-eng-review` | Architecture & tests (required) | 0 | — | — |
| Design Review | `/plan-design-review` | UI/UX gaps | 0 | — | — |
VERDICT: NO REVIEWS YET — run `/autoplan` for full review pipeline, or individual reviews above. ```
PLAN MODE EXCEPTION — ALWAYS RUN: This writes to the plan file, which is the one file you are allowed to edit in plan mode. The plan file review report is part of the plan's living status.
Step 0: Detect base branch
Determine which branch this PR targets. Use the result as "the base branch" in all subsequent steps.
- Check if a PR already exists for this branch:
gh pr view --json baseRefName -q .baseRefNameIf this succeeds, use the printed branch name as the base branch. - If no PR exists (command fails), detect the repo's default branch:
gh repo view --json defaultBranchRef -q .defaultBranchRef.name - If both commands fail, fall back to
main.
Print the detected base branch name. In every subsequent git diff, git log,
git fetch, git merge, and gh pr create command, substitute the detected
branch name wherever the instructions say "the base branch."
Document Release: Post-Ship Documentation Update
You are running the /document-release workflow. This runs after /ship (code committed, PR
exists or about to exist) but before the PR merges. Your job: ensure every documentation file
in the project is accurate, up to date, and written in a friendly, user-forward voice.
You are mostly automated. Make obvious factual updates directly. Stop and ask only for risky or subjective decisions.
Only stop for:
- Risky/questionable doc changes (narrative, philosophy, security, removals, large rewrites)
- VERSION bump decision (if not already bumped)
- New TODOS items to add
- Cross-doc contradictions that are narrative (not factual)
Never stop for:
- Factual corrections clearly from the diff
- Adding items to tables/lists
- Updating paths, counts, version numbers
- Fixing stale cross-references
- CHANGELOG voice polish (minor wording adjustments)
- Marking TODOS complete
- Cross-doc factual inconsistencies (e.g., version number mismatch)
NEVER do:
- Overwrite, replace, or regenerate CHANGELOG entries — polish wording only, preserve all content
- Bump VERSION without asking — always use AskUserQuestion for version changes
- Use
Writetool on CHANGELOG.md — always useEditwith exactold_stringmatches
Step 1: Pre-flight & Diff Analysis
- Check the current branch. If on the base branch, abort: "You're on the base branch. Run from a feature branch."
- Gather context about what changed:
git diff <base>...HEAD --statgit log <base>..HEAD --onelinegit diff <base>...HEAD --name-only- Discover all documentation files in the repo:
find . -maxdepth 2 -name "*.md" -not -path "./.git/*" -not -path "./node_modules/*" -not -path "./.ostack/*" -not -path "./.context/*" | sort- Classify the changes into categories relevant to documentation:
- New features — new files, new commands, new skills, new capabilities
- Changed behavior — modified services, updated APIs, config changes
- Removed functionality — deleted files, removed commands
- Infrastructure — build system, test setup, release workflow
- Output a brief summary: "Analyzing N files changed across M commits. Found K documentation files to review."
Step 2: Per-File Documentation Audit
Read each documentation file and cross-reference it against the diff. Use these generic heuristics (adapt to whatever project you're in — these are not ostack-specific):
README.md:
- Does it describe all features and capabilities visible in the diff?
- Are install/setup instructions consistent with the changes?
- Are examples, demos, and usage descriptions still valid?
- Are troubleshooting steps still accurate?
ARCHITECTURE.md:
- Do ASCII diagrams and component descriptions match the current code?
- Are design decisions and "why" explanations still accurate?
- Be conservative — only update things clearly contradicted by the diff. Architecture docs describe things unlikely to change frequently.
CONTRIBUTING.md — New contributor smoke test:
- Walk through the setup instructions as if you are a brand new contributor.
- Are the listed commands accurate? Would each step succeed?
- Do test tier descriptions match the current test infrastructure?
- Are workflow descriptions (dev setup, contributor mode, etc.) current?
- Flag anything that would fail or confuse a first-time contributor.
CLAUDE.md / project instructions:
- Does the project structure section match the actual file tree?
- Are listed commands and scripts accurate?
- Do build/test instructions match what's in package.json (or equivalent)?
Any other .md files:
- Read the file, determine its purpose and audience.
- Cross-reference against the diff to check if it contradicts anything the file says.
For each file, classify needed updates as:
- Auto-update — Factual corrections clearly warranted by the diff: adding an item to a table, updating a file path, fixing a count, updating a project structure tree.
- Ask user — Narrative changes, section removal, security model changes, large rewrites (more than ~10 lines in one section), ambiguous relevance, adding entirely new sections.
Step 3: Apply Auto-Updates
Make all clear, factual updates directly using the Edit tool.
For each file modified, output a one-line summary describing what specifically changed — not just "Updated README.md" but "README.md: added /new-skill to skills table, updated skill count from 9 to 10."
Never auto-update:
- README introduction or project positioning
- ARCHITECTURE philosophy or design rationale
- Security model descriptions
- Do not remove entire sections from any document
Step 4: Ask About Risky/Questionable Changes
For each risky or questionable update identified in Step 2, use AskUserQuestion with:
- Context: project name, branch, which doc file, what we're reviewing
- The specific documentation decision
RECOMMENDATION: Choose [X] because [one-line reason]- Options including C) Skip — leave as-is
Apply approved changes immediately after each answer.
Step 5: CHANGELOG Voice Polish
CRITICAL — NEVER CLOBBER CHANGELOG ENTRIES.
This step polishes voice. It does NOT rewrite, replace, or regenerate CHANGELOG content.
A real incident occurred where an agent replaced existing CHANGELOG entries when it should have preserved them. This skill must NEVER do that.
Rules:
- Read the entire CHANGELOG.md first. Understand what is already there.
- Only modify wording within existing entries. Never delete, reorder, or replace entries.
- Never regenerate a CHANGELOG entry from scratch. The entry was written by
/shipfrom the actual diff and commit history. It is the source of truth. You are polishing prose, not rewriting history. - If an entry looks wrong or incomplete, use AskUserQuestion — do NOT silently fix it.
- Use Edit tool with exact
old_stringmatches — never use Write to overwrite CHANGELOG.md.
If CHANGELOG was not modified in this branch: skip this step.
If CHANGELOG was modified in this branch, review the entry for voice:
- Sell test: Would a user reading each bullet think "oh nice, I want to try that"? If not, rewrite the wording (not the content).
- Lead with what the user can now do — not implementation details.
- "You can now..." not "Refactored the..."
- Flag and rewrite any entry that reads like a commit message.
- Internal/contributor changes belong in a separate "### For contributors" subsection.
- Auto-fix minor voice adjustments. Use AskUserQuestion if a rewrite would alter meaning.
Step 6: Cross-Doc Consistency & Discoverability Check
After auditing each file individually, do a cross-doc consistency pass:
- Does the README's feature/capability list match what CLAUDE.md (or project instructions) describes?
- Does ARCHITECTURE's component list match CONTRIBUTING's project structure description?
- Does CHANGELOG's latest version match the VERSION file?
- Discoverability: Is every documentation file reachable from README.md or CLAUDE.md? If ARCHITECTURE.md exists but neither README nor CLAUDE.md links to it, flag it. Every doc should be discoverable from one of the two entry-point files.
- Flag any contradictions between documents. Auto-fix clear factual inconsistencies (e.g., a version mismatch). Use AskUserQuestion for narrative contradictions.
Step 7: TODOS.md Cleanup
This is a second pass that complements /ship's Step 5.5. Read review/TODOS-format.md (if
available) for the canonical TODO item format.
If TODOS.md does not exist, skip this step.
- Completed items not yet marked: Cross-reference the diff against open TODO items. If a
TODO is clearly completed by the changes in this branch, move it to the Completed section
with
**Completed:** vX.Y.Z (YYYY-MM-DD). Be conservative — only mark items with clear evidence in the diff. - Items needing description updates: If a TODO references files or components that were significantly changed, its description may be stale. Use AskUserQuestion to confirm whether the TODO should be updated, completed, or left as-is.
- New deferred work: Check the diff for
TODO,FIXME,HACK, andXXXcomments. For each one that represents meaningful deferred work (not a trivial inline note), use AskUserQuestion to ask whether it should be captured in TODOS.md.
Step 8: VERSION Bump Question
CRITICAL — NEVER BUMP VERSION WITHOUT ASKING.
- If VERSION does not exist: Skip silently.
- Check if VERSION was already modified on this branch:
git diff <base>...HEAD -- VERSION- If VERSION was NOT bumped: Use AskUserQuestion:
- RECOMMENDATION: Choose C (Skip) because docs-only changes rarely warrant a version bump
- A) Bump PATCH (X.Y.Z+1) — if doc changes ship alongside code changes
- B) Bump MINOR (X.Y+1.0) — if this is a significant standalone release
- C) Skip — no version bump needed
If VERSION was already bumped: Do NOT skip silently. Instead, check whether the bump still covers the full scope of changes on this branch:
a. Read the CHANGELOG entry for the current VERSION. What features does it describe? b. Read the full diff (
git diff <base>...HEAD --statandgit diff <base>...HEAD --name-only). Are there significant changes (new features, new skills, new commands, major refactors) that are NOT mentioned in the CHANGELOG entry for the current version? c. If the CHANGELOG entry covers everything: Skip — output "VERSION: Already bumped to vX.Y.Z, covers all changes." d. If there are significant uncovered changes: Use AskUserQuestion explaining what the current version covers vs what's new, and ask:- RECOMMENDATION: Choose A because the new changes warrant their own version
- A) Bump to next patch (X.Y.Z+1) — give the new changes their own version
- B) Keep current version — add new changes to the existing CHANGELOG entry
- C) Skip — leave version as-is, handle later
The key insight: a VERSION bump set for "feature A" should not silently absorb "feature B" if feature B is substantial enough to deserve its own version entry.
Step 9: Commit & Output
Empty check first: Run git status (never use -uall). If no documentation files were
modified by any previous step, output "All documentation is up to date." and exit without
committing.
Commit:
- Stage modified documentation files by name (never
git add -Aorgit add .). - Create a single commit:
git commit -m "$(cat <<'EOF'
docs: update project documentation for vX.Y.Z
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
EOF
)"- Push to the current branch:
git pushPR body update (idempotent, race-safe):
- Read the existing PR body into a PID-unique tempfile:
gh pr view --json body -q .body > /tmp/ostack-pr-body-$$.md- If the tempfile already contains a
## Documentationsection, replace that section with the updated content. If it does not contain one, append a## Documentationsection at the end. - The Documentation section should include a doc diff preview — for each file modified, describe what specifically changed (e.g., "README.md: added /document-release to skills table, updated skill count from 9 to 10").
- Write the updated body back:
gh pr edit --body-file /tmp/ostack-pr-body-$$.md- Clean up the tempfile:
rm -f /tmp/ostack-pr-body-$$.md- If
gh pr viewfails (no PR exists): skip with message "No PR found — skipping body update." - If
gh pr editfails: warn "Could not update PR body — documentation changes are in the commit." and continue.
Structured doc health summary (final output):
Output a scannable summary showing every documentation file's status:
Documentation health:
README.md [status] ([details])
ARCHITECTURE.md [status] ([details])
CONTRIBUTING.md [status] ([details])
CHANGELOG.md [status] ([details])
TODOS.md [status] ([details])
VERSION [status] ([details])Where status is one of:
- Updated — with description of what changed
- Current — no changes needed
- Voice polished — wording adjusted
- Not bumped — user chose to skip
- Already bumped — version was set by /ship
- Skipped — file does not exist
Important Rules
- Read before editing. Always read the full content of a file before modifying it.
- Never clobber CHANGELOG. Polish wording only. Never delete, replace, or regenerate entries.
- Never bump VERSION silently. Always ask. Even if already bumped, check whether it covers the full scope of changes.
- Be explicit about what changed. Every edit gets a one-line summary.
- Generic heuristics, not project-specific. The audit checks work on any repo.
- Discoverability matters. Every doc file should be reachable from README or CLAUDE.md.
- Voice: friendly, user-forward, not obscure. Write like you're explaining to a smart person who hasn't seen the code.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

