skills/cygnusfear/update-docs/SKILL.md
Update all documentation in .plans, CLAUDE.md files, docs, and .tasks to match current codebase state. Use when user asks to update docs, refresh documentation, sync docs with code, or validate documentation accuracy.
npx skillsauth add aiskillstore/marketplace update-docsInstall 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.
BEFORE making ANY changes to documentation, you MUST consult the Oracle to understand what exists and what must be preserved.
Documentation often contains hard-won knowledge, historical context, and decisions that aren't obvious from code alone. Blindly updating docs risks losing this irreplaceable information.
For EACH significant document (especially CLAUDE.md, architecture docs, decision records):
Task(
subagent_type: "general-purpose",
model: "opus",
prompt: """
You are The Oracle - analyze this documentation before it gets updated.
DOCUMENT PATH: [path]
DOCUMENT CONTENT:
[full content]
ANALYSIS REQUIRED:
1. **Critical Knowledge Inventory**
- What unique insights/decisions does this document contain?
- What historical context would be lost if overwritten?
- What hard-won lessons or gotchas are documented?
- What non-obvious information exists that code doesn't reveal?
2. **Preservation Requirements**
- List specific sections/paragraphs that MUST be preserved
- Identify any warnings, caveats, or "don't do X" guidance
- Note any project-specific conventions explained here
- Flag any links to external resources or related docs
3. **Safe to Update**
- What sections are purely factual and safe to update from code?
- What sections are demonstrably outdated based on codebase?
- What can be verified objectively vs. requires human judgment?
4. **Update Recommendations**
- Specific guidance for updating this document safely
- Sections to leave untouched without human approval
- Suggested merge strategy (preserve + add vs. replace)
Be thorough. Assume any knowledge lost here is lost forever.
"""
)
Systematically review and update all project documentation to ensure accuracy, completeness, and alignment with current codebase state.
Before touching ANY documentation:
Example TodoWrite entries from Oracle:
- [ ] PRESERVE: Authentication decision rationale in CLAUDE.md (lines 45-67)
- [ ] PRESERVE: Database migration warnings in architecture.md
- [ ] PRESERVE: "Why we don't use X" section in conventions.md
- [ ] SAFE TO UPDATE: API endpoint list (verify against code)
Find all documentation files:
.plans/**/*.md - Plan documents**/CLAUDE.md - Claude-specific guidelinesdocs/**/* - General documentation.tasks/**/* - Task tracking filesGit analysis (if applicable):
git log to understand what changedCreate comprehensive todo list - One item per document to review
For EACH document in the todo list:
Audit the codebase to check if documentation is:
CRITICAL: Cross-reference with Oracle preservation list. If something seems outdated but Oracle flagged it as "preserve", DO NOT modify without explicit confirmation.
Verify document follows guidelines in CLAUDE.md:
Plans in .plans/ require careful status tracking:
Investigation:
Status Categorization:
*.todo.md): Plan not yet implemented or partially implemented*.done.md): Plan completely implemented and verified*.obsolete.md): Plan no longer relevant or supersededProgress Marking:
✅ prefixCRITICAL: NEVER mark a plan as done until you have 100% confirmation through code audit that EVERY item is implemented.
Before ANY edit, verify:
Safe update patterns:
Dangerous patterns (require confirmation):
Add to running change log:
Update todo list to mark this document as completed
After reviewing all individual documents:
Consistency check:
Coverage analysis:
Link validation:
# Documentation Update Summary - [Date]
## Oracle Consultation
- Documents analyzed: X
- Critical sections preserved: Y
- Preservation requirements followed: ✅/❌
## Files Updated: X
## Changes Made:
### Plans Status
- ✅ Done: [list]
- 📋 Todo: [list]
- ⚠️ Obsolete: [list]
### Updates by Document
- **[file path]**
- Fixed: [what was wrong]
- Added: [what was missing]
- Removed: [what was redundant]
- **Preserved**: [what was kept per Oracle]
### Coverage Gaps
- [Undocumented features]
- [Orphaned documentation]
### Recommendations
1. [Suggested improvements]
2. [New docs needed]
.docs-updates/update-[timestamp].mdNEVER delete without explicit approval:
Safe to update freely:
Is EVERY item in the plan implemented?
├─ YES (verified in code) → Mark items with ✅
│ └─ Are ALL items marked ✅?
│ ├─ YES → Rename to .done.md
│ └─ NO → Rename to .todo.md (still has work)
│
├─ NO (some items not implemented) → Rename to .todo.md
│ └─ Mark implemented items with ✅
│
└─ Plan is superseded or irrelevant → Rename to .obsolete.md
When updating documentation, add or update Mermaid diagrams to visualize complex concepts.
| Document Type | Diagram Use | |---------------|-------------| | Architecture docs | Component relationships, data flow | | API documentation | Request/response sequences | | Process guides | Workflow flowcharts | | Decision records | Before/after state diagrams |
When updating docs:
## Current Architecture
```mermaid
flowchart TD
subgraph Frontend
A[React App] --> B[API Client]
end
subgraph Backend
B --> C[Express Server]
C --> D[PostgreSQL]
C --> E[Redis Cache]
end
```
Note: Diagrams in documentation should be verified against actual code, just like text.
development
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.