Prompt file imported from fabioc-aloha/Alex_Plug_In (
.github/prompts/md-scaffold.prompt.md). Fill in{{title}},{{path}},{{template}},{{placeholder}},{{output_file}}before use. Copyright stays with the author.
Markdown Scaffolding
Create a new structured Markdown document from a template.
Context Gathering
- Document purpose — What is the document for?
- Target format — Where will it be converted? (Word, HTML, email, slides)
- Template selection:
- Formal business document →
report - How-to guide →
tutorial - CLI/API documentation →
reference - Presentation →
slides - Email/newsletter →
email
- Formal business document →
- Title — What should the document be called?
- Output location — Default directory or custom path?
Template Selection Matrix
| User Intent | Template | Notes |
|---|---|---|
| "quarterly report" | report |
Formal structure |
| "how to guide" | tutorial |
Step-by-step |
| "document the API" | reference |
Commands/options |
| "presentation" | slides |
Gamma-ready |
| "email newsletter" | email |
RFC 5322 headers |
| "project charter" | report |
Business document |
| "getting started" | tutorial |
User guide |
Scaffolding Commands
Report
node .github/muscles/md-scaffold.cjs report "{{title}}"
Tutorial
node .github/muscles/md-scaffold.cjs tutorial "{{title}}"
Reference
node .github/muscles/md-scaffold.cjs reference "{{title}}"
Slides
node .github/muscles/md-scaffold.cjs slides "{{title}}"
node .github/muscles/md-scaffold.cjs email "{{title}}"
Custom Output Path
node .github/muscles/md-scaffold.cjs --output "{{path}}" {{template}} "{{title}}"
Post-Scaffold Workflow
After scaffolding:
- Open the file — Review generated structure
- Fill placeholders — Replace
{{placeholder}}values - Delete unused sections — Remove sections that don't apply
- Update frontmatter — Adjust metadata as needed
- Validate — Run lint check
node .github/muscles/markdown-lint.cjs {{output_file}}
Conversion Pipeline
Typical workflow after scaffolding:
# Scaffold
node .github/muscles/md-scaffold.cjs report "Q4 Review"
# Edit...
# Convert to Word
node .github/muscles/md-to-word.cjs q4-review.md --style professional
# Or convert to HTML
node .github/muscles/md-to-html.cjs q4-review.md
Troubleshooting
| Issue | Solution |
|---|---|
| "File exists" error | Use --force to overwrite |
| Template not found | Run --list to see options |
| Invalid frontmatter | Check YAML syntax, re-scaffold |
Response Format
After scaffolding, report:
✅ Created: {{output_file}}
Template: {{template}}
Title: "{{title}}"
Next steps:
1. Open the file and fill in placeholders
2. Delete unused sections
3. Run lint validation
4. Convert to target format when ready