create-workflow-from-diagram

create-workflow-from-diagram is a skill for Claude Code from diagrid-labs/dapr-skills. It costs 98 tokens per session (3,016 once invoked), scanned A, original, MIT.

A process for turning a workflow diagram or BPMN 2.0 file into a runnable Dapr Workflow project. BPMN is a standard format for describing business processes.

In plain words
What is it for?
Use it with PNG, JPG, GIF, WebP, or BPMN input to extract the workflow, validate it, generate code in a chosen language, and create a README.
Why use it?
It helps convert a visual process into structured workflow data and then into code without manually recreating every step.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the dapr-skills plugin — 29 skills shipped together

Good fit Use it with PNG, JPG, GIF, WebP, or BPMN input to extract the workflow, validate it, generate code in a chosen language, and create a README.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/diagrid-labs/dapr-skills/create-workflow-from-diagram
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add diagrid-labs/dapr-skills --skill create-workflow-from-diagram
Clone the repo
git clone --depth 1 https://github.com/diagrid-labs/dapr-skills

Made for: Claude Code.

Or install dapr-skills, the plugin that ships this one along with the rest of its 29 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for create-workflow-from-diagram

README.md
[![agentmods](https://agentmods.dev/badge/skills/diagrid-labs/dapr-skills/create-workflow-from-diagram/github.svg)](https://agentmods.dev/skills/diagrid-labs/dapr-skills/create-workflow-from-diagram)
Your own site
<a href="https://agentmods.dev/skills/diagrid-labs/dapr-skills/create-workflow-from-diagram"><img src="https://agentmods.dev/badge/skills/diagrid-labs/dapr-skills/create-workflow-from-diagram/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for create-workflow-from-diagram

Your own site · 80×15
<a href="https://agentmods.dev/skills/diagrid-labs/dapr-skills/create-workflow-from-diagram"><img src="https://agentmods.dev/badge/skills/diagrid-labs/dapr-skills/create-workflow-from-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,016 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 9
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00098 $0.03016
Opus 5.5 $0.00039 $0.01206
Sonnet 5.5 $0.00020 $0.00603
Haiku 4.5 $0.00010 $0.00302

Measured 9d ago against content hash dba9790e6f01, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

create-workflow-from-diagram scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/create-workflow-from-diagram/SKILL.md · 152 lines

How it starts

The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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) defined in prompts/ir-schema.md — records keyed by __type (metadata, participant, activity, gateway, start_end_node, edge, …, ending with result + end_of_ir_stream). Every prompts/languages/<lang>.md prompt renders code from that one IR.

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. Check optional tools — Check whether the Diagrid Dapr Dev Dashboard is installed and remember the result. Never stop, ask or install for this.
  3. Phase 0: Detect input type — Decide between the image path and the BPMN path.
  4. Phase 1: Diagram → IR — Emit JSON Lines IR per prompts/ir-schema.md.
  5. Phase 2: Validate IR — Check the stream outcome and structure per prompts/ir-schema.md (Steps 4–6 and "Consuming the IR"); resolve open questions with the user.
  6. Phase 3: IR → code — Render the project for the target language using prompts/languages/<lang>.md.
  7. Create README.md — Summarise the generated project + how to run it.
  8. Show final message — Your LAST output MUST be EXACTLY the message defined in ## Show final message: the closing sentence followed by the Dev Dashboard recommendation. Do NOT add any other text, summary, or commentary.

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 into the chat, use that.
  2. Target language — one of: go, python, csharp, javascript, java. Default: python.
  3. Project name — used as the folder name. No spaces. Defaults to a camelCased name derived from the workflow's <bpmn:process @id> or image filename.

Read the full file on GitHub · 152 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago Changed · -3 lines · -70 tokens per session dba9790e6f01
  2. 11d ago Changed · +2 lines ca0fc4bf7b0b
  3. 12d ago Changed · +44 tokens per session da69d1f09800
  4. 13d ago Changed · +9 lines 0cc03040fa08
  5. 14d ago Changed · +3 lines ed59eec2b3bc
  6. 1mo ago First seen · 141 lines · 124 tokens per session scan A 492e591f97f3

Subscribe to this mod's changes

create-workflow-from-diagram is a skill published in the GitHub repository diagrid-labs/dapr-skills (13 stars, last pushed 10d ago), licensed MIT. It adds 98 tokens to every session and 3,016 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

offensive-api-abuse

Advanced API exploitation methodology focused on business logic abuse and sophisticated attack patterns that bypass traditional security controls. Covers business logic bypass through API call chaining and workflow manipulation. Addresses GraphQL-specific attacks including batching for credential brute-force, query…

SnailSploit/Claude-Red · 184 tokens

offensive-graphql

Offensive methodology for attacking GraphQL APIs during penetration tests and bug bounty engagements. Covers the full attack lifecycle: endpoint discovery, introspection abuse and blind schema reconstruction when introspection is disabled, authentication and authorization bypass through Relay node IDs and nested…

SnailSploit/Claude-Red · 219 tokens

agent-readiness-audit

Audit whether AI agents can actually use your product — docs, APIs, onboarding, errors, and discoverability, evaluated from a non-human user's perspective. Use when asked if a product is agent-ready, to audit a site or API for AI usability, to prepare for agentic traffic, or when agents keep failing against your…

mohitagw15856/pm-claude-skills · 117 tokens

mcp-server-spec

Design an MCP server for a product — the tool surface, auth model, and safety boundaries that make it genuinely usable by AI agents. Use when asked to spec an MCP server, expose a product to agents, design tools for Claude or other MCP clients, or review why an existing MCP server performs badly. Produces a complete…

mohitagw15856/pm-claude-skills · 101 tokens

api-docs-writer

Escribe documentación clara y orientada a desarrolladores. Úsalo cuando se te pida documentar un endpoint de API, escribir docs de referencia de API, crear una guía de desarrollador, o convertir una especificación cruda o colección Postman en documentación. Produce documentación de endpoint con descripciones…

mohitagw15856/pm-claude-skills · 80 tokens

api-security-best-practices

Implement secure API design patterns including authentication, authorization, input validation, rate limiting, and protection against common API vulnerabilities.

lingxling/awesome-skills-cn · 29 tokens