nyldn/claude-octopus/skill-doc-sync
Claude Code and agent skill by nyldn/claude-octopus
- community
Checking that the SKILL.md file is still in the repository.
Post-ship doc sync across project markdown. Use when: sync docs, update docs, document changes, release notes.
Install
npx vskill@latest install nyldn/claude-octopus/skill-doc-syncSKILL.md
The same SKILL.md was published earlier as nyldn/claude-octopus/skill-doc-sync.
Post-Ship Documentation Synchronization
Automated documentation synchronization for the Deliver phase. After code is committed and a PR is created, this skill reads all .md files in the project, cross-references the diff, auto-updates factual content, checks cross-doc consistency, and updates the PR body.
Caps
- Max 30 doc files scanned — skip files beyond the cap, warn the user
- Never clobber CHANGELOG — append only, never delete existing entries
- Ask user before changing narrative/philosophy sections — risky changes require confirmation
Step 1: Discover Docs
Find all .md files in the project root (max depth 2), skipping node_modules/ and .git/.
Read each discovered doc file so you have their current content in context.
Step 2: Cross-Reference Diff
Run git diff --stat HEAD~1 (or diff against the base branch if on a feature branch) to identify which files changed and what content may now be stale in each doc.
For each doc file, check whether any paths, function names, counts, or version numbers mentioned in the doc were affected by the diff.
Step 3: Auto-Update Factual Corrections
Fix paths, counts, table entries, and version numbers automatically. These are mechanical changes that do not alter meaning.
Before editing any doc in Steps 3–8, inspect its staged and unstaged changes. Skip files with existing edits and tell the user which files were skipped. Keep a list of the exact paths you change for the commit in Step 9.
Auto-update targets:
- File paths that were renamed or moved in the diff
- Numeric counts (e.g., "42 tests" when the number changed)
- Version strings (e.g.,
v9.5.0whenpackage.jsonbumped) - Table entries referencing renamed or removed items
- Import/require paths that changed
WHY: Stale factual references erode trust in documentation. A user who sees a wrong path or count will doubt everything else in the doc.
Step 4: Risky Change Detection
Flag narrative, philosophy, or security-related doc sections for user confirmation. Do NOT auto-edit these.
Risky categories (require user approval):
- Sections with headings containing: "Philosophy", "Principles", "Vision", "Mission", "Security", "Threat Model", "Architecture Decision"
- Paragraphs that express opinion, strategy, or rationale (not just facts)
- Content under
## Whyor## Rationaleheadings - Any changes to
SECURITY.mdorCONTRIBUTING.mdbeyond version bumps
WHY: Narrative and philosophy sections reflect human judgment. Silently rewriting them risks misrepresenting the project's intent.
When risky changes are detected, present them to the user:
Step 5: CHANGELOG Voice Polish
Apply the "sell test" to every CHANGELOG entry: "Would a user reading this bullet think 'oh nice, I want to try that'?"
Rules:
- Lead with the user benefit, not the implementation detail
- Use active voice ("Add X" not "X was added")
- Keep bullets under 120 characters
- Never delete existing CHANGELOG entries (append only)
- Group by: Added, Changed, Fixed, Removed (Keep a Changelog format)
Example transformations:
WHY: The CHANGELOG is marketing copy for developers. Every bullet should make someone want to upgrade.
Step 6: Cross-Doc Consistency
Check that key values are aligned across all documentation files.
Consistency checks:
- Version numbers match across
README.md,CLAUDE.md,package.json,CHANGELOG.md, and any other files referencing the current version - Feature lists in README match what is actually implemented (cross-reference with command/skill directories)
- Badge URLs and shield.io references are up to date
- Links between docs are not broken (relative path references)
- Command counts and skill counts match actual directory listings
Step 7: Discoverability Check
Ensure every documentation file is reachable from README.md or CLAUDE.md. Orphaned docs are invisible docs.
Check:
- Every
.mdfile in the project should be linked from eitherREADME.mdorCLAUDE.md(directly or transitively through another linked doc) - Flag orphaned docs that have no inbound links
- Suggest where to add links for orphaned docs
WHY: Documentation that cannot be found does not exist from the user's perspective. Every doc must be one or two clicks from the entry points.
Step 8: TODOS.md Update
Update the project's task tracking based on the diff.
Actions:
- Mark completed items: scan TODO/FIXME/HACK comments that were removed in the diff and mark corresponding items as done
- Flag new deferred work: scan TODO/FIXME/HACK comments that were added in the diff and create new tracking entries
- Update completion percentages if the project uses progress tracking
Step 9: Commit Doc Changes
Commit the files recorded during this run. Add each repository-relative file path as a separately quoted argument after set --. Leave the list empty if this run made no edits.
If staging or committing fails, report the failure and preserve the edits for recovery. Continue to the PR summary only after a successful commit.
If the current branch has an open PR, write a concise Markdown summary of this run to a private scratch file and set DOC_SYNC_SUMMARY_FILE to its path. Include the documentation changed and the checks run. Run this block from the same branch, with the installed Octopus root available in OCTO_ROOT or the host's plugin root variable. Skip this step for branches without an open PR. The recipe detects changes between its two PR reads. A concurrent edit after the final read can still be overwritten by GitHub's full-body update.
Integration
This skill is designed to work as a sub-step of flow-deliver. After validation and review are complete, invoke doc-sync to ensure documentation stays current with the shipped code.
Invocation from flow-deliver:
Standalone invocation:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/skill-doc-sync/SKILL.md
Popularity
- Repository stars
- 4,099
- Repository forks
- 385
- 7-day trend score
- 42
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nyldn/claude-octopus/skill-doc-sync)