xiaohongshu
xiaohongshu
doc-maintenance
Automatic documentation updates after task completion. Use when: (1) completing tasks, (2) adding features, (3) fixing bugs, (4) refactoring code. Updates root PLAN.md (consolidated) and README.md when features change. Chains markdown-writer for style.
Full skill instructions
Automatically updates project documentation after task completion.
All plan updates go to root PLAN.md. This is the single source of truth for project planning. Package-level PLAN.md files should be consolidated into the root PLAN.md.
Invoke after:
Also invoke explicitly with:
/doc-maintenanceWhen owner says "clean up before merge" or similar, run this checklist:
# 1. Sync CLAUDE.md with installed skills (removes stale refs)
skills claudemd sync
# 2. Scan for test artifacts and slop
skills hygiene scan
# 3. If slop found, clean it
skills hygiene clean --confirm
# 4. Validate chain config (if chain files changed)
chain validate
# 5. Update PLAN.md with completed work
# (follow doc-maintenance procedure below)
# 6. Commit and push
git add -A && git commit -m "chore: pre-merge cleanup" && git push
This is the standard cleanup before any PR merge.
Read these files:
PLAN.md (root, consolidated project plan)README.md (feature documentation)packages/*/PLAN.md (check for package-level plans to consolidate into root)If packages/*/PLAN.md files exist, consolidate their content into root PLAN.md:
## Package: {name}Structure for root PLAN.md:
# Project Plan
## Current Sprint
- Active work items across all packages
## Package: chain
- Package-specific in-progress work
## Package: cli
- Package-specific in-progress work
## Backlog
- Future work items
## Completed
- Timestamped completed items
## Blocked
- Items waiting on dependencies
Determine what was accomplished:
Mark completed items:
## Current Sprint
- [x] Implement user authentication # Was [ ]
- [ ] Add password reset flow
Add discovered work:
## Backlog
- [ ] Discovered: Need rate limiting for auth endpoints
- [ ] Tech debt: Refactor auth middleware
Move completed items with timestamp:
## Completed
- [x] Implement user authentication (2026-01-30)
Update blocked items:
## Blocked
- Password reset: Waiting for email service setup
When to update README.md:
What to update:
Output a summary:
Documentation updated:
PLAN.md:
- Marked complete: "Implement user authentication"
- Added to backlog: "Need rate limiting for auth endpoints"
- Moved to completed: 1 item
- Consolidated from: packages/chain/PLAN.md
README.md:
- Updated features list with authentication
- Added auth usage example
All documentation updates MUST follow markdown-writer style:
Implicitly chain markdown-writer when editing any .md file.
When TDD workflow completes (GREEN phase):
When a bug is fixed:
When refactoring completes:
After any documentation update: repo-hygiene (clean stale references)
Before:
- [ ] Implement feature X
After:
- [x] Implement feature X
When you discover new tasks during implementation:
## Backlog
- [ ] (discovered) New task from implementation
- [ ] (tech debt) Code that needs cleanup
- [ ] (bug) Issue found during testing
Add date to completed items:
## Completed
- [x] Task description (2026-01-30)
When adding a feature to README.md:
## Features
- **Authentication**: Secure user login with JWT tokens
- **Password Reset**: Email-based password recovery
| Rationalization | Why It's Wrong | Required Action |
|---|---|---|
| "Too small to document" | Small changes accumulate | Update PLAN.md |
| "I'll remember" | Context is lost between sessions | Write it down |
| "README is fine" | Feature docs get stale | Verify accuracy |
| "Just a bug fix" | Bugs deserve tracking | Mark complete |
| "Package has its own PLAN" | Fragmentation causes confusion | Consolidate to root PLAN.md |
Task: Add user authentication
After completion:
/doc-maintenance
Analyzing changes...
Found:
- New auth middleware in src/middleware/auth.ts
- New login endpoint in src/routes/auth.ts
- 5 new test files
- Git commit: "Add JWT authentication"
- packages/chain/PLAN.md exists (needs consolidation)
Updates:
PLAN.md:
Current Sprint:
- [x] Implement user authentication
Backlog:
+ [ ] (discovered) Add refresh token support
+ [ ] (discovered) Rate limit login attempts
Consolidated:
- Merged packages/chain/PLAN.md content
README.md:
Features:
+ Authentication: JWT-based user authentication
Usage:
+ Added auth example code
PLAN.md (consolidated)xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience