agentleFS
littlebearappslittlebearapps/pitchdocs/.claude/skills/user-guides/SKILL.md

user-guides

Skill8 starsChanged 8 months agoMITView on GitHub

Generates task-oriented user guides and how-to documentation for a repository. Creates docs/guides/ with step-by-step instructions for common workflows, integrations, and advanced usage. Links guides into README.md and CONTRIBUTING.md. Use when a project needs user-facing how-to documentation beyond the README quickstart.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 8 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All documentation should be classified into one of four quadrants from the Diataxis framework.

    line 17
  2. Very specific:

    Every guide follows this structure (how-to template shown.

    line 62
  3. Distinctive:

    Create guides in this order:

    line 150
  4. Distinctive:

    Read the relevant source code to understand the feature

    line 161
  5. Distinctive:

    Add screenshots or diagrams for complex workflows

    line 164
  6. Very specific:

    Add a ## Documentation section to README.md with a table linking each guide (title + one-line description) and a "Full documentation: …

    line 169
  7. Distinctive:

    Numbered steps: Every guide is a numbered sequence

    line 174
  8. Distinctive:

    Error recovery: After each step, show common failure modes and how to fix them

    line 176
  9. Distinctive:

    Cross-links: Every guide links to related guides, Diataxis siblings, and back to the hub

    line 177
  10. Distinctive:

    Consistent spelling: follow the project's existing language conventions

    line 179
  11. Very specific:

    Copy-paste-ready code: Every code block must be runnable as-is — no ...

    line 180

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

User Guide Generator

Philosophy

User guides answer the question: "How do I do [specific thing]?"

They complement the README (which sells and introduces) by providing detailed, task-oriented instructions for users who are already onboard.

Diataxis Framework

All documentation should be classified into one of four quadrants from the Diataxis framework. Each quadrant serves a different reader need:

QuadrantPurposeReader StateDirectory
TutorialsLearning-oriented lessons"I want to learn"docs/tutorials/
How-to GuidesTask-oriented recipes"I want to do X"docs/guides/
ReferenceInformation-oriented lookup"I need to check Y"docs/reference/ or docs/api/
ExplanationUnderstanding-oriented context"I want to understand why"docs/explanation/

Rules:

  • Classify every document into exactly one quadrant before writing — don't mix tutorial prose with reference tables
  • Tutorials walk through a complete learning journey; guides solve a specific task
  • Reference docs are dry, accurate, and complete. Explanation docs cover architecture decisions and "why".
  • At minimum, provide How-to Guides (this skill's primary output) and link to any existing reference docs
  • During guide discovery (Step 1), classify each existing doc into a quadrant. Flag any quadrant with zero documents.

See SKILL-reference.md for frontmatter field tables and title conventions.

Guide Structure

Directory Layout

docs/
├── tutorials/                  # Learning-oriented lessons (Diataxis: Tutorial)
│   └── build-your-first-app.md
├── guides/                     # Task-oriented how-to recipes (Diataxis: How-to)
│   ├── getting-started.md      # First-time setup, expanded quickstart
│   ├── configuration.md        # All config options explained
│   ├── [task-name].md          # One guide per common task
│   └── troubleshooting.md      # Common problems and solutions
├── reference/                  # Information-oriented lookup (Diataxis: Reference)
│   ├── api.md                  # API reference
│   └── cli.md                  # CLI reference
├── explanation/                # Understanding-oriented context (Diataxis: Explanation)
│   └── architecture.md         # Design decisions and architecture
└── README.md                   # Docs index / hub page

docs/README.md (Hub Page)

See SKILL-templates.md for the hub page template.

Individual Guide Format

Every guide follows this structure (how-to template shown; tutorial, reference, and explanation templates are in SKILL-templates.md — ask Claude to load it if needed):

---
title: "[Task Name] Guide"
description: "One-sentence summary of what the reader will accomplish."
type: how-to
difficulty: beginner
time_to_complete: "10 minutes"
related:
  - guides/getting-started.md
  - reference/cli.md
---

# [Task Name] Guide

> **Summary**: What you'll accomplish by the end of this guide.

## Prerequisites

- What you need before starting
- Link to getting-started if they haven't done setup

## Steps

### 1. [First Step]

Explanation of what this step does and why.

\`\`\`bash
command here
\`\`\`

Expected output:
\`\`\`
output here
\`\`\`

### 2. [Second Step]

...

### 3. [Verify It Works]

Always end with a verification step so the user knows they succeeded.

\`\`\`bash
verification command
\`\`\`

You should see:
\`\`\`
expected success output
\`\`\`

## What's Next?

- [Related Guide](link) — natural next step
- [Advanced Topic](link) — for power users
- [Back to Docs](../README.md)

Guide Discovery Workflow

Step 1: Identify What Guides Are Needed

Analyse the project to find:

# Check existing docs
find docs/ -name "*.md" 2>/dev/null | sort

# Check README for referenced guides that may not exist
grep -oE '\[.*?\]\(docs/[^)]+\)' README.md 2>/dev/null

# Check GitHub issues for common questions
gh issue list --label "question" --state all --limit 30 2>/dev/null
gh issue list --label "help wanted" --state all --limit 30 2>/dev/null

# Check discussions for common topics
gh api repos/{owner}/{repo}/discussions --jq '.[].title' 2>/dev/null | head -20

# Check for configuration files users need to understand
ls *.config.* .env.example wrangler.* tsconfig.* 2>/dev/null

Step 2: Prioritise Guides

Create guides in this order:

  1. Getting Started — always first, expanded version of README quickstart
  2. Configuration — if the project has any config files or env vars
  3. Most-asked-about tasks — based on issues and discussions
  4. Deployment — if the project is deployed
  5. Migration — if there have been breaking version changes
  6. Troubleshooting — compile from closed issues and common errors

Step 3: Write Guides

For each guide:

  1. Read the relevant source code to understand the feature
  2. Actually trace the user journey step by step
  3. Include exact commands, expected outputs, and error handling
  4. Add screenshots or diagrams for complex workflows
  5. Cross-link to related guides and the README

Step 4: Link Into README

Add a ## Documentation section to README.md with a table linking each guide (title + one-line description) and a "Full documentation: docs/" footer. See SKILL-templates.md for the hub page template.

Writing Style

  • Task-oriented: "How to deploy to production" not "Deployment documentation"
  • Numbered steps: Every guide is a numbered sequence
  • Expected output: Show what success looks like after each step
  • Error recovery: After each step, show common failure modes and how to fix them
  • Cross-links: Every guide links to related guides, Diataxis siblings, and back to the hub
  • Active voice: "Run the command" not "The command should be run"
  • Consistent spelling: follow the project's existing language conventions
  • Copy-paste-ready code: Every code block must be runnable as-is — no ... placeholders, no incomplete snippets, no "replace with your value" without showing the exact replacement

See SKILL-reference.md for video/screencast placeholder guidance.

See SKILL-templates.md for copy-paste-ready code examples, troubleshooting template, error recovery patterns, and Diataxis cross-links.

Anti-Patterns

  • Don't dump API reference into guides — guides are task-oriented, API docs are reference (use Diataxis separation)
  • Don't assume knowledge — link to prerequisites
  • Don't skip verification steps — users need to know they succeeded
  • Don't write walls of text — use code blocks, tables, and short paragraphs
  • Don't orphan guides — every guide must be linked from README or docs hub
  • Don't mix guide and reference — keep them in separate Diataxis quadrants
  • Don't use placeholder code — every code block must be copy-paste-ready with realistic values
  • Don't bury prerequisites in prose — use a structured prerequisites block (see doc-standards GEO section)
  • Don't skip frontmatter — every guide needs at minimum title, description, and type fields

Companion Files

  • SKILL-templates.md — Hub page, how-to code examples, tutorial/reference/explanation templates, troubleshooting, error recovery, Diataxis cross-links
  • SKILL-reference.md — Frontmatter field tables, title conventions, video/screencast guidance

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.