ALM Export
Export playbooks as clean, standalone markdown.
Instructions
Determine Scope
If $ARGUMENTS specifies a task type, export only that playbook. If "all" or empty, export all playbooks.
Gather Playbooks
- •Read all
.mdfiles in~/.claude/alm/playbooks/(including_global.mdif it exists, excluding_index.md) - •For each playbook, also read the confidence entry from
~/.claude/alm/confidence.json
If no playbooks exist in ~/.claude/alm/playbooks/, check if seed playbooks exist at ${CLAUDE_PLUGIN_ROOT}/seed-playbooks/ and offer to export those instead.
Output Format
For each playbook, output:
code
================================================================
PLAYBOOK: {task-type}
Confidence: {score} ({autonomyLevel}) | Sessions: {totalOutcomes} | Source: {source}
Last reflection: {lastReflection or "never"}
================================================================
{full playbook content}
If exporting multiple playbooks, separate them with blank lines.
At the end, output:
code
---
Exported {N} playbook(s) from ~/.claude/alm/playbooks/
The output should be clean enough to copy-paste into a file or share with teammates.