luum-home/luum-cognitive-os/doc-sync
- community
Checking that the SKILL.md file is still in the repository.
Synchronize documentation that became stale after code changes
Install
npx vskill@latest install luum-home/luum-cognitive-os/doc-syncSKILL.md
Doc Sync — Stale Documentation Updater
Purpose
When source code changes (controllers, entities, configs, routes, use cases), the doc-sync-detector.sh hook marks related documentation as potentially stale. This skill reads those markers and updates the affected docs.
Invocation
Procedure
1. Read stale entries
Read .cognitive-os/metrics/stale-docs.jsonl. Each line is:
If the file is empty or doesn't exist, report "No stale docs detected" and exit.
2. Group by documentation file
Group all entries by stale_docs target. This avoids updating the same doc multiple times. For each unique doc file, collect all the source files that triggered staleness.
3. Update each stale document
For each stale doc:
- Read the documentation file to understand its current content and structure
- Read each changed source file that triggered the staleness
- Determine what changed: compare the source code state with what the doc describes
- Update the doc to reflect the current code reality:
- For migration audits: update endpoint lists, entity schemas, completion status
- For feature parity reports: update implementation status
- For setup docs: update configuration references
- For hook/rule docs: update descriptions, counts, behavior
- For docker docs: update service definitions, ports, volumes
- Preserve doc structure: maintain existing headings, formatting, and sections. Only update the content within relevant sections.
4. Clear processed entries
After successfully updating all docs, truncate .cognitive-os/metrics/stale-docs.jsonl to remove processed entries. If some updates failed, only remove the successfully processed entries.
5. Report
Output a summary:
Edge Cases
- If a listed doc file no longer exists, skip it and log a warning
- If a source file no longer exists (was deleted), note the deletion in the doc update
- If the doc has no section relevant to the change, add a note at the end
- Never delete content from docs — only update or append
Integration
- Triggered by:
doc-sync-detector.shPostToolUse hook (automatic detection) - Rule:
doc-sync.mdwarns at session end if stale docs exist - Metrics: Entries in
.cognitive-os/metrics/stale-docs.jsonl
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 repositoryCheckingpackages/document-sync/skills/doc-sync/SKILL.md
Popularity
- 7-day trend score
- 0
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/luum-home/luum-cognitive-os/doc-sync)