AgentSkillsCN

export

将 ALM 操作手册导出为独立的 Markdown 文件,便于分享、版本控制,或手动编辑。

SKILL.md
--- frontmatter
name: export
description: Export ALM playbooks as standalone markdown for sharing, version control, or manual editing.
user-invocable: true
argument-hint: "[task-type | all]"

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

  1. Read all .md files in ~/.claude/alm/playbooks/ (including _global.md if it exists, excluding _index.md)
  2. 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.