Claude Prompt Library

30 Claude Prompts That Build Diagrams

30 copy-paste prompts

Describe a system, a process, or a relationship and Claude returns a real diagram you can preview instantly: flowcharts, architecture maps, ER models, sequence diagrams, org charts, and mind maps as Mermaid or self-contained SVG. Not "draw me a box."

In short: This page contains 30 copy-paste ready prompts, organized into 6 categories with a description and pro tip for each. The first 15 prompts are free instantly โ€” no signup needed. Hand-curated and tested by the AI Academy team.

By Louis Corneloup ยท Founder, Techpresso
Last updated ยทHand-curated & tested by the AI Academy team

Flowcharts & Process Diagrams

5 prompts

Business Process Flowchart

1/30

You are a business process analyst who turns messy operations into clean flowcharts. <context> I will describe a real process and I need a flowchart returned as a Mermaid `flowchart` diagram in a code block so I can preview it instantly as an artifact and paste it into my docs. </context> <inputs> - Process name: [E.G. CUSTOMER REFUND HANDLING] - Who starts it and the trigger: [ACTOR AND EVENT] - The main steps in order: [LIST THE STEPS YOU KNOW] - Decision points and their branches: [E.G. AMOUNT OVER $100? YES/NO] - The possible end states: [APPROVED, REJECTED, ESCALATED] </inputs> <task> Build a top-to-bottom flowchart with a clear start node, rectangular action steps, diamond decision nodes with labeled Yes/No edges, and rounded end nodes for each outcome. Fill any obvious missing steps and mark them so I can confirm. Group related steps with a subgraph if it adds clarity. </task> <constraints> - Valid Mermaid `flowchart TD` syntax that renders without edits. - Node labels in plain language, no jargon; every decision has explicit branch labels. - No orphan nodes; every path reaches an end state. </constraints> <format> Return the Mermaid diagram in a code block as the artifact, then list any steps you inferred and one bottleneck you noticed. </format>

Turns a described workflow into a clean, branch-labeled Mermaid flowchart as a previewable artifact.

๐Ÿ’ก

Pro tip: List your steps out of order and let Claude sequence them; it often catches a missing approval or error path you forgot.

Decision Tree Diagram

2/30

You are a decision-design specialist who maps choices into clear decision trees. <context> I need a decision tree that guides someone to the right outcome based on a series of questions, returned as a Mermaid `flowchart` so I can preview it as an artifact. </context> <inputs> - The decision to be made: [E.G. WHICH PRICING PLAN SHOULD A USER PICK] - The questions that drive it, in priority order: [LIST THEM] - The possible answers per question: [E.G. YES/NO OR RANGES] - The final outcomes or recommendations: [LIST THE LEAVES] - Any rule of thumb to break ties: [OPTIONAL] </inputs> <task> Build a decision tree starting from a single root question, with diamond decision nodes branching on each answer, and terminal nodes for each recommendation. Keep branches mutually exclusive and collectively exhaustive so every path lands on exactly one outcome. </task> <constraints> - Valid Mermaid `flowchart TD`; readable left-to-right or top-down, your choice for clarity. - Every answer edge is labeled; no dead ends; outcomes are styled distinctly from questions. - Keep depth reasonable; collapse redundant questions. </constraints> <format> Return the Mermaid tree in a code block as the artifact, then note any path that felt ambiguous and how you resolved it. </format>

Produces a mutually-exclusive decision tree guiding users to one recommended outcome as a previewable artifact.

๐Ÿ’ก

Pro tip: Ask Claude to reorder your questions by how much each one narrows the options so the tree resolves in the fewest steps.

Swimlane Process Diagram

3/30

You are an operations analyst who maps cross-team handoffs into swimlane diagrams. <context> I need a swimlane flowchart that shows which team owns each step of a process, returned as a Mermaid `flowchart` using subgraphs as lanes so I can preview it as an artifact. </context> <inputs> - Process name: [E.G. NEW EMPLOYEE ONBOARDING] - The teams or roles involved (the lanes): [E.G. HR, IT, MANAGER, NEW HIRE] - The steps and who owns each: [STEP -> OWNER] - The handoff points between teams: [WHERE WORK PASSES OVER] - Start trigger and end state: [DESCRIBE] </inputs> <task> Build a swimlane-style flowchart using one subgraph per team as a lane, placing each step in the owning lane and drawing edges across lanes to show handoffs. Make the cross-lane handoffs visually obvious and keep the sequence readable top to bottom. </task> <constraints> - Valid Mermaid `flowchart`; one subgraph per lane, clearly titled with the team name. - Every step sits in exactly one lane; handoff edges connect across lanes. - No lane left empty; arrows always point forward in the sequence. </constraints> <format> Return the Mermaid diagram in a code block as the artifact, then point out the team with the heaviest load and any handoff that looks risky. </format>

Builds a swimlane flowchart showing step ownership and cross-team handoffs as a previewable artifact.

๐Ÿ’ก

Pro tip: Tell Claude which handoff causes the most delays in real life and ask it to flag that edge so the diagram doubles as a fix list.

User Onboarding Flow

4/30

You are a product designer who maps user journeys into onboarding flow diagrams. <context> I need a flowchart of a product's onboarding flow from first touch to activation, returned as a Mermaid `flowchart` so I can preview it as an artifact and share with the team. </context> <inputs> - Product and the activation moment: [WHAT COUNTS AS ACTIVATED] - Entry points: [SIGNUP, INVITE, IMPORT, ETC] - The screens or steps a user passes through: [LIST] - Branches: [SKIP, ERROR, EMAIL VERIFY, ETC] - Drop-off risks I worry about: [OPTIONAL] </inputs> <task> Build an onboarding flowchart from entry point to the activation moment, with action steps for each screen, decision nodes for branches like email verification or skipped setup, and a clearly marked activation end node. Show where users could drop off with distinctly styled nodes. </task> <constraints> - Valid Mermaid `flowchart TD`; activation node visually emphasized with a class or style. - Every branch reconnects or ends explicitly; no dangling paths. - Plain user-facing labels, not internal feature codenames. </constraints> <format> Return the Mermaid flow in a code block as the artifact, then list the two steps most likely to leak users and a quick fix for each. </format>

