How-To Guide Template (Diátaxis)
Goal-oriented how-to guide: prerequisites table, numbered steps with checks, verification, variations, failure table, worked example
How to use: Use it when a competent user needs the steps to reach one specific goal. Fill the goal, prerequisites and the verification check first, then the steps. The main pitfall is mixing teaching or background into the steps; link to a tutorial or explanation instead. else – explanation and reference get links, not paragraphs.
Preview
How-to guide: [Accomplish a specific goal]
Goal-oriented how-to guide in the Diátaxis sense: a recipe for a reader who already knows what they want to achieve and needs the steps to get there. Goal first, steps second, explanation only as links. Credits the Diátaxis framework by Daniele Procida (CC BY-SA 4.0); the text is original. In the Diátaxis compass a how-to guide serves action at work (application). Replace every
[bracketed]value and every passage marked Example. The worked example uses the fictional company Corvid Commerce.
Contents
Document control
| Field | Value |
|---|---|
| Document ID | [DOC-HOWTO-001] |
| Version | [1.0] |
| Status | [Draft / In review / Published] |
| Owner | [@owner] |
| Reviewers | [@sme, @docs-reviewer] |
| Applies to | [Product name] [version range] |
| Tested with | [Product version, CLI version, operating systems] |
| Last tested | YYYY-MM-DD |
| Last updated | YYYY-MM-DD |
| Classification | [Public / Internal] |
Revision history
| Version | Date | Author | Change |
|---|---|---|---|
| 1.0 | 2026-10-24 | [@owner] | Updated to the standard template: prerequisites table, verification section, worked example, Diátaxis attribution |
Goal and audience
This guide shows you how to [goal]. Use it when [situation in which the reader needs this]. It assumes you can already [baseline skill]; if you cannot, complete [tutorial name] first.
Example: This guide shows you how to rotate a Corvid Commerce API key without interrupting traffic. Use it when a key is due for scheduled rotation, when a team member with access leaves, or when you suspect a key has leaked. It assumes you already call the Corvid Commerce Orders API from a backend service and can change that service's configuration. If you have never made an API call, start with the Corvid Commerce quickstart.
Time required: about [15] minutes, plus [one deployment] of your service.
Before you start
| Prerequisite | Requirement | How to check |
|---|---|---|
| [Role or permission] | [Admin / Owner / named role] | [Where to see it] |
| [Tool] | [Name and minimum version] | [tool --version] |
| [System state] | [What must already exist] | [How to confirm] |
| Example: Role | Corvid Commerce workspace role "Developer admin" | Dashboard, Settings, Members: your row shows the role |
| Example: Tool | corvid CLI 2.4 or later | corvid --version prints corvid 2.4.0 or higher |
| Example: State | Your service reads the key from a secret store, not from source code | Search the repository for ck_live_; no matches |
Safety note: [state any irreversible effect or risk before the reader
starts]. Example: Revoking a key is immediate and cannot be undone.
Any service still using the old key receives 401 Unauthorized at once.
Steps
-
[Action verb plus object].
[command][One line on what you should see before moving on.]
-
[Action verb plus object].
[Details, the one option the reader must choose, edge cases.]
-
[Action verb plus object].
[Details.]
Example: rotating a Corvid Commerce API key.
-
Create a second key with the same scopes as the current one.
corvid keys create --name "orders-backend-2026-10" --scopes orders:read,orders:writeThe CLI prints the new key once, starting with
ck_live_. Copy it now; it is not shown again. -
Store the new key in your secret store under a new version.
vault kv put secret/orders-backend CORVID_API_KEY="ck_live_[new key]"Keep the old version. Both keys are valid at this point, so nothing breaks.
-
Deploy your service so it reads the new key.
Use your normal deployment process. When the rollout finishes, every instance must be running the new configuration.
-
Confirm that traffic has moved to the new key.
corvid keys usage --name "orders-backend-2026-10" --since 15mThe request count for the new key rises. Run the same command for the old key name; its count stays at zero for at least 15 minutes.
-
Revoke the old key.
corvid keys revoke --name "orders-backend-2026-04"The CLI asks you to type the key name to confirm, then prints
revoked.
Verify the result
Run [check] and confirm that [expected observable result].
Example: List the keys and check that only the new key is active:
corvid keys list --status active
NAME SCOPES CREATED
orders-backend-2026-10 orders:read,orders:write 2026-10-24
Then place a test request from your service's health endpoint and confirm
it returns 200. If the old key name still appears in the active list,
step 5 did not complete: run it again.
Options and variations
| Variation | When to use it | What changes |
|---|---|---|
| [Variation] | [Condition] | [Which step changes and how] |
| Example: Emergency rotation | You believe the key has leaked | Do steps 1 to 4 as fast as possible and revoke the old key (step 5) immediately after; if you see active abuse, revoke first and accept a short outage |
| Example: Multiple services share a key | Several deployments use one key | Create one key per service in step 1 instead; shared keys make step 4 unreliable |
| Example: Sandbox key | You test against the sandbox | Add --env sandbox to every command; sandbox keys start with ck_test_ |
If it goes wrong
| Symptom | Likely cause | Fix |
|---|---|---|
| [Exact error text] | [Cause] | [Remedy] |
Example: 403 insufficient_role on step 1 | Your role cannot create keys | Ask a workspace owner to grant "Developer admin" |
| Example: Old key still shows traffic in step 4 | One instance did not restart | Restart the remaining instances, then repeat step 4 |
Example: 401 Unauthorized after step 5 | A service you did not know about used the old key | Create a key for that service, deploy it, and add it to your key inventory |
Related documentation
- Tutorial: [lesson for readers new to the product]. Example: Your first Corvid Commerce order.
- Reference: [page that lists the values used above]. Example:
corvid keyscommand reference. - Explanation: [page that gives the background]. Example: Why Corvid Commerce uses scoped keys.
- Related templates: Quickstart Guide (
docs/quickstart), Reference Documentation (docs/reference), Explanation Document (docs/explanation), Tutorial (writing/tutorial), Troubleshooting Guide (docs/troubleshooting).
Standard and licence note
Structure aligned with the how-to guide type of the Diátaxis framework by Daniele Procida (https://diataxis.fr), which is published under the Creative Commons Attribution-ShareAlike 4.0 International licence (https://creativecommons.org/licenses/by-sa/4.0/). The framework is credited here; all text in this template is original and no Diátaxis wording is reproduced. If you add material adapted from the Diátaxis pages themselves, that adapted material must carry attribution, indicate your changes and be shared under CC BY-SA 4.0 (the ShareAlike obligation); it does not become MIT. Check https://diataxis.fr for the current guidance. Corvid Commerce is fictional. Template licence: MIT.
Related templates
Administrator Guide Template (ISO/IEC/IEEE 26514)
Admin guide – roles, architecture, access, backup/restore, monitoring, maintenance, scaling, security ops, DR, audit
Documentation & SupportAPI Changelog Template (OpenAPI 3.2, AsyncAPI 3.1)
Dated per-version API change log: additive, behavioural and breaking classes, affected operations, OpenAPI diff links, Deprecation and Sunset values, SDK versions
Documentation & SupportAPI Overview and Getting Started Template
API landing page: what it does, OpenAPI and Arazzo descriptions, base URLs, auth in 3 steps, first request, key resources, errors, limits, next steps