create-workflow-from-diagram

Solid

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.

AI & Automation 12 stars 1 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 82/100

Stars 20%
37
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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...

Details

Author
diagrid-labs
Repository
diagrid-labs/dapr-skills
Created
6 months ago
Last Updated
yesterday
Language
N/A
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category