Dev Guide Generator
One topic → complete technical tutorial: Through a structured SOP workflow, transform a technical topic into a comprehensive tutorial covering prerequisites, environment setup, core steps, common error troubleshooting, and advanced topics — all accompanied by a cheatsheet.
Quick Start
The user simply provides a technical topic or operational goal, and the Agent automatically generates a complete tutorial following this workflow:
User: Help me write a Docker beginner's tutorial
Agent: [Outputs complete technical tutorial + Cheatsheet following the SOP workflow]
SOP Workflow
Phase 1: Topic Scoping & Audience Analysis
Goal: Define the tutorial's technical subject, target audience, and scope boundaries.
Steps:
- Parse the topic: Identify the core technology, operational goals, and expected deliverables from the user's input
- Ask clarifying questions (up to 4 key questions):
- What is the target audience's technical level? (Complete beginner / Some experience / Experienced developer)
- What operating system will the reader be using? (macOS / Windows / Linux / Any)
- What should the reader be able to do after completing the tutorial? (Specific deliverable)
- Are there any version or tech stack constraints?
- If the user asks to skip clarification, proceed with these default assumptions:
- Audience: Has basic programming experience but is unfamiliar with the topic technology
- Environment: Cover both macOS and Linux (note Windows differences where necessary)
- Goal: Be able to independently complete a minimal working example
Output: Tutorial metadata summary (topic, audience, objective, scope — no more than 150 words)
Phase 2: Prerequisites
Goal: List all knowledge and tools the reader needs before starting this tutorial, ensuring there are no knowledge gaps.
Steps:
Dependency analysis:
- List all technical concepts involved in this tutorial
- For each concept, determine whether it should be "explained within the tutorial" or "assumed as prior knowledge"
- Decision rule: If explaining it would digress more than 200 words from the main topic, classify it as a prerequisite
Prerequisites checklist:
Categorize into "Must know" and "Nice to know" tiers
Attach a one-line explanation for each: "why you need it"
Format:
**Must know**:
- [Concept]: [Why you need it] (Recommended resource)
**Nice to know**:
- [Concept]: [What aspects of the tutorial it relates to]
Self-check rules:
- If prerequisites exceed 5 items, consider narrowing the tutorial scope or splitting into a series
- Every prerequisite must have a publicly available learning resource
Output: Tiered prerequisites checklist
Phase 3: Environment Setup
Goal: Provide a reproducible environment configuration path so the reader is fully set up before starting the core steps.
Steps:
Environment inventory: List all tools to install/configure with recommended versions
- Format:
Tool name Version requirement (e.g., >= x.y) | Purpose
- Clearly distinguish "required" from "optional" installations
Installation steps: Provide commands for each operating system
Precede each command with a one-line explanation of what it does
Use only officially recommended methods or mainstream package managers
Format:
**macOS**:
# Install xxx (via Homebrew)
brew install xxx
**Linux (Ubuntu/Debian)**:
# Install xxx (via apt)
sudo apt update && sudo apt install -y xxx
Environment verification: Provide a verification command and expected output after each tool installation
Self-check rules:
- All installation commands must come from official documentation or mainstream package managers — no third-party scripts
- Never include real API keys, passwords, tokens, or other sensitive values
- When configuration files are involved, use placeholders (e.g.,
YOUR_API_KEY) and explain how to obtain the real value
Output: OS-specific installation and configuration guide + verification commands
Phase 4: Core Steps
Goal: Walk the reader through the core operations in a progressive structure, where each step can be independently verified.
Steps:
Step planning:
- Break the entire operation into 5–10 steps (each focused on one sub-goal)
- Order steps strictly by dependency
- Each step includes: step number, title, and objective statement
Step writing format:
#### Step N: [Step Title]
**Objective**: [What state is achieved after this step]
**Actions**:
[Code block or operational instructions]
**Explanation**:
- [Line-by-line or section-by-section explanation of key parts]
**Verification**:
[What command to run / what result to check to confirm success]
Expected output: [Specific expected result]
Writing guidelines:
- Code blocks must specify the language (e.g.,
bash, python)
- Placeholders use ALL_CAPS_WITH_UNDERSCORES format (e.g.,
YOUR_PROJECT_NAME) and are explained on first occurrence
- Each code block should not exceed 30 lines; split and explain in sections if longer
- Use relative file paths; state the project root directory at the beginning
- Every step must end with a verification section
Progressive complexity:
- Steps 1–3: Minimal runnable example (Hello World level)
- Middle steps: Gradually introduce real-world features
- Final 1–2 steps: Combine everything into a complete example
Output: Numbered step list, each containing actions + explanation + verification
Phase 5: Troubleshooting
Goal: Anticipate problems the reader may encounter and provide a direct path from error message to solution.
Steps:
Error collection: Based on the technical topic, list the 5–8 most common error scenarios
- Sources: Environment misconfiguration, version incompatibilities, permission issues, typos, network problems, etc.
Error entry format:
**Error N: [Error message summary]**
Full error message:
[Actual error output]
Cause: [One-sentence explanation of why this error occurs]
Solution:
[Specific fix commands or steps]
Verify the fix:
[What to run to confirm the issue is resolved]
Writing guidelines:
- Error messages must be real (do not fabricate error messages)
- Solutions must be actionable — avoid vague advice like "check your configuration"
- If an error has multiple possible causes, list them from most to least likely
- For permission-related issues, explain why the permission is needed rather than jumping to
sudo or chmod 777
Self-check rules:
- Solutions must not include operations that could create security risks (e.g.,
chmod 777, disabling firewalls)
- Never advise the reader to disable security features to "fix" a problem
Output: Structured troubleshooting table
Phase 6: Advanced Topics
Goal: Point readers who have completed the basics toward next steps, providing a learning path from beginner to advanced.
Steps:
Advanced topic recommendations (3–5 directions):
For each direction, write a short paragraph: what it is, why it's worth learning, and what scenarios it applies to
Tag the difficulty level: Intermediate / Advanced
Format:
**Direction N: [Topic Name]** | Difficulty: [Intermediate/Advanced]
[Short paragraph]
Recommended resources:
- [Resource name] ([Type: documentation/book/course])
Hands-on project suggestions:
- Provide 2–3 small projects the reader can independently complete using what they learned
- Each project includes: project name, one-sentence description, and relevant concepts
Best practice tips (3–5 items):
- Key differences between production and tutorial environments
- Security considerations
- Performance optimization directions
Output: Advanced learning roadmap + hands-on project suggestions + best practices
Phase 7: Cheatsheet
Goal: Distill the tutorial's essentials into a one-page quick reference for everyday use.
Steps:
Cheatsheet structure:
# [Technology Name] Cheatsheet
## Environment Info
| Item | Command/Path |
|------|--------------|
| Install | `command` |
| Version check | `command` |
| Config file location | `path` |
## Common Commands
| Action | Command | Description |
|--------|---------|-------------|
| xxx | `xxx` | xxx |
## Common Code Snippets
[Up to 5 frequently used code snippets, each no more than 10 lines]
## Quick Troubleshooting
| Symptom | Possible Cause | Quick Fix |
|---------|---------------|-----------|
| xxx | xxx | `xxx` |
Writing guidelines:
- Total cheatsheet length should fit on 2 printed A4 pages
- Commands must be complete and ready to copy-paste
- No explanatory prose — only "what to do → how to do it" mappings
- Order items by frequency of use, from most to least common
Output: One-page cheatsheet
Phase 8: Document Assembly & Output
Goal: Assemble the outputs from the previous seven phases into a complete tutorial document.
Tutorial document template:
# [Technical Topic] Complete Tutorial
> Last updated: [Current date] | Applicable version: [Version number]
> Difficulty: [Beginner/Intermediate/Advanced] | Estimated time: [N hours/minutes]
## Tutorial Overview
[Phase 1 metadata summary — what the reader will be able to do after completion]
## 1. Prerequisites
[Phase 2 prerequisites checklist]
## 2. Environment Setup
[Phase 3 installation and configuration guide]
## 3. Core Steps
[Phase 4 numbered step list]
## 4. Troubleshooting
[Phase 5 troubleshooting table]
## 5. Advanced Topics
[Phase 6 advanced roadmap and hands-on projects]
## 6. Cheatsheet
[Phase 7 cheatsheet]
## Appendix
- Glossary (if domain-specific terminology is used, list in a table: Term | Definition)
- Reference links (official documentation, community resources, etc.)
Document output requirements:
- All code blocks must specify the language
- All commands must be directly copy-pasteable (no line numbers, prompts, or other noise)
- All placeholders use the
YOUR_XXX format and are explained on first occurrence
- Configuration files must not contain real keys or tokens
- Dates must use the actual current date
Flow Control Rules
Interaction Mode Selection
Choose the mode based on the level of detail in the user's input:
| User Input |
Mode |
Behavior |
| Just a technology name (e.g., "Docker tutorial") |
Guided mode |
Execute Phase 1 questions, wait for answers before continuing |
| Specific goal (e.g., "Deploy a Node.js app with Docker") |
Semi-auto mode |
Ask 1–2 key questions while simultaneously planning the steps |
| Detailed description (includes audience, environment, goal) |
Full-auto mode |
Start output directly from Phase 2 |
| User says "just write it / don't ask" |
Quick mode |
Output the complete tutorial based on default assumptions |
Quality Checklist
Before outputting the final tutorial, check each item:
Iterative Refinement
If the user provides feedback on the tutorial:
- Identify which Phase the feedback relates to
- Re-execute from that Phase
- Cascade updates to all downstream content (e.g., an environment change must propagate to subsequent steps and the Cheatsheet)
- Maintain step numbering continuity
Use Cases
This tutorial generator is suitable for the following types of technical tutorials:
- Tool usage: Tutorials for tools like Git, Docker, Kubernetes, Vim, etc.
- Environment setup: Development environments, CI/CD pipelines, server configuration, etc.
- Programming introductions: Language primers, framework quickstarts, library usage, etc.
- Operations manuals: Deployment, monitoring, logging, backup and recovery, etc.
- Data processing: Database operations, ETL workflows, data analysis tool usage, etc.
1---2name: dev-guide-generator3description: Generates complete technical tutorials from prerequisites and environment setup to core steps, troubleshooting, and a final cheatsheet. Trigger on requests to write a tutorial, create a setup guide, organize steps for beginners, or keywords like step-by-step, quickstart, or how-to guide.4license: MIT5---67# Dev Guide Generator89**One topic → complete technical tutorial**: Through a structured SOP workflow, transform a technical topic into a comprehensive tutorial covering prerequisites, environment setup, core steps, common error troubleshooting, and advanced topics — all accompanied by a cheatsheet.1011## Quick Start1213The user simply provides a technical topic or operational goal, and the Agent automatically generates a complete tutorial following this workflow:1415```16User: Help me write a Docker beginner's tutorial17Agent: [Outputs complete technical tutorial + Cheatsheet following the SOP workflow]18```1920## SOP Workflow2122### Phase 1: Topic Scoping & Audience Analysis2324**Goal**: Define the tutorial's technical subject, target audience, and scope boundaries.2526**Steps**:27281. **Parse the topic**: Identify the core technology, operational goals, and expected deliverables from the user's input292. **Ask clarifying questions** (up to 4 key questions):30 - What is the target audience's technical level? (Complete beginner / Some experience / Experienced developer)31 - What operating system will the reader be using? (macOS / Windows / Linux / Any)32 - What should the reader be able to do after completing the tutorial? (Specific deliverable)33 - Are there any version or tech stack constraints?343. **If the user asks to skip clarification**, proceed with these default assumptions:35 - Audience: Has basic programming experience but is unfamiliar with the topic technology36 - Environment: Cover both macOS and Linux (note Windows differences where necessary)37 - Goal: Be able to independently complete a minimal working example3839**Output**: Tutorial metadata summary (topic, audience, objective, scope — no more than 150 words)4041---4243### Phase 2: Prerequisites4445**Goal**: List all knowledge and tools the reader needs before starting this tutorial, ensuring there are no knowledge gaps.4647**Steps**:48491. **Dependency analysis**:50 - List all technical concepts involved in this tutorial51 - For each concept, determine whether it should be "explained within the tutorial" or "assumed as prior knowledge"52 - Decision rule: If explaining it would digress more than 200 words from the main topic, classify it as a prerequisite53542. **Prerequisites checklist**:55 - Categorize into "Must know" and "Nice to know" tiers56 - Attach a one-line explanation for each: "why you need it"57 - Format:5859 ```60 **Must know**:61 - [Concept]: [Why you need it] (Recommended resource)6263 **Nice to know**:64 - [Concept]: [What aspects of the tutorial it relates to]65 ```66673. **Self-check rules**:68 - If prerequisites exceed 5 items, consider narrowing the tutorial scope or splitting into a series69 - Every prerequisite must have a publicly available learning resource7071**Output**: Tiered prerequisites checklist7273---7475### Phase 3: Environment Setup7677**Goal**: Provide a reproducible environment configuration path so the reader is fully set up before starting the core steps.7879**Steps**:80811. **Environment inventory**: List all tools to install/configure with recommended versions82 - Format: `Tool name Version requirement (e.g., >= x.y) | Purpose`83 - Clearly distinguish "required" from "optional" installations84852. **Installation steps**: Provide commands for each operating system86 - Precede each command with a one-line explanation of what it does87 - Use only officially recommended methods or mainstream package managers88 - Format:8990 ```91 **macOS**:92 # Install xxx (via Homebrew)93 brew install xxx9495 **Linux (Ubuntu/Debian)**:96 # Install xxx (via apt)97 sudo apt update && sudo apt install -y xxx98 ```991003. **Environment verification**: Provide a verification command and expected output after each tool installation101 - Format:102103 ```104 # Verify installation105 xxx --version106 # Expected output: xxx x.y.z107 ```1081094. **Self-check rules**:110 - All installation commands must come from official documentation or mainstream package managers — no third-party scripts111 - Never include real API keys, passwords, tokens, or other sensitive values112 - When configuration files are involved, use placeholders (e.g., `YOUR_API_KEY`) and explain how to obtain the real value113114**Output**: OS-specific installation and configuration guide + verification commands115116---117118### Phase 4: Core Steps119120**Goal**: Walk the reader through the core operations in a progressive structure, where each step can be independently verified.121122**Steps**:1231241. **Step planning**:125 - Break the entire operation into 5–10 steps (each focused on one sub-goal)126 - Order steps strictly by dependency127 - Each step includes: step number, title, and objective statement1281292. **Step writing format**:130131 ```132 #### Step N: [Step Title]133134 **Objective**: [What state is achieved after this step]135136 **Actions**:137 [Code block or operational instructions]138139 **Explanation**:140 - [Line-by-line or section-by-section explanation of key parts]141142 **Verification**:143 [What command to run / what result to check to confirm success]144 Expected output: [Specific expected result]145 ```1461473. **Writing guidelines**:148 - Code blocks must specify the language (e.g., ```bash, ```python)149 - Placeholders use ALL_CAPS_WITH_UNDERSCORES format (e.g., `YOUR_PROJECT_NAME`) and are explained on first occurrence150 - Each code block should not exceed 30 lines; split and explain in sections if longer151 - Use relative file paths; state the project root directory at the beginning152 - Every step must end with a verification section1531544. **Progressive complexity**:155 - Steps 1–3: Minimal runnable example (Hello World level)156 - Middle steps: Gradually introduce real-world features157 - Final 1–2 steps: Combine everything into a complete example158159**Output**: Numbered step list, each containing actions + explanation + verification160161---162163### Phase 5: Troubleshooting164165**Goal**: Anticipate problems the reader may encounter and provide a direct path from error message to solution.166167**Steps**:1681691. **Error collection**: Based on the technical topic, list the 5–8 most common error scenarios170 - Sources: Environment misconfiguration, version incompatibilities, permission issues, typos, network problems, etc.1711722. **Error entry format**:173174 ```175 **Error N: [Error message summary]**176177 Full error message:178 [Actual error output]179180 Cause: [One-sentence explanation of why this error occurs]181182 Solution:183 [Specific fix commands or steps]184185 Verify the fix:186 [What to run to confirm the issue is resolved]187 ```1881893. **Writing guidelines**:190 - Error messages must be real (do not fabricate error messages)191 - Solutions must be actionable — avoid vague advice like "check your configuration"192 - If an error has multiple possible causes, list them from most to least likely193 - For permission-related issues, explain why the permission is needed rather than jumping to `sudo` or `chmod 777`1941954. **Self-check rules**:196 - Solutions must not include operations that could create security risks (e.g., `chmod 777`, disabling firewalls)197 - Never advise the reader to disable security features to "fix" a problem198199**Output**: Structured troubleshooting table200201---202203### Phase 6: Advanced Topics204205**Goal**: Point readers who have completed the basics toward next steps, providing a learning path from beginner to advanced.206207**Steps**:2082091. **Advanced topic recommendations** (3–5 directions):210 - For each direction, write a short paragraph: what it is, why it's worth learning, and what scenarios it applies to211 - Tag the difficulty level: Intermediate / Advanced212 - Format:213214 ```215 **Direction N: [Topic Name]** | Difficulty: [Intermediate/Advanced]216217 [Short paragraph]218219 Recommended resources:220 - [Resource name] ([Type: documentation/book/course])221 ```2222232. **Hands-on project suggestions**:224 - Provide 2–3 small projects the reader can independently complete using what they learned225 - Each project includes: project name, one-sentence description, and relevant concepts2262273. **Best practice tips** (3–5 items):228 - Key differences between production and tutorial environments229 - Security considerations230 - Performance optimization directions231232**Output**: Advanced learning roadmap + hands-on project suggestions + best practices233234---235236### Phase 7: Cheatsheet237238**Goal**: Distill the tutorial's essentials into a one-page quick reference for everyday use.239240**Steps**:2412421. **Cheatsheet structure**:243244 ```245 # [Technology Name] Cheatsheet246247 ## Environment Info248 | Item | Command/Path |249 |------|--------------|250 | Install | `command` |251 | Version check | `command` |252 | Config file location | `path` |253254 ## Common Commands255 | Action | Command | Description |256 |--------|---------|-------------|257 | xxx | `xxx` | xxx |258259 ## Common Code Snippets260 [Up to 5 frequently used code snippets, each no more than 10 lines]261262 ## Quick Troubleshooting263 | Symptom | Possible Cause | Quick Fix |264 |---------|---------------|-----------|265 | xxx | xxx | `xxx` |266 ```2672682. **Writing guidelines**:269 - Total cheatsheet length should fit on 2 printed A4 pages270 - Commands must be complete and ready to copy-paste271 - No explanatory prose — only "what to do → how to do it" mappings272 - Order items by frequency of use, from most to least common273274**Output**: One-page cheatsheet275276---277278### Phase 8: Document Assembly & Output279280**Goal**: Assemble the outputs from the previous seven phases into a complete tutorial document.281282**Tutorial document template**:283284```markdown285# [Technical Topic] Complete Tutorial286287> Last updated: [Current date] | Applicable version: [Version number]288> Difficulty: [Beginner/Intermediate/Advanced] | Estimated time: [N hours/minutes]289290## Tutorial Overview291292[Phase 1 metadata summary — what the reader will be able to do after completion]293294## 1. Prerequisites295296[Phase 2 prerequisites checklist]297298## 2. Environment Setup299300[Phase 3 installation and configuration guide]301302## 3. Core Steps303304[Phase 4 numbered step list]305306## 4. Troubleshooting307308[Phase 5 troubleshooting table]309310## 5. Advanced Topics311312[Phase 6 advanced roadmap and hands-on projects]313314## 6. Cheatsheet315316[Phase 7 cheatsheet]317318## Appendix319320- Glossary (if domain-specific terminology is used, list in a table: Term | Definition)321- Reference links (official documentation, community resources, etc.)322```323324**Document output requirements**:325- All code blocks must specify the language326- All commands must be directly copy-pasteable (no line numbers, prompts, or other noise)327- All placeholders use the `YOUR_XXX` format and are explained on first occurrence328- Configuration files must not contain real keys or tokens329- Dates must use the actual current date330331---332333## Flow Control Rules334335### Interaction Mode Selection336337Choose the mode based on the level of detail in the user's input:338339| User Input | Mode | Behavior |340|------------|------|----------|341| Just a technology name (e.g., "Docker tutorial") | **Guided mode** | Execute Phase 1 questions, wait for answers before continuing |342| Specific goal (e.g., "Deploy a Node.js app with Docker") | **Semi-auto mode** | Ask 1–2 key questions while simultaneously planning the steps |343| Detailed description (includes audience, environment, goal) | **Full-auto mode** | Start output directly from Phase 2 |344| User says "just write it / don't ask" | **Quick mode** | Output the complete tutorial based on default assumptions |345346### Quality Checklist347348Before outputting the final tutorial, check each item:349350- [ ] Prerequisites checklist is complete with no knowledge gaps351- [ ] Every environment setup command has a verification step352- [ ] Every core step includes "actions + explanation + verification"353- [ ] Step dependencies are correct (no step uses a tool that hasn't been installed yet)354- [ ] At least 5 common errors with specific, actionable solutions355- [ ] At least 3 advanced directions with resource recommendations356- [ ] Cheatsheet is self-contained with common commands and troubleshooting info357- [ ] All code blocks specify the language358- [ ] No hardcoded keys, tokens, or personal paths359- [ ] No suggestions that could create security vulnerabilities (e.g., `chmod 777`)360- [ ] No dependency on paid APIs or subscription-only tools (unless the tool itself is the tutorial subject)361362### Iterative Refinement363364If the user provides feedback on the tutorial:3651. Identify which Phase the feedback relates to3662. Re-execute from that Phase3673. Cascade updates to all downstream content (e.g., an environment change must propagate to subsequent steps and the Cheatsheet)3684. Maintain step numbering continuity369370## Use Cases371372This tutorial generator is suitable for the following types of technical tutorials:373374- **Tool usage**: Tutorials for tools like Git, Docker, Kubernetes, Vim, etc.375- **Environment setup**: Development environments, CI/CD pipelines, server configuration, etc.376- **Programming introductions**: Language primers, framework quickstarts, library usage, etc.377- **Operations manuals**: Deployment, monitoring, logging, backup and recovery, etc.378- **Data processing**: Database operations, ETL workflows, data analysis tool usage, etc.