Build hands-on, code-first tutorials from any primary source - technical documentation, codebases, APIs, tools, or other complex material. Extract real examples, working code, and concrete scenarios. Create tutorials using markdown (text-heavy summaries) or React artifacts (complex interactive workflows). Keywords - tutorial, codebase, API, hands-on, code-first, copy-paste, interactive, real examples, primary source
Transforms technical docs, codebases, and APIs into hands-on tutorials with copy-paste code and concrete use cases. Activates when users request tutorials or need to understand complex primary sources.
/plugin marketplace add WarrenZhu050413/Warren-Claude-Code-Plugin-Marketplace/plugin install claude-context-orchestrator@warren-claude-code-plugin-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
COMPLETION_REPORT.mdDOCUMENTATION_UPDATES_SUMMARY.mdIMPLEMENTATION_NOTES.mdINDEX.mdREADME.mdREFRESHED_REQUIREMENTS_OVERVIEW.mdREQUIREMENTS_SUMMARY.txtSESSION_SUMMARY.mdTASK_COMPLETION_REPORT.mdUI_AND_CONTENT_REQUIREMENTS.mdTransform any primary source into hands-on, practical tutorials that prioritize real, working examples over conceptual explanations. Focus on what users need to do, not what they need to understand.
Step 1: Choose format
Step 2: Follow the three pillars
Every tutorial must clearly answer:
Example:
Mental Model: "AI generates interactive React components from natural language prompts, streaming in real-time."
Code:
curl -X POST https://api.thesys.dev/v1/ui/generate \
-H "Authorization: Bearer sk-thesys-key" \
-d '{"prompt": "Create a booking form", "model": "gpt-4"}'
Use Case: When you want users to book appointments without writing React,
send a prompt and stream the form directly into the page.
<placeholder>)Step 1: Identify Core Mental Model
Answer: "What's the one-sentence explanation that makes everything click?"
Examples:
Documentation: Official API docs, SDK references, CLI manuals
Codebases: Open source projects, example repos
Tools: Software applications, command-line utilities
Academic Papers: Research methodologies in appendices/supplementary materials
Step 2: Find Real Examples
Extract from docs/code:
Step 3: Extract Concrete Use Cases
❌ Wrong: "Can be used for various applications like analytics, reporting, etc."
✅ Right:
For each: What triggers it, what code is needed, what user sees, why it matters.
Step 4: Plan Sections (Action-oriented names)
Step 5: Plan Code Blocks
Step 6: Plan Workflow
Step 7: For React Artifacts
Structure:
Step 8: Code Block Spec
Step 9: Quality Check (see checklist at end)
TITLE: Endpoint Name (POST /v1/endpoint)
DESCRIPTION: One sentence
CODE BLOCK: Tabs (cURL | Request | Response)
USE CASE: One sentence + real scenario
STEP 1: First API Call
Context (1 sentence) → Code → Result
STEP 2: Second API Call
Context (how previous flows here) → Code → Result
STEP 3: Final Outcome
PREREQUISITES: What they need
COMMAND: Full copy-paste command
VERIFY: One-line check
TROUBLESHOOTING: Common issues
LANGUAGE: Python/JavaScript/etc
CODE: Full working function (imports, async/await, error handling)
RUN IT: How to execute
OUTPUT: Expected result
## Common Use Cases
1. **Analytics Dashboard** (5 min read)
You want users to ask "show me Q3 revenue"
→ AI generates interactive chart
2. **Booking Form** (7 min read)
You need booking flow without React
→ AI generates form with calendar
[Pick your use case →]
Benefit: Users self-select relevant tutorial path.
Three Pillars:
Code Quality:
<placeholder>)Structure:
Content:
Interactive (for React artifacts):
Why Markdown: CLI reference with many commands
Structure: Basic Sending → Advanced Options → Interactive Mode → Reading Mail → Configuration → Gmail Integration → Quick Reference
Key Features: Copy-paste commands, real config files, organized by workflow
Why React: Complex API needing interactive tabs/navigation
Structure: Setup (5min) → First Call → Core Operations → SDK Examples → Real Scenario → Advanced → Troubleshooting
Key Features: Sidebar navigation, copy buttons, tabbed views, real data, workflow chaining
Same principle applies to academic primary sources (historical documents, philosophical texts, legal cases): transform into practical guide.
Embed quotes throughout analysis where they support arguments. NOT collected at end.
Question → Quote → Interpretation → Quote → Synthesis
NOT: Question → Summary → All Quotes at End
## Was Qianlong's Response Wise?
Qianlong defended sovereignty. He explained:
> "If other nations imitate your evil example... how could I possibly comply?"
His reasoning was sound: granting Britain privileges would force him to grant all nations the same.
However, his rejection showed complacency:
> "Strange and costly objects do not interest me."
By dismissing British technology, he missed intelligence-gathering opportunities.
Each argument: Claim → Quote → Interpret → Connect to thesis
CRITICAL: All tutorials follow this organization pattern:
# Create in project's claude_files/tutorial directory
mkdir -p claude_files/tutorial
# Create tutorial file there
# Example: claude_files/tutorial/youtube-data-api.md
Naming convention:
{technology}-{purpose}.mdyoutube-data-api.md, python-cli-tutorial.md, docker-compose-guide.md# Create in project's claude_files/html directory
mkdir -p claude_files/html
# Create HTML file there
# Example: claude_files/html/youtube-data-tutorial.html
Naming convention:
{technology}-{purpose}.htmlyoutube-data-tutorial.html, api-comparison.htmlclaude_files/ for easy cleanupclaude_files/tutorial/ or claude_files/html/When creating a tutorial:
Markdown:
mkdir -p claude_files/tutorialclaude_files/tutorial/{name}.mdnvim -c "MarkdownPreview" claude_files/tutorial/{name}.mdHTML:
mkdir -p claude_files/htmlclaude_files/html/{name}.htmlopen claude_files/html/{name}.htmlBuild: building-artifacts skill (React + Tailwind + shadcn/ui) Format: Dark code blocks with copy buttons, monospace Layout: Sidebar + main content
Preview markdown tutorials:
CRITICAL: Always open markdown tutorials with preview immediately after creation.
nvim -c "MarkdownPreview" /path/to/tutorial.md
This provides instant visual feedback and allows the user to review formatting, code blocks, and overall structure in the rendered view.
Use direct commands (no aliases) for reproducibility.