/research:update-claude-documentationfrom research
Use when an authorised implementation or repository change requires affected project documentation, agent guidance, architecture notes, API/database docs, examples, or status records to be reconciled with the current code; use skill-writing for skill contracts rather than project documentation.
Ships in research. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Input | Source/provider | If absent |
|---|---|---|
| Authorised change diff and affected documentation map | Repository and change owner | Stop updates until implementation truth and scope are available. |
| Current code/configuration and existing docs | Repository | Mark inaccessible areas and do not assert their state. |
Review defaults to read-only. Documentation edits require repository authority; code changes, release publication, remote push, or deletion require separate authority.
Without the complete diff, current implementation, or validation commands, return an impact map and draft changes with unverified items marked. Do not claim documentation is synchronised.
| Change | Action | Failure/risk avoided |
|---|---|---|
| Public interface changed | Update precise API/spec docs before summaries | Contradictory examples |
| Agent behaviour changed | Update AGENTS/CLAUDE routing and gates | Stale automation |
| Historical record remains accurate | Preserve it and add a current-status note | Rewritten history |
When an API route changes, update the API reference and examples first, then architecture and agent guidance, then README summaries; verify every path against the implementation. Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.
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.| Category | Artifact | Format | Example |
|---|---|---|---|
| Release evidence | Documentation update record | Markdown doc tracking changes made to README.md, PROJECT_BRIEF.md, TECH_STACK.md, ARCHITECTURE.md, docs/API.md, and docs/DATABASE.md | docs/updates/doc-update-2026-04-16.md |
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.
| Artifact | Consumer | Acceptance condition |
|---|---|---|
| Reconciled documentation set | Maintainers, users, and agents | Changed behavior, terminology, paths, and examples agree with implementation. |
Minimum capability is read access to the diff, implementation, and affected docs. Documentation mutation must be explicitly authorised; code changes, publication, push, or deletion requires separate permission.
If the diff, implementation, or validators are unavailable, return a qualified impact map with checks marked unassessed. Do not claim documentation is synchronised.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub peterbamuhigire/chwezi-research-engine --plugin research59 skills in this plugin
/00-meta-initializationUse when starting a scaffolded research workspace that needs an explicit project profile, methodology, audience-output matrix, wave roadmap, and dispatch gate; do not use for routine work inside an already initialised project./academic-reporting-standardsUse when an academic paper, thesis, dissertation, journal article, systematic review, or examinable artefact must follow a named reporting or examination standard; use academic-writing instead for prose craft without a reporting-standard decision./academic-writingUse when drafting or revising an academic paper, essay, thesis, or dissertation with source-away composition, originality, citation, synthesis, voice, and register controls; use academic-reporting-standards for selecting formal study-reporting rules.Other plugins' skills for the same job