Documentation Authoring Master
Expert guidance for creating structured, high-quality documentation across all types of technical and business documents.
Skill Paths
- •Workspace skills:
.github/skills/ - •Global skills:
C:/Users/LOQ/.agents/skills/
Activation Conditions
Trigger Conditions:
- •User mentions writing documentation: "write a doc", "draft a proposal", "create a spec", "write up"
- •User mentions specific doc types: "PRD", "design doc", "decision doc", "RFC"
- •User asks to "create an implementation plan", "document requirements", "plan a feature"
- •Creating technical specifications or business requirements
- •Starting a new product or feature development cycle
- •Translating vague ideas into concrete technical specifications
- •Stakeholders need unified "source of truth" for project scope
Part 2: Context Gathering
Initial Questions
Start by asking for meta-context about the document:
- •
What type of document is this?
- •Technical spec, decision doc, proposal, RFC, PRD, knowledge base
- •
Who's the primary audience?
- •Developers, executives, stakeholders, end-users? Understanding affects tone and depth
- •
What's the desired impact when someone reads this?
- •Make a decision, implement a feature, understand a concept?
- •
Is there a template or specific format to follow?
- •Company templates, industry standards, regulatory requirements
- •
Any other constraints or context to know?
- •Deadlines, sensitive information, existing related documents
Inform them they can answer in shorthand or dump information however works best for them.
Template Handling
If user provides a template:
- •Analyze structure and requirements
- •Adapt co-authoring workflow to template format
- •Ensure all required sections are covered
If user mentions editing an existing document:
- •Fetch the existing document
- •Understand current state and gaps
- •Plan revisions strategically
Part 3: Refinement & Structure
Collaborative Building
Process:
- •Brainstorm each section together - let ideas flow without judgment
- •Organize and refine - structure ideas into coherent sections
- •Edit for clarity - improve readability and flow
- •Add professional polish - formatting, consistency, tone
Guiding Principles:
- •Active voice: Use direct, clear language
- •Show, don't just tell: Use examples and scenarios
- •Progressive disclosure: Start with overview, then dive deeper
- •Visual aids: Include diagrams, tables, and examples where helpful
Section-by-Section Approach
Work through document methodically:
## Recommended Section Structure ### 1. Executive Summary (for decision-makers) - What is this about? - Why does it matter? - What are we recommending/deciding? ### 2. Background & Context (for implementers) - What led us here? - What problem are we solving? - What constraints exist? ### 3. Requirements/Objectives - What must we achieve? - What are success criteria? - What are non-goals? ### 4. Proposed Solution/Design - What are we proposing? - How does it work? - What are alternatives considered? ### 5. Implementation Plan - How do we build this? - What are the steps? - Who needs to do what? ### 6. Risks & Considerations - What could go wrong? - How do we mitigate? - What decisions are still needed?
Part 4: Reader Testing
The Fresh Eye Test
Before finalizing, put yourself in the reader's shoes:
Test Questions:
- •Can I understand the goal without knowing context?
- •Are technical terms explained or linked?
- •Is there a logical flow from problem to solution?
- •Would a skeptical reader be convinced?
- •Is action clear - what should I do next?
Blind Spot Detection
Common issues to catch:
- •Context assumptions: "We already discussed this" but wasn't documented
- •Missing alternatives: Only one option presented (shows lack of thoroughness)
- •Unanswered questions: Reader left with "what about X?"
- •Unclear responsibilities: Who needs to do what is vague
- •Missing examples: Abstract concepts without concrete illustration
Part 5: Product Requirements Document (PRD)
PRD Structure
When users specifically request PRDs or feature planning, use this structure:
# [Feature/Product Name] - PRD ## Executive Summary **Goal**: [What problem are we solving?] **Impact**: [Why does this matter now?] **Success Metrics**: [How will we know it worked?] ## Background **Current State**: [What's the situation today?] **Problem Statement**: [What pain points exist?] **Constraints**: [Budget, timeline, tech stack limitations?] ## Requirements ### Functional Requirements - User stories with acceptance criteria - Core features and capabilities - Integration requirements ### Non-Functional Requirements - Performance requirements - Security requirements - Compliance and regulatory needs ### User Stories
As a [persona], I want to [action], So that [benefit].
**Acceptance Criteria**: - [ ] [Specific, measurable criterion] - [ ] [Another criterion]
Proposed Solution
Architecture Overview
[High-level system architecture or approach]
Technical Specifications
[API contracts, data models, interfaces]
UI/UX Requirements
[Wireframes or flow descriptions if applicable]
Implementation Plan
Phases
| Phase | Tasks | Owners | Timeline |
|---|---|---|---|
| Phase 1 | |||
| Phase 2 |
Dependencies
- • External APIs or services
- • Other teams or systems
- • Third-party libraries
Risk Analysis
| Risk | Impact | Probability | Mitigation |
|---|---|---|---|
| [Risk] | High/Med/Low | High/Med/Low | [Mitigation] |
Alternatives Considered
| Option | Pros | Cons | Why Not Chosen |
|---|---|---|---|
| Alt 1 |
Success Criteria
Quantitative
- • [Measurable metric: e.g., "reduce load time by 50%"]
- • [Another metric]
Qualitative
- • [User feedback threshold]
- • [Stakeholder alignment]
Open Questions
- • [Decision still needed]
- • [Information to gather]
### PRD Creation Workflow **Phase 1: Discovery (The Interview)** Before writing a single line, you **MUST** interrogate user to fill knowledge gaps. Do not assume context. **Ask about:** - **The Core Problem**: Why are we building this now? - **Success Metrics**: How do we know it worked? - **Constraints**: Budget, tech stack, or deadline? - **Stakeholders**: Who needs to approve? Who will use? **Phase 2: Analysis & Scoping** Synthesize user input. Identify dependencies and hidden complexities. - **Map out User Flow** - **Define Non-Goals** to protect timeline **Phase 3: Technical Drafting** Generate document using strict structure above. --- ## Part 6: Common Document Types ### Implementation Plans **Purpose**: Guide building process with clear phases, responsibilities, and timeline. **Structure:** - **Overview**: What are we building and why? - **Phases**: Break into logical chunks with dependencies - **Tasks**: Trackable, specific implementation items - **Timeline**: Realistic dates with buffers - **Dependencies**: What must happen before what? ### Design Docs **Purpose**: Document technical decisions and architecture. **Structure:** - **Problem Statement**: What problem are we solving? - **Alternatives**: What did we consider? - **Decision**: What did we choose and why? - **Implications**: What does this mean for the system? - **Risks**: What could go wrong? ### Decision Records **Purpose**: Capture important decisions for future reference. **Template:** ```markdown ### Decision - [DATE] **Decision**: [What was decided] **Context**: [Situation and driving data] **Options**: [Alternatives with pros/cons] **Rationale**: [Why selected option is superior] **Impact**: [Anticipated consequences] **Review**: [Reassessment conditions/trigger]
Knowledge Base Articles
Purpose: Reusable reference material, not project-specific docs.
Structure:
- •Quick Reference: TL;DR summary at top
- •Problem: What question does this answer?
- •Solution: How do you solve it?
- •Examples: Concrete, runnable examples
- •Common Pitfalls: What mistakes do people make?
- •Related Topics: Links to related info
Part 7: Best Practices
For All Documentation
✅ DO:
- •Use active voice and clear language
- •Structure information progressively (simple to complex)
- •Include examples and concrete scenarios
- •Define terms before using them
- •Add diagrams for complex systems
- •Maintain consistent formatting and style
❌ DON'T:
- •Write without clear audience in mind
- •Mix jargon without explanation
- •Skip alternatives or trade-offs analysis
- •Assume readers have context they don't
- •Create long paragraphs without breaks
For Technical Docs
- •Include code snippets that actually run
- •Link to external references for deeper dives
- •Use standard terminology when possible
- •Version specific code/commands (e.g., "for node v16+")
For Business/Stakeholder Docs
- •Start with executive summary
- •Use business impact metrics
- •Hide unnecessary technical detail
- •Include clear next steps or approvals needed
- •Highlight risks and mitigations prominently
Part 8: Action Documentation Format
Use this format for tracking implementation work and decisions:
[TYPE] - [ACTION] - [TIMESTAMP]
Objective: [Goal being accomplished]
Context: [Current state, requirements, reference to prior steps]
Decision: [Approach chosen and rationale]
Execution: [Steps taken with parameters and commands]
Output: [Complete results, logs, metrics]
Validation: [Success verification and results]
Next: [Continuation plan to next action]
Part 9: Summary Formats
Streamlined Action Log (for changelogs)
[TYPE][TIMESTAMP] Goal: [X] → Action: [Y] → Result: [Z] → Next: [W]
Quick Summary (for updates)
What: [Brief description] Why: [Context/rationale] How: [Approach taken] Status: [Current state] Next: [Upcoming step]
Documentation Quality Checklist
Completeness
- • All required sections filled
- • Context and background provided
- • Alternatives considered where applicable
- • Examples and diagrams included where helpful
Clarity
- • Language is clear and direct
- • Technical terms defined or linked
- • Flowlogical and easy to follow
- • Active voice used consistently
Accuracy
- • Technical details are correct
- • Links work and are up-to-date
- • Code examples actually run
- • No contradictory information
Accessibility
- • Multiple levels of detail for different readers
- • Executive summary for decision-makers
- • Deep-dive sections for implementers
- • Visual aids for complex concepts
References & Resources
Documentation
- •Document Templates — Templates for PRD, RFC, ADR, Tech Spec, Design Doc, Runbook, Postmortem, KB Article
- •Writing Style Guide — Technical writing best practices, formatting conventions, and readability
Scripts
- •Doc Structure Validator — Python script to validate markdown document quality
Examples
- •PRD Example — Complete PRD for Recipe Search Enhancement in Kitchen Odyssey