Maps a product's signup-to-activation onboarding journey into a Mermaid flowchart as a previewable artifact.

๐Ÿ’ก

Pro tip: Ask Claude to mark each step with an estimated drop-off risk so the flow becomes a prioritization map, not just a picture.

Approval Workflow Diagram

5/30

You are a workflow architect who designs approval chains for teams. <context> I need a diagram of a multi-step approval workflow with conditional routing, returned as a Mermaid `flowchart` so I can preview it instantly as an artifact. </context> <inputs> - What is being approved: [E.G. PURCHASE REQUEST, TIME OFF, CONTENT] - The approval stages and approvers: [STAGE -> ROLE] - Conditions that change the path: [E.G. AMOUNT, DEPARTMENT, RISK LEVEL] - What happens on rejection: [REVISE AND RESUBMIT / HARD STOP] - The final approved state: [DESCRIBE] </inputs> <task> Build an approval workflow with a submit node, conditional routing diamonds that send the request to different approvers based on the rules, rejection loops that return to the requester, and a clear approved end state. Show escalation paths where a higher approver is needed. </task> <constraints> - Valid Mermaid `flowchart TD`; rejection loops clearly labeled and visually distinct from forward edges. - Every condition diamond has all branches labeled; no impossible states. - Approver roles appear in node labels so ownership is unambiguous. </constraints> <format> Return the Mermaid workflow in a code block as the artifact, then explain the routing rules in plain English and flag any approval loop that could run forever. </format>

Generates a conditional approval workflow with routing, rejection loops, and escalation as a previewable artifact.

๐Ÿ’ก

Pro tip: Give Claude the dollar thresholds or risk tiers and it will turn them into real routing diamonds instead of a single generic approval step.

XML tags are just the start. Learn the full Claude workflow.

A growing library of 300+ hands-on AI tutorials covering Claude, ChatGPT, and 50+ tools. New tutorials added every week.

Start 7-Day Free Trial

System & Architecture Diagrams

5 prompts

Software Architecture Diagram

6/30

You are a software architect who renders systems into clear component diagrams. <context> I need a software architecture diagram of my application, returned as a Mermaid `flowchart` (or `graph`) so I can preview the components and data flow as an artifact. </context> <inputs> - The application and what it does: [ONE LINE] - Frontend clients: [WEB, MOBILE, ETC] - Backend services or modules: [LIST] - Data stores: [DATABASES, CACHES, QUEUES] - Third-party/external services: [PAYMENTS, EMAIL, AUTH, ETC] - How requests flow through it: [DESCRIBE THE MAIN PATH] </inputs> <task> Build an architecture diagram grouping components into layers (clients, services, data, external) using subgraphs, with directed edges showing how requests and data flow. Label edges with the protocol or purpose (e.g. REST, gRPC, async event) where it helps. Keep it accurate to what I described and mark anything you assumed. </task> <constraints> - Valid Mermaid `flowchart LR` or `graph`; subgraphs for each layer, consistently styled. - Edges directional and labeled where the interaction type matters. - No invented services beyond what I listed unless flagged as an assumption. </constraints> <format> Return the Mermaid diagram in a code block as the artifact, then list the layers, your assumptions, and one single point of failure you spotted. </format>

Renders an app's components, layers, and data flow into a Mermaid architecture diagram as a previewable artifact.

๐Ÿ’ก

Pro tip: Name your external dependencies explicitly; Claude will draw them as separate nodes so you can see exactly where you rely on third parties.

Cloud Infrastructure Diagram

7/30

You are a cloud solutions architect who diagrams deployment topologies. <context> I need a cloud infrastructure diagram showing how my system is deployed, returned as a self-contained SVG (inline, no external assets) so I can preview the topology as an artifact and drop it into a deck. </context> <inputs> - Cloud provider and region setup: [E.G. AWS, SINGLE REGION, TWO AZS] - Network layout: [VPC, PUBLIC/PRIVATE SUBNETS] - Compute: [LOAD BALANCER, APP SERVERS, CONTAINERS, FUNCTIONS] - Data and storage: [MANAGED DB, CACHE, OBJECT STORAGE] - External entry and edge: [CDN, DNS, WAF] - Traffic flow from user to data: [DESCRIBE] </inputs> <task> Draw a layered cloud topology in SVG: the public internet and edge at the top, a network boundary box containing public and private subnet groups, compute nodes inside them, and data services at the bottom, with directional arrows tracing a request from the user to the database and back. Use simple labeled boxes with a small legend. </task> <constraints> - One self-contained SVG with inline styles; no external images, fonts, or scripts. - Clear visual grouping for network boundaries; arrows show traffic direction. - Readable labels, consistent box sizes, an accessible color contrast, and a legend. </constraints> <format> Return the SVG in a code block as the artifact, then explain the trust boundaries and where you would add redundancy. </format>

Builds a layered cloud deployment topology as a self-contained, previewable SVG artifact.

๐Ÿ’ก

Pro tip: Specify your availability zones or regions and Claude will draw the redundancy visually, making single-region risks obvious at a glance.

Microservices Communication Map

8/30

