用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/microsoft/amplifier-bundle-recipes --skill recipe-to-dot命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | recipe-to-dot |
| description | Convention for generating DOT flowchart diagrams from Amplifier recipe YAML files |
| version | 1.0.0 |
Recipe YAML files define multi-step AI agent workflows, but they're hard to understand at a glance. DOT flowchart diagrams make recipes visually understandable. This skill documents the standard mapping from recipe YAML structure to DOT visual elements.
| Recipe Concept | DOT Shape | Fill Color | Style |
|---|---|---|---|
| Start/End nodes | oval | #e0e0e0 (gray) | filled,rounded |
| Bash step (type: bash) | box | #bbdefb (blue) | filled,rounded |
| Agent step (type: agent / default) | box | #c8e6c9 (green) | filled,rounded |
| Sub-recipe call (type: recipe) | box | #e0e0e0 (gray) | filled,rounded,dashed |
| Approval gate | diamond | #ffe0b2 (orange) | filled |
| Condition decision | diamond | #fff9c4 (yellow) | filled |
| Data/Output | note or cylinder | #e1bee7 (purple) | filled |
Step IDs are converted to readable labels:
.yaml → .dot and .png
recipes/validate-recipes.yaml → recipes/validate-recipes.dot + .pngexamples/code-review-recipe.yaml → examples/code-review-recipe.dot + .pngdot -Tpng recipe-name.dot -o recipe-name.pngThe recipe_to_dot Python function in amplifier_module_tool_recipes.recipe_to_dot generates DOT deterministically from YAML:
from amplifier_module_tool_recipes.recipe_to_dot import recipe_to_dot, recipe_dot_hash
# Generate DOT string
dot = recipe_to_dot("path/to/recipe.yaml")
# Get hash for freshness checking
hash = recipe_dot_hash("path/to/recipe.yaml")
DOT files embed a source_hash graph attribute that tracks the YAML's structural fingerprint.
The validate-recipes recipe (Phase 7) compares this hash against the current YAML to detect
stale diagrams — even when labels have been LLM-enhanced.
The standard generation pipeline (generate-recipe-docs recipe) includes an LLM pass that
rewrites node labels so a non-technical person can understand them:
This is the default stance — visual documentation should be accessible to anyone. The LLM preserves all structural elements (node IDs, edges, shapes, colors) and only rewrites label text and the graph title.
To generate or regenerate flow diagrams for a repo:
amplifier tool invoke recipes operation=execute \
recipe_path=recipes:recipes/generate-recipe-docs.yaml \
context='{"repo_path": "/path/to/bundle-repo"}'