rb:document
Installation
SKILL.md
Document
Generate documentation for newly implemented features.
Usage
/rb:document .claude/plans/magic-link-auth/plan.md
/rb:document magic link authentication
/rb:document # Auto-detect from recent plan
Iron Laws
- Never remove existing documentation — Existing docs may reflect design intent that isn't obvious from code alone; update rather than replace
- YARD/RDoc on every public class/module — Undocumented code accumulates quickly and creates onboarding friction for new team members
- ADRs capture the "why", not the "what" — Code shows what was built; ADRs explain why this approach was chosen over alternatives
- Match docs to method's public API — Document parameters, return values, and edge cases; callers shouldn't need to read the implementation