Docsbook
← Back to catalog
analysis

docs-content-types

Stop mixing tutorials with reference. Classifies each page against the Diátaxis framework (tutorial / how-to / reference / explanation), flags misclassified or hybrid pages, and reports structural violations — the #1 reason users can't find answers in your docs.

Install & use this skill

Pick your AI client — install this single skill and call it.

1. Install
npx skills add Docsbook-io/docs-skills --skill docs-content-types -a claude-code
2. Use
/docs-content-types

Invoke as a slash command in chat.

Or: runtime discovery via Docsbook MCP

Already connected to the Docsbook MCP server? Skip install — ask your agent to load this skill on demand.

@docsbook find_skill "docs-content-types"

docs-content-types — Content Type Analysis (Diátaxis)

Workflow#

  1. Gather the docs — get the list of pages in scope and read their content. If a semantic/graph search tool over the markdown is available (self-hosted markdown-lsp, or a connected Docsbook workspace), prefer it — it's faster and cheaper than scanning files; otherwise read the files directly with grep/find. Prioritize Tier 1 pages (quick-start, pricing, auth, install) first.
  2. Classify each page — determine what Diátaxis type the page is (tutorial / how-to / reference / explanation), then check whether it follows that type's rules correctly.
  3. Produce report — return one JSON issue object per finding; group by page.

Guardrails#

Inputs#

This skill needs two things, by whatever means are available:

Acceleration (optional). Graph/semantic search over the docs makes navigation faster and cheaper than scanning files. You can self-host it with markdown-lsp, or get the same capability in the cloud by connecting a Docsbook workspace. With nothing connected, plain file reads and grep/find work fine.

Checklist#

Tutorial — Learning-Oriented#

Goal: Guide a beginner through a task, building confidence and skill.

Red flags in tutorials:

Good tutorial title pattern: "Build your first workspace" / "Get started in 5 minutes"


How-To Guide — Task-Oriented#

Goal: Help a competent user accomplish a specific real-world task.

Red flags in how-to guides:

Good how-to title pattern: "Set up a custom domain" / "Enable multi-language support"


Reference — Information-Oriented#

Goal: Give accurate, complete, structured information. Consulted, not read linearly.

Red flags in reference pages:

Good reference title pattern: "API endpoints" / "Configuration options" / "CLI commands"


Explanation — Understanding-Oriented#

Goal: Help the reader understand a concept, architecture, or decision.

Red flags in explanation pages:

Good explanation title pattern: "How authentication works" / "Architecture overview" / "Understanding workspaces"

What to Look For#

Severity Problem Detection Signal
critical Page has no identifiable type — chaotic mix No consistent goal, no coherent audience
high Tutorial contains alternative paths "alternatively", "another option", "you can also"
high Reference page has tutorial-style prose Long paragraphs between data entries
high How-to guide teaches foundational concepts "First, let's understand what X is..."
high Tutorial assumes undeclared knowledge Technical terms appear without introduction
medium Tutorial title is a noun, not action-oriented Title doesn't start with verb or learning phrase
medium Explanation page contains step-by-step instructions Numbered list with imperative verbs
medium How-to has rigid single path, no variation No conditional logic, no "if X, do Y"
low Large page that serves two distinct audiences Should be split into two pages
low Tutorial missing prerequisites / "what you'll learn" section No setup checklist at top

Output Format#

{
  "type": "mixed_content_type",
  "severity": "high",
  "skill": "docs-content-types",
  "location": "docs/guides/authentication.md",
  "found": "Page starts as a tutorial (step-by-step setup) but includes a full parameter reference table at the end. These serve different audiences at different moments.",
  "suggestion": "Split into: (1) 'Set up authentication' — how-to for the steps, and (2) 'Authentication reference' — reference page for all parameters. Link between them at the bottom of each.",
  "action": "split_page",
  "constraints": {
    "into": ["how-to", "reference"]
  }
}
{
  "type": "tutorial_branching",
  "severity": "high",
  "skill": "docs-content-types",
  "location": "docs/quick-start.md#line-45",
  "found": "'Alternatively, you can use the CLI instead of the UI.' — tutorials should not offer alternatives; pick the best beginner path.",
  "suggestion": "Remove the alternative. Move CLI instructions to a separate how-to: 'Create a workspace via CLI'. Link to it at the end of the tutorial.",
  "action": "remove_alternative_path",
  "constraints": {}
}
{
  "type": "explanation_contains_instructions",
  "severity": "medium",
  "skill": "docs-content-types",
  "location": "docs/concepts/workspaces.md#line-67",
  "found": "Lines 67-89 contain numbered step-by-step instructions inside a concept explanation page. Readers looking for concepts are disrupted by procedural steps.",
  "suggestion": "Extract the steps into a how-to: 'Create your first workspace'. Replace them here with a link: 'To create a workspace, see [Create your first workspace](...)'",
  "action": "extract_to_new_page",
  "constraints": {
    "target_type": "how-to"
  }
}

Acceptance Criteria#

View source on GitHub →Browse full catalog repo →
Keywords
diataxistutorialhow-toreferenceexplanationcontent-type