Back to list
wahidyankf

docs-applying-diataxis-framework

by wahidyankf

Open-source Sharia-compliant enterprise platform. Building foundations in the open. Early Phase 0, pre-alpha. No timelines—building it right.

4🍴 1📅 Jan 24, 2026

SKILL.md


name: docs-applying-diataxis-framework description: Diátaxis documentation framework for organizing content into four categories - tutorials (learning-oriented), how-to guides (problem-solving), reference (technical specifications), and explanation (conceptual understanding). Essential for creating and organizing documentation in docs/ directory.

Applying Diátaxis Framework

Purpose

This Skill provides guidance for applying the Diátaxis documentation framework to organize and create documentation. Diátaxis categorizes documentation into four distinct types based on user needs and context.

When to use this Skill:

  • Creating new documentation in docs/
  • Organizing documentation structure
  • Deciding which documentation type to write
  • Reviewing documentation for proper categorization
  • Understanding documentation organization principles

The Four Documentation Types

Tutorials (Learning-Oriented)

Purpose: Guide learners through a complete journey to achieve a specific learning outcome.

Characteristics:

  • Learning-oriented (not task-oriented)
  • Hands-on, practical examples
  • Gradual progression from simple to complex
  • Safety and encouragement for beginners
  • Minimal assumptions about prior knowledge

Directory: docs/tutorials/

Example: "Data Tutorial - Beginner" teaching fundamentals step-by-step.

How-To Guides (Problem-Solving)

Purpose: Provide step-by-step instructions to solve specific problems or complete specific tasks.

Characteristics:

  • Goal-oriented and task-focused
  • Assumes basic knowledge
  • Practical, actionable steps
  • Specific to one problem/task
  • Flexible order (can jump to relevant guide)

Directory: docs/how-to/

Example: "How to Add a New Nx App" - concrete steps for a specific task.

Reference (Technical Specifications)

Purpose: Provide factual, accurate technical information for lookup.

Characteristics:

  • Information-oriented
  • Accurate, comprehensive technical details
  • Consistent structure
  • Minimal narrative
  • Lookup-friendly organization

Directory: docs/reference/

Example: "Monorepo Structure Reference" - technical specifications.

Explanation (Conceptual Understanding)

Purpose: Explain concepts, design decisions, principles, and context.

Characteristics:

  • Understanding-oriented
  • Conceptual, not procedural
  • Provides context and rationale
  • Explores alternatives and trade-offs
  • Discusses WHY, not just HOW

Directory: docs/explanation/

Example: "Repository Governance Architecture" - explains six-layer system concept.

Quick Decision Matrix

User Wants To...Documentation TypeDirectory
Learn a skillTutorialdocs/tutorials/
Solve a specific problemHow-Todocs/how-to/
Look up technical detailsReferencedocs/reference/
Understand concepts/WHYExplanationdocs/explanation/

Organizing docs/explanation/

The explanation directory has special subdirectories:

  • vision/ - Foundational purpose (WHY we exist, WHAT change we seek)
  • principles/ - Foundational values and core principles
  • conventions/ - Documentation standards and rules
  • development/ - Software development practices
  • workflows/ - Multi-step orchestrated processes

Common Mistakes

❌ Mistake 1: Mixing documentation types

Wrong: Tutorial that jumps to reference-style technical specs Right: Keep tutorials narrative and learning-focused; reference technical details in separate reference doc

❌ Mistake 2: Wrong directory placement

Wrong: Placing "How to configure X" in docs/explanation/ Right: Place in docs/how-to/ (it's task-oriented, not conceptual)

❌ Mistake 3: Reference as tutorial

Wrong: Making reference documentation tutorial-like with extensive narrative Right: Keep reference factual, structured, lookup-friendly

❌ Mistake 4: Explanation as how-to

Wrong: Step-by-step instructions in explanation documents Right: Explain concepts and rationale; link to how-to for implementation steps

Content Type Guidelines

Tutorials:

  • Use encouraging, educational tone
  • Include practical exercises
  • Build incrementally
  • Provide complete working examples
  • Assume minimal prior knowledge

How-To Guides:

  • Use imperative voice ("Do this")
  • Focus on one problem/task
  • Provide specific, actionable steps
  • Assume basic knowledge
  • Skip unnecessary explanation

Reference:

  • Use consistent structure
  • Provide comprehensive technical details
  • Organize for easy lookup
  • Minimize narrative
  • Focus on accuracy

Explanation:

  • Use conceptual, exploratory tone
  • Explain WHY and context
  • Discuss alternatives and trade-offs
  • Provide background and rationale
  • Connect to broader concepts

References

Primary Convention: Diátaxis Framework Convention

Related Conventions:

Related Skills:

  • docs__applying-content-quality - Universal markdown quality standards

This Skill packages Diátaxis framework knowledge for organizing and creating properly categorized documentation. For comprehensive details, consult the primary convention document.

Score

Total Score

75/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon