update-claude-documentation/SKILL.md
Update project documentation files (README.md, PROJECT_BRIEF.md, TECH_STACK.md, ARCHITECTURE.md, docs/API.md, docs/DATABASE.md, CLAUDE.md, docs/plans/NEXT_FEATURES.md) when significant changes occur. MANDATORY at end of each work session to...
npx skillsauth add peterbamuhigire/skills-web-dev update-claude-documentationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
update-claude-documentation or would be better handled by a more specific companion skill.references only as needed.SKILL.md first, then load only the referenced deep-dive files that are necessary for the task.references/ directory for deep detail after reading the core workflow below.Update project documentation systematically after significant changes. Keep all files consistent and accurate.
Core Principle: Documentation tells one cohesive story. Each file serves a specific audience but must reflect the same reality.
Deployment Context: Project runs across Windows dev, Ubuntu staging, and Debian production (all MySQL 8.x). Documentation must reflect this 3-environment setup. When updating CLAUDE.md or TECH_STACK.md, always include the deployment environment table and cross-platform rules.
Style Rule: Be precise and concise. Do not add verbose or unnecessary text to any documentation file.
Documentation Standards (MANDATORY): ALL markdown files (.md) must follow strict formatting rules:
doc-standards.md for complete requirementsModularize Instructions (Token Economy): Avoid packing everything into a single CLAUDE.md. Prefer multiple focused docs (e.g., docs/setup.md, docs/api.md, docs/workflows.md) and reference them only when needed to reduce context bloat.
CLAUDE.md as Navigation Hub (CRITICAL): Keep CLAUDE.md under 10k characters as a quick-reference hub with links to detailed documentation. Move verbose sections (detailed workflows, extensive examples, module-specific guides) to appropriate docs/ subdirectories. CLAUDE.md should provide essential patterns and pointers, not duplicate comprehensive content that exists elsewhere. This reduces AI context window usage by 80%+ and makes information easier to maintain.
Docs Organization Rule (Required): All documentation markdown now lives under docs/ plus a semantic subdirectory (overview, architecture, pharmacy, localization, etc.). Do not add new files directly to the repo root—move existing root markdown into the appropriate docs/<module> folder before editing, then update docs/agents/AGENTS.md and always update docs/plans/AGENTS.md when plans are added or their status changes. The canonical landing doc is now docs/overview/README.md, and the root README.md should only point people into docs/.
Claude-Ready Module Headers (Required): Updating documentation now includes refreshing CLAUDE.md and the hero portion of each touched skill (*/SKILL.md). Claude relies on the YAML name/description pair and the opening markdown (hero title, quick summary, when-to-use bullets) for each skill, so keep that block aligned with the module-header template in references/module-header-template.md. The template spells out the claude-friendly structure with a checklist for ensuring the front-matter description triggers the right use cases and the leading sections stay concise yet informative.
✅ Adding/removing features ✅ Architecture or design pattern changes ✅ Dependency or tech stack updates ✅ API endpoints or database schema changes ✅ Project directory restructuring ✅ Development workflow changes ✅ End of work session - User says "update project documentation", "update docs", or "close for the day"
❌ Typo fixes (do directly) ❌ Code comments ❌ WIP features not yet merged
When user says "update project documentation", "update docs", or "close for the day":
MANDATORY Steps:
Create completion document - docs/plans/YYYY-MM-DD-[feature-name]-completion.md
Update docs/plans/INDEX.md
Update docs/plans/NEXT_FEATURES.md (MANDATORY)
Update MEMORY.md
Create end-of-day summary (Optional but recommended)
docs/YYYY-MM-DD-END-OF-DAY-SUMMARY.mdThis workflow ensures:
| File | Audience | Purpose | Update Frequency | | -------------------------- | ----------------------- | --------------------------- | --------------------- | | PROJECT_BRIEF.md | Stakeholders, new devs | 30-sec overview | Major changes | | README.md | Developers | Setup, usage guide | Feature additions | | TECH_STACK.md | Developers, DevOps | Tech inventory | Stack changes | | ARCHITECTURE.md | Senior devs, architects | System design | Architecture changes | | docs/API.md | API consumers | API reference | API changes | | docs/DATABASE.md | Backend devs, DBAs | Schema docs | Schema changes | | CLAUDE.md | Claude Code | Dev patterns | Pattern changes | | docs/plans/NEXT_FEATURES.md| Team, Claude Code | Priority roadmap | Every session | | docs/plans/INDEX.md | Team, Claude Code | Plans index | Plan status changes | | MEMORY.md | Claude Code | Session memory, learnings | End of each session |
New Feature:
*/SKILL.md front-matter and hero section should follow the module-header template above so Claude sees the change immediately and can re-trigger the skill with the new context.Tech Stack Change:
Architecture Change:
API/Database Change:
Document:
Order: Specific → General
Read all affected files in parallel.
Open every impacted */SKILL.md and verify the hero name/description plus the opening sections line up with the Claude-friendly template. Capture the new feature/behavior in the quick summary and ## When to Use bullets before editing the downstream docs.
Per-file checklist:
Check across all files:
CRITICAL: This MUST be done at the end of every work session, even if no other docs changed.
When user says "update project documentation" or "close for the day":
Mark completed work:
Update priorities:
Update effort estimates:
Update recommended next steps:
Template structure:
## 🔴 CRITICAL PRIORITY
[Feature name] - Why critical, effort estimate, start point
## 🟠 HIGH PRIORITY
[Feature name] - Why high priority, effort estimate, start point
## 🟡 MEDIUM PRIORITY
[Feature name] - Why medium priority, effort estimate, start point
## ✅ Recently Completed
[Feature name] - Completion date, brief summary
Location: docs/plans/NEXT_FEATURES.md
Total: 20-35 minutes (includes NEXT_FEATURES.md update)
❌ Updating only one file
# Updated README but forgot CLAUDE.md
# Result: AI doesn't know new pattern
❌ Inconsistent terminology
# README.md: "Authentication Service"
# ARCHITECTURE.md: "Auth Module"
# CLAUDE.md: "Login System"
# Pick ONE term everywhere
❌ Forgetting breaking changes
# Renamed API endpoint but README examples still use old path
# Add migration notes EVERYWHERE affected
❌ General → Specific order
# BAD: Update BRIEF first, then API.md
# GOOD: Update API.md first (precise), then BRIEF (summary)
❌ Bloated CLAUDE.md with duplicate content
# BAD: 40k+ character CLAUDE.md with detailed implementation guides
# GOOD: 6k character CLAUDE.md hub linking to docs/coding/UI_DEVELOPMENT_GUIDE.md
# Result: 84% reduction in AI context usage, easier maintenance
Update Order:
API/DB Specs → Architecture → CLAUDE → README → BRIEF
Consistency Checks:
Terminology, Versions, Paths, Names, Features
Time Budget:
Small change: 5-10 min
Medium change: 15-30 min
Major refactor: 45-60 min
Process: Understand → Map → Read → Update → Verify → Review
Key Rules:
Remember: Documentation debt compounds fast. Update immediately when making changes.
data-ai
Use when adding AI-powered analytics to a SaaS platform — semantic search over business data, natural language queries, trend detection, anomaly alerts, and AI-generated insights for dashboards. Covers embeddings, NL2SQL, and per-tenant analytics...
data-ai
Design AI-powered analytics dashboards — what metrics to show, how to display AI predictions and confidence, drill-down patterns, KPI cards, trend visualisation, AI Insights panels, export design, and role-based dashboard variants. Invoke when...
development
Use when designing, building, reviewing, or upgrading production software systems that must be secure, performant, maintainable, scalable, and user-centered. Apply before writing specs, code, architecture, APIs, databases, mobile apps, SaaS platforms, or ERP systems.
development
Professional web app UI using commercial templates (Tabler/Bootstrap 5) with strong frontend design direction when needed. Use for CRUD interfaces, dashboards, admin panels with SweetAlert2, DataTables, Flatpickr. Clone seeder-page.php, use...