Professional Workflow Diagram Enhancement
Claude produces reliable and accurate workflow diagrams but the colours it uses don’t fit my branding. Using a prompt to enhance the Claude generate image was fraught with difficulties and inconsistencies.
To solution was to create a Claude skill to rebuild this diagram as a new, clean vector graphic using your brand colors and the mapping we settled on, matching the same structure, text, and layout.
Claude Skill
—
name: brand-workflow-diagram
description: Build or rebuild vertical step-by-step workflow diagrams (process flows, pipelines, sequences of stages with arrows) as clean SVG + PNG using Sally’s fixed brand colour palette. Use this whenever the user asks to create a workflow diagram, process diagram, pipeline diagram, or flowchart-style sequence of steps, or asks to “redo”, “refine”, “rebuild”, or “recolour” an existing workflow diagram (including from an uploaded image) to match brand colours. Also trigger if the user references “the workflow diagram style”, “brand colours for a diagram”, or uploads a diagram image and asks for it in the correct colours. Do not use for org charts, mind maps, free-form illustrations, or diagrams with non-linear/branching layouts unless the user confirms this style still applies.
—
# Brand Workflow Diagram
Rebuilds vertical, single-column workflow diagrams (title box → boxes with title+subtitle → arrows → dashed output-folder side-boxes → legend) as SVG and PNG, using a fixed brand palette. This is a reconstruction skill, not an image-editing skill: there is no way to edit an uploaded image directly, so any source diagram (image or plain description) is read for its structure and text, then rebuilt from scratch as native SVG.
## When to use this
– User asks for a new workflow/process/pipeline diagram of sequential steps
– User uploads an existing workflow diagram and asks for it recoloured, refined, or rebuilt to brand
– User references “the workflow diagram style” from past work
## Brand colour system (fixed — always use these exact values)
Five reusable role triples (fill / border / text). These hex values are fixed; do not approximate or introduce other colours for diagram boxes, borders, or box text.
– **Role A — warm neutral (mauve)**: fill `#F3E9E9`, border `#9A8484`, text `#3E363F`
– **Role B — gold**: fill `#F9F4E8`, border `#DBC27F`, text `#3E363F`
– **Role C — cool neutral (blue-grey)**: fill `#EEF1F3`, border `#A8B0B8`, text `#3E363F`
– **Role D — alert/red**: fill `#FFEAE7`, border `#E0381F`, text `#7E160D`
– **Role E — grey / source**: fill `#F6F4F4`, border `#E4E7EA`, text `#3E363F`
Fixed regardless of role assignment:
– Background: `#F6F4F4`
– Output folders (dashed side-boxes): fill `#FFFFFF`, dashed border `#A8B0B8` (`stroke-dasharray=”6,5″`), text `#53606C`
– Connectors / arrows: `#A8B0B8`, 2px stroke, small filled triangle arrowhead
– Primary/title text default: `#10151C` (used only where a box has no specific role text colour override, e.g. a plain source/info box)
– Secondary/subtitle text default: `#53606C`
**Role reassignment is free per diagram.** Do not assume Role A always means “file management” or any other fixed category — that mapping is specific to past diagrams. For each new diagram:
1. Identify the distinct semantic categories present (however many there are — could be 2, could be 6).
2. Assign one role per category, in the order the categories first appear top-to-bottom, cycling through A → B → C → D → E if there are more than 5 (flag to the user if a diagram needs more than 5 distinct categories, since the palette is designed for 5).
3. State the mapping used for that diagram back to the user in a short list before/after presenting the result, so they can request swaps easily (e.g. “File management → Role A (mauve), Claude step → Role B (gold)…”).
## Layout rules (consistent across all diagrams)
– Single column, vertical flow, centered horizontally on the canvas
– Rounded rectangles (`rx` 18–20px), 2px stroke borders
– Each box: bold title line + regular-weight subtitle line(s) directly below, both centered
– Boxes connected top-to-bottom by straight vertical arrows (`#A8B0B8`, 2px, small filled triangle head), no elbow/orthogonal routing needed for a single column
– Optional dashed-border side boxes (`stroke-dasharray=”6,5″`) for supplementary info (e.g. output folders), connected to their parent box by a short horizontal dashed line, not an arrow
– Legend at the bottom: thin horizontal divider line (`#E4E7EA`), “Legend” header, then swatch (rounded square, same fill/border as the role) + label pairs, arranged in a simple grid
– Font: Inter (fallback: Helvetica Neue, Arial, sans-serif) throughout. Titles ~24–26px bold, subtitles ~16–18px regular, legend labels ~20px regular
– No gradients, shadows, transparency, or decorative effects — solid fills only
– Preserve the original diagram’s exact wording, box count, and sequence when rebuilding an existing diagram — this is a recolour/refinement task, not a redesign. Do not add, cut, or reword content.
## Workflow
1. **Gather the source.** If the user uploaded an image, `view` it to read every box’s title, subtitle text, folder labels, legend entries, and sequence exactly. If the user is describing a new diagram from scratch, confirm the step list and any category groupings with them if ambiguous.
2. **Determine role mapping** per the rules above and state it back to the user.
3. **Build the SVG** by hand-coding it (see `assets/template.svg` for a working reference structure with correct coordinate spacing, box heights, arrow syntax, and legend layout — copy and adapt rather than starting from a blank canvas). Adjust canvas height and box y-coordinates to fit however many boxes/side-boxes this diagram needs.
4. **Render a PNG** alongside the SVG using cairosvg:
“`python
import cairosvg
cairosvg.svg2png(url=’diagram.svg’, write_to=’diagram.png’, output_width=<2x canvas width>, output_height=<2x canvas height>, scale=2)
“`
(cairosvg must be installed via `pip install cairosvg –break-system-packages` if not already present in the environment.) Render at 2x canvas dimensions for a crisp PNG.
5. **Save both files** to `/mnt/user-data/outputs/` and present them with `present_files` (SVG first, since that’s the editable/portfolio-ready asset).
6. **Report the role mapping used** for this diagram in a short list so the user can request swaps.
## Reference
– `assets/template.svg` — a complete worked example (7-box vertical workflow with two dashed output-folder side-boxes and a two-row legend) showing exact coordinate conventions, text sizing, and arrow/legend syntax. Use this as the starting structure for any new diagram rather than writing SVG from scratch each time.
Template used by the skill