You are a distributed-systems engineer who maps how services talk to each other. <context> I need a service communication map for a microservices system, returned as a Mermaid `flowchart` so I can preview which services depend on which as an artifact. </context> <inputs> - The services and what each owns: [SERVICE -> RESPONSIBILITY] - Synchronous calls between services: [WHO CALLS WHOM] - Asynchronous events and the bus/queue: [PUBLISHER -> EVENT -> SUBSCRIBERS] - Shared infrastructure: [API GATEWAY, MESSAGE BROKER] - Anything you suspect is too tightly coupled: [OPTIONAL] </inputs> <task> Build a communication map with one node per service, solid edges for synchronous calls labeled with the operation, and dashed edges for asynchronous events labeled with the event name. Route shared infrastructure like the gateway and broker as their own nodes. Make tight coupling visible. </task> <constraints> - Valid Mermaid `flowchart LR`; solid vs dashed edges distinguish sync from async clearly. - Every edge labeled; no ambiguous arrows. - Group by domain with subgraphs if it reduces edge crossings. </constraints> <format> Return the Mermaid map in a code block as the artifact, then name the most-depended-on service and any circular dependency you found. </format>

Maps synchronous and asynchronous service dependencies into a Mermaid communication diagram as a previewable artifact.

๐Ÿ’ก

Pro tip: Ask Claude to flag any service that everything else depends on; that node is your blast radius if it goes down.

Network Topology Diagram

9/30

You are a network engineer who documents topologies for IT teams. <context> I need a network topology diagram of my environment, returned as a self-contained SVG (inline, no external assets) so I can preview the layout as an artifact. </context> <inputs> - Network scope: [HOME, OFFICE, DATA CENTER, MULTI-SITE] - Edge devices: [ROUTER, FIREWALL, MODEM] - Switches and segments/VLANs: [LIST] - Endpoints and servers per segment: [LIST] - Connections and link types: [WIRED, WIRELESS, VPN, WAN] - IP ranges or zones if known: [OPTIONAL] </inputs> <task> Draw a network topology in SVG with the internet/WAN at the top, edge security devices, then switches branching into segments, and endpoints grouped under each segment. Use distinct shapes or colors for routers, switches, servers, and clients, label link types on the connections, and include a small legend. </task> <constraints> - One self-contained SVG with inline styles; no external images or scripts. - Consistent iconography via simple labeled shapes; link labels for connection types. - Logical grouping by segment/VLAN; accessible contrast and a clear legend. </constraints> <format> Return the SVG in a code block as the artifact, then list the segments, the single egress point, and one security gap worth reviewing. </format>

Produces a labeled network topology with segments and link types as a self-contained, previewable SVG artifact.

๐Ÿ’ก

Pro tip: Include your VLAN or subnet boundaries so Claude groups devices by segment, which immediately shows where your isolation actually is.

Data Pipeline / ETL Diagram

10/30

You are a data engineer who diagrams ingestion and transformation pipelines. <context> I need a data pipeline diagram showing how data moves from sources to destinations, returned as a Mermaid `flowchart LR` so I can preview the flow as an artifact. </context> <inputs> - Data sources: [APIS, DATABASES, FILES, EVENTS] - Ingestion method: [BATCH, STREAMING, CDC] - Transformation stages: [CLEAN, JOIN, AGGREGATE, ENRICH] - Storage layers: [RAW/STAGING/CURATED OR LAKE/WAREHOUSE] - Destinations and consumers: [BI TOOL, ML MODEL, API] - Orchestration tool if any: [OPTIONAL] </inputs> <task> Build a left-to-right pipeline: source nodes feeding an ingestion stage, then sequential transformation steps, then storage layers, then destinations, with edges labeled by what passes between stages (e.g. raw events, cleaned rows). Distinguish batch from streaming paths visually and mark the orchestration layer if provided. </task> <constraints> - Valid Mermaid `flowchart LR`; storage layers grouped, transformation steps in order. - Edges labeled with the data state at that point; batch vs streaming distinguished. - No step without an input and an output; no orphan stages. </constraints> <format> Return the Mermaid pipeline in a code block as the artifact, then explain the data states at each stage and where a failure would lose data. </format>

Builds a source-to-destination ETL pipeline diagram with labeled stages as a previewable Mermaid artifact.

๐Ÿ’ก

Pro tip: Tell Claude which stages are batch vs streaming and it will split the path so you can see exactly where latency is introduced.

Database & ER Diagrams

5 prompts

Entity-Relationship (ER) Diagram

11/30

You are a database designer who turns requirements into clean ER diagrams. <context> I need an entity-relationship diagram for my data model, returned as a Mermaid `erDiagram` so I can preview the entities, fields, and relationships as an artifact. </context> <inputs> - What the system stores: [E.G. AN ONLINE STORE] - The core entities: [E.G. USER, ORDER, PRODUCT, REVIEW] - Key fields per entity: [LIST WHAT YOU KNOW; INCLUDE TYPES IF YOU HAVE THEM] - How entities relate: [E.G. A USER HAS MANY ORDERS] - Any must-have constraints: [UNIQUE, REQUIRED, ETC] </inputs> <task> Build an `erDiagram` with each entity, its attributes (with types and PK/FK markers), and the relationships with correct cardinality (one-to-many, many-to-many, etc.) and crow's-foot notation. Introduce join tables for many-to-many relationships and name foreign keys consistently. </task> <constraints> - Valid Mermaid `erDiagram`; cardinality notation accurate for every relationship. - Primary and foreign keys marked; types included where provided or sensibly inferred. - Normalize away obvious redundancy; flag any assumption you made. </constraints> <format> Return the Mermaid ER diagram in a code block as the artifact, then list the join tables you added and any normalization decision worth reviewing. </format>

Generates a normalized ER diagram with entities, keys, and accurate cardinality as a previewable Mermaid artifact.

๐Ÿ’ก

Pro tip: Mention any many-to-many relationship in plain words and Claude will add the join table for you instead of leaving an invalid direct link.

Database Schema Diagram

12/30

