brainfish-ai/reasondb/update-doc
Claude Code and agent skill by brainfish-ai/reasondb
- community
Checking that the SKILL.md file is still in the repository.
Update existing documentation by searching codebase for current implementation.
Install
npx vskill@latest install brainfish-ai/reasondb/update-docSKILL.md
Instructions
When user wants to update documentation:
Step 0: Read Context
Read `.devdoc/context.json` if it exists:
- Use
product.namefor product references - Apply
terminology.glossaryfor correct terms - Avoid
terminology.avoidTerms - Match
documentation.voicefor writing style
Step 1: Understand What to Update
Ask the user:
"What would you like to update?
- A specific page - Tell me which page to update
- Sync with codebase - I'll find outdated docs by comparing to code
- Navigation structure - Update docs.json organization
- Multiple pages - Describe the changes needed
- Fix issues - Point me to errors or problems"
Step 2: Analyze Current State
Based on their choice:
For Specific Page:
- "Which page? (e.g.,
guides/authentication.mdx)" - Read the current page content
- "What changes do you want?
- Update code examples
- Add new sections
- Fix errors/outdated info
- Rewrite for clarity
- Other (describe)"
For Codebase Sync (Search Real Files):
Step 2a: Search for source files related to documented topics:
Step 2b: Read both doc files AND source files:
- Read the doc file to see what's documented
- Search and read the corresponding source file
- Compare documented vs actual implementation
Step 2c: Generate comparison:
Compare documentation against actual source:
- Function signatures changed?
- New exports not documented?
- Removed features still documented?
- Version numbers outdated?
For Navigation:
- Read current
docs.json - "What navigation changes?
- Add new pages
- Reorganize groups
- Rename tabs
- Remove pages
- Other"
For Multiple Pages:
- "Which pages need updating?"
- "What's the common change across them?"
For Issues:
- "What's the problem you're seeing?"
- Analyze and propose fixes
Step 3: Detect Feature Flags & Duplicates
Search for feature flags in source:
Search for duplicate/similar features:
Include in sync report:
Step 4: Generate Sync Report (From File Search)
Compare docs against actual source files:
Ask: "How would you like to proceed?
- Fix all - Update everything (choose defaults for flags/duplicates)
- Interactive - Review each change with me
- Specific items - Tell me which to fix
- Re-search - Search for different file patterns"
Step 5: Review Each Change with User (MANDATORY)
For EACH file being updated, show before/after:
Step 6: Apply Updates (After Approval)
Only after user approves each change:
- Preserve prose - Keep explanations, update technical details
- Update code examples - Match current signatures
- Fix terminology - Apply context.json rules
- Add deprecation notices for removed features:
``mdx <Warning> **Deprecated in v2.0**: This feature was removed. See [migration guide](/guides/v2-migration). </Warning> ``
- Add feature flag notices where applicable:
``mdx <Note> **Feature Flag**: This feature requires newAuthFlow to be enabled. </Note> ``
- Create stubs for new features:
``mdx {/* TODO: Document this new feature */} ## New Feature Coming soon... ``
Step 6: Update Navigation (if needed)
If pages were added/removed/moved:
- Read current
docs.json - Propose navigation changes
- Apply after user confirms
Step 7: Summary
"Updated:
docs/api/users.mdx- Updated function signaturesdocs/quickstart.mdx- Updated to v2.0.0docs.json- Added webhooks page
Changes ready for review. Run npm run dev to preview.
Want me to commit these changes? Use /commit when ready."
Update Patterns
Changed Function Signature
interface CreateUserInput { name: string; email: string; role?: 'admin' | 'user'; }
Removed Feature
New Feature Stub
// Example placeholder
Key Principles
| Principle | Description | |
|---|---|---|
| Search before update | ALWAYS read source files before changing docs | |
| No hallucination | Only update based on actual file contents | |
| Review before write | ALWAYS show before/after for user approval | |
| Flag feature flags | Detect and highlight conditional features | |
| Flag duplicates | Identify similar/related features | |
| Verify changes | Read source to confirm what changed |
Quality Guidelines
- SEARCH FIRST - Read source files before making any update
- REVIEW WITH USER - Show before/after for each change
- DETECT FEATURE FLAGS - Search for conditional features
- DETECT DUPLICATES - Find similar functions/features
- Always show changes before applying
- Preserve existing prose and explanations
- Update only technical details (code, versions, signatures)
- Flag when source file not found - offer auto-correct options
- Add TODO markers for human review
- Apply terminology from context.json
- Create stubs rather than skip new features
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdocs/.claude/skills/update-doc/SKILL.md
Popularity
- Repository stars
- 61
- Repository forks
- 3
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 24 Mar 2026, 7 months ago.
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/brainfish-ai/reasondb/update-doc)