Skip to main content

workflow-generator

Scan any project and generate WORKFLOW.html — a dark-mode visual system diagram showing every component, how they talk to each other, and where your throughput ceiling actually is.

Works with Python, Node.js, Go, Java, Rust, Ruby, and mixed projects. No external dependencies for the core scanner. Vendored and generated directories (node_modules, venv, site-packages, dist, …) are never scanned, and capacity figures are clearly labeled as static-analysis estimates.

Live demo → — generated from fastapi/full-stack-fastapi-template, unmodified.

Running workflow-generator against fastapi/full-stack-fastapi-template, from pip install to the generated diagram

(real CLI output, unscripted — static screenshot if you'd rather not autoplay)

What it produces

Every generated page contains:

Section What you get
Stat row Workers · Concurrent I/O ceiling · Semaphore limit · Rate limit · Practical throughput
Architecture diagram Layered flow: external sources → gateway → API → queues → AI → storage
Data flow cards Write path, read/query path, background jobs — inferred from what's detected
Concurrency table Every layer: model · ceiling · limiting factor
Bottleneck analysis Ranked CRITICAL → LOW with mitigation notes
Codebase dependency graph Force-directed module/import graph — click a node to isolate its neighbors, hover for file details. Import-direction edges are clearly distinguished from real observed traffic (see below)
Guided tour Spotlight walkthrough of every section, shown automatically the first time a report is opened; replay anytime with the ? button

Codebase dependency graph

Every source file (Python, JS/TS, Go, Java, Rust, Ruby) becomes a node; every real import becomes an edge — resolved with a language-appropriate parser (Python's ast module, regex for JS/TS/Go/ Java/Rust/Ruby), not guessed. Files that match an already-detected component (an LLM call, a database client, a queue) get an edge to that component too, so you can see exactly which files talk to Redis, OpenAI, etc. Large repos (350+ files) are automatically aggregated into directory-level nodes so the graph stays readable; override with --graph-detail files or --graph-detail dirs.

By default the graph only shows what the code says (import direction, static "this file calls Redis"), which is honest but not the same as real traffic. Pass --access-log /path/to/access.log (any combined/common log format) to overlay real observed request counts onto the HTTP-entry edges — and the generated report includes a ready-to-run k6 load-test script covering up to 5 detected routes, so the "Practical throughput" number can be checked against a real measurement instead of only a static-analysis estimate.

What it detects

Category Examples
API frameworks FastAPI, Flask, Django, Express, Nest.js, Gin
Gateways nginx, Caddy, Traefik (with rate limits + worker_connections)
LLM providers OpenAI, Anthropic Claude, Cohere, AWS Bedrock
Vector stores Qdrant, Pinecone, Weaviate, ChromaDB, pgvector, FAISS, Milvus
Databases PostgreSQL, MySQL, MongoDB, SQLite, Redis
Queues Celery, BullMQ, Kafka, RabbitMQ, RQ, AWS SQS
Async primitives asyncio.Semaphore, run_in_executor, asyncio.gather, asyncio.Lock
Workers --workers N (uvicorn/gunicorn), replicas: (docker-compose), PM2 instances
External sources Jira, Azure DevOps, Slack, GitHub, Stripe, Salesforce, Twilio
Evaluation TruLens, RAGAS, LangSmith

Install

pip (CLI + MCP server)

pip install workflow-generator-mcp

workflow-generator . WORKFLOW.html       # CLI: scan and write the report
workflow-generator-mcp                    # stdio MCP server

With pip installed, any MCP host config reduces to:

{
  "mcpServers": {
    "workflow-generator": { "command": "workflow-generator-mcp" }
  }
}

Claude Code (skill)

mkdir -p ~/.claude/skills
git clone https://github.com/askuma/workflow-generator.git ~/.claude/skills/workflow-generator

Then in any Claude Code session:

/workflow-generator
/workflow-generator /path/to/project

MCP server (Claude Desktop, VS Code, Cursor, Zed, Windsurf, Continue)

1. Install the dependency:

pip install mcp

2. Add to your MCP host config (replace ~ with your actual home path):

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json (Mac)
%APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "workflow-generator": {
      "command": "python3",
      "args": ["~/.claude/skills/workflow-generator/mcp/server.py"]
    }
  }
}
VS Code

.vscode/mcp.json

{
  "servers": {
    "workflow-generator": {
      "type": "stdio",
      "command": "python3",
      "args": ["~/.claude/skills/workflow-generator/mcp/server.py"]
    }
  }
}
Cursor

~/.cursor/mcp.json

{
  "mcpServers": {
    "workflow-generator": {
      "command": "python3",
      "args": ["~/.claude/skills/workflow-generator/mcp/server.py"]
    }
  }
}
Zed

.zed/settings.json

{
  "context_servers": {
    "workflow-generator": {
      "command": {
        "path": "python3",
        "args": ["~/.claude/skills/workflow-generator/mcp/server.py"]
      }
    }
  }
}
Windsurf

~/.windsurf/mcp_config.json

{
  "mcpServers": {
    "workflow-generator": {
      "command": "python3",
      "args": ["~/.claude/skills/workflow-generator/mcp/server.py"]
    }
  }
}

3. Restart your tool, then ask:

generate a workflow diagram for this project
how many concurrent requests can this handle?
show me the system architecture

MCP tools exposed:

  • generate_workflow — scans project, writes WORKFLOW.html, optionally opens in browser
  • analyze_workflow — returns structured JSON summary (no file written)

Command line (standalone)

No install needed beyond Python 3.8+:

python3 ~/.claude/skills/workflow-generator/scripts/analyze.py . ~/WORKFLOW.html
# then open ~/WORKFLOW.html

Optional flags:

--access-log /path/to/access.log   # overlay real request counts onto the dependency graph
--graph-detail auto|files|dirs     # force file-level or directory-level graph nodes (default: auto)

Example output (terminal)

Written: /your/project/WORKFLOW.html
Framework: FastAPI · Workers: 8 · Concurrent I/O: ~800
Practical throughput: ~50–200 req/min
Bottleneck: OpenAI (LLM latency 3–30s per call)
Gateway: nginx · 2 rate limit zone(s)
LLM: OpenAI · eval: TruLens RAG Triad
Storage: Qdrant, Redis
External sources: Jira, Azure DevOps, Slack

Repo layout

workflow-generator/
├── SKILL.md                        ← Claude Code skill definition
├── INSTALL.md                      ← detailed per-platform install guide
├── workflow_generator_mcp/
│   ├── analyze.py                  ← core scanner + HTML renderer (stdlib only)
│   └── server.py                   ← MCP stdio server (package form)
├── scripts/
│   └── analyze.py                  ← thin compatibility shim -> workflow_generator_mcp/analyze.py
├── tests/                          ← pytest suite for the scanner
├── mcp/
│   ├── server.py                   ← MCP stdio server
│   └── requirements.txt            ← pip install mcp
└── copilot/
    ├── index.js                    ← GitHub Copilot Extension (Express)
    ├── package.json
    └── openai_function.json

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

workflow_generator_mcp-0.3.1.tar.gz (61.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

workflow_generator_mcp-0.3.1-py3-none-any.whl (52.1 kB view details)

Uploaded Python 3

File details

Details for the file workflow_generator_mcp-0.3.1.tar.gz.

File metadata

  • Download URL: workflow_generator_mcp-0.3.1.tar.gz
  • Upload date:
  • Size: 61.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for workflow_generator_mcp-0.3.1.tar.gz
Algorithm Hash digest
SHA256 47a208e463b36746977391b9d002732365bd4facd26a5171aca6a924185e9986
MD5 eecfd7481b56ba503bb54b49bff4d135
BLAKE2b-256 e5952b9df456a9050a234a01a81b7113d3307ab5e2fcbd01dc19747744c68088

See more details on using hashes here.

Provenance

The following attestation bundles were made for workflow_generator_mcp-0.3.1.tar.gz:

Publisher: publish.yml on askuma/workflow-generator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file workflow_generator_mcp-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for workflow_generator_mcp-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5f7e5e31ec6237567ce037795de653421231a17452f908e4892abd444db43da5
MD5 ec830083e60d2e33c083a3a3ee50fe02
BLAKE2b-256 6a45fda3d50cf7be994c54573c734bab983ed8f334adea64e3e89575e5c4a654

See more details on using hashes here.

Provenance

The following attestation bundles were made for workflow_generator_mcp-0.3.1-py3-none-any.whl:

Publisher: publish.yml on askuma/workflow-generator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page