javierhbr/agnostic-agent-loop/diataxis
Claude Code and agent skill by javierhbr/agnostic-agent-loop
- community
Checking that the SKILL.md file is still in the repository.
Apply the Diataxis framework to create or improve technical documentation. Use when writing tutorials, how-to guides, reference docs, or explanations.
Install
npx vskill@latest install javierhbr/agnostic-agent-loop/diataxisSKILL.md
The same SKILL.md was published earlier as javierhbr/agnostic-agent-loop/diataxis.
skill:writing-documentation-with-diataxis
Does exactly this
Creates documentation that "feels good to use" by applying Diataxis, a framework that identifies four distinct documentation types based on user needs and context.
When to use
- Writing tutorials, how-to guides, reference documentation, or explanations
- Reviewing documentation to improve quality
- Deciding what type of documentation to create
- Improving existing documentation for flow and clarity
Diataxis: The Two Dimensions
Documentation serves practitioners based on two key dimensions:
1. Action vs Cognition — Doing things vs understanding things 2. Acquisition vs Application — Learning vs working
These create exactly four documentation types:
| Acquisition (Learning) | Application (Working) | ||
|---|---|---|---|
| Action | Tutorials | How-to Guides | |
| Cognition | Explanations | Reference |
The Diataxis Compass — Your Primary Tool
When uncertain which type you need, answer two questions:
- Does this inform ACTION or COGNITION?
- Action: practical steps, doing things
- Cognition: theoretical knowledge, understanding
- Does it serve ACQUISITION or APPLICATION?
- Acquisition: learning, study
- Application: working, getting things done
Then apply the matrix above.
Core Principles by Type
Tutorials (Learning by Doing)
- You're responsible for the learner's success
- Focus on doing, not explaining
- One path only — no alternatives
- Perfectly repeatable
- Build the "feeling of doing"
How-to Guides (Working to Achieve Goals)
- Address real-world problems, not tool features
- Assume competence
- Provide logical sequence with conditionals ("If X, do Y")
- Seek flow — anticipate the next move
- Focus on tasks, not tools
Reference (Facts While Working)
- Describe, don't instruct
- Neutral, factual tone
- Completeness matters
- Use standard, consistent patterns
- Provide succinct examples
Explanation (Learning to Understand)
- Talk about the subject from multiple angles
- Answer "why" — design decisions, history, constraints
- Make connections to related concepts
- Permit opinion and perspective
- Take the higher, wider view
Workflow: Creating Documentation
- Identify user need — Who is the user? (learner or practitioner) What do they need? (do or understand)
- Apply the compass — Determine which documentation type serves this need
- Apply principles — Follow the core principles for that type (see above)
- Check boundaries — Does any part serve a different user need? If yes → split and link
Workflow: Reviewing Documentation
- Choose a piece — Any page, section, or paragraph
- Challenge it — What user need does this serve? Which type should it be?
- Use the compass — If type is unclear, apply the two questions above
- Identify one improvement — What would help right now?
- Make that improvement — According to Diataxis principles
- Repeat — With another piece
Key Principles
- Flow is paramount — Anticipate user needs, minimise context switching
- Boundaries are protective — Keep documentation types separate
- Structure follows content — Don't create empty sections; write what serves real needs
- One need at a time — Each piece serves one user need
Common Mistakes to Avoid
- Tutorial/How-to conflation — Tutorials are for learning; how-to guides are for working
- Over-explaining in tutorials — Trust that learning happens through doing
- 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 docs — Move explanation to separate docs and link
If you need more detail
→ resources/principles.md — Comprehensive principles for each documentation type with examples → resources/reference.md — Quality framework, complex scenarios, and additional guidance
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinginternal/skills/packs/diataxis/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/javierhbr/agnostic-agent-loop/diataxis)