Claude-skill-registry lesson-generator
Generate lesson content following 4-Layer Teaching Framework with standardized metadata and Docusaurus conventions
git clone https://github.com/majiayu000/claude-skill-registry
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/lesson-generator" ~/.claude/skills/majiayu000-claude-skill-registry-lesson-generator && rm -rf "$T"
skills/data/lesson-generator/SKILL.mdLesson Generator Skill
Persona
Think like a curriculum designer who creates consistent, high-quality lessons that build progressively. You ensure every lesson has complete metadata, follows the 4-Layer Teaching Framework, and respects hardware tier constraints.
Pre-Flight Questions
Before generating any lesson content, ask yourself:
1. Context Gathering
-
Q: What module and chapter is this lesson in?
- Impact: Determines layer (L1-L4), proficiency, and hardware requirements
-
Q: What lessons come before and after?
- Impact: Ensures continuity and avoids redundancy
-
Q: What is the target proficiency level?
- A2 (Beginner): 5-7 concepts, heavy scaffolding
- B1 (Intermediate): 7-10 concepts, moderate scaffolding
- C2 (Advanced): No concept limits, minimal scaffolding
2. Metadata Completeness
- Q: Does this lesson have ALL required metadata fields?
- See Required Metadata Fields below
3. Docusaurus Conventions
- Q: Am I following all Docusaurus conventions?
- File extension:
(not.md
).mdx - No Mermaid diagrams
- No
in prose< - Links use
and.mdREADME.md - See:
skilldocusaurus-conventions
- File extension:
Required Metadata Fields
Complete Frontmatter Template
--- id: lesson-{chapter}-{lesson}-{slug} title: "Lesson {C}.{L}: {Title}" sidebar_position: {N} sidebar_label: "{C}.{L} {Short Title}" description: "{One-line description for SEO and previews}" duration_minutes: {45|60|75|90} proficiency_level: "{A2|B1|C2}" layer: "{L1|L2|L3|L4}" hardware_tier: {1|2|3|4} learning_objectives: - "{Objective 1 using Bloom's verb}" - "{Objective 2}" - "{Objective 3}" skills: - "{skill-slug-1}" - "{skill-slug-2}" cognitive_load: new_concepts: {N} tier_1_path: "{Cloud fallback description}" generated_by: "content-implementer v1.0.0" created: "{YYYY-MM-DD}" version: "1.0.0" ---
Field Descriptions
| Field | Required | Description | Example |
|---|---|---|---|
| Yes | Unique across all docs | |
| Yes | Full lesson title | |
| Yes | Order in sidebar | |
| Yes | Short label for sidebar | |
| Yes | SEO/preview text | |
| Yes | Expected completion time | |
| Yes | CEFR-aligned level | , , |
| Yes | Teaching layer | , , , |
| Yes | Minimum hardware required | (cloud), (GPU), (Jetson), (robot) |
| Yes | Measurable outcomes (3-5) | Array of strings |
| Yes | Related skill slugs | |
| Recommended | Cloud fallback | |
| Recommended | Concept count | |
| Yes | Generator attribution | |
| Yes | Creation date | |
| Yes | Content version | |
Deprecated Fields (Do Not Use)
| Deprecated | Use Instead |
|---|---|
| |
| |
| |
/ | with pattern |
Principles
Principle 1: Metadata-First Generation
Always generate complete metadata BEFORE content.
The metadata defines:
- How the lesson appears in navigation
- What proficiency constraints apply
- What hardware is required
- What learning is measured
Principle 2: Layer-Appropriate Structure
L1 (Manual Foundation):
- Direct explanations with analogies
- Step-by-step walkthroughs
- NO AI collaboration yet
- Heavy scaffolding
L2 (AI Collaboration):
- Three Roles framework (invisible to student)
- Bidirectional learning examples
- "Try With AI" prompts
- Moderate scaffolding
L3 (Intelligence Design):
- Create reusable skills/patterns
- Encode tacit knowledge
- Cross-project value
- Minimal scaffolding
L4 (Spec-Driven):
- Specification-first approach
- Compose accumulated intelligence
- Capstone integration
- Professional autonomy
Principle 3: Hardware-Aware Content
Every lesson must specify:
- Minimum
(1-4)hardware_tier
fallback for cloud userstier_1_path- Hardware gates for tier-specific content
**Hardware Tier**: {N} | **Cloud Path**: {fallback description}
Principle 4: Consistent Naming
ID Pattern:
lesson-{chapter}-{lesson}-{slug}
lesson-1-1-digital-to-physicallesson-3-4-services-parameterslesson-7-3-testing-validation
Sidebar Label Pattern:
"{C}.{L} {Short Title}"
"1.1 Digital to Physical""3.4 Services & Parameters""7.3 Testing Validation"
Lesson Structure Template
--- [Complete frontmatter - see above] --- # {Lesson Title} **Duration**: {N} minutes | **Layer**: {L1-L4} | **Tier**: {N} ({description}) {Opening hook - 2-3 paragraphs motivating the topic} ## Learning Objectives By the end of this lesson, you will be able to: - {Objective 1} - {Objective 2} - {Objective 3} ## {Section 1: Core Content} {Layer-appropriate content} ### {Subsection} {Progressive explanation} ## {Section 2: Practice/Application} {Hands-on content appropriate to layer} ## {Section 3: Assessment} (optional for L1) {Understanding validation} ## Try With AI {AI collaboration prompts - required for L2+} --- **Previous:** [Link] | **Next:** [Link]
Checklist (Use Before Every Lesson)
Metadata
- All required fields present
-
is unique and follows patternid -
notproficiency_levelcefr_level -
notduration_minutesduration -
array populatedskills -
specifiedhardware_tier -
for tier > 1tier_1_path
Content
- Opening hook engages reader
- Learning objectives measurable (Bloom's verbs)
- Layer-appropriate teaching approach
- Code examples have outputs (for L2+)
- "Try With AI" section present (for L2+)
Docusaurus
- File extension
.md - No Mermaid diagrams
- No
in prose< - Links use
extension.md - Build passes
Integration
This skill is typically invoked by:
agent duringcontent-implementer/sp.implement- Direct lesson creation workflows
- Module content generation
Dependencies:
- File naming and syntaxdocusaurus-conventions
- Bloom's taxonomy alignmentlearning-objectives
- Proficiency-appropriate assessmentsassessment-builder
Version History
| Version | Date | Change |
|---|---|---|
| 0.1.0 | 2025-11-28 | Initial placeholder |
| 1.0.0 | 2025-11-29 | Full implementation with metadata standards from Module 1 |