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: MIT5metadata:6 source: https://skillmd.com/skills/jantoniofc/dev-guide-generator7---89# Dev Guide Generator1011**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.1213## Quick Start1415The user simply provides a technical topic or operational goal, and the Agent automatically generates a complete tutorial following this workflow:1617```18User: Help me write a Docker beginner's tutorial19Agent: [Outputs complete technical tutorial + Cheatsheet following the SOP workflow]20```2122## SOP Workflow2324### Phase 1: Topic Scoping & Audience Analysis2526**Goal**: Define the tutorial's technical subject, target audience, and scope boundaries.2728**Steps**:29301. **Parse the topic**: Identify the core technology, operational goals, and expected deliverables from the user's input312. **Ask clarifying questions** (up to 4 key questions):32 - What is the target audience's technical level? (Complete beginner / Some experience / Experienced developer)33 - What operating system will the reader be using? (macOS / Windows / Linux / Any)34 - What should the reader be able to do after completing the tutorial? (Specific deliverable)35 - Are there any version or tech stack constraints?363. **If the user asks to skip clarification**, proceed with these default assumptions:37 - Audience: Has basic programming experience but is unfamiliar with the topic technology38 - Environment: Cover both macOS and Linux (note Windows differences where necessary)39 - Goal: Be able to independently complete a minimal working example4041**Output**: Tutorial metadata summary (topic, audience, objective, scope — no more than 150 words)4243---4445### Phase 2: Prerequisites4647**Goal**: List all knowledge and tools the reader needs before starting this tutorial, ensuring there are no knowledge gaps.4849**Steps**:50511. **Dependency analysis**:52 - List all technical concepts involved in this tutorial53 - For each concept, determine whether it should be "explained within the tutorial" or "assumed as prior knowledge"54 - Decision rule: If explaining it would digress more than 200 words from the main topic, classify it as a prerequisite55562. **Prerequisites checklist**:57 - Categorize into "Must know" and "Nice to know" tiers58 - Attach a one-line explanation for each: "why you need it"59 - Format:6061 ```62 **Must know**:63 - [Concept]: [Why you need it] (Recommended resource)6465 **Nice to know**:66 - [Concept]: [What aspects of the tutorial it relates to]67 ```68693. **Self-check rules**:70 - If prerequisites exceed 5 items, consider narrowing the tutorial scope or splitting into a series71 - Every prerequisite must have a publicly available learning resource7273**Output**: Tiered prerequisites checklist7475---7677### Phase 3: Environment Setup7879**Goal**: Provide a reproducible environment configuration path so the reader is fully set up before starting the core steps.8081**Steps**:82831. **Environment inventory**: List all tools to install/configure with recommended versions84 - Format: `Tool name Version requirement (e.g., >= x.y) | Purpose`85 - Clearly distinguish "required" from "optional" installations86872. **Installation steps**: Provide commands for each operating system88 - Precede each command with a one-line explanation of what it does89 - Use only officially recommended methods or mainstream package managers90 - Format:9192 ```93 **macOS**:94 # Install xxx (via Homebrew)95 brew install xxx9697 **Linux (Ubuntu/Debian)**:98 # Install xxx (via apt)99 sudo apt update && sudo apt install -y xxx100 ```1011023. **Environment verification**: Provide a verification command and expected output after each tool installation103 - Format:104105 ```106 # Verify installation107 xxx --version108 # Expected output: xxx x.y.z109 ```1101114. **Self-check rules**:112 - All installation commands must come from official documentation or mainstream package managers — no third-party scripts113 - Never include real API keys, passwords, tokens, or other sensitive values114 - When configuration files are involved, use placeholders (e.g., `YOUR_API_KEY`) and explain how to obtain the real value115116**Output**: OS-specific installation and configuration guide + verification commands117118---119120### Phase 4: Core Steps121122**Goal**: Walk the reader through the core operations in a progressive structure, where each step can be independently verified.123124**Steps**:1251261. **Step planning**:127 - Break the entire operation into 5–10 steps (each focused on one sub-goal)128 - Order steps strictly by dependency129 - Each step includes: step number, title, and objective statement1301312. **Step writing format**:132133 ```134 #### Step N: [Step Title]135136 **Objective**: [What state is achieved after this step]137138 **Actions**:139 [Code block or operational instructions]140141 **Explanation**:142 - [Line-by-line or section-by-section explanation of key parts]143144 **Verification**:145 [What command to run / what result to check to confirm success]146 Expected output: [Specific expected result]147 ```1481493. **Writing guidelines**:150 - Code blocks must specify the language (e.g., ```bash, ```python)151 - Placeholders use ALL_CAPS_WITH_UNDERSCORES format (e.g., `YOUR_PROJECT_NAME`) and are explained on first occurrence152 - Each code block should not exceed 30 lines; split and explain in sections if longer153 - Use relative file paths; state the project root directory at the beginning154 - Every step must end with a verification section1551564. **Progressive complexity**:157 - Steps 1–3: Minimal runnable example (Hello World level)158 - Middle steps: Gradually introduce real-world features159 - Final 1–2 steps: Combine everything into a complete example160161**Output**: Numbered step list, each containing actions + explanation + verification162163---164165### Phase 5: Troubleshooting166167**Goal**: Anticipate problems the reader may encounter and provide a direct path from error message to solution.168169**Steps**:1701711. **Error collection**: Based on the technical topic, list the 5–8 most common error scenarios172 - Sources: Environment misconfiguration, version incompatibilities, permission issues, typos, network problems, etc.1731742. **Error entry format**:175176 ```177 **Error N: [Error message summary]**178179 Full error message:180 [Actual error output]181182 Cause: [One-sentence explanation of why this error occurs]183184 Solution:185 [Specific fix commands or steps]186187 Verify the fix:188 [What to run to confirm the issue is resolved]189 ```1901913. **Writing guidelines**:192 - Error messages must be real (do not fabricate error messages)193 - Solutions must be actionable — avoid vague advice like "check your configuration"194 - If an error has multiple possible causes, list them from most to least likely195 - For permission-related issues, explain why the permission is needed rather than jumping to `sudo` or `chmod 777`1961974. **Self-check rules**:198 - Solutions must not include operations that could create security risks (e.g., `chmod 777`, disabling firewalls)199 - Never advise the reader to disable security features to "fix" a problem200201**Output**: Structured troubleshooting table202203---204205### Phase 6: Advanced Topics206207**Goal**: Point readers who have completed the basics toward next steps, providing a learning path from beginner to advanced.208209**Steps**:2102111. **Advanced topic recommendations** (3–5 directions):212 - For each direction, write a short paragraph: what it is, why it's worth learning, and what scenarios it applies to213 - Tag the difficulty level: Intermediate / Advanced214 - Format:215216 ```217 **Direction N: [Topic Name]** | Difficulty: [Intermediate/Advanced]218219 [Short paragraph]220221 Recommended resources:222 - [Resource name] ([Type: documentation/book/course])223 ```2242252. **Hands-on project suggestions**:226 - Provide 2–3 small projects the reader can independently complete using what they learned227 - Each project includes: project name, one-sentence description, and relevant concepts2282293. **Best practice tips** (3–5 items):230 - Key differences between production and tutorial environments231 - Security considerations232 - Performance optimization directions233234**Output**: Advanced learning roadmap + hands-on project suggestions + best practices235236---237238### Phase 7: Cheatsheet239240**Goal**: Distill the tutorial's essentials into a one-page quick reference for everyday use.241242**Steps**:2432441. **Cheatsheet structure**:245246 ```247 # [Technology Name] Cheatsheet248249 ## Environment Info250 | Item | Command/Path |251 |------|--------------|252 | Install | `command` |253 | Version check | `command` |254 | Config file location | `path` |255256 ## Common Commands257 | Action | Command | Description |258 |--------|---------|-------------|259 | xxx | `xxx` | xxx |260261 ## Common Code Snippets262 [Up to 5 frequently used code snippets, each no more than 10 lines]263264 ## Quick Troubleshooting265 | Symptom | Possible Cause | Quick Fix |266 |---------|---------------|-----------|267 | xxx | xxx | `xxx` |268 ```2692702. **Writing guidelines**:271 - Total cheatsheet length should fit on 2 printed A4 pages272 - Commands must be complete and ready to copy-paste273 - No explanatory prose — only "what to do → how to do it" mappings274 - Order items by frequency of use, from most to least common275276**Output**: One-page cheatsheet277278---279280### Phase 8: Document Assembly & Output281282**Goal**: Assemble the outputs from the previous seven phases into a complete tutorial document.283284**Tutorial document template**:285286```markdown287# [Technical Topic] Complete Tutorial288289> Last updated: [Current date] | Applicable version: [Version number]290> Difficulty: [Beginner/Intermediate/Advanced] | Estimated time: [N hours/minutes]291292## Tutorial Overview293294[Phase 1 metadata summary — what the reader will be able to do after completion]295296## 1. Prerequisites297298[Phase 2 prerequisites checklist]299300## 2. Environment Setup301302[Phase 3 installation and configuration guide]303304## 3. Core Steps305306[Phase 4 numbered step list]307308## 4. Troubleshooting309310[Phase 5 troubleshooting table]311312## 5. Advanced Topics313314[Phase 6 advanced roadmap and hands-on projects]315316## 6. Cheatsheet317318[Phase 7 cheatsheet]319320## Appendix321322- Glossary (if domain-specific terminology is used, list in a table: Term | Definition)323- Reference links (official documentation, community resources, etc.)324```325326**Document output requirements**:327- All code blocks must specify the language328- All commands must be directly copy-pasteable (no line numbers, prompts, or other noise)329- All placeholders use the `YOUR_XXX` format and are explained on first occurrence330- Configuration files must not contain real keys or tokens331- Dates must use the actual current date332333---334335## Flow Control Rules336337### Interaction Mode Selection338339Choose the mode based on the level of detail in the user's input:340341| User Input | Mode | Behavior |342|------------|------|----------|343| Just a technology name (e.g., "Docker tutorial") | **Guided mode** | Execute Phase 1 questions, wait for answers before continuing |344| Specific goal (e.g., "Deploy a Node.js app with Docker") | **Semi-auto mode** | Ask 1–2 key questions while simultaneously planning the steps |345| Detailed description (includes audience, environment, goal) | **Full-auto mode** | Start output directly from Phase 2 |346| User says "just write it / don't ask" | **Quick mode** | Output the complete tutorial based on default assumptions |347348### Quality Checklist349350Before outputting the final tutorial, check each item:351352- [ ] Prerequisites checklist is complete with no knowledge gaps353- [ ] Every environment setup command has a verification step354- [ ] Every core step includes "actions + explanation + verification"355- [ ] Step dependencies are correct (no step uses a tool that hasn't been installed yet)356- [ ] At least 5 common errors with specific, actionable solutions357- [ ] At least 3 advanced directions with resource recommendations358- [ ] Cheatsheet is self-contained with common commands and troubleshooting info359- [ ] All code blocks specify the language360- [ ] No hardcoded keys, tokens, or personal paths361- [ ] No suggestions that could create security vulnerabilities (e.g., `chmod 777`)362- [ ] No dependency on paid APIs or subscription-only tools (unless the tool itself is the tutorial subject)363364### Iterative Refinement365366If the user provides feedback on the tutorial:3671. Identify which Phase the feedback relates to3682. Re-execute from that Phase3693. Cascade updates to all downstream content (e.g., an environment change must propagate to subsequent steps and the Cheatsheet)3704. Maintain step numbering continuity371372## Use Cases373374This tutorial generator is suitable for the following types of technical tutorials:375376- **Tool usage**: Tutorials for tools like Git, Docker, Kubernetes, Vim, etc.377- **Environment setup**: Development environments, CI/CD pipelines, server configuration, etc.378- **Programming introductions**: Language primers, framework quickstarts, library usage, etc.379- **Operations manuals**: Deployment, monitoring, logging, backup and recovery, etc.380- **Data processing**: Database operations, ETL workflows, data analysis tool usage, etc.