Dev guide generator

From ngophatneknha/ai-engineering-hub · View interactive version

Dev guide generator is an AI agent skill from the GitHub repository ngophatneknha/ai-engineering-hub. 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.

How to use this skill

Skill file

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:

  1. Parse the topic: Identify the core technology, operational goals, and expected deliverables from the user's input
  2. Ask clarifying questions (up to 4 key questions):
  1. If the user asks to skip clarification, proceed with these default assumptions:

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:

  1. Dependency analysis:
  1. Prerequisites checklist:

```

Must know:

Nice to know:

```

  1. Self-check rules:

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:

  1. Environment inventory: List all tools to install/configure with recommended versions
  1. Installation steps: Provide commands for each operating system

```

macOS:

# Install xxx (via Homebrew)

brew install xxx

Linux (Ubuntu/Debian):

# Install xxx (via apt)

sudo apt update && sudo apt install -y xxx

```

  1. Environment verification: Provide a verification command and expected output after each tool installation

```

# Verify installation

xxx --version

# Expected output: xxx x.y.z

```

  1. Self-check rules:

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:

  1. Step planning:
  1. Step writing format:

```

#### Step N: [Step Title]

Objective: [What state is achieved after this step]

Actions:

[Code block or operational instructions]

Explanation:

Verification:

[What command to run / what result to check to confirm success]

Expected output: [Specific expected result]

```

  1. Writing guidelines:
  1. Progressive complexity:

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:

  1. Error collection: Based on the technical topic, list the 5–8 most common error scenarios
  1. 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]

```

  1. Writing guidelines:
  1. Self-check rules:

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:

  1. Advanced topic recommendations (3–5 directions):

```

Direction N: [Topic Name] | Difficulty: [Intermediate/Advanced]

[Short paragraph]

Recommended resources:

```

  1. Hands-on project suggestions:
  1. Best practice tips (3–5 items):

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:

  1. 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 |

```

  1. Writing guidelines:

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:


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:

  1. Identify which Phase the feedback relates to
  2. Re-execute from that Phase
  3. Cascade updates to all downstream content (e.g., an environment change must propagate to subsequent steps and the Cheatsheet)
  4. Maintain step numbering continuity

Use Cases

This tutorial generator is suitable for the following types of technical tutorials:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.