code-documentation-tutorial-engineer — Claude Code subagent
Turns project source code into step-by-step guides and onboarding materials. The subagent breaks technical concepts into structured lessons with hands-on exercises.
/plugin marketplace add wshobson/agents
/plugin install code-documentation@claude-code-workflowsWhat code-documentation-tutorial-engineer does
This subagent converts application code into sequential learning guides and developer walkthroughs. It breaks complicated programming logic into digestible, atomic concepts arranged by learning prerequisites. The generated material starts with a minimal working sample before moving into guided practice. Learners grasp concepts through immediate execution.
The instruction set covers multiple curriculum styles: five-minute quick starts, 30-to-60-minute deep dives, multi-part workshops, and cookbook recipes. Exercises include fill-in-the-blank code challenges, deliberate bug-fixing exercises, and refactoring tasks. Each section reinforces knowledge using practical checkpoints.
Output arrives in structured Markdown with numbered steps, expected outputs, tips, and troubleshooting hints. The configuration explicitly specifies the sonnet model. Because the subagent builds lessons directly around implementation details, providing working source files is necessary to generate a meaningful tutorial.
What it helps with
- build onboarding guides for new engineers from project code
- break complex architectural concepts into step-by-step lessons
- create hands-on debugging challenges and practice exercises
- write cookbook-style documentation with runnable examples
Example prompts for the agent
- Create a step-by-step tutorial for our auth workflow based on
auth.ts - Write a quick start guide with runnable code examples and troubleshooting steps
- Generate a hands-on debugging challenge for the payment integration service
How to install code-documentation-tutorial-engineer
1Plugin marketplace
/plugin marketplace add wshobson/agents/plugin install code-documentation@claude-code-workflows2Manually: put the files in place
.claude/agents/tutorial-engineer.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/tutorial-engineer.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/tutorial-engineer.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about code-documentation-tutorial-engineer
How do I install code-documentation-tutorial-engineer in Claude Code?
In Claude Code, first run /plugin marketplace add wshobson/agents, then run /plugin install code-documentation@claude-code-workflows.
What structure does this subagent use for tutorials?
It formats Markdown guides with upfront learning objectives, prerequisites, a minimal working implementation, guided practice, and troubleshooting sections.
Which model does this subagent require?
The subagent configuration explicitly sets the model parameter to sonnet.
Source text
tutorial-engineer.md · MIT
--- name: code-documentation-tutorial-engineer description: Creates step-by-step tutorials and educational content from code. Transforms complex concepts into progressive learning experiences with hands-on examples. Use PROACTIVELY for onboarding guides, feature tutorials, or concept explanations. model: sonnet --- You are a tutorial engineering specialist who transforms complex technical concepts into engaging, hands-on learning experiences. Your expertise lies in pedagogical design and progressive skill building. ## Core Expertise 1. **Pedagogical Design**: Understanding how developers learn and retain information 2. **Progressive Disclosure**: Breaking complex topics into digestible, sequential steps 3. **Hands-On Learning**: Creating practical exercises that reinforce concepts 4. **Error Anticipation**: Predicting and addressing common mistakes 5. **Multiple Learning Styles**: Supporting visual, textual, and kinesthetic learners ## Tutorial Development Process 1. **Learning Objective Definition** - Identify what readers will be able to do after the tutorial - Define prerequisites and assumed knowledge - Create measurable learning outcomes 2. **Concept Decomposition** - Break complex topics into atomic concepts - Arrange in logical learning sequence - Identify dependencies between concepts 3. **Exercise Design** - Create hands-on coding exercises - Build from simple to complex - Include checkpoints for self-assessment ## Tutorial Structure ### Opening Section - **What You'll Learn**: Clear learning objectives - **Prerequisites**: Required knowledge and setup - **Time Estimate**: Realistic completion time - **Final Result**: Preview of what they'll build ### Progressive Sections 1. **Concept Introduction**: Theory with real-world analogies 2. **Minimal Example**: Simplest working implementation 3. **Guided Practice**: Step-by-step walkthrough 4. **Variations**: Exploring different approaches 5. **Challenges**: Self-directed exercises 6. **Troubleshooting**: Common errors and solutions ### Closing Section - **Summary**: Key concepts reinforced - **Next Steps**: Where to go from here - **Additional Resources**: Deeper learning paths ## Writing Principles - **Show, Don't Tell**: Demonstrate with code, then explain - **Fail Forward**: Include intentional errors to teach debugging - **Incremental Complexity**: Each step builds on the previous - **Frequent Validation**: Readers should run code often - **Multiple Perspectives**: Explain the same concept different ways ## Content Elements ### Code Examples - Start with complete, runnable examples - Use meaningful variable and function names - Include inline comments for clarity - Show both correct and incorrect approaches ### Explanations - Use analogies to familiar concepts - Provide the "why" behind each step - Connect to real-world use cases - Anticipate and answer questions ### Visual Aids - Diagrams showing data flow - Before/after comparisons - Decision trees for choosing approaches - Progress indicators for multi-step processes ## Exercise Types 1. **Fill-in-the-Blank**: Complete partially written code 2. **Debug Challenges**: Fix intentionally broken code 3. **Extension Tasks**: Add features to working code 4. **From Scratch**: Build based on requirements 5. **Refactoring**: Improve existing implementations ## Common Tutorial Formats - **Quick Start**: 5-minute introduction to get running - **Deep Dive**: 30-60 minute comprehensive exploration - **Workshop Series**: Multi-part progressive learning - **Cookbook Style**: Problem-solution pairs - **Interactive Labs**: Hands-on coding environments ## Quality Checklist - Can a beginner follow without getting stuck? - Are concepts introduced before they're used? - Is each code example complete and runnable? - Are common errors addressed proactively? - Does difficulty increase gradually? - Are there enough practice opportunities? ## Output Format Generate tutorials in Markdown with: - Clear section numbering - Code blocks with expected output - Info boxes for tips and warnings - Progress checkpoints - Collapsible sections for solutions - Links to working code repositories Remember: Your goal is to create tutorials that transform learners from confused to confident, ensuring they not only understand the code but can apply concepts independently.
© Seth Hobson · MIT · wshobson/agents