一键导入
md-scaffold
Scaffold properly structured Markdown files from templates for clean first-pass conversion
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold properly structured Markdown files from templates for clean first-pass conversion
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| type | skill |
| lifecycle | stable |
| inheritance | inheritable |
| name | md-scaffold |
| description | Scaffold properly structured Markdown files from templates for clean first-pass conversion |
| tier | standard |
| applyTo | **/*scaffold* |
| currency | "2026-04-22T00:00:00.000Z" |
| lastReviewed | "2026-04-30T00:00:00.000Z" |
Start right, convert clean — templates that work with every converter
Generate properly structured Markdown files from battle-tested templates. Each template includes correct frontmatter, extended syntax examples, converter directives, and navigation sentinels so documents convert cleanly on first pass.
| Template | Purpose | Includes |
|---|---|---|
report | Formal report with TOC | Executive summary, sections, appendix, tables |
tutorial | Step-by-step guide | Prerequisites, learning objectives, exercises |
reference | CLI/API reference | Commands, parameters, examples |
slides | Gamma-ready presentation | H2 slide breaks, speaker notes format |
email | Newsletter/governance email | YAML frontmatter for RFC 5322 headers |
# Create a report
node .github/muscles/md-scaffold.cjs report "Quarterly Review"
# Create a tutorial with custom output path
node .github/muscles/md-scaffold.cjs --output docs/guide.md tutorial "Getting Started"
# List available templates
node .github/muscles/md-scaffold.cjs --list
# Create slides for a presentation
node .github/muscles/md-scaffold.cjs slides "Sprint Demo"
# Create email template
node .github/muscles/md-scaffold.cjs email "Weekly Update"
| Option | Description |
|---|---|
--output PATH | Custom output path (default: title-slugified.md) |
--list | List all available templates |
--author NAME | Set author in frontmatter |
--force | Overwrite existing file |
markdown-lint.cjs on first run<!-- nav:start --> / <!-- nav:end --> markers for nav-inject.cjs---
title: "{{title}}"
author: "{{author}}"
date: "{{date}}"
style: professional
toc: true
---
Includes:
---
title: "{{title}}"
author: "{{author}}"
date: "{{date}}"
difficulty: intermediate
time: "30 minutes"
---
Includes:
---
title: "{{title}}"
version: "1.0.0"
date: "{{date}}"
---
Includes:
---
title: "{{title}}"
author: "{{author}}"
date: "{{date}}"
format: gamma
---
Includes:
<!-- notes: -->---
to: recipient@example.com
from: sender@example.com
subject: "{{title}}"
cc:
reply-to:
---
Includes:
# Scaffold initial docs
node .github/muscles/md-scaffold.cjs report "Project Charter"
node .github/muscles/md-scaffold.cjs reference "CLI Reference"
node .github/muscles/md-scaffold.cjs tutorial "Getting Started"
# Scaffold → Edit → Convert
node .github/muscles/md-scaffold.cjs report "Q4 Review"
# ... edit quarterly-review.md ...
node .github/muscles/md-to-word.cjs quarterly-review.md --style professional
| Problem | Cause | Solution |
|---|---|---|
| File already exists | Default won't overwrite | Use --force or --output |
| Template not found | Typo in template name | Use --list to see options |
| Frontmatter invalid | Manual editing broke YAML | Re-scaffold or fix YAML syntax |
.github/muscles/md-scaffold.cjs (v1.0.0)
Skill version: 2.0.0 | Last updated: 2026-04-14 | Category: document-conversion
Build applications powered by GitHub Copilot using the Copilot SDK — session management, custom tools, streaming, hooks, MCP servers, BYOK, deployment patterns
CI/CD pipelines, infrastructure as code, and deployment automation for Azure workloads
Domain: DevOps & Cloud Engineering
Convert Word documents (.docx) to clean Markdown with image extraction and pandoc cleanup
Convert Markdown to RFC 5322 email (.eml) with inline CSS and CID images
Convert Markdown to EPUB 3 e-books via Pandoc.