AgentSkillsCN

md-to-runbook

将 Markdown 文档转换为 Atuin Runbook(.atrb)格式,并配备交互式终端。当您需要将运行手册、迁移文档,或分步指南转换为可执行的运行手册格式时,此工具将助您轻松完成转换。当您听到“转换为运行手册”、“制作运行手册”、“创建 .atrb”,或在处理 Atuin 运行手册文件时,此工具将为您点亮明灯。

SKILL.md
--- frontmatter
name: md-to-runbook
description: Convert Markdown documentation to Atuin Runbook (.atrb) format with interactive terminals. Use when converting runbooks, migration docs, or step-by-step guides to executable runbook format. Triggers on "convert to runbook", "make runbook", "create .atrb", or when working with Atuin runbook files.

Markdown to Runbook Conversion

Convert markdown documentation to Atuin Runbook (.atrb) YAML format with interactive terminal blocks.

Quick Start

bash
uv run ~/.claude/skills/md-to-runbook/scripts/md_to_atrb.py <input.md> [output.atrb]

What Gets Converted

MarkdownATRB NodeNotes
# HeadingheadingLevels 1-6 supported
Paragraphsparagraph
- [ ] itemcheckListItemUnchecked checkbox
- [x] itemcheckListItemChecked checkbox
- itembulletListItem
1. itemnumberedListItem
```bash (commands)runInteractive terminal
```text (output)codeBlockDisplay only
TablestableFull cell formatting
> quotequote
**bold**styles: {bold: true}
`code`styles: {code: true}

Executable vs Display Code Blocks

Bash blocks with actual commands become interactive run nodes:

  • Commands: pnpm, npm, yarn, npx
  • Scripts: ./scripts/..., doppler run
  • Shell ops: cat, cd, pwd, ls, for...done
  • Env vars: CONVEX_URL=..., ENCRYPTION_KEY=...

Example output or non-bash code stays as display-only codeBlock.

Options

bash
# Specify output path
uv run md_to_atrb.py input.md output.atrb

# Override runbook name (default: first heading or filename)
uv run md_to_atrb.py input.md --name "My Runbook"

Schema Reference

See references/atrb-schema.md for full ATRB node type documentation.