You are a backend engineer who documents production database schemas. <context> I need a schema diagram of my existing tables, returned as a Mermaid `erDiagram` so I can preview the structure and foreign keys as an artifact. I may paste my CREATE TABLE statements. </context> <inputs> - The tables (or pasted DDL): [PASTE SCHEMA OR LIST TABLES + COLUMNS] - Foreign-key relationships: [TABLE.COLUMN -> TABLE.COLUMN] - Indexes or unique constraints worth showing: [OPTIONAL] - The database engine: [POSTGRES, MYSQL, ETC] - Anything ambiguous you want me to clarify: [OPTIONAL] </inputs> <task> Parse the schema and build an `erDiagram` listing every table with its columns and types, marking primary keys and foreign keys, and drawing relationships with correct cardinality inferred from the FK constraints. Keep column names and types exactly as given. </task> <constraints> - Valid Mermaid `erDiagram`; column names and types preserved verbatim from the input. - PK/FK markers correct; relationship cardinality derived from the FKs, not guessed. - If the DDL is ambiguous, ask before inventing a relationship. </constraints> <format> Return the Mermaid schema in a code block as the artifact, then list any table without a relationship and any missing index you would recommend. </format>

Converts existing tables or DDL into an accurate Mermaid schema diagram with keys and FKs as a previewable artifact.

๐Ÿ’ก

Pro tip: Paste your real CREATE TABLE statements and Claude will mirror exact column names and types so the diagram matches production, not a guess.

NoSQL Document Model Diagram

13/30

You are a NoSQL data modeler who designs document and collection structures. <context> I need a document-model diagram for a NoSQL database showing collections, document shapes, and references, returned as a self-contained SVG (inline) so I can preview the nesting as an artifact. </context> <inputs> - The database type: [E.G. MONGODB, FIRESTORE, DYNAMODB] - The collections: [LIST] - The fields and nested objects per document: [DESCRIBE SHAPES] - Embedded vs referenced relationships: [WHAT IS NESTED VS LINKED] - The main access patterns: [E.G. GET USER WITH RECENT ORDERS] </inputs> <task> Draw each collection as a card showing a representative document with its fields, nested sub-objects indented inside, and arrows for references between collections. Visually distinguish embedded documents (nested inside the card) from referenced ones (arrows to other cards). Annotate which access pattern each modeling choice supports. </task> <constraints> - One self-contained SVG with inline styles; no external assets. - Embedded vs referenced clearly differentiated; field types shown. - Layout readable with consistent card sizing and a small legend. </constraints> <format> Return the SVG in a code block as the artifact, then explain which access pattern drove each embed-vs-reference decision and one trade-off it creates. </format>

Models NoSQL collections with embedded and referenced document shapes as a self-contained, previewable SVG artifact.

๐Ÿ’ก

Pro tip: Give Claude your top query patterns first; it will shape embedding vs referencing around the reads, which is how NoSQL modeling should actually work.

Data Flow Diagram (DFD)

14/30

You are a systems analyst who builds classic data flow diagrams. <context> I need a leveled data flow diagram showing external entities, processes, data stores, and the data moving between them, returned as a Mermaid `flowchart` so I can preview it as an artifact. </context> <inputs> - The system being modeled: [E.G. AN EXPENSE REIMBURSEMENT SYSTEM] - External entities (people/systems outside it): [LIST] - The processes inside the system: [LIST] - The data stores: [DATABASES, FILES, QUEUES] - The data flows between them: [WHAT DATA GOES WHERE] - Level of detail: [CONTEXT (LEVEL 0) OR LEVEL 1] </inputs> <task> Build a data flow diagram at the requested level: external entities as one shape, processes as another, data stores as a third, with directed, labeled data-flow edges between them. Ensure every process has at least one input and one output and that no data store connects directly to another without a process between them. </task> <constraints> - Valid Mermaid `flowchart`; distinct node styling for entities, processes, and stores. - Every flow labeled with the data it carries; DFD balancing rules respected. - No process with only inputs or only outputs (no black holes or miracles). </constraints> <format> Return the Mermaid DFD in a code block as the artifact, then point out any process that looked like a black hole or miracle and how you fixed it. </format>

Builds a balanced data flow diagram with entities, processes, and stores as a previewable Mermaid artifact.

๐Ÿ’ก

Pro tip: Ask Claude to check DFD balancing rules; it will catch processes that magically produce or swallow data without a real source or sink.

State Machine Diagram

15/30

You are a systems engineer who models object lifecycles as state machines. <context> I need a state diagram for something that moves through statuses, returned as a Mermaid `stateDiagram-v2` so I can preview the states and transitions as an artifact. </context> <inputs> - The thing with a lifecycle: [E.G. AN ORDER, A SUPPORT TICKET, A SUBSCRIPTION] - All possible states: [LIST] - The events that trigger each transition: [EVENT -> STATE CHANGE] - The starting state and terminal states: [DESCRIBE] - Any forbidden transitions: [OPTIONAL] </inputs> <task> Build a state machine with an initial state, all named states, and labeled transitions triggered by events, including any guard conditions. Mark terminal states and ensure there are no unreachable states or transitions into states that cannot exit (unless they are intentionally terminal). </task> <constraints> - Valid Mermaid `stateDiagram-v2`; transitions labeled with the triggering event. - Every state reachable from the start; terminal states explicitly marked. - No transition into a forbidden state I listed. </constraints> <format> Return the Mermaid state diagram in a code block as the artifact, then list any unreachable state or dead-end you found and a transition you think is missing. </format>

Models an object's lifecycle as a Mermaid state machine with labeled transitions and guards as a previewable artifact.

๐Ÿ’ก

Pro tip: List the states first and let Claude infer the transitions; it surfaces illegal jumps and missing events you would not notice in a list.

Sequence & Interaction Diagrams

5 prompts

API Request Sequence Diagram

16/30

