From user-docs-writer
Define a documentation content strategy using the Diataxis framework — map existing content, identify gaps across tutorials/how-to/reference/explanation quadrants, and plan content creation. Use when establishing or auditing a documentation practice.
npx claudepluginhub hpsgd/turtlestack --plugin user-docs-writerThis skill is limited to using the following tools:
Define a documentation content strategy for $ARGUMENTS using the [Diataxis framework](https://diataxis.fr/). This skill inventories existing content, maps coverage across the four Diataxis quadrants, identifies gaps, and produces a prioritised content roadmap.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Retrieves current documentation, API references, and code examples for libraries, frameworks, SDKs, CLIs, and services via Context7 CLI. Ideal for API syntax, configs, migrations, and setup queries.
Uses ctx7 CLI to fetch current library docs, manage AI coding skills (install/search/generate), and configure Context7 MCP for AI editors.
Define a documentation content strategy for $ARGUMENTS using the Diataxis framework. This skill inventories existing content, maps coverage across the four Diataxis quadrants, identifies gaps, and produces a prioritised content roadmap.
Scan the documentation directory and categorise every piece by Diataxis quadrant:
### Content Inventory
| # | Document | Path | Quadrant | Feature area | Last updated | Status |
|---|---|---|---|---|---|---|
| 1 | [Title] | [path] | Tutorial / How-to / Reference / Explanation | [feature] | [date] | Current / Stale / Orphaned |
| 2 | ... | ... | ... | ... | ... | ... |
Use Glob to find documentation files (**/*.md, **/docs/**, **/*.rst, **/*.mdx) and Grep to identify content patterns:
Quadrant definitions:
| Quadrant | Purpose | Orientation | User need |
|---|---|---|---|
| Tutorial | Learning-oriented | Study | "Teach me" — guided experience for beginners |
| How-to | Task-oriented | Work | "Show me how" — steps to achieve a specific goal |
| Reference | Information-oriented | Work | "Tell me the facts" — accurate, complete technical description |
| Explanation | Understanding-oriented | Study | "Help me understand" — context, reasoning, background |
Output: Complete inventory table with quadrant classification and staleness assessment.
Create a feature-by-quadrant coverage matrix:
### Coverage Matrix
| Feature / Area | Tutorial | How-to | Reference | Explanation | Overall |
|---|---|---|---|---|---|
| [Feature 1] | [Yes/No/Stale] | [Yes/No/Stale] | [Yes/No/Stale] | [Yes/No/Stale] | [Complete/Partial/Missing] |
| [Feature 2] | ... | ... | ... | ... | ... |
| Authentication | Yes | Yes | Stale | No | Partial |
| API integration | No | Yes | Yes | No | Partial |
| Deployment | No | No | Yes | No | Missing |
### Coverage Summary
| Quadrant | Documents | % of total | Assessment |
|---|---|---|---|
| Tutorial | [count] | [%] | [Adequate / Insufficient / Missing] |
| How-to | [count] | [%] | ... |
| Reference | [count] | [%] | ... |
| Explanation | [count] | [%] | ... |
Output: Coverage matrix showing which features have which content types, plus quadrant summary.
Analyse the coverage matrix for specific gap patterns:
### Gap Analysis
#### Missing content (no documentation exists)
| # | Feature | Missing quadrant(s) | Impact | Priority |
|---|---|---|---|---|
| G1 | [Feature] | [Tutorial / How-to / Reference / Explanation] | [Who is affected and how] | [High/Medium/Low] |
#### Stale content (exists but outdated)
| # | Document | Path | Last updated | What changed since |
|---|---|---|---|---|
| G2 | [Title] | [path] | [date] | [What in the product changed that makes this stale] |
#### Orphaned content (exists but unreachable)
| # | Document | Path | Issue |
|---|---|---|---|
| G3 | [Title] | [path] | [Not linked from navigation / references removed feature / duplicate] |
#### Common gap patterns
| Pattern | Check | Found? |
|---|---|---|
| **Explanation gap** | Teams write how-to but not why — look for features with how-to but no explanation | [Yes/No] |
| **Tutorial gap** | Onboarding path has reference docs but no guided tutorial | [Yes/No] |
| **Reference gap** | APIs or config options undocumented or auto-generated but incomplete | [Yes/No] |
| **Freshness gap** | Docs not updated when features changed | [Yes/No] |
Output: Gap analysis with specific missing content, stale content, and orphaned content.
Rank gaps by impact and sequence content creation:
### Prioritisation Criteria
| Factor | Weight | Rationale |
|---|---|---|
| **User traffic** | High | Most-visited features need content first |
| **Onboarding path** | High | New users must succeed — tutorials and getting-started content |
| **Support ticket volume** | High | Gaps that generate support requests cost real money |
| **Feature completeness** | Medium | Features with zero docs before features with partial docs |
| **Quadrant balance** | Medium | Missing explanation docs before second how-to for same feature |
| **Staleness risk** | Low | Update stale docs during regular maintenance, not as priority |
### Prioritised Content Backlog
| Priority | Content piece | Quadrant | Feature | Effort | Owner | Deadline |
|---|---|---|---|---|---|---|
| P0 | [Title — e.g., "Getting started tutorial"] | Tutorial | Onboarding | [S/M/L] | [role] | [date] |
| P0 | [Title] | ... | ... | ... | ... | ... |
| P1 | [Title] | ... | ... | ... | ... | ... |
| P2 | [Title] | ... | ... | ... | ... | ... |
P0 = blocks user onboarding or generates frequent support tickets. P1 = significant gap for active users. P2 = completeness and polish.
Output: Prioritised content backlog with effort estimates, owners, and deadlines.
Establish quality standards that apply to all documentation:
### Content Standards
| Standard | Policy |
|---|---|
| **Style guide** | [Reference — e.g., "Follow Google Developer Documentation Style Guide" or link to internal guide] |
| **Review process** | [Who reviews — peer review, technical review, editorial review] |
| **Freshness policy** | [How often docs are reviewed — e.g., "Every 6 months or when related feature changes"] |
| **Ownership model** | [Who owns docs — feature team owns all quadrants for their feature] |
| **Templates** | [Standard templates for each quadrant — tutorial template, how-to template, etc.] |
| **Testing** | [How to verify docs — code samples tested, links checked, screenshots current] |
| **Versioning** | [How docs track product versions — versioned docs, changelog, migration guides] |
### Per-Quadrant Standards
| Quadrant | Structure | Length | Must include |
|---|---|---|---|
| **Tutorial** | Numbered steps with outcomes | 10-30 minutes to complete | Prerequisites, working example at end, next steps |
| **How-to** | Numbered steps, minimal explanation | 2-5 minutes to read | Goal in title, prerequisites, single outcome |
| **Reference** | Tables, parameter lists, schemas | Complete coverage, scannable | Every parameter, every option, every error code |
| **Explanation** | Prose with diagrams | As long as needed | Why, not how; context, not procedure |
If a writing style guide exists in the codebase, reference it. If /writing-style:style-guide has been used, align with its outputs.
Output: Content standards table with per-quadrant requirements.
Synthesise the prioritised backlog into a phased roadmap:
### Content Roadmap
#### Phase 1: Foundation (Weeks 1-4)
**Goal:** Users can onboard and complete core tasks
| Content piece | Quadrant | Owner | Status |
|---|---|---|---|
| [Title] | Tutorial | [role] | [Not started / In progress / Review / Published] |
| [Title] | How-to | [role] | ... |
#### Phase 2: Completeness (Weeks 5-8)
**Goal:** All major features have reference and how-to coverage
| Content piece | Quadrant | Owner | Status |
|---|---|---|---|
| ... | ... | ... | ... |
#### Phase 3: Depth (Weeks 9-12)
**Goal:** Explanation content and advanced tutorials
| Content piece | Quadrant | Owner | Status |
|---|---|---|---|
| ... | ... | ... | ... |
#### Ongoing: Maintenance
- [ ] Monthly freshness review — check docs modified > 6 months ago
- [ ] Feature-change trigger — update docs when feature PRs merge
- [ ] Quarterly coverage audit — re-run coverage matrix
- [ ] Support ticket review — identify docs gaps from ticket themes
Output: Phased roadmap with owners, deadlines, and maintenance schedule.
# Content Strategy: [Product/Feature Area]
**Date:** [date] | **Author:** [name] | **Status:** [Draft/Approved]
## 1. Content Inventory
[From Step 1 — document list with quadrant classification]
## 2. Coverage Matrix
[From Step 2 — feature × quadrant matrix]
## 3. Gap Analysis
[From Step 3 — missing, stale, and orphaned content]
## 4. Prioritised Backlog
[From Step 4 — ranked content pieces with owners]
## 5. Content Standards
[From Step 5 — style, review, freshness policies]
## 6. Roadmap
[From Step 6 — phased plan with maintenance schedule]
/writing-style:style-guide — writing standards for documentation. Define the style guide first or align content strategy with existing standards./developer-docs-writer:write-api-docs — reference quadrant content for APIs. Use for detailed API reference documentation./user-docs-writer:write-onboarding — tutorial quadrant content for new users. Use for guided onboarding experiences.