documentation-writing
Skill19 starsChanged 6 months agoMITView on GitHub
Generate comprehensive project documentation including technical specs, user flows, beginner-friendly usage guides, and README files. Use when the user says "write docs", "create documentation", "add README", "user guide", "technical spec", "usage instructions", "how to use this", "explain for beginners", "write a userflow", "onboarding docs", or explicitly invokes /documentation-writing. Covers four documentation types: (1) Technical — architecture, APIs, data models, infrastructure for engineers; (2) User Flow — step-by-step journey maps, interaction sequences, decision trees; (3) Usage Instructions — plain-language guides for non-technical users, screenshots-first; (4) README — project overview, quickstart, badges, contributing guide. Produces Markdown artifacts in docs/ or project root. Callable at ANY phase.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- 5throck/ai-workspace-standardstheir own version, first seen Sep 26, 2026
- redamoon/skillstheir own version, first seen Sep 17, 2026
- pavel-molyanov/molyanov-ai-devtheir own version, first seen Aug 12, 2026
- stepanenkoviktor0110-boop/ai-dev-methodologytheir own version, first seen May 31, 2026
- autohandai/community-skillstheir own version, first seen Mar 9, 2026
- nilecui/SkillsBasetheir own version, first seen Dec 27, 2025
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- pavel-molyanov/molyanov-ai-dev★ 296same name
- nilecui/SkillsBase★ 27same name
- 5throck/ai-workspace-standards★ 16same name
- autohandai/community-skills★ 11same name
- stepanenkoviktor0110-boop/ai-dev-methodology★ 2same name
- redamoon/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository37 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- workflow-orchestratorSkill
- user-flow-writingSkill
- ba-requirements-analysisSkill
- taste-memory-managementSkill
- progress-trackerSkill
- harness-pipeline-designSkill
- harness-service-onboardingSkill
- harness-delegate-managementSkill
- harness-secrets-managementSkill
- harness-feature-flagsSkill
- harness-template-librarySkill
- harness-gitopsSkill
- security-scanningSkill
- cloakbrowser-testingSkill
- performance-load-testingSkill
- chaos-experiment-designSkill
- chaos-hypothesis-validationSkill
- chaos-blast-radius-controlSkill
- chaos-steady-state-definitionSkill
- chaos-infrastructure-faultsSkill
- chaos-application-faultsSkill
- chaos-game-day-planningSkill
- harness-cv-verificationSkill
- chaos-observability-integrationSkill
- alerting-recommendationsSkill
- harness-policy-governanceSkill
- harness-cloud-costSkill
- chaos-resilience-scoringSkill
- chaos-postmortem-learningSkill
- release-managementSkill
- disaster-recovery-business-continuitySkill
- compliance-auditSkill
- strategic-creatorSkill
- deep-researchSkill
- system-optimizationSkill
- devils-advocateSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 11 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 93
Use Mermaid diagrams for architecture and data flow
- Distinctive: line 95
Document error states as thoroughly as happy paths
- Distinctive: line 97
Every config option must show its default value
- Distinctive: line 132
Always include a visual flow diagram (Mermaid preferred)
- Distinctive: line 136
Keep to one primary flow per document.
- Distinctive: line 169
Write at a 6th-grade reading level
- Distinctive: line 170
Use "you" language ("Click the button" not "The user clicks")
- Distinctive: line 171
Every step must describe what the user will see after performing it
- Distinctive: line 173
No jargon without inline explanation
- Distinctive: line 176
Use numbered lists for sequential steps, bullets for options
- Distinctive: line 224
Keep it under 500 lines — link to detailed docs for depth
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Documentation Writing — Project Documentation Engine (s34)
Purpose
Generate clear, accurate, audience-appropriate documentation that makes a project understandable and usable by every stakeholder — from backend engineers reviewing architecture to first-time users trying to get started. Every document follows the principle: the reader should never have to guess.
Prerequisites
- Project artifacts available (PRD, pipeline YAML, experiment results, etc.)
- Target audience identified (engineers, non-technical users, SREs)
- No specific skill outputs required — can be invoked at any phase
- Access to project repository for documentation rendering
Input Contract
| Input | Source | Required |
| Project codebase / structure | Repository exploration | Yes |
| Target documentation type | User prompt (technical / userflow / usage / README) | Yes |
| Target audience | User prompt or inferred | Yes |
| PRD / specifications | s01 output | No |
| ADRs | s01 output | No |
| Existing documentation | docs/ directory scan | No |
| User's tone preference | s02 taste file | No |
Output Contract
| Output | Destination | Format |
| Documentation artifact | docs/<type>/ or project root | Markdown |
| README.md | Project root | Markdown with badges, TOC, sections |
| User flow diagram | docs/userflows/ | Mermaid flowchart or numbered steps |
| Technical spec | docs/technical/ | Markdown with code blocks, diagrams |
| Usage guide | docs/guides/ | Markdown with screenshots, plain language |
Documentation Types
Type 1: Technical Documentation
Audience: Engineers, SREs, DevOps, platform teams
Structure:
# <Component/Feature Name> — Technical Specification
## Overview
One paragraph: what it does, why it exists, what problem it solves.
## Architecture
High-level design. Mermaid diagrams for data flow, component relationships.
## Data Model
Tables, schemas, relationships. Include field types, constraints, defaults.
## API Reference
Endpoint, method, request/response schema, error codes, rate limits.
## Configuration
Environment variables, config files, feature flags. Include defaults.
## Error Handling
Error codes, retry logic, fallback behavior.
## Dependencies
External services, libraries, infrastructure requirements.
## Security Considerations
Auth requirements, data sensitivity, threat model.
## Testing
How to test locally, integration test setup, mocking external deps.Rules:
- Use Mermaid diagrams for architecture and data flow
- Include runnable code examples (not pseudocode)
- Document error states as thoroughly as happy paths
- Link to ADRs for design decisions
- Every config option must show its default value
Type 2: User Flow Documentation
Audience: Product managers, designers, QA, engineers
Structure:
# <Flow Name> — User Flow
## Overview
What the user is trying to accomplish. Entry points.
## Flow Diagram
Mermaid flowchart or numbered step sequence.
## Happy Path
Step-by-step with expected outcomes at each step.
## Decision Points
Branching logic with conditions and outcomes.
## Error States
What happens when things go wrong. Recovery paths.
## Edge Cases
Unusual but valid scenarios and how they're handled.
## Related Flows
Links to adjacent or dependent flows.Rules:
- Always include a visual flow diagram (Mermaid preferred)
- Number every step
- Decision points must have explicit conditions ("If X > threshold...")
- Error states must include the user-visible message and recovery action
- Keep to one primary flow per document; split sub-flows into linked docs
Type 3: Usage Instructions (Non-Technical)
Audience: End users, business stakeholders, customer support, new team members
Structure:
# How to <Action> — Usage Guide
## What You'll Learn
One sentence: what the reader will be able to do after reading.
## Before You Start
Prerequisites, required access, accounts, or setup steps.
## Step-by-Step Instructions
1. **Do this first** — Plain language explanation.
- What you'll see: description of expected result.
2. **Then do this** — ...
- What you'll see: ...
## Common Questions
**Q: What if I see X?**
A: Do Y.
## Need More Help?
Link to support, contact info, or escalation path.Rules:
- Write at a 6th-grade reading level
- Use "you" language ("Click the button" not "The user clicks")
- Every step must describe what the user will see after performing it
- Include screenshots or image references where helpful (using
) - No jargon without inline explanation
- Bold the action verb at the start of each step
- Provide a "Common Questions" section for the top 3-5 likely issues
- Use numbered lists for sequential steps, bullets for options
Type 4: README Documentation
Audience: Everyone — developers, users, contributors, evaluators
Structure:
# Project Name
One-line description with key value proposition.
[badges]
## What Is This?
2-3 sentences. Who it's for, what it does, why it exists.
## Quick Start
Minimum steps to get running. Copy-pasteable.
## Features
Bullet list of key capabilities. Link to detailed docs.
## Installation
All supported methods (npm, pip, docker, source).
## Usage
Most common use case with code example.
## Configuration
Key options in a table.
## Contributing
How to contribute. Link to CONTRIBUTING.md if exists.
## License
License type + link.
## Acknowledgments
Credits, inspirations, dependencies.Rules:
- The first 5 lines must answer: What is this? Who is it for? Why should I care?
- Quick Start must be copy-pasteable and work on a fresh machine
- Badge links must be valid
- Keep it under 500 lines — link to detailed docs for depth
- Include a table of contents if >100 lines
- Show, don't tell — one code example is worth 10 paragraphs
- Match the project's existing badge style
Workflow
Step 1: DETERMINE documentation type from user request
Step 2: SCAN the codebase / existing docs for context
Step 3: IDENTIFY target audience
Step 4: LOAD taste preferences (tone, style, language)
Step 5: SELECT the appropriate template from above
Step 6: RESEARCH the codebase thoroughly — read source files,
configs, tests, existing docs. Never guess.
Step 7: DRAFT the documentation following the template
Step 8: VALIDATE accuracy:
- Every code example must be runnable
- Every file path must exist
- Every config option must be verified in source
- Every link must resolve
Step 9: REVIEW readability:
- Technical docs: can an engineer understand without asking questions?
- User flows: can QA write test cases from this alone?
- Usage guides: can a non-technical person follow without help?
- README: does a first-time visitor understand the project in 30 seconds?
Step 10: WRITE to the appropriate location
Step 11: UPDATE README.md if the new doc should be linkedAI Agent Integration
Autonomy Level
| Aspect | Level | Description |
| Current | L1 | AI generates documentation drafts; human reviews and edits |
| Target | L2 | AI produces publication-ready documentation with minimal human editing |
Harness AI Agent
Agent: None (documentation by design) Capabilities:
- Technical specification generation
- API documentation generation
- Mermaid diagram generation for user flows
- README generation
- Audience-aware writing style adaptation
Human Gates
- Documentation accuracy review before publishing
- Technical review for correctness
- Style and tone approval
Success Criteria
- Documentation type matches user request
- Target audience is explicitly identified
- Template structure followed
- All code examples are tested/runnable
- All file paths and links are verified
- Reading level matches audience (technical = expert, usage = beginner)
- Diagrams included where structure or flow is described
- Document is discoverable (linked from README or docs index)
- No placeholder text ("TODO", "TBD", "lorem ipsum")
- Spell-checked and grammar-checked
Examples
Example: Technical Doc Generation
User: "Write technical documentation for the authentication module"
Agent:
1. Scans src/auth/, reads all files
2. Identifies JWT flow, OAuth providers, middleware chain
3. Generates docs/technical/authentication.md with:
- Architecture diagram (Mermaid)
- Token lifecycle diagram
- API endpoint reference table
- Configuration options table
- Error code reference
4. Links from README.mdExample: Usage Guide Generation
User: "Create a beginner guide for setting up the project"
Agent:
1. Reads README.md, package.json / pyproject.toml, config files
2. Identifies prerequisites (Node.js, Docker, etc.)
3. Generates docs/guides/getting-started.md with:
- "What You'll Learn" section
- Prerequisites checklist
- Step-by-step install with expected outputs
- "Common Questions" for top issues
4. Links from README.md Quick Start sectionExample: README Generation
User: "Generate a README for this project"
Agent:
1. Scans entire project structure
2. Reads package.json / pyproject.toml for metadata
3. Identifies key features from source code
4. Generates README.md with:
- Project name and one-liner
- Badges (license, version, CI status)
- Quick Start (copy-pasteable)
- Features list with doc links
- Installation methods
- Usage example
- Contributing guide
- LicenseThis skill is callable at any phase. It produces documentation artifacts only — no code changes, no configuration, no infrastructure.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