You are a backend engineer who documents request flows as sequence diagrams. <context> I need a sequence diagram of a single API request as it travels through my system, returned as a Mermaid `sequenceDiagram` so I can preview the message order as an artifact. </context> <inputs> - The use case: [E.G. USER PLACES AN ORDER] - The participants in order: [E.G. CLIENT, API GATEWAY, ORDER SERVICE, DB, PAYMENT] - The messages between them: [CALL -> RESPONSE PAIRS] - Synchronous vs asynchronous calls: [WHICH ARE ASYNC] - Error or timeout paths to show: [OPTIONAL] </inputs> <task> Build a sequence diagram with each participant as a lifeline, solid arrows for requests, dashed arrows for responses, activation bars showing when each participant is working, and `alt`/`opt` blocks for the success and error paths. Show async calls distinctly and include the happy path plus at least one failure path. </task> <constraints> - Valid Mermaid `sequenceDiagram`; request/response arrows correct, activations shown. - `alt`/`opt` blocks used for branching; async messages clearly distinguished. - Message labels name the actual operation, not generic "call". </constraints> <format> Return the Mermaid sequence diagram in a code block as the artifact, then explain the failure path you modeled and where a retry belongs. </format>

Traces an API request across services as a Mermaid sequence diagram with success and failure paths as a previewable artifact.

๐Ÿ’ก

Pro tip: Ask Claude to include one timeout or error branch; the failure path usually exposes a missing retry or rollback you had not designed yet.

Authentication Flow Sequence

17/30

You are a security engineer who diagrams auth flows precisely. <context> I need a sequence diagram of an authentication flow, returned as a Mermaid `sequenceDiagram` so I can preview the token exchange and redirects as an artifact. </context> <inputs> - The auth method: [E.G. OAUTH2 AUTH CODE, OIDC, MAGIC LINK, SESSION COOKIE] - The participants: [USER, BROWSER, APP, AUTH SERVER, RESOURCE API] - The steps and what is passed: [CODE, TOKEN, REDIRECT, ETC] - Where tokens are stored or refreshed: [DESCRIBE] - Failure cases to include: [EXPIRED, DENIED, INVALID] </inputs> <task> Build a sequence diagram of the full auth flow: initial request, redirect to the auth server, user consent, the code/token exchange, the callback, and the authenticated resource call, with notes on what credential is passed at each step. Include a refresh-token path and at least one failure branch using an `alt` block. </task> <constraints> - Valid Mermaid `sequenceDiagram`; arrows labeled with the exact credential or token type. - Use `note over` to mark where tokens are stored; failure branch in an `alt` block. - Order accurate to the chosen protocol; no skipped redirect steps. </constraints> <format> Return the Mermaid sequence diagram in a code block as the artifact, then explain where the most sensitive token lives and one place it could leak. </format>

Diagrams an OAuth or login flow with token exchange and failure branches as a previewable Mermaid sequence artifact.

๐Ÿ’ก

Pro tip: Name the exact protocol (OAuth2 auth code, OIDC, magic link) and Claude will get the redirect and token-exchange order right instead of generic.

Webhook / Event Sequence Diagram

18/30

You are an integrations engineer who maps event-driven flows. <context> I need a sequence diagram of an event or webhook flow between systems, returned as a Mermaid `sequenceDiagram` so I can preview the async delivery and acknowledgements as an artifact. </context> <inputs> - The triggering event: [E.G. PAYMENT SUCCEEDED] - The systems involved: [PROVIDER, OUR WEBHOOK ENDPOINT, QUEUE, WORKER, DB] - The delivery mechanism: [HTTP WEBHOOK, MESSAGE QUEUE, PUBSUB] - Retry and acknowledgement behavior: [DESCRIBE] - Idempotency or deduplication handling: [OPTIONAL] </inputs> <task> Build a sequence diagram showing the event firing, asynchronous delivery to our endpoint, queueing, worker processing, and the acknowledgement back to the provider, with a retry loop modeled as a `loop` block for failed deliveries. Note where idempotency keys are checked so duplicate events are handled safely. </task> <constraints> - Valid Mermaid `sequenceDiagram`; async delivery and ack arrows clearly directional. - Retry modeled with a `loop` block; idempotency check marked with a `note`. - Participant order reflects real delivery path; no synchronous shortcut for an async hop. </constraints> <format> Return the Mermaid sequence diagram in a code block as the artifact, then explain how duplicates are prevented and what happens if all retries fail. </format>

Maps an async webhook flow with retries and idempotency into a Mermaid sequence diagram as a previewable artifact.

๐Ÿ’ก

Pro tip: Tell Claude your retry policy and idempotency strategy; the diagram will then double as documentation for how you avoid double-processing events.

User Journey Map

19/30

You are a UX researcher who builds customer journey maps. <context> I need a user journey map showing a customer's stages, actions, and emotional highs and lows, returned as a Mermaid `journey` diagram so I can preview it as an artifact. </context> <inputs> - The persona: [WHO IS ON THE JOURNEY] - The overall goal: [WHAT THEY ARE TRYING TO ACHIEVE] - The stages: [E.G. AWARENESS, SIGNUP, FIRST USE, RENEWAL] - The specific tasks within each stage: [LIST] - How each task feels (1 = painful, 5 = delightful): [SCORE EACH IF KNOWN] </inputs> <task> Build a Mermaid `journey` diagram with the persona's stages as sections, each task scored on the 1-5 satisfaction scale, and the actor assigned to each task. Where I did not give a score, infer a reasonable one and mark it. Make the emotional dips obvious so I can see where to focus. </task> <constraints> - Valid Mermaid `journey` syntax; sections map to stages, tasks scored 1-5. - Scores you inferred are noted separately so I can correct them. - Tasks phrased from the user's point of view, not internal process language. </constraints> <format> Return the Mermaid journey in a code block as the artifact, then list the two lowest-scoring moments and one improvement idea for each. </format>

Builds an emotion-scored customer journey map across stages as a previewable Mermaid journey artifact.

๐Ÿ’ก

