Skip to content
Back to skills

Doc Update

ASecurity

Updates documentation after code changes to keep docs in sync with code reality. Use AFTER implementation is complete. Covers feature docs, workflow docs, and index files.

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 8, 2026
documentationsqltestingdocumentation

Works with

  • cli

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill doc-update --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Doc Update?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Doc Update
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-doc-update/badge)](https://www.skillsdirectory.com/skills/majiayu000-doc-update)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: doc-update
description: Updates documentation after code changes to keep docs in sync with code reality. Use AFTER implementation is complete. Covers feature docs, workflow docs, and index files.
allowed-tools: Read, Write, Glob, Grep
---

# Doc Update

Keep documentation evergreen by updating immediately after code changes.

## When to Use

- After completing any code change
- After fixing a bug or adding a feature
- Before running `/handoff`
- When `/drift-check` identifies stale docs

## Hierarchy

Updates flow from specific to general:
1. **Feature Docs** → `docs/features/{feature}.md`
2. **Workflow Docs** → `docs/workflows/{role}-workflows.md`
3. **Index Files** → FEATURE_INDEX.md, WORKFLOW_INDEX.md
4. **Architecture Docs** → `docs/engine/*.md` (if patterns changed)

## Quick Reference

| Files Changed | Update |
|---------------|--------|
| `app/actions/*.ts` | Feature doc → Server Actions |
| `app/(routes)/**` | Feature doc → User Surfaces |
| `components/**` | Feature doc + Component Index |
| `supabase/migrations/*` | Feature doc → Data Model + prod SQL |
| `lib/ai/**` | AI context docs + feature docs |

## Feature Doc Sections to Update

- **User Surfaces**: Routes, UI elements
- **Data Model**: Tables, columns, relationships
- **Server Actions**: Action name, purpose, tables, auth
- **Permissions**: RLS policies, admin client usage
- **Invariants**: Add newly discovered rules
- **Testing Checklist**: Update verification steps

## Output

```markdown
## Doc Update Complete

### Updated
| Doc | Sections |
|-----|----------|
| [feature].md | User Surfaces, Data Model |

### Production SQL
- Provided: [Yes/No]

### Verification
Run `/drift-check` to confirm no remaining drift.
```

## Related

- Section templates: See [reference/section-templates.md](reference/section-templates.md)
- Common patterns: See [reference/update-patterns.md](reference/update-patterns.md)
- Next step: `/drift-check`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.