From content-specialized
Rebuild the course HTML from markdown sources and report what was generated. Useful after content updates to verify the build succeeds and see what changed. Invokable with /regenerate-course-content or /rebuild.
How this skill is triggered — by the user, by Claude, or both
Slash command
/content-specialized:regenerate-course-contentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill rebuilds the static HTML course site from markdown sources using the TypeScript build system. It runs the build process, reports what was generated, and provides guidance on verification steps.
This skill rebuilds the static HTML course site from markdown sources using the TypeScript build system. It runs the build process, reports what was generated, and provides guidance on verification steps.
Use this skill whenever:
npm run build
What this does:
content/week_*/ to HTMLcontent/week_X/images/ to output/week_X/images/Expected output:
Extract key information from build output:
Success indicators:
✨ Built X HTML files successfully!
Files generated:
Assets processed:
Validation results:
If the user made recent changes, correlate them with build output:
Recent file changes:
# Check what markdown files were recently modified
git status content/
Cross-reference with build:
Provide a concise summary to the user:
✓ Course rebuilt successfully
**Build Results:**
- **Files Generated:** X HTML files across Y weeks
- **Assets Minified:** Z CSS/JS files (total size reduction: XX%)
- **Images Copied:** N images
**Course Structure:**
- Week 1: X topics
- Week 2: Y topics
- Week 3: Z topics
- Week 4: A topics
- Week 5: B topics
- Week 6: C topics
**Validation:**
- ✓ All weeks validated
- ⚠️ Week X: Files not listed in index.md (will be appended): file1.md, file2.md
**Output Location:** `output/`
**Next Steps:**
- Open `output/index.html` in browser to view
- Or open specific week: `output/week_X/topic.html`
- Verify charts render correctly
- Test theme switcher (light/dark modes)
If the build fails:
Common errors:
Error reporting:
❌ Build failed
**Error Output:**
[Show relevant error messages from npm run build]
**Common Causes:**
- Invalid markdown syntax
- Missing image files referenced in markdown
- Malformed chart configuration
- TypeScript errors in build script
**Troubleshooting:**
1. Check the error message for file/line references
2. Verify all image paths exist
3. Validate chart JSON syntax
4. Check markdown formatting
If user wants to view immediately:
Provide instructions based on platform:
macOS:
open output/index.html
Linux:
xdg-open output/index.html
Windows:
start output/index.html
Or provide the file path:
File location: file:///Users/.../output/index.html
After building, suggest these verification steps:
output/index.html displays correctlyTypical build times:
Watch mode (optional):
npm run dev
Typical workflow:
Edit markdown content:
# Edit course materials
vim content/week_1/reasoning.md
Add/update images:
# Use /add-image skill or manually move to content/week_X/images/
Rebuild course:
/regenerate-course-content
Verify in browser:
open output/week_1/reasoning.html
Commit changes:
git add content/week_1/reasoning.md
/commit
Key files:
src/build-html.ts - Main build scriptsrc/templates/ - Eta HTML templatessrc/markdown-processor.ts - Markdown-it configurationsrc/chart-processor.ts - Chart.js integrationsrc/mermaid-processor.ts - Mermaid diagram handlingBuild process:
content/week_*/ for markdown filesindex.md fileschart, mermaid)Output structure:
output/
├── index.html (homepage)
├── assets/
│ ├── styles.css (minified)
│ ├── *.js (minified)
│ └── logo.png
├── week_1/
│ ├── index.html
│ ├── topic.html
│ └── images/
├── week_2/
│ └── ...
Example error:
Error parsing chart in content/week_1/reasoning.md
SyntaxError: Unexpected token
Solution:
Example error:
Warning: Image not found: content/week_5/images/missing.png
Solution:
Example error:
src/build-html.ts:123:45 - error TS2339: Property 'foo' does not exist
Solution:
src/Always rebuild after:
Don't need to rebuild for:
npm run devCause: Browser caching
Solution:
# Hard refresh the page
# macOS: Cmd+Shift+R
# Windows/Linux: Ctrl+Shift+R
# Or clear browser cache for file:// URLs
Cause:
content/week_X/images/Solution:
images/filename.png)content/week_X/images/ foldernpm run buildCause:
Solution:
options object structureCause:
Solution:
The /regenerate-course-content skill provides a quick way to:
✅ Rebuild the course - Regenerate all HTML from markdown ✅ Verify build success - Check for errors and warnings ✅ See what changed - Summary of generated files and assets ✅ Get next steps - Guidance on verification and testing
Use /regenerate-course-content (or /rebuild) after content updates to ensure everything builds correctly!
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub amdmax/claude_marketplace --plugin content-specialized