← ClaudeAtlas

create-workflow-from-diagramlisted

This skill creates a Dapr workflow application from a diagram. Use this skill when the user provides a workflow image (PNG, JPG, JPEG, GIF, WebP) or a BPMN 2.0 XML file (.bpmn, .bpmn20.xml) and asks to "create a workflow from this diagram", "generate a Dapr workflow from this image", "scaffold a workflow from this BPMN", or similar. Output language is Go, Python, .NET (C#), Java, or JavaScript — selected by the user or inferred from the prompt.
diagrid-labs/dapr-skills · ★ 7 · AI & Automation · score 78
Install: claude install-skill diagrid-labs/dapr-skills
# Create Dapr Workflow from Diagram ## Overview This skill converts a workflow diagram into a runnable Dapr workflow project. Two input paths are supported: - **Image** (PNG / JPG / JPEG / GIF / WebP) — uses Claude's vision to extract workflow structure - **BPMN 2.0 XML** (`.bpmn`, `.bpmn20.xml`) — parses the XML deterministically Both paths produce the same intermediate representation (IR, JSON Lines), which is then rendered into code for the target language. ## Execution Order You MUST follow these phases in strict order: 1. **Check specification** — Confirm you have the input diagram + target language. Ask clarifying questions only if missing. 2. **Phase 0: Detect input type** — Decide between the image path and the BPMN path. 3. **Phase 1: Diagram → IR** — Emit JSON Lines IR per `prompts/ir-schema.md`. 4. **Phase 2: Validate IR** — Light checks per `prompts/ir-schema.md` acceptance rules. 5. **Phase 3: IR → code** — Render the project for the target language using `prompts/languages/<lang>.md`. 6. **Create README.md** — Summarise the generated project + how to run it. 7. **Show final message** — Your LAST output MUST be EXACTLY the message defined in `## Show final message`. No extra text. ## Check specification You need three things. Ask at most three clarifying questions, interview-style, only for items not already provided: 1. **Input diagram** — a path to a PNG/JPG/JPEG/GIF/WebP image or a `.bpmn` / `.bpmn20.xml` file. If the user pasted the image directly i