Pro tip: Score even a few tasks yourself and let Claude infer the rest; the lowest dips immediately point to where your experience leaks customers.

Service Blueprint Diagram

20/30

You are a service designer who creates service blueprints linking front-stage and back-stage. <context> I need a service blueprint showing customer actions alongside the front-stage and back-stage activities that support them, returned as a self-contained SVG (inline) so I can preview the layered swimlanes as an artifact. </context> <inputs> - The service and a key scenario: [E.G. ORDERING FOOD FOR DELIVERY] - Customer actions across the timeline: [STEP BY STEP] - Front-stage (visible) staff/system actions: [LIST] - Back-stage (invisible) activities: [LIST] - Supporting processes and systems: [LIST] </inputs> <task> Draw a service blueprint as horizontal lanes in this order: customer actions, line of interaction, front-stage actions, line of visibility, back-stage actions, and support processes. Align each column to one moment in the timeline and draw vertical links showing which back-stage step supports each customer action. Include the two divider lines explicitly. </task> <constraints> - One self-contained SVG with inline styles; no external assets. - The line of interaction and line of visibility drawn as labeled dividers. - Columns aligned to the timeline; vertical support links visible; readable contrast. </constraints> <format> Return the SVG in a code block as the artifact, then explain which back-stage failure would most hurt the customer experience. </format>

Builds a layered service blueprint linking customer, front-stage, and back-stage activities as a previewable SVG artifact.

๐Ÿ’ก

Pro tip: Be honest about the back-stage steps; the blueprint's value is showing the invisible work that silently breaks the visible experience.

Org Charts & Mind Maps

5 prompts

Company Org Chart

21/30

You are an HR operations specialist who builds clear organizational charts. <context> I need an org chart showing reporting lines, returned as a Mermaid `flowchart TD` (tree layout) so I can preview the hierarchy as an artifact. </context> <inputs> - The top of the chart: [E.G. CEO NAME OR ROLE] - The departments or functions: [LIST] - The roles and who reports to whom: [ROLE -> MANAGER] - Team sizes or headcount per box: [OPTIONAL] - Dotted-line / matrix relationships: [OPTIONAL] </inputs> <task> Build a top-down org chart with one node per role showing title and name, solid edges for direct reporting lines, and dashed edges for any dotted-line relationships. Group by department using subgraphs if it improves readability and include headcount in the label where I provided it. </task> <constraints> - Valid Mermaid `flowchart TD`; solid vs dashed edges distinguish direct from dotted-line. - Every role has exactly one solid-line manager (except the top); no floating nodes. - Consistent label format: title on top, name below. </constraints> <format> Return the Mermaid org chart in a code block as the artifact, then flag any manager with too many direct reports and any role with an unclear reporting line. </format>

Generates a top-down org chart with reporting and dotted lines as a previewable Mermaid artifact.

๐Ÿ’ก

Pro tip: Add headcount per box and Claude will surface managers with an unhealthy span of control, turning the chart into an org-design check.

Brainstorm Mind Map

22/30

You are a facilitator who turns scattered ideas into structured mind maps. <context> I need a mind map that organizes a brain dump around a central topic, returned as a Mermaid `mindmap` so I can preview the branches as an artifact. </context> <inputs> - The central topic: [E.G. LAUNCH STRATEGY FOR OUR APP] - The raw ideas, in any order: [PASTE YOUR BRAIN DUMP] - The main themes you already see (optional): [LIST] - How deep to go: [2-3 LEVELS] - Anything to exclude: [OPTIONAL] </inputs> <task> Build a mind map with the central topic at the root, group my raw ideas into logical main branches (themes), and nest sub-ideas under each. Merge duplicates, name themes I did not provide, and keep the branching balanced so no single branch dwarfs the rest. </task> <constraints> - Valid Mermaid `mindmap`; one clear root, balanced main branches. - Every raw idea placed somewhere; duplicates merged; themes clearly named. - Depth limited to what aids clarity, not maximum nesting. </constraints> <format> Return the Mermaid mind map in a code block as the artifact, then list the themes you created and one branch that looks underdeveloped. </format>

Organizes a raw brain dump into a themed, balanced Mermaid mind map as a previewable artifact.

๐Ÿ’ก

Pro tip: Paste your notes completely unsorted; Claude clusters them into themes and you discover the structure instead of forcing one upfront.

Concept / Knowledge Map

23/30

You are an instructional designer who maps how concepts connect. <context> I need a concept map showing how ideas in a topic relate, with labeled relationships between them, returned as a Mermaid `flowchart` so I can preview the connections as an artifact. </context> <inputs> - The subject: [E.G. HOW THE IMMUNE SYSTEM WORKS] - The key concepts: [LIST] - How they relate (the linking phrases): [E.G. "TRIGGERS", "IS PART OF", "PRODUCES"] - The audience and depth: [E.G. HIGH-SCHOOL INTRO] - A central or starting concept: [OPTIONAL] </inputs> <task> Build a concept map with each concept as a node and labeled edges that state the relationship between concepts (concept maps require the linking phrase on every connection). Arrange it so the most general concept is near the top and more specific concepts branch out, allowing cross-links between branches where real relationships exist. </task> <constraints> - Valid Mermaid `flowchart`; every edge labeled with a meaningful relationship phrase. - Cross-links between branches allowed where accurate; no unlabeled connections. - Concepts phrased as nouns; relationships as verbs or short phrases. </constraints> <format> Return the Mermaid concept map in a code block as the artifact, then list the cross-links you added and one relationship you were unsure about. </format>

Builds a concept map with labeled relationships and cross-links between ideas as a previewable Mermaid artifact.

๐Ÿ’ก

Pro tip: Give Claude the linking phrases you want (triggers, produces, depends on); labeled edges are what separate a real concept map from a plain mind map.

Product Feature Tree

24/30

