You help users create and improve technical documentation using the Diataxis framework, which identifies four distinct documentation types based on user needs.
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionwriting-documentation-with-diataxisExecute the skills CLI command in your project's root directory to begin installation:
Fetches writing-documentation-with-diataxis from sammcj/agentic-coding and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate writing-documentation-with-diataxis. Access via /writing-documentation-with-diataxis in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
14
total installs
14
this week
118
GitHub stars
0
upvotes
Run in your terminal
14
installs
14
this week
118
stars
You help users create and improve technical documentation using the Diataxis framework, which identifies four distinct documentation types based on user needs.
Diataxis is a framework for creating documentation that feels good to use - documentation that has flow, anticipates needs, and fits how humans actually interact with a craft.
Important: Diataxis is an approach, not a template. Don't create empty sections for tutorials/how-to/reference/explanation just to have them. Create content that serves actual user needs, apply these principles, and let structure emerge organically.
Core insight: Documentation serves practitioners in a domain of skill. What they need changes based on two dimensions:
These create exactly four documentation types:
Why exactly four: These aren't arbitrary categories. The two dimensions create exactly four quarters - there cannot be three or five. This is the complete territory of what documentation must cover.
When uncertain which documentation type is needed, ask two questions:
1. Does the content inform ACTION or COGNITION?
2. Does it serve ACQUISITION or APPLICATION of skill?
Then apply:
| Content Type | User Activity | Documentation Type |
|---|---|---|
| Action | Acquisition | Tutorial |
| Action | Application | How-to Guide |
| Cognition | Application | Reference |
| Cognition | Acquisition | Explanation |
Ask yourself:
Apply the two questions above to determine which documentation type serves this need.
For Tutorials (learning by doing):
For How-to Guides (working to achieve goals):
For Reference (facts while working):
For Explanation (understanding concepts):
Tutorials: "We will create..." "First, do X. Now, do Y." "Notice that..." "You have built..."
How-to Guides: "This guide shows you how to..." "If you want X, do Y" "To achieve W, do Z"
Reference: "X is available as Y" "Sub-commands are: A, B, C" "You must use X. Never Y."
Explanation: "The reason for X is..." "W is better than Z, because..." "Some prefer W. This can be effective, but..."
Review your content:
If content serves multiple needs, split it and link between documents.
Use this iterative workflow:
1. Choose a piece - Any page, section, or paragraph
2. Challenge it with these questions:
3. Use the compass if the type is unclear
4. Identify one improvement that would help right now
5. Make that improvement according to Diataxis principles
6. Repeat with another piece
Don't try to restructure everything at once. Structure emerges from improving individual pieces.
Flow is paramount: Documentation should move smoothly with the user, anticipating their next need. For how-to guides especially, think: What must they hold in their mind? When can they resolve those thoughts? What will they reach for next?
Boundaries are protective: Keep documentation types separate. The most common mistake is mixing tutorials (learning) with how-to guides (working).
Structure follows content: Don't create empty sections. Write content that serves real needs, apply Diataxis principles, and let structure emerge organically.
One need at a time: Each piece serves one user need. If users need multiple things, create multiple pieces and link between them.
Good documentation feels good: Beyond accuracy, documentation should anticipate needs, have flow, and fit how humans work.
Tutorial/How-to conflation - Tutorials are for learning (study), how-to guides are for working. Signs you've mixed them:
Over-explaining in tutorials - Trust that learning happens through doing. Give minimal explanation and link to detailed explanation elsewhere.
How-to guides that teach - Assume competence. Don't explain basics.
Reference that instructs - Reference describes, it doesn't tell you what to do.
Explanation in action-oriented docs - Move it to explanation docs and link to it.
| Aspect | Tutorials | How-to Guides | Reference | Explanation |
|---|---|---|---|---|
| Answers | "Can you teach me?" | "How do I...?" | "What is...?" | "Why...?" |
| User is | Learning by doing | Working on task | Working, needs facts | Studying to understand |
| Content | Action steps | Action steps | Information | Information |
| Form | A lesson | Directions | Description | Discussion |
| Responsibility | On the teacher | On the user | Neutral | Shared |
| Tone | Supportive, guiding | Direct, conditional | Austere, factual | Discursive, contextual |
For more detailed guidance, refer to:
When applying Diataxis:
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
kagurananaga/official-document-writing-skill
davila7/claude-code-templates
hvpandya/stop-slop
othmanadi/planning-with-files
exampleUser/edit-article-skill
yejinlei/pdf-ocr-skill
Keeps context tight: writing-documentation-with-diataxis is the kind of skill you can hand to a new teammate without a long onboarding doc.
I recommend writing-documentation-with-diataxis for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Keeps context tight: writing-documentation-with-diataxis is the kind of skill you can hand to a new teammate without a long onboarding doc.
writing-documentation-with-diataxis has been reliable in day-to-day use. Documentation quality is above average for community skills.
writing-documentation-with-diataxis fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
writing-documentation-with-diataxis has been reliable in day-to-day use. Documentation quality is above average for community skills.
Solid pick for teams standardizing on skills: writing-documentation-with-diataxis is focused, and the summary matches what you get after install.
Solid pick for teams standardizing on skills: writing-documentation-with-diataxis is focused, and the summary matches what you get after install.
We added writing-documentation-with-diataxis from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Keeps context tight: writing-documentation-with-diataxis is the kind of skill you can hand to a new teammate without a long onboarding doc.
showing 1-10 of 35