agentsclimarketplace

Update docs

Skill cloverink/shipwright/skills/update-docs

Sync documentation with code changes. Auto-detects scope from git diff, updates tier 1-4 docs (core, architecture, journey, config), verifies stats. Phase D of /ship pipeline.From its SKILL.md

Install
npx -y skills add cloverink/shipwright --skill update-docs

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.2 KB, 990 tokens by cl100k_base, as published. Nobody here has run it

/update-docs

Keep documentation in sync with code. Detects what changed, updates the right tiers, leaves changes staged for review.

How it works

1. Detect changes  → git diff vs main (or vs HEAD if standalone)
2. Classify        → categorize files into doc tiers
3. Update          → edit relevant docs per tier
4. Verify stats    → run stats tools, refresh counts
5. Stage           → git add (no commit — let parent commit per-phase)

Bundling behavior

When called from /ship (Phase D):

  • Apply doc updates
  • Stage changes (git add)
  • Do NOT commit — let /ship commit as docs(<scope>): sync documentation
  • Return summary of what was updated

When called standalone:

  • Apply doc updates
  • Commit as docs: update documentation

Phase 1: Detect Changes

BRANCH=$(git branch --show-current)
BASE=$(git merge-base origin/main HEAD 2>/dev/null || echo HEAD~5)
git diff --name-only $BASE..HEAD
git diff --name-only HEAD  # also include unstaged
<!-- CONFIGURE: Adjust exclude patterns for your project (e.g., lockfiles, generated files) -->

Phase 2: Documentation Tiers

TierFilesTrigger
1 CoreREADME.md, CLAUDE.md, top-level package READMEsAny significant change
2 Architecturedocs/architecture.md, docs/database-schema.mdStructural changes
3 Journeydocs/journey/*.md (user flows)Business logic changes
4 Claude Config.claude/rules/*.md, .claude/skills/**/references/*.mdTool/workflow changes
<!-- CONFIGURE: Replace tier paths to match your project's doc layout. Remove tiers you don't use. -->

Phase 3: Stats Verification

If your project has a stats sync tool, run it first — it's the single source of truth for counts in README/CLAUDE.md.

# Example — replace with your project's tool
bun run tools/stats-sync.ts --update    # writes diffs into core docs
bun run tools/stats-sync.ts             # check-only mode for CI
<!-- CONFIGURE: Replace with your stats sync command, or remove if you don't track counts in docs -->

If no automated tool, verify common counts manually:

# Components, endpoints, tests — adjust globs to your structure
find src/components -name "*.tsx" | wc -l
grep -rcE "@(Get|Post|Patch|Delete|Put)\(" --include="*.ts" src/api/

Phase 4: Per-Change Update Checklist

Change typeUpdate
New featureREADME features list, relevant journey doc, CLAUDE.md if it affects how AI agents work
New API endpointAPI doc / journey doc with endpoint table, CLAUDE.md endpoint count
New componentComponent README, design system doc if it introduces a pattern
Database changedocs/database-schema.md, migration notes, related journey docs
Config changeDoc that explains the config option, rule files that reference it
RefactorUpdate file paths in any doc that linked to moved/renamed files
Dependency upgradeCHANGELOG, README if version is documented
<!-- CONFIGURE: Add change types specific to your project -->

Phase 5: Stage & Report

git add README.md CLAUDE.md docs/ .claude/

Report format:

Documentation Update — Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Scope: <auto-detected files>
Updated:   path/to/doc.md — what changed
Verified:  Components: X | Tests: X | Endpoints: X
Skipped:   path/to/doc.md — already up to date
Manual:    path/to/doc.md — needs human review (reason)

Guidelines

  • Concise — lead with the answer, not the context
  • Scannable — tables, bullet lists, headers
  • Cross-reference, don't duplicate — link to related docs
  • Match code reality — every code example, path, count must match the current code
  • Stage everything, commit nothing when called from /ship

Exit conditions

  • All affected tiers updated, OR
  • Reported as "no doc-worthy changes" if diff is purely internal (formatting, comments, test-only)
  • Manual-review items flagged with reason

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,537. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.