You are a product manager who structures features into a clear hierarchy. <context> I need a feature tree breaking a product down from areas to features to sub-features, returned as a Mermaid `flowchart TD` so I can preview the structure as an artifact. </context> <inputs> - The product: [NAME AND WHAT IT DOES] - The major product areas: [E.G. ONBOARDING, BILLING, ANALYTICS] - The features under each area: [LIST] - The status of each (live, building, planned): [OPTIONAL] - Priority signals if any: [OPTIONAL] </inputs> <task> Build a feature tree with the product at the root, product areas as the first level, features as the next, and sub-features beneath, using node styling or a label tag to show status (live, building, planned) where I provided it. Keep the tree balanced and group related features so the hierarchy reads cleanly. </task> <constraints> - Valid Mermaid `flowchart TD`; status reflected via a class/style or a label tag. - Every feature sits under exactly one area; no duplicate features across branches. - Consistent depth where it makes sense; avoid one giant branch. </constraints> <format> Return the Mermaid feature tree in a code block as the artifact, then list any area that looks thin and one feature that might belong somewhere else. </format>

Structures a product into an area-feature-subfeature tree with status tags as a previewable Mermaid artifact.

๐Ÿ’ก

Pro tip: Mark each feature's status (live, building, planned) and Claude color-codes the tree, giving you an instant roadmap snapshot from one diagram.

Site Map / Information Architecture

25/30

You are a UX architect who maps website information architecture. <context> I need a site map showing the pages of a website and how they nest, returned as a Mermaid `flowchart TD` so I can preview the navigation hierarchy as an artifact. </context> <inputs> - The website and its purpose: [E.G. A SAAS MARKETING SITE] - The top-level navigation pages: [HOME, PRODUCT, PRICING, BLOG, ETC] - The sub-pages under each: [LIST] - Utility pages: [LOGIN, SIGNUP, LEGAL, ETC] - Any pages gated behind auth: [OPTIONAL] </inputs> <task> Build a site map with the homepage at the root, top-level nav items as the first level, and sub-pages nesting beneath, with utility and legal pages grouped separately. Mark auth-gated pages distinctly and keep the nesting depth realistic (avoid burying key pages too deep). </task> <constraints> - Valid Mermaid `flowchart TD`; auth-gated pages visually distinguished via a class/style. - Every page reachable from the root; utility pages grouped, not scattered. - Realistic depth; flag any page more than three clicks from home. </constraints> <format> Return the Mermaid site map in a code block as the artifact, then flag any important page buried too deep and suggest where it should move. </format>

Maps a website's page hierarchy and navigation depth into a Mermaid site map as a previewable artifact.

๐Ÿ’ก

Pro tip: Ask Claude to flag any page more than three clicks from home; deep-buried pages are usually the ones quietly killing your conversions.

Most people use 10% of Claude. Tutorials unlock the rest.

AI Academy: 300+ hands-on tutorials on Claude, ChatGPT, Midjourney, and 50+ AI tools. New tutorials added every week.

Start Your Free Trial

Project & Timeline Diagrams

5 prompts

Project Gantt Chart

26/30

You are a project manager who builds realistic Gantt charts. <context> I need a Gantt chart of a project schedule with tasks, durations, and dependencies, returned as a Mermaid `gantt` diagram so I can preview the timeline as an artifact. </context> <inputs> - The project and its goal: [DESCRIBE] - The start date: [DATE] - The phases and tasks under each: [LIST] - Each task's duration: [DAYS OR WEEKS] - Dependencies (what must finish first): [TASK -> DEPENDS ON TASK] - Milestones: [KEY DATES OR DELIVERABLES] </inputs> <task> Build a Gantt chart grouped into sections by phase, with each task given a start (anchored to its dependency using `after`), a duration, and a status where known (done, active, future). Add milestones as zero-duration markers. Ensure dependent tasks never start before their predecessor finishes. </task> <constraints> - Valid Mermaid `gantt` with a `dateFormat`; dependencies expressed via `after`. - Sections per phase; milestones marked with `milestone`; no overlapping dependent tasks. - Durations realistic to what I gave; flag any task with no dependency that probably needs one. </constraints> <format> Return the Mermaid Gantt chart in a code block as the artifact, then identify the critical path and the single task most likely to slip the deadline. </format>

Builds a phased Gantt chart with dependencies and milestones as a previewable Mermaid artifact.

๐Ÿ’ก

Pro tip: Give Claude the dependencies and it will compute the critical path for you, showing exactly which task slipping blows the whole timeline.

Product Roadmap Timeline

27/30

You are a product strategist who visualizes roadmaps as timelines. <context> I need a roadmap timeline grouping initiatives across time horizons, returned as a Mermaid `timeline` diagram so I can preview it as an artifact for a stakeholder update. </context> <inputs> - The product and the roadmap theme: [DESCRIBE] - The time periods: [E.G. Q1, Q2, Q3, Q4 OR NOW/NEXT/LATER] - The initiatives in each period: [LIST] - The goal or outcome tied to each period: [OPTIONAL] - Anything explicitly out of scope: [OPTIONAL] </inputs> <task> Build a roadmap as a Mermaid `timeline` with each period as a section and its initiatives listed underneath, phrased as outcomes rather than tasks where possible. Keep each period focused (avoid cramming everything into the near term) and add the period's headline goal as the section title. </task> <constraints> - Valid Mermaid `timeline`; one section per period, initiatives as outcome statements. - Balanced load across periods; near-term not overstuffed. - No dates promised more precisely than the horizon I gave (avoid false precision). </constraints> <format> Return the Mermaid timeline in a code block as the artifact, then flag any period that looks overloaded and one initiative you would move later. </format>

Visualizes a product roadmap across time horizons as a previewable Mermaid timeline artifact.

๐Ÿ’ก

Pro tip: Use Now/Next/Later instead of hard dates; Claude keeps the roadmap honest and you avoid committing to deadlines you cannot defend.

Sprint / Kanban Board Snapshot

28/30

You are a Scrum master who visualizes board states for standups. <context> I need a snapshot of a sprint or Kanban board showing tasks grouped by status, returned as a self-contained SVG (inline) so I can preview the columns as an artifact and drop it into a status update. </context> <inputs> - The sprint or board name: [E.G. SPRINT 14] - The columns/statuses: [E.G. BACKLOG, TODO, IN PROGRESS, REVIEW, DONE] - The tasks and their current status: [TASK -> STATUS] - Each task's assignee: [OPTIONAL] - WIP limits per column: [OPTIONAL] </inputs> <task> Draw a board with one column per status and each task as a card placed in the right column, showing the task name and assignee. Display the count and any WIP limit at the top of each column, and visually flag any column exceeding its WIP limit. Keep card sizing consistent. </task> <constraints> - One self-contained SVG with inline styles; no external assets. - Columns clearly labeled with counts; WIP-limit breaches visually flagged. - Consistent card layout; readable contrast; assignee shown where provided. </constraints> <format> Return the SVG in a code block as the artifact, then call out any column over its WIP limit and the biggest bottleneck in the flow. </format>

Renders a sprint or Kanban board snapshot with columns, counts, and WIP flags as a previewable SVG artifact.

๐Ÿ’ก

Pro tip: Provide WIP limits and Claude flags overloaded columns; the snapshot then surfaces your real bottleneck instead of just listing tasks.

Dependency / Critical Path Graph

29/30

You are a delivery lead who maps task dependencies to find the critical path. <context> I need a dependency graph showing which tasks block which, with the critical path highlighted, returned as a Mermaid `flowchart LR` so I can preview it as an artifact. </context> <inputs> - The project: [DESCRIBE] - The tasks and their durations: [TASK (DAYS)] - The dependencies: [TASK -> DEPENDS ON TASK] - The target deadline: [DATE OR TOTAL DAYS] - Tasks that can run in parallel: [OPTIONAL] </inputs> <task> Build a directed dependency graph with one node per task (showing its duration), edges from prerequisites to dependents, and the critical path highlighted with a distinct style. Tasks with no dependency between them should be visually parallel. Compute and mark the longest path through the graph as the critical path. </task> <constraints> - Valid Mermaid `flowchart LR`; critical-path nodes and edges styled distinctly. - Durations shown in each node; arrows only from prerequisite to dependent. - No cycles; flag any circular dependency instead of drawing an impossible loop. </constraints> <format> Return the Mermaid dependency graph in a code block as the artifact, then state the total critical-path length and which task to protect to hit the deadline. </format>

Maps task dependencies and highlights the critical path in a Mermaid graph as a previewable artifact.

๐Ÿ’ก

Pro tip: List durations with each task; Claude computes and highlights the longest path so you know precisely which delays actually matter.

Release / Deployment Pipeline Diagram

30/30

You are a DevOps engineer who diagrams CI/CD pipelines. <context> I need a diagram of a release pipeline from commit to production, returned as a Mermaid `flowchart LR` so I can preview the stages and gates as an artifact. </context> <inputs> - The trigger: [E.G. PUSH TO MAIN, TAG, PR MERGE] - The build and test stages: [LIST] - The environments: [DEV, STAGING, PROD] - Approval or quality gates: [WHERE A HUMAN OR CHECK BLOCKS PROMOTION] - Rollback or failure handling: [DESCRIBE] </inputs> <task> Build a left-to-right pipeline from the trigger through build, test, and each deployment environment, with diamond gates for approvals and automated checks, and a labeled rollback path on failure. Distinguish automated steps from manual approval gates and show where the pipeline stops if a gate fails. </task> <constraints> - Valid Mermaid `flowchart LR`; manual gates and automated steps visually distinct. - Every gate has a pass and a fail edge; failure paths lead somewhere explicit (stop or rollback). - Environments in promotion order; no stage skipped without a labeled reason. </constraints> <format> Return the Mermaid pipeline in a code block as the artifact, then explain where the riskiest gate is and one check you would add before production. </format>

Diagrams a commit-to-production CI/CD pipeline with gates and rollback as a previewable Mermaid artifact.

๐Ÿ’ก

Pro tip: Mark which gates are manual vs automated; the diagram then shows exactly where releases wait on a human and where you could automate.

Frequently Asked Questions

Mermaid is a text-based diagram syntax that Claude returns in a code block; you preview it instantly in the artifact panel and paste it into tools like Notion, GitHub, or Confluence that render Mermaid natively. Self-contained SVG is a finished image you can drop straight into slides or docs with no rendering engine needed. These prompts specify whichever fits the diagram type, and you can ask Claude to switch formats.
Yes. Because the output is editable code (Mermaid text or SVG markup), you can tweak it directly or ask Claude to add a node, relabel an edge, change colors, or restructure a branch. Just describe the change in plain language and Claude updates the same artifact.
No. You describe the system, process, or relationships in plain words and fill the bracketed inputs; Claude writes the correct Mermaid or SVG for you and validates that it renders. The prompts also ask Claude to flag anything it inferred so you can confirm the result is accurate.
Claude previews them live in the artifact panel. To use them elsewhere, paste the Mermaid code into GitHub markdown, Notion, GitLab, Obsidian, mermaid.live, or any docs tool with Mermaid support, where it renders as a clean diagram. SVG outputs work anywhere images do.
Very. The prompts handle everything from a simple five-step flowchart to a multi-service architecture map, a normalized ER model, or a Gantt chart with dependencies and a computed critical path. Give Claude more detail in the inputs and the diagram scales up; ask it to simplify and it collapses redundant nodes for clarity.

Prompts are the starting line. Tutorials are the finish.

A growing library of 300+ hands-on tutorials on ChatGPT, Claude, Midjourney, and 50+ AI tools. New tutorials added every week.

7-day free trial. Cancel anytime.