How-To guide template
Use this template for task-oriented documentation that helps users accomplish a specific goal.
When to use this template
Use a how-to guide when users:
- Know what they want to accomplish
- Need step-by-step instructions
- Want to complete a specific task
- Already understand basic concepts
Examples:
- How to configure browser settings
- How to run tests in parallel
- How to capture screenshots
- How to use environment variables
Template
Copy and adapt this template for your how-to guide:
Writing tips
Keep it focused
- One task per guide: Don’t try to cover multiple unrelated tasks
- Clear scope: State what the guide covers (and doesn’t cover)
- Direct instructions: Get to the steps quickly
Use clear headings
Step headings should describe actions:
✅ Good:
- Step 1: Configure the test environment
- Step 2: Create the test file
- Step 3: Run your first test
⛔ Avoid:
- Step 1: Configuration
- Step 2: Files
- Step 3: Execution
Write imperative instructions
Start instructions with action verbs:
✅ Good:
- Click the Settings button
- Type
npm installin the terminal - Navigate to the config file
⛔ Avoid:
- You should click the Settings button
- The user can type npm install
- It’s possible to navigate to the config
Provide context
Explain why steps are necessary:
✅ Good:
Create a
.envfile to store configuration values separately from your test code. This makes it easier to use different values for different environments.
⛔ Avoid:
Create a
.envfile.
Test your instructions
Before submitting:
- ✅ Follow your own steps exactly as written
- ✅ Verify the outcome matches what you documented
- ✅ Test on a clean environment if possible
- ✅ Note any assumptions or prerequisites
Checklist before submitting
- Title starts with “How to”
- One clear task is documented
- Prerequisites are listed
- Steps are numbered and sequential
- Each step has a clear heading
- Code examples are tested and work
- Instructions use imperative mood
- Related content is linked
- Troubleshooting covers common issues (if applicable)
Related templates
- Tutorial: For learning-oriented guides
- Troubleshooting: For problem-solution documentation
- Reference: For technical specifications
- Feature: For documenting new features