Write a Tutorial
Purpose
Give a newcomer a safe, reliable first success with the product by leading them through one concrete project, so they gain confidence and a mental model before they need how-to guides or reference.
When to use
- New users or developers need a first hands-on experience.
- A "getting started" path is missing or overloaded with options and theory.
- A new product, API or platform capability needs an onboarding lesson.
When not to use
- Readers already know the basics and want to achieve a specific goal. Use
how-to-guide.
- Documenting all tasks of a feature for end users. Use
user-guide.
- Explaining concepts or architecture in depth. That is explanation content; see
docs-information-architecture.
Inputs
Required:
- The product or technology and the concrete thing the learner will build or do.
- The learner profile (role, assumed prior knowledge).
Optional, improves quality:
- Environment details (sandbox, sample data, versions to pin), sample code, known setup pitfalls.
- Target duration, style guide.
If the end result or learner profile is missing, ask for it. Do not invent commands, API endpoints, parameters or outputs; mark any you cannot confirm [TBD – verify].
Process
- Define one learning outcome ("By the end, you will have ...") and a realistic duration; cut anything that does not serve it.
- Choose a meaningful but minimal project; the learner must see a working result, not a toy fragment.
- List prerequisites precisely: accounts, tools, versions, prior knowledge; offer a sandbox or sample data so the path cannot fail on missing access.
- Break the path into 4-8 sections, each ending in a visible, checkable result ("You should now see ...").
- Write steps as direct instructions with exact commands, code and inputs; the learner should never have to choose between options.
- After each significant step show the expected output, so learners can confirm they are on track; add one likely error and its fix where learners commonly fail.
- Keep explanation minimal: one sentence of "why" at most, with links to explanation pages for depth.
- Test the path mentally end to end (or ask the user to run it): every step must depend only on earlier steps, and versions must be pinned.
- End with a recap of what was learned and 2-3 next steps linking to how-to guides and reference.
- Mark all unverified commands, outputs and UI labels
[TBD – verify] and list them for a technical review.
- If the user's goal continues, suggest
how-to-guide for follow-up tasks or docs-information-architecture to place the tutorial in the documentation set.
Output format
# Tutorial: <what you will build>
Duration: <~N min> | Level: <beginner/...> | Tested with: <versions or TBD>
In this tutorial you will <learning outcome>.
## Before You Start
- <account / tool / version>
- <prior knowledge>
## Step 1: <action-oriented title>
<one sentence why>
```<language>
<exact command or code>
```
You should see:
```
<expected output>
```
> If you see `<error>`, <fix>.
## Step 2: ...
## What You Learned
- ...
## Next Steps
- <how-to guide link>
- <reference link>
## Items to Verify
Quality checklist
Common pitfalls
- Teaching everything at once: options, flags, alternatives. Pick one path; move choices to how-to guides.
- Steps that only work on the author's machine. Pin versions, provide sample data, state OS differences.
- Ending without a working result, which destroys the learner's confidence.
Example
Input: "Payments API tutorial: create a test payment and receive the webhook, 30 minutes, developers new to our API."
Excerpt of output:
- Weak: "Payments can be created in several ways (API, SDK, dashboard). You may also want to configure idempotency keys and retries..."
- Strong: "## Step 2: Create your first test payment / Run the command below with your sandbox key. You should see a response with
"status": "pending" [TBD – verify field names]. In Step 3 you will receive the webhook that confirms it."
1---2name: tutorial3description: "Writes a learning-oriented tutorial in the Diátaxis sense: a single guided path in which a newcomer builds something concrete, with a defined learning outcome, prerequisites, small verifiable steps, visible results after each step and no detours. Use when onboarding new users or developers to a product, API, SDK or platform, when a \"getting started\" or first-project lesson is needed, or when existing getting-started content is a mix of reference and how-to."4license: MIT5metadata:6 source: https://skillmd.com/skills/muratdincer/tutorial7 version: "1.0.0"8 language: en9 category: 12-technical-writing10 role: technical-writer11 area: docs12 title: "Write a tutorial"13 related: "how-to-guide, user-guide, docs-information-architecture, technical-onboarding, readme-writing"14 prompt: "Write a getting-started tutorial for our payments API where a developer creates a test payment and handles the webhook, in about 30 minutes."15---1617# Write a Tutorial1819## Purpose20Give a newcomer a safe, reliable first success with the product by leading them through one concrete project, so they gain confidence and a mental model before they need how-to guides or reference.2122## When to use23- New users or developers need a first hands-on experience.24- A "getting started" path is missing or overloaded with options and theory.25- A new product, API or platform capability needs an onboarding lesson.2627## When not to use28- Readers already know the basics and want to achieve a specific goal. Use `how-to-guide`.29- Documenting all tasks of a feature for end users. Use `user-guide`.30- Explaining concepts or architecture in depth. That is explanation content; see `docs-information-architecture`.3132## Inputs33Required:34- The product or technology and the concrete thing the learner will build or do.35- The learner profile (role, assumed prior knowledge).3637Optional, improves quality:38- Environment details (sandbox, sample data, versions to pin), sample code, known setup pitfalls.39- Target duration, style guide.4041If the end result or learner profile is missing, ask for it. Do not invent commands, API endpoints, parameters or outputs; mark any you cannot confirm `[TBD – verify]`.4243## Process441. Define one learning outcome ("By the end, you will have ...") and a realistic duration; cut anything that does not serve it.452. Choose a meaningful but minimal project; the learner must see a working result, not a toy fragment.463. List prerequisites precisely: accounts, tools, versions, prior knowledge; offer a sandbox or sample data so the path cannot fail on missing access.474. Break the path into 4-8 sections, each ending in a visible, checkable result ("You should now see ...").485. Write steps as direct instructions with exact commands, code and inputs; the learner should never have to choose between options.496. After each significant step show the expected output, so learners can confirm they are on track; add one likely error and its fix where learners commonly fail.507. Keep explanation minimal: one sentence of "why" at most, with links to explanation pages for depth.518. Test the path mentally end to end (or ask the user to run it): every step must depend only on earlier steps, and versions must be pinned.529. End with a recap of what was learned and 2-3 next steps linking to how-to guides and reference.5310. Mark all unverified commands, outputs and UI labels `[TBD – verify]` and list them for a technical review.5411. If the user's goal continues, suggest `how-to-guide` for follow-up tasks or `docs-information-architecture` to place the tutorial in the documentation set.5556## Output format57````markdown58# Tutorial: <what you will build>59Duration: <~N min> | Level: <beginner/...> | Tested with: <versions or TBD>6061In this tutorial you will <learning outcome>.6263## Before You Start64- <account / tool / version>65- <prior knowledge>6667## Step 1: <action-oriented title>68<one sentence why>69```<language>70<exact command or code>71```72You should see:73```74<expected output>75```76> If you see `<error>`, <fix>.7778## Step 2: ...7980## What You Learned81- ...8283## Next Steps84- <how-to guide link>85- <reference link>8687## Items to Verify88````8990## Quality checklist91- [ ] There is exactly one path with no optional branches or "you could also".92- [ ] Every section ends with a visible, checkable result.93- [ ] Commands, code, outputs and versions are exact or marked `[TBD – verify]`.94- [ ] Explanation is minimal and links out for depth.95- [ ] Prerequisites cover everything the first step needs.96- [ ] All checks pass; if any fails, revise the output and re-run this checklist before answering.9798## Common pitfalls99- Teaching everything at once: options, flags, alternatives. Pick one path; move choices to how-to guides.100- Steps that only work on the author's machine. Pin versions, provide sample data, state OS differences.101- Ending without a working result, which destroys the learner's confidence.102103## Example104Input: "Payments API tutorial: create a test payment and receive the webhook, 30 minutes, developers new to our API."105106Excerpt of output:107- Weak: "Payments can be created in several ways (API, SDK, dashboard). You may also want to configure idempotency keys and retries..."108- Strong: "## Step 2: Create your first test payment / Run the command below with your sandbox key. You should see a response with `"status": "pending"` `[TBD – verify field names]`. In Step 3 you will receive the webhook that confirms it."