plugins/content-strategy/skills/content-strategy-patterns/SKILL.md
# Content Strategy Patterns ## Diátaxis Framework The four content types serve fundamentally different user needs. Mixing types in a single article creates confusion. | Type | User Need | User State | Analogy | |------|-----------|-----------|---------| | Tutorial | Learning | Studying | Teaching a child to cook | | How-To | Accomplishing a task | Working | Recipe for experienced cook | | Reference | Looking up information | Working | Ingredient reference card | | Explanation | Understanding
npx skillsauth add hermeticormus/librecopy-claude-code plugins/content-strategy/skills/content-strategy-patternsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The four content types serve fundamentally different user needs. Mixing types in a single article creates confusion.
| Type | User Need | User State | Analogy | |------|-----------|-----------|---------| | Tutorial | Learning | Studying | Teaching a child to cook | | How-To | Accomplishing a task | Working | Recipe for experienced cook | | Reference | Looking up information | Working | Ingredient reference card | | Explanation | Understanding | Studying | Article on nutrition science |
Ask: "What is the user doing when they need this content?"
# Bad: explanation mixed into how-to (slows down task completion)
## How to Connect to the Database
PostgreSQL is a relational database management system originally developed
at the University of California Berkeley. It uses a client-server model...
[2 paragraphs of background]
Here's how to connect:
1. Install the driver...
# Good: how-to is just the task
## How to Connect to the Database
**Prerequisites**: PostgreSQL 14+, `pg` npm package installed
1. Import the client: `import { Client } from 'pg'`
2. Configure the connection: ...
3. Test the connection: ...
For background on the connection pool design, see [Connection Architecture](/concepts/connection-pool).
Use ROT to classify articles for action in a content audit:
| Category | Definition | Signal | Action | |----------|-----------|--------|--------| | Redundant | Duplicate or heavily overlapping content | 2+ articles answer the same question | Merge or redirect | | Outdated | References deprecated features, old UI, or past versions | Last updated date, version references | Rewrite or archive | | Trivial | Low-value content that provides little help | Low traffic, thin content, stub articles | Delete or merge |
When the same content must appear in multiple contexts, use includes/snippets rather than copy-paste:
<!-- shared-snippet: auth-note.md -->
> **Authentication required**: All endpoints require a Bearer token.
> Obtain tokens via POST /auth/token.
<!-- In API guide -->
## Working with the API
%%include auth-note.md%%
<!-- In quickstart -->
## Making Your First Request
%%include auth-note.md%%
Docusaurus uses {@import}, MkDocs uses snippets, GitBook uses {% include %}.
Rule of 7 (Miller's Law applied to navigation): Top-level navigation items should number 5-7. Beyond that, users cannot hold the structure in working memory.
3-click rule: Every article should be reachable within 3 clicks from the home page.
Breadth vs depth tradeoff:
Most developer docs benefit from shallow-broad: developers typically search or use Ctrl+K, not breadcrumb navigation.
| Strategy | Tools | When to use |
|----------|-------|-------------|
| Per-version branches | Docusaurus versioning, git branches | Major versions with breaking changes; active support for 2+ versions |
| Conditional content | MDX {props.version}, Hugo shortcodes | Minor differences between versions; single codebase preferred |
| Version-agnostic + migration guides | Single docs + migration guide articles | When API is stable; changes are additive |
| Date-stamped snapshots | PDF exports, archive folders | Compliance, regulated industries |
Measure what indicates user success, not just page views:
| Metric | What it indicates | Tool | |--------|------------------|------| | Search success rate | Users find what they searched for | Algolia Analytics, Docsearch | | Time-to-first-success | How long from landing to completing quickstart | Custom GA4 events | | Search exit rate | Users search and leave without clicking | GA4 + Algolia | | Article helpfulness rating | Thumbs up/down feedback | Built into Docusaurus, MkDocs Material | | Support ticket deflection | Reduction in tickets for topics covered in docs | Zendesk integration, correlation |
Threshold targets (baseline to aim for):
# Bad: users don't care about internal org
/platform-team/
/infrastructure-team/
/product-team/
# Good: organize by user goal
/get-started/
/deploy/
/configure/
Every how-to should anticipate failure. At minimum: what to do if a prerequisite is not met, what to do if the expected output doesn't appear.
Screenshots without version context become wrong immediately after a UI change. Add version stamps or prefer text-based instructions where the UI changes frequently.
Articles with no inbound links or navigation path. Users can only find them via search. Run link graph analysis to identify orphans.
tools
# User Doc Patterns > Patterns for writing clear, accessible end-user documentation. ## Knowledge Base ### User Documentation vs Developer Documentation | User Docs | Developer Docs | |-----------|---------------| | Task-oriented ("How do I...") | Concept-oriented ("How does it work...") | | Plain language | Technical language | | Screenshots and visual aids | Code examples | | Step-by-step procedures | API references | | Feature names and UI labels | Function signatures and parameters | | A
tools
# Tutorial Structures > Pedagogical patterns and frameworks for creating effective technical tutorials. ## Knowledge Base ### The Tutorial Spectrum Tutorials exist on a spectrum between two extremes: | Recipe | Concept Guide | |--------|--------------| | "Do exactly this" | "Understand this idea" | | Step-by-step | Explanation-heavy | | Fast to complete | Deep understanding | | Low retention | High retention | The best tutorials blend both: steps for doing, explanations for understanding.
tools
# Tutorial Patterns ## Tutorial vs. How-to Guide: The Critical Distinction Before writing, identify which document is actually needed: | Tutorial | How-to Guide | |----------|-------------| | "Build a REST API in Node.js" | "Add JWT authentication to your Express API" | | For someone new to this | For someone who knows the domain | | Explains why each step is done | Steps are efficient, minimal explanation | | Has checkpoints, explores | Numbered steps, no detours | | Learner reaches a comple
tools
# Tech Blogging Patterns ## The Developer Reading Pattern Developers do not read technical posts linearly. They scan in this order: 1. Headline (is this relevant to me?) 2. Code blocks (is this real code I can use?) 3. Headers (what does this cover?) 4. First paragraph (what's the point?) 5. Key takeaways / conclusion (is it worth reading fully?) Design for scanning first, reading second. Put real code within the first 25% of the post. ## The Before/After Pattern The contrast between a pain