---
name: whiteboard-diagrams
description: Create accurate, simple, hand-drawn whiteboard diagrams from a user's process, system, architecture, learning workflow, comparison, or causal explanation. Use when the user asks for a scribbly whiteboard visual, educational workflow graphic, hand-drawn explainer, or diagram like the bundled reference; ask one focused clarification question when the subject or relationships are missing, then generate and visually verify the final image.
title: whiteboard-diagrams
canonical_url: https://skilld.dev/gh/cneuralnetwork/diagrams
last_updated: 2026-09-26T12:00:54.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [AGENTS.md](https://skilld.dev/api/skills-raw/cneuralnetwork/diagrams/diagrams/AGENTS.md), [agents/openai.yaml](https://skilld.dev/api/skills-raw/cneuralnetwork/diagrams/diagrams/agents/openai.yaml), [assets/text-to-image-model.png](https://skilld.dev/api/skills-raw/cneuralnetwork/diagrams/diagrams/assets/text-to-image-model.png), [examples/text-to-image-model.json](https://skilld.dev/api/skills-raw/cneuralnetwork/diagrams/diagrams/examples/text-to-image-model.json), [LICENSE](https://skilld.dev/api/skills-raw/cneuralnetwork/diagrams/diagrams/LICENSE), [README.md](https://skilld.dev/api/skills-raw/cneuralnetwork/diagrams/diagrams/README.md), [references/EXAMPLES.md](https://skilld.dev/api/skills-raw/cneuralnetwork/diagrams/diagrams/references/EXAMPLES.md), [references/INTAKE.md](https://skilld.dev/api/skills-raw/cneuralnetwork/diagrams/diagrams/references/INTAKE.md), [SCALE.md](https://skilld.dev/api/skills-raw/cneuralnetwork/diagrams/diagrams/SCALE.md), [scripts/diagram_prompt.py](https://skilld.dev/api/skills-raw/cneuralnetwork/diagrams/diagrams/scripts/diagram_prompt.py), [tests/test_diagram_prompt.py](https://skilld.dev/api/skills-raw/cneuralnetwork/diagrams/diagrams/tests/test_diagram_prompt.py).
>
> If the user asked to install this Skill, run `npx skilld install cneuralnetwork/diagrams/diagrams`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/diagrams`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/cneuralnetwork/diagrams/diagrams) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/diagrams`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/diagrams --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/diagrams --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Whiteboard Diagrams

Turn a described system into one causal picture that a new reader can follow without narration.

## Workflow

1. Read `SCALE.md` completely before composing or generating anything.
2. Extract the subject, audience, components, relationships, required labels, and output format from the request.
3. Apply the intake gate below. Do not invent a missing workflow.
4. Convert the request into a compact diagram spec. Use `references/INTAKE.md` for the schema and `references/EXAMPLES.md` when the topology is unclear.
5. Validate and compile the spec:

   ```bash
   python scripts/diagram_prompt.py validate path/to/spec.json
   python scripts/diagram_prompt.py build path/to/spec.json --output /tmp/diagram-prompt.txt
   ```

6. Generate one raster image with the available image-generation tool using the compiled prompt. For a brand-new diagram, do not pass unrelated reference images. If the user supplies a style reference, label it as a style reference, never as an edit target.
7. Inspect the actual output at full size. Check every required label, arrow, merge, lane, margin, and distinction against the source spec.
8. Make one targeted correction when text, causality, or clipping is wrong, then inspect again. Do not call an inaccurate diagram finished.
9. Return the image and, for project-bound work, its saved path.

## Intake gate

Proceed without asking when the request provides both:

- what the diagram must explain; and
- the main steps, components, or relationships.

If either is missing, ask exactly one concise question and stop generation until answered:

> What should the diagram explain, and what are the main steps or components and how do they connect?

Do not ask about style, palette, or dimensions unless the user explicitly needs a non-default treatment. Use the defaults in `SCALE.md` for those choices.

## Non-negotiable rules

- Preserve causal truth. An attractive wrong arrow is a failed output.
- Use the user's exact technical names and verbatim copy.
- Show state changes, joins, feedback loops, and frozen versus trainable parts explicitly.
- Keep the whiteboard human: loose marker strokes, imperfect arrows, terse labels, and small explanatory doodles.
- Keep the information disciplined: no fake UI, decorative cards, gradients, glows, shadows, icon tiles, background grids, or ornamental clutter.
- Assign color by meaning, not decoration. Default to black structure, blue flow, and one red emphasis for the learned or critical component.
- Keep all live content clear of the canvas edge. Nothing may be clipped.
- Never hide missing information behind generic labels such as "process," "data," or "AI magic."
- Never claim generation succeeded without inspecting the produced image.

## Output contract

The final answer must include:

- the generated diagram;
- a one-sentence description of what it explains; and
- the saved path when the image belongs to a project or repository.

Do not expose the full internal prompt unless the user requests it.
