From majestic-engineer
Writes structured technical tutorials, blog posts, and educational content including concept explanations, how-to guides, deep dives, and developer education.
npx claudepluginhub majesticlabs-dev/majestic-marketplace --plugin majestic-engineerThis skill uses the workspace's default tool permissions.
For README-specific patterns (hero, TL;DR, quick start), see `readme-craft` skill.
Creates, structures, and reviews technical documentation using Diátaxis framework for tutorials, how-to guides, references, and explanations. Use to write, reorganize docs, or select doc types.
Plans, drafts, and refines technical tutorials for developers, including outlines, code examples first, and prose for step-by-step guides and getting-started walkthroughs.
Creates step-by-step tutorials and educational content from code, transforming complex concepts into progressive, hands-on learning experiences. Use for onboarding, blogs, courses, or teaching documentation.
Share bugs, ideas, or general feedback.
For README-specific patterns (hero, TL;DR, quick start), see readme-craft skill.
Build mental models for abstract ideas.
# [Concept Name]
## The Problem It Solves
[Concrete scenario where this matters - make the reader FEEL the pain]
## The Core Idea
[One paragraph, one analogy, zero jargon]
## How It Works
[Visual or step-by-step breakdown]
### Step 1: [First thing that happens]
### Step 2: [Next thing]
### Step 3: [Result]
## In Practice
[Code example with annotations]
## Common Misconceptions
- **Myth:** [What people wrongly believe]
- **Reality:** [What's actually true]
## When NOT to Use This
[Explicit boundaries - this builds trust]
Opening example:
Bad: "Dependency injection is a design pattern where..." Good: "Your class needs a database connection. Do you create it inside the class, or pass it in from outside? This choice determines whether your code is testable or a nightmare."
Voice: "This works because..." not "As you can see...". "You might expect X, but actually Y" not "Obviously...". Never "simply" or "just" (these dismiss difficulty).
Get the reader from A to B with minimum friction.
# How to [Accomplish Specific Goal]
**Time:** X minutes | **Difficulty:** Beginner/Intermediate/Advanced
## What You'll Build
[Screenshot or description of end result]
## Prerequisites
- [Specific tool/version]
- [Knowledge assumed]
## Steps
### 1. [Action verb] [Object]
[Why this step matters - one sentence]
```code
[Exact command or code]
Expected result: [What they should see]
[Continue pattern]
[Test command or manual verification]
Cause: [Why this happens] Fix: [Exact solution]
**Rules:** One action per step. Every step has expected output. Code is copy-paste ready.
### 3. Tutorial (Teaching Through Building)
Teach concepts by building something real.
```markdown
# Build [Something Concrete]
## What You'll Learn
By the end, you'll understand:
- [Concept 1]
- [Concept 2]
- [Concept 3]
## The Project
[Description of what we're building and why it's useful]
## Part 1: [Foundation]
### The Concept
[Brief explanation of the underlying idea]
### Implementing It
[Code with inline explanation]
### What Just Happened
[Reinforce the concept with what they just did]
## Part 2: [Build on Foundation]
[Repeat pattern, each part introducing one new concept]
## Recap
| Concept | Where We Used It |
|---------|------------------|
| [Concept 1] | Part 1 - [specific code] |
| [Concept 2] | Part 2 - [specific code] |
## Challenges
1. **[Easy extension]** - [Hint]
2. **[Medium extension]** - [Hint]
3. **[Hard extension]** - [Hint]
Rules: One concept per section. Build something that actually works. Show mistakes and corrections. Include checkpoints to verify progress.
Comprehensive exploration for mastery-level readers.
# [Topic]: A Deep Dive
**Reading time:** X minutes | **Audience:** [Intermediate/Advanced] developers
## TL;DR
[3-5 bullet points covering the key insights]
## The Landscape
[Context: what exists, what problem space we're in]
## How [Thing] Actually Works
### Under the Hood
[Technical explanation with diagrams/code]
### The Tradeoffs
| Approach | Pros | Cons | Use When |
|----------|------|------|----------|
| A | | | |
| B | | | |
## Real-World Patterns
### Pattern 1: [Name]
[Code example from production-quality source]
## Common Pitfalls
### Pitfall 1: [Name]
**The mistake:**
```code
[Bad code]
The fix:
[Good code]
Why: [Explanation]
## Code Examples
**Every code block needs:**
1. Context (what file, what situation)
2. Working code (not pseudocode unless explicitly stated)
3. Key lines highlighted or annotated
```python
# user_service.py - handling authentication
def authenticate(self, credentials):
user = self.repository.find_by_email(credentials.email)
if not user:
return AuthResult.failure("User not found") # <- Early return pattern
if not user.verify_password(credentials.password):
return AuthResult.failure("Invalid password")
return AuthResult.success(user) # <- Only success path reaches here
Explaining code: Bad: "This code authenticates the user." Good: "We check for failure conditions first (lines 4-8), returning early. Only valid credentials reach the success path on line 10. This 'guard clause' pattern keeps the happy path unindented."
Bridge unfamiliar concepts to familiar ones:
| Concept | Analogy |
|---|---|
| API rate limiting | Bouncer at a club only letting in X people per hour |
| Database indexing | Index in a textbook vs. reading every page |
| Caching | Keeping frequently-used items on your desk vs. filing cabinet |
| Load balancing | Multiple checkout lanes at a grocery store |
Rules: Map key properties (not just surface similarity). Acknowledge where the analogy breaks down. Use familiar domains (not other technical concepts).
| Failure | Fix |
|---|---|
| Wall of code, then explanation | Interleave code and explanation |
| "First, let me explain the history of..." | Start with the problem, not the history |
| Assuming knowledge ("as you know...") | Either explain it or link to prerequisite |
| Magic numbers/values in examples | Use realistic, explained values |
| Only happy path | Show error handling |
| Abstract examples (Foo, Bar, Widget) | Concrete domains (User, Order, Payment) |
Structure:
Code:
Clarity:
Trust:
| Pattern | Fix |
|---|---|
| "Simply do X" | Remove "simply" |
| "It's obvious that..." | Explain anyway |
| Screenshot-only instructions | Add text/code |
| Massive code dump | Break into pieces |
| "Exercise left to reader" | Show the solution |
| "See the docs" | Summarize key points |
For comprehensive technical docs that capture the "what" and "why" of complex systems.
| Section | Purpose |
|---|---|
| Executive Summary | One-page overview for stakeholders |
| Architecture Overview | System boundaries, components, interactions |
| Design Decisions | Rationale behind architectural choices |
| Core Components | Deep dive into each major module/service |
| Data Models | Schema design and data flow |
| Integration Points | APIs, events, external dependencies |
| Deployment Architecture | Infrastructure and operational considerations |
| Performance Characteristics | Bottlenecks, optimizations, benchmarks |
| Security Model | Authentication, authorization, data protection |