Chapter Content Generator
Overview
This skill generates detailed educational content for individual textbook chapters, transforming chapter outlines (title, summary, concept list) into comprehensive learning material with appropriate reading level, rich visual elements, and interactive components. The skill is designed to run after the book-chapter-generator skill has created the chapter structure.
When to Use This Skill
Use this skill when:
- The
book-chapter-generator skill has created chapter directories with index.md files
- A chapter index.md contains: title, summary, and concepts covered list
- Detailed chapter content needs to be generated
- Content should be adapted to a specific reading level (junior high, senior high, college, graduate)
- Rich non-text elements (diagrams, MicroSims, infographics) are desired
Do NOT use this skill when:
- Chapter structure hasn't been created yet (use
book-chapter-generator first)
- Content already exists and just needs editing (use Edit tool directly)
- Generating other types of content (prompts, glossaries, etc.)
Workflow
Step 1: Verify Chapter File Exists
Verify that the input chapter name or path to the chapter file is present.
Expected input format:
- Chapter name: "01-intro-to-itil-and-config-mgmt" or "Chapter 1"
- Full path: "/docs/chapters/01-intro-to-itil-and-config-mgmt/index.md"
- Relative path: "chapters/01-intro-to-itil-and-config-mgmt/index.md"
Chapter directory structure:
/docs/chapters/NN-lowercase-name/index.md
Where:
NN = Two-digit chapter number with leading zero (e.g., "01", "07", "12")
lowercase-name = URL-friendly lowercase name with dashes, no spaces
Actions:
- If chapter name is provided, search for matching directory in
/docs/chapters/
- If path is provided, verify file exists at that location
- If file not found, ask user to specify correct chapter name or path
- Read the chapter index.md file
Step 2: Verify Chapter Content is Correct
Open the chapter file and check for required elements.
Required elements:
- Title in header 1 (# Title)
- Summary in level 2 header (## Summary)
- Concepts Covered in level 2 header (## Concepts Covered) with numbered list
Actions:
- Parse the chapter index.md file
- Extract:
- Chapter title
- Summary text
- List of concepts covered (numbered list)
- If any element is missing, ask user to provide the content as text
- Store concepts list for verification in Step 5
Step 3: Get the Reading Level
Extract the grade reading level from the /docs/course-description.md file.
Reading level indicators in course description:
- "junior-high", "junior high", "grades 7-9", "middle school" → Junior High
- "senior-high", "senior high", "grades 10-12", "high school" → Senior High
- "college", "undergraduate", "bachelor" → College
- "graduate", "master", "masters", "master's", "PhD", "doctoral" → Graduate
Actions:
- Read
/docs/course-description.md
- Search for reading level indicators in:
- Course title
- Target audience section
- Prerequisites section
- Course overview
- If not found, ask user: "What grade-level should be used to generate the content?"
- Default to Grade 10 (Senior High) if not specified
Reading level characteristics:
- Junior High (Grades 7-9): Simple sentences (12-18 words), common vocabulary, concrete examples, frequent visual aids
- Senior High (Grades 10-12): Mixed sentence complexity (15-22 words), technical vocabulary with definitions, balance of concrete and abstract
- College: Academic style (18-25 words), technical terminology, case studies, research context
- Graduate: Sophisticated prose (20-30+ words), full jargon, theoretical depth, research literature
See references/reading-levels.md for detailed guidelines on adapting content for each level.
Step 4: Generate Detailed Chapter Content
Generate comprehensive educational content based on the chapter outline, concept list, and reading level.
Content generation principles:
Reading level adaptation:
- Apply appropriate sentence complexity, vocabulary, and explanation style
- See
references/reading-levels.md for specific guidelines
Concept ordering:
- Present simple concepts first, complex concepts last
- Follow natural pedagogical progression
- Do NOT necessarily follow the order in "Concepts Covered" list
- Build on previously explained concepts
Non-text elements:
- Goal: No more than 3 paragraphs of pure text without a non-text element.
- Use diverse element types (don't repeat the same type).
- Place special focus on interactive elements (infographics, MicroSims).
- We appropriate, render equations in LaTeX surrounded by single dollar signs.
- See the math-equations.md file in the references for proper formatting of equations.
Non-text element types:
Elements embedded directly in markdown (no <details markdown="1"> block):
- Markdown lists (bullet or numbered) - ALWAYS put blank line before list
- Markdown tables - ALWAYS put blank line before table
Elements requiring diagram header and <details markdown="1"> specification blocks:
- Diagrams/drawings - System architectures, relationships, data flows
- Interactive infographics - Clickable concept maps, progressive disclosure, hovers with definitions appearing in tooltips consistent with the glossary
- MicroSims - p5.js simulations with interactive controls
- Charts - Bar, line, pie charts with quantitative data
- Timelines - Historical progression, sequential events
- Maps - Geographic distribution with movement arrows
- Workflow diagrams - Business processes with hover text
- Graph data models - Entity relationships using vis-network
- Causal Loop Diagrams - used in systems thinking and explaining causality
For each <details markdown="1"> block element, use this structure:
#### Diagram: [Brief descriptive title]
<details markdown="1">
<summary>[Brief descriptive title]</summary>
Type: [element-type]
[Detailed specification following guidelines in references/content-element-types.md]
Implementation: [Technology/approach]
</details>
Make SURE to put the level 4 header with the prefix #### Diagram: before the details. This is REQUIRED!
Specification requirements:
- Detailed enough that another skill or developer can implement without additional context
- Include all visual elements, data, labels, colors, interactions
- Specify canvas sizes, layout, default parameters
- For MicroSims: describe learning objective, controls, visual elements, behavior
- See
references/content-element-types.md for complete specification guidelines for each element type
Content structure:
- Start with introductory paragraphs connecting to chapter summary
- Present concepts in pedagogical order (simple to complex)
- Integrate non-text elements naturally throughout
- Use markdown lists and tables frequently (with blank lines before them)
- Include
<details markdown="1"> blocks for complex visual/interactive elements
- Place a level 4 markdown header before each
details block
#### Diagram: [Diagram Name]
- End with summary or key takeaways section
Interactive elements emphasis:
- Prioritize MicroSims and infographics that enable:
- Student interaction tracking
- Progress gauging
- Personalized content recommendations
- Each interactive element should have clear Learning objectives:
- Reference a section of the 2001 Bloom Taxonomy when you describe a learning objective:
- Remembering: Recalling facts, terms, basic concepts, and answers without necessarily understanding their meaning.
- Understanding: Explaining ideas or concepts, demonstrating comprehension by summarizing or rephrasing information.
- Applying: Using acquired knowledge to solve problems in new or unfamiliar situations.
- Analyzing: Breaking down information into parts to understand its structure and relationships, and drawing comparisons.
- Evaluating: Making judgments about information based on set criteria or standards, requiring critical thinking and justification.
- Creating: Producing new or original work by combining elements to form a novel whole or solution.
Step 5: Verify Completeness
After generating chapter content, verify all concepts have been covered.
Verification process:
- Review the generated content
- Check that each concept from "Concepts Covered" list appears in the content
- Create a checklist showing which concepts were covered
- If any concepts missing:
- Add content covering those concepts
- Integrate them naturally into existing structure
- Update the chapter index.md file with the complete generated content
- Make Absolutely Sure that the content has been written to the chapter index.md file. Do a word count to make sure that *ALL the content is present and that the TODO has been removed.
Actions:
- Replace the "TODO: Generate Chapter Content" placeholder with generated content
- Keep the existing title, summary, concepts list, and prerequisites sections
- Add the new detailed content after the prerequisites section
Step 6: Report Summary to User
Provide a concise summary of the content generation results.
Report should include:
- Confirmation that chapter content has been generated
- Reading level used
- Word count or approximate length
- Count of non-text elements by type:
- Markdown lists: X
- Markdown tables: X
- Diagrams: X
- Infographics: X
- MicroSims: X
- Charts: X
- Timelines: X
- Maps: X
- Workflows: X
- Graph models: X
- Number of interactive elements requiring skill execution
- Confirmation that all concepts were covered
Example report:
✅ Chapter content generated successfully!
Chapter: 01-intro-to-itil-and-config-mgmt
Reading level: Graduate
Content length: ~3,500 words
Non-text elements:
- 6 markdown lists
- 3 markdown tables
- 2 diagrams (CMDB architecture, ITIL process flow)
- 1 interactive timeline (ITIL evolution)
- 1 MicroSim (Configuration drift simulator)
- 1 workflow diagram (Change management process)
Interactive elements: 2 (timeline, MicroSim)
Skills required: 2 (microsim-p5 for MicroSim, infographic-generator for timeline)
All 20 concepts covered: ✓
Resources
This skill includes reference files that provide detailed guidelines for content generation:
references/content-element-types.md
Comprehensive specifications for all non-text element types (3-10 above). Includes:
- When to use each element type
- Required information for specifications
- Implementation approaches
- Example specifications in
<details markdown="1"> block format
- Place a level 4 Diagram header before each
details element
#### Diagram: [Diagram Name]
Load this reference when generating content to ensure proper specification of diagrams, MicroSims, infographics, charts, timelines, maps, workflows, and graph models.
references/reading-levels.md
Detailed guidelines for adapting content to different reading levels. Includes:
- Sentence structure and length guidelines
- Vocabulary choices
- Explanation styles
- Example complexity
- Assumed background knowledge
- Example text at each level
Load this reference when determining how to write content at the appropriate reading level.
Best Practices
Always read references: Load references/content-element-types.md and references/reading-levels.md before generating content
Maintain blank lines: Always place blank line before markdown lists and tables (MkDocs requirement)
Pedagogical ordering: Don't feel constrained by concept list order - teach concepts in the most effective sequence
Visual variety: Mix different types of non-text elements rather than using the same type repeatedly
Interactive emphasis: Prioritize MicroSims and infographics that enable student engagement tracking
Detailed specifications: Make <details markdown="1"> blocks comprehensive enough for implementation without additional context
Concept integration: Weave concepts together naturally rather than treating them as isolated topics
Appropriate depth: Match explanation depth to reading level (more scaffolding for junior high, more theory for graduate)
Verification: Always check that all concepts from "Concepts Covered" list appear in generated content
Consistent style: Maintain consistent voice, terminology, and visual style throughout chapter
1---2name: chapter-content-generator3description: This skill generates comprehensive chapter content for intelligent textbooks after the book-chapter-generator skill has created the chapter structure. Use this skill when a chapter index.md file exists with title, summary, and concept list, and detailed educational content needs to be generated at the appropriate reading level with rich non-text elements including diagrams, infographics, and MicroSims. (project, gitignored)4---56# Chapter Content Generator78## Overview910This skill generates detailed educational content for individual textbook chapters, transforming chapter outlines (title, summary, concept list) into comprehensive learning material with appropriate reading level, rich visual elements, and interactive components. The skill is designed to run after the `book-chapter-generator` skill has created the chapter structure.1112## When to Use This Skill1314Use this skill when:15- The `book-chapter-generator` skill has created chapter directories with index.md files16- A chapter index.md contains: title, summary, and concepts covered list17- Detailed chapter content needs to be generated18- Content should be adapted to a specific reading level (junior high, senior high, college, graduate)19- Rich non-text elements (diagrams, MicroSims, infographics) are desired2021Do NOT use this skill when:22- Chapter structure hasn't been created yet (use `book-chapter-generator` first)23- Content already exists and just needs editing (use Edit tool directly)24- Generating other types of content (prompts, glossaries, etc.)2526## Workflow2728### Step 1: Verify Chapter File Exists2930Verify that the input chapter name or path to the chapter file is present.3132**Expected input format:**33- Chapter name: "01-intro-to-itil-and-config-mgmt" or "Chapter 1"34- Full path: "/docs/chapters/01-intro-to-itil-and-config-mgmt/index.md"35- Relative path: "chapters/01-intro-to-itil-and-config-mgmt/index.md"3637**Chapter directory structure:**38```39/docs/chapters/NN-lowercase-name/index.md40```4142Where:43- `NN` = Two-digit chapter number with leading zero (e.g., "01", "07", "12")44- `lowercase-name` = URL-friendly lowercase name with dashes, no spaces4546**Actions:**471. If chapter name is provided, search for matching directory in `/docs/chapters/`482. If path is provided, verify file exists at that location493. If file not found, ask user to specify correct chapter name or path504. Read the chapter index.md file5152### Step 2: Verify Chapter Content is Correct5354Open the chapter file and check for required elements.5556**Required elements:**57581. **Title** in header 1 (# Title)592. **Summary** in level 2 header (## Summary)603. **Concepts Covered** in level 2 header (## Concepts Covered) with numbered list6162**Actions:**631. Parse the chapter index.md file642. Extract:65 - Chapter title66 - Summary text67 - List of concepts covered (numbered list)683. If any element is missing, ask user to provide the content as text694. Store concepts list for verification in Step 57071### Step 3: Get the Reading Level7273Extract the grade reading level from the `/docs/course-description.md` file.7475**Reading level indicators in course description:**7677- "junior-high", "junior high", "grades 7-9", "middle school" → Junior High78- "senior-high", "senior high", "grades 10-12", "high school" → Senior High79- "college", "undergraduate", "bachelor" → College80- "graduate", "master", "masters", "master's", "PhD", "doctoral" → Graduate8182**Actions:**831. Read `/docs/course-description.md`842. Search for reading level indicators in:85 - Course title86 - Target audience section87 - Prerequisites section88 - Course overview893. If not found, ask user: "What grade-level should be used to generate the content?"904. Default to Grade 10 (Senior High) if not specified9192**Reading level characteristics:**93- **Junior High (Grades 7-9):** Simple sentences (12-18 words), common vocabulary, concrete examples, frequent visual aids94- **Senior High (Grades 10-12):** Mixed sentence complexity (15-22 words), technical vocabulary with definitions, balance of concrete and abstract95- **College:** Academic style (18-25 words), technical terminology, case studies, research context96- **Graduate:** Sophisticated prose (20-30+ words), full jargon, theoretical depth, research literature9798See `references/reading-levels.md` for detailed guidelines on adapting content for each level.99100### Step 4: Generate Detailed Chapter Content101102Generate comprehensive educational content based on the chapter outline, concept list, and reading level.103104**Content generation principles:**1051061. **Reading level adaptation:**107 - Apply appropriate sentence complexity, vocabulary, and explanation style108 - See `references/reading-levels.md` for specific guidelines1091102. **Concept ordering:**111 - Present simple concepts first, complex concepts last112 - Follow natural pedagogical progression113 - Do NOT necessarily follow the order in "Concepts Covered" list114 - Build on previously explained concepts1151163. **Non-text elements:**117 - Goal: No more than 3 paragraphs of pure text without a non-text element.118 - Use diverse element types (don't repeat the same type).119 - Place special focus on interactive elements (infographics, MicroSims).120 - We appropriate, render equations in LaTeX surrounded by single dollar signs.121 - See the math-equations.md file in the references for proper formatting of equations.122123**Non-text element types:**124125Elements embedded directly in markdown (no `<details markdown="1">` block):1261271. **Markdown lists** (bullet or numbered) - ALWAYS put blank line before list1282. **Markdown tables** - ALWAYS put blank line before table129130Elements requiring diagram header and `<details markdown="1">` specification blocks:1311323. **Diagrams/drawings** - System architectures, relationships, data flows1334. **Interactive infographics** - Clickable concept maps, progressive disclosure, hovers with definitions appearing in tooltips consistent with the glossary1345. **MicroSims** - p5.js simulations with interactive controls1356. **Charts** - Bar, line, pie charts with quantitative data1367. **Timelines** - Historical progression, sequential events1378. **Maps** - Geographic distribution with movement arrows1389. **Workflow diagrams** - Business processes with hover text13910. **Graph data models** - Entity relationships using vis-network14011. **Causal Loop Diagrams** - used in systems thinking and explaining causality141142For each `<details markdown="1">` block element, use this structure:143144```markdown145#### Diagram: [Brief descriptive title]146147<details markdown="1">148 <summary>[Brief descriptive title]</summary>149 Type: [element-type]150151 [Detailed specification following guidelines in references/content-element-types.md]152153 Implementation: [Technology/approach]154</details>155```156157Make SURE to put the level 4 header with the prefix `#### Diagram:` before the details. This is REQUIRED!158159**Specification requirements:**160- Detailed enough that another skill or developer can implement without additional context161- Include all visual elements, data, labels, colors, interactions162- Specify canvas sizes, layout, default parameters163- For MicroSims: describe learning objective, controls, visual elements, behavior164- See `references/content-element-types.md` for complete specification guidelines for each element type165166**Content structure:**1671681. Start with introductory paragraphs connecting to chapter summary1692. Present concepts in pedagogical order (simple to complex)1703. Integrate non-text elements naturally throughout1714. Use markdown lists and tables frequently (with blank lines before them)1725. Include `<details markdown="1">` blocks for complex visual/interactive elements1736. Place a level 4 markdown header before each `details` block174 ```#### Diagram: [Diagram Name]```1756. End with summary or key takeaways section176177**Interactive elements emphasis:**178- Prioritize MicroSims and infographics that enable:179 - Student interaction tracking180 - Progress gauging181 - Personalized content recommendations182- Each interactive element should have clear **Learning objectives:**183- Reference a section of the 2001 Bloom Taxonomy when you describe a learning objective:184 - **Remembering:** Recalling facts, terms, basic concepts, and answers without necessarily understanding their meaning.185 - **Understanding:** Explaining ideas or concepts, demonstrating comprehension by summarizing or rephrasing information.186 - **Applying:** Using acquired knowledge to solve problems in new or unfamiliar situations.187 - **Analyzing:** Breaking down information into parts to understand its structure and relationships, and drawing comparisons.188 - **Evaluating:** Making judgments about information based on set criteria or standards, requiring critical thinking and justification.189 - **Creating:** Producing new or original work by combining elements to form a novel whole or solution. 190191### Step 5: Verify Completeness192193After generating chapter content, verify all concepts have been covered.194195**Verification process:**1961. Review the generated content1972. Check that each concept from "Concepts Covered" list appears in the content1983. Create a checklist showing which concepts were covered1994. If any concepts missing:200 - Add content covering those concepts201 - Integrate them naturally into existing structure2025. Update the chapter index.md file with the complete generated content2036. Make **Absolutely Sure** that the content has been written to the chapter index.md file. Do a word count to make sure that **ALL* the content is present and that the TODO has been removed.204205**Actions:**206- Replace the "TODO: Generate Chapter Content" placeholder with generated content207- Keep the existing title, summary, concepts list, and prerequisites sections208- Add the new detailed content after the prerequisites section209210### Step 6: Report Summary to User211212Provide a concise summary of the content generation results.213214**Report should include:**2151. Confirmation that chapter content has been generated2162. Reading level used2173. Word count or approximate length2184. Count of non-text elements by type:219 - Markdown lists: X220 - Markdown tables: X221 - Diagrams: X222 - Infographics: X223 - MicroSims: X224 - Charts: X225 - Timelines: X226 - Maps: X227 - Workflows: X228 - Graph models: X2295. Number of interactive elements requiring skill execution2306. Confirmation that all concepts were covered231232**Example report:**233234```235✅ Chapter content generated successfully!236237Chapter: 01-intro-to-itil-and-config-mgmt238Reading level: Graduate239Content length: ~3,500 words240241Non-text elements:242- 6 markdown lists243- 3 markdown tables244- 2 diagrams (CMDB architecture, ITIL process flow)245- 1 interactive timeline (ITIL evolution)246- 1 MicroSim (Configuration drift simulator)247- 1 workflow diagram (Change management process)248249Interactive elements: 2 (timeline, MicroSim)250Skills required: 2 (microsim-p5 for MicroSim, infographic-generator for timeline)251252All 20 concepts covered: ✓253```254255## Resources256257This skill includes reference files that provide detailed guidelines for content generation:258259### references/content-element-types.md260261Comprehensive specifications for all non-text element types (3-10 above). Includes:262- When to use each element type263- Required information for specifications264- Implementation approaches265- Example specifications in `<details markdown="1">` block format266- Place a level 4 Diagram header before each `details` element267268```markdown269#### Diagram: [Diagram Name]270```271272Load this reference when generating content to ensure proper specification of diagrams, MicroSims, infographics, charts, timelines, maps, workflows, and graph models.273274### references/reading-levels.md275276Detailed guidelines for adapting content to different reading levels. Includes:277- Sentence structure and length guidelines278- Vocabulary choices279- Explanation styles280- Example complexity281- Assumed background knowledge282- Example text at each level283284Load this reference when determining how to write content at the appropriate reading level.285286## Best Practices2872881. **Always read references:** Load `references/content-element-types.md` and `references/reading-levels.md` before generating content2892902. **Maintain blank lines:** Always place blank line before markdown lists and tables (MkDocs requirement)2912923. **Pedagogical ordering:** Don't feel constrained by concept list order - teach concepts in the most effective sequence2932944. **Visual variety:** Mix different types of non-text elements rather than using the same type repeatedly2952965. **Interactive emphasis:** Prioritize MicroSims and infographics that enable student engagement tracking2972986. **Detailed specifications:** Make `<details markdown="1">` blocks comprehensive enough for implementation without additional context2993007. **Concept integration:** Weave concepts together naturally rather than treating them as isolated topics3013028. **Appropriate depth:** Match explanation depth to reading level (more scaffolding for junior high, more theory for graduate)3033049. **Verification:** Always check that all concepts from "Concepts Covered" list appear in generated content30530610. **Consistent style:** Maintain consistent voice, terminology, and visual style throughout chapter