Skip to content

Commit f8b079e

Browse files
committed
feat(skills): add codingcat-excalidraw-diagrams prompt-compiler skill for Gemini App
1 parent 383ef9a commit f8b079e

3 files changed

Lines changed: 179 additions & 0 deletions

File tree

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
---
2+
name: codingcat-excalidraw-diagrams
3+
description: Automatically compiles any short technical topic or architecture comparison into a 6-part hand-drawn dark-mode whiteboard diagram (or YouTube thumbnail with @alex.patterson) and generates the image. Activate whenever the user asks for a diagram, architecture diagram, whiteboard sketch, flowchart, or visual comparison.
4+
---
5+
6+
# CodingCat.dev Dark Whiteboard Diagram Generator Skill
7+
8+
You are an automated **Prompt Compiler and Visual Diagram Generator** for **CodingCat.dev**.
9+
The user should **never** have to write a long image prompt. Whenever the user gives you a short prompt like:
10+
- *"Create an architecture diagram for Sanity Content Releases"*
11+
- *"Diagram how WebMCP works vs scraping"*
12+
- *"Make a thumbnail diagram for Cloudflare D1 with @alex.patterson"*
13+
14+
You MUST follow this **3-Step Execution Protocol** before calling your image generation tool.
15+
16+
---
17+
18+
## Mandatory 3-Step Execution Protocol
19+
20+
### Step 1: Extract the 3-Stage Architecture Model from the User's Topic
21+
Automatically map the user's short topic into three concrete columns (using **1 to 3 words max per box** so text is 100% legible):
22+
1. **Left Cluster (The Old / Painful Anti-Pattern)**:
23+
- Group Caption (ALL-CAPS, 1-2 words): e.g., `DUPLICATES`, `LEGACY`, `MANUAL`, `SCRAPING`, `COLD STARTS`
24+
- 2 or 3 stacked cards inside the boundary box: e.g., `"Hero US"`, `"Hero EU"`, `"Hero Test"`
25+
- Marker: Large sketchy Coral Red (`#FCA5A5`) hand-drawn `X` mark slashed across the cluster.
26+
2. **Center Node (The Core Engine / Resolution Layer)**:
27+
- 1 prominent center document/service card: e.g., `"Base Document"`, `"Edge Worker"`, `"WebMCP Tool"`, `"Release ID"`
28+
3. **Right Cluster (The Modern / Recommended Pattern)**:
29+
- Group Caption (ALL-CAPS, 1-2 words): e.g., `DYNAMIC`, `EDGE NATIVE`, `ATOMIC`, `STRUCTURED`
30+
- 2 resolved output boxes branching from the center node: e.g., `"audience: loyal"`, `"market: eu"`
31+
- Marker: Large vibrant Electric Lime (`#C5E86C`) and Mint (`#86EFAC`) hand-drawn checkmark (`✓`) above the right cluster.
32+
33+
### Step 2: Compile the Verbatim 6-Part Image Generation Prompt
34+
Do **NOT** pass a short summary to the image generator. Fill in the bracketed slots below and pass this **entire compiled prompt** into the image generation tool:
35+
36+
#### Mode A: Standalone 16:9 Architecture Diagram (Default when no presenter is requested)
37+
```text
38+
Flat 2D hand-drawn dark-mode whiteboard software architecture diagram (16:9 aspect ratio) on a pure black (#000000) background with a faint dark gray (#212121) 20px technical gridline pattern.
39+
40+
1. Drawing Style & Stroke Mechanics:
41+
- Authentic flat 2D whiteboard sketch aesthetic (Rough.js / Excalidraw style) with zero 3D perspective, zero isometric tilt, and zero glossy gradients.
42+
- Every card and container is drawn with TWO slightly offset, overlapping, hand-drawn wobbly white (#FFFFFF) and Soft Lavender (#B4A7D6) marker strokes (double-stroked sketchy lines).
43+
- Interior fills of primary cards use sparse 45-degree diagonal parallel marker hatch lines (hachure cross-hatching) in Royal Purple (#4B2E83) and dark slate (#1E293B).
44+
45+
2. Left Section (Anti-Pattern Cluster):
46+
- Inside a double-stroked sketchy boundary box on the left labeled "[LEFT_ALL_CAPS_CAPTION]" at the top and bottom in white Virgil hand-drawn marker font, draw three stacked document cards with folded top-right corners labeled "[BAD_NODE_1]", "[BAD_NODE_2]", and "[BAD_NODE_3]".
47+
- Slash a large, thick, sketchy Coral Red (#FCA5A5) hand-drawn "X" mark directly across this left cluster.
48+
49+
3. Center Section (Core Resolution Node):
50+
- Three thick, double-stroked sketchy white hand-drawn arrows point from the left cards into a single prominent central document card (with folded top-right corner) labeled "[CENTER_CORE_NODE]" filled with 45-degree diagonal hatch lines.
51+
52+
4. Right Section (Recommended Pattern Cluster):
53+
- Two sketchy white hand-drawn arrows branch from "[CENTER_CORE_NODE]" to two clean double-stroked boxes on the right labeled "[GOOD_NODE_1]" and "[GOOD_NODE_2]".
54+
- Above these right-side boxes, draw a large, vibrant, sketchy hand-drawn checkmark in Electric Lime Green (#C5E86C) and Mint (#86EFAC), paired with the ALL-CAPS marker annotation "[RIGHT_ALL_CAPS_CAPTION]" in white Virgil marker font.
55+
56+
5. Typography & Visual Guardrails:
57+
- All labels are written in large, clean, highly legible white hand-drawn marker handwriting (Virgil font aesthetic), strictly 1 to 3 words per box.
58+
- Generous pure black negative space between the Left, Center, and Right groups so no boxes or arrows overlap.
59+
- Use all color values strictly as visual rendering guidelines; never render hex codes, UI toolbars, or watermarks as text on the canvas.
60+
```
61+
62+
#### Mode B: 16:9 YouTube Thumbnail with `@alex.patterson` (When user mentions thumbnail, `@alex.patterson`, or `@codingcatthumbnails`)
63+
```text
64+
High-contrast 16:9 YouTube thumbnail on a pure black (#000000) background with a faint dark gray (#212121) 20px technical gridline pattern.
65+
66+
1. Left Third (Presenter Cutout - @alex.patterson):
67+
- Position a photorealistic studio cutout of @alex.patterson strictly on the left third (0% to 33%) of the frame, completely clear of any diagram boxes or text.
68+
- Likeness lock: Caucasian man in his mid-40s, very short styled light-brown hair, warm blue-green eyes, neatly trimmed salt-and-pepper beard, wearing NO glasses. He is in an expressive reaction pose (shocked mind-blown hands by head, or pointing right toward the diagram), wearing a round black Pixel Watch on his left wrist (no rings, bare right wrist) and a black crew-neck t-shirt with the official white brand symbol on the chest.
69+
70+
2. Top Center-Right (Brand Lockup & 2-Word Headline):
71+
- Centered near the top above the diagram is the official white brand logo lockup.
72+
- Directly below the logo is the large, bold 2-word headline "[HEADLINE_WORD_1] [HEADLINE_WORD_2]" in a heavy geometric grotesque font, with "[HEADLINE_WORD_1]" in crisp white (#FFFFFF) and "[HEADLINE_WORD_2]" in vibrant glowing accent color (#FF5500 or #C5E86C).
73+
74+
3. Right Two-Thirds (Flat 2D Hand-Drawn Dark-Mode Whiteboard Diagram):
75+
- Authentic flat 2D whiteboard sketch aesthetic (Rough.js / Excalidraw style) with zero 3D perspective.
76+
- Every box is drawn with TWO slightly offset, overlapping, hand-drawn sketchy white (#FFFFFF) marker strokes and 45-degree diagonal hachure hatch fills.
77+
- Left side of diagram: A double-stroked sketchy boundary box labeled "[LEFT_ALL_CAPS_CAPTION]" in white Virgil hand-drawn marker font, containing three stacked cards ("[BAD_NODE_1]", "[BAD_NODE_2]", "[BAD_NODE_3]") slashed with a large Coral Red (#FCA5A5) hand-drawn "X" mark.
78+
- Center of diagram: Sketchy white hand-drawn arrows point from the left cards into a single central document card (with folded top-right corner) labeled "[CENTER_CORE_NODE]".
79+
- Right side of diagram: Two sketchy white arrows branch from "[CENTER_CORE_NODE]" to two double-stroked boxes labeled "[GOOD_NODE_1]" and "[GOOD_NODE_2]".
80+
- Above the right-side boxes, draw a large, vibrant Electric Lime Green (#C5E86C) and Mint (#86EFAC) hand-drawn checkmark labeled "[RIGHT_ALL_CAPS_CAPTION]" in white Virgil marker font.
81+
- Maintain a 96px safe margin from all edges, keep the bottom-right 320x120px clear for the YouTube timestamp, ensure zero overlap between @alex.patterson and the diagram boxes, and never render hex codes as text.
82+
```
83+
84+
### Step 3: Call the Image Generator Immediately + Output a Markdown Comparison Table
85+
1. Call your image generation tool using the full compiled prompt from Step 2.
86+
2. Beneath the generated image, output a concise **Markdown Comparison Table** (with zero em-dashes) contrasting the Left Anti-Pattern vs. the Right Recommended Pattern across 4 to 5 production dimensions.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# Dark-Mode Excalidraw Architecture Diagrams (`excalidraw-diagrams.md`)
2+
3+
CodingCat.dev uses hand-drawn dark-mode whiteboard diagrams for system architecture walkthroughs, technical mental models, and side-by-side anti-pattern vs. recommended pattern comparisons.
4+
5+
---
6+
7+
## 1. Why Generic "Excalidraw" Prompts Fail in Gemini App (and How to Fix Them)
8+
9+
When you prompt Gemini's image generator without a reference image attached, simply writing `"Excalidraw software architecture diagram"` fails because the diffusion model defaults to 3D isometric boxes, glowing cyberpunk gradients, or 10+ tiny boxes with unreadable gibberish text.
10+
11+
To force Gemini App to generate authentic, crisp, hand-drawn dark-mode whiteboard diagrams every single time, **you must translate "Excalidraw" into explicit `Rough.js` physical drawing mechanics** using the **6-Part Zero-Shot Excalidraw Prompt Formula** below.
12+
13+
| Failure Mode in Gemini Image Gen | Root Cause | Mandatory Fix in Prompt Expansion |
14+
| :--- | :--- | :--- |
15+
| **Looks like a 3D corporate flowchart or neon sci-fi UI** | Model treats "architecture diagram" as 3D isometric tech art | Explicitly specify: `"Flat 2D hand-drawn whiteboard sketch on pure black (#000000) with subtle dark gray (#212121) 20px gridlines. Zero 3D perspective, zero isometric angles, zero glossy bevels or drop shadows on boxes."` |
16+
| **Boxes have smooth computer-drawn borders and solid gradient fills** | Model does not know `Rough.js` stroke/fill defaults | Explicitly specify: `"Every box is drawn with TWO slightly offset, overlapping, hand-drawn wobbly white (#FFFFFF) or Soft Lavender (#B4A7D6) marker strokes (double-stroked Rough.js sloppiness=2). Interior fills use visible 45-degree diagonal parallel marker hatch lines (hachure cross-hatching), never solid gradients."` |
17+
| **Garbled / misspelled text inside boxes** | Too many nodes or long sentences inside boxes | Strictly cap the diagram at **3 to 5 boxes total**, and cap every box label at **1 to 3 short words** in large white hand-drawn marker font (`Virgil` style). |
18+
| **Hex codes (`#C5E86C`) printed as literal text on the image** | Raw hex strings placed near label descriptions | Always add at the end of the prompt: `"Colors are visual rendering guidelines only; do not render any hex codes or UI chrome as text in the image."` |
19+
| **Presenter cutout (`@alex.patterson`) covers diagram boxes** | No spatial boundary between portrait and diagram | In standalone diagrams, include **no presenter**. In thumbnails, lock `@alex.patterson` strictly to the **Left Third (`0%-33%`)** or **Right Third (`67%-100%`)** and confine all diagram boxes to the **opposite Two-Thirds** with zero overlap. |
20+
21+
---
22+
23+
## 2. Visual Token Rules for Dark-Mode Whiteboard Canvases
24+
25+
| Diagram Element | Color Token | Hex Value | Physical Drawing & Stroke Rules |
26+
| :--- | :--- | :--- | :--- |
27+
| **Canvas Background** | Pure Void + Technical Grid | `#000000` with `#212121` grid | Flat 2D pure black canvas with a faint `20px` dark gray technical gridline pattern. Never export white-background diagrams. |
28+
| **Primary Box & Document Strokes** | Crisp White Chalk/Marker | `#FFFFFF` | Double-stroked (`2` overlapping slightly crooked hand-drawn lines) rectangles or document cards with a folded top-right corner. |
29+
| **Grouping / Boundary Strokes** | Soft Lavender | `#B4A7D6` | Double-stroked or dashed hand-drawn outer container grouping related cards. |
30+
| **Interior Hachure Fill** | Royal Purple / Slate / Brand Accent | `#4B2E83`, `#1E293B`, or `#FF5500` | Sparse **45-degree diagonal parallel hatch lines** (`hachure` cross-hatching) inside primary boxes over the black background. |
31+
| **Connector Arrows** | Hand-Drawn White Marker | `#FFFFFF` | Thick, sketchy, double-stroked white arrows with open hand-drawn arrowheads (`->`) connecting left to right. |
32+
| **Typography & Annotations** | White Hand-Drawn Marker | `#FFFFFF` | Large, clean, legible hand-drawn marker lettering (`Virgil` / `Excalifont` look). Keep labels to **1-3 words max**. |
33+
| **Anti-Pattern Marker (`✗`)** | Coral Red | `#FCA5A5` | Large, thick, sketchy Coral Red hand-drawn `X` mark slashed directly over the legacy/bad cluster on the left, paired with an ALL-CAPS marker label (such as `"DUPLICATES"` or `"LEGACY"`). |
34+
| **Recommended Marker (`✓`)** | Electric Lime & Mint | `#C5E86C` & `#86EFAC` | Large, vibrant, sketchy hand-drawn green checkmark (`✓`) above the resolved right-side nodes, paired with an ALL-CAPS marker label (such as `"DYNAMIC"` or `"EDGE NATIVE"`). |
35+
36+
---
37+
38+
## 3. Copy-Pasteable Gemini App `Style` Preset ("CodingCat Dark Whiteboard")
39+
40+
Since Gems with photo attachments are no longer used, save the following block as your reusable **Style** inside the Gemini App (`gemini.google.com`) for diagrams and thumbnails:
41+
42+
```text
43+
Always render visuals in the CodingCat.dev Dark Whiteboard & Studio aesthetic:
44+
1. Canvas: Flat 2D pure black (#000000) background with a faint dark gray (#212121) 20px technical gridline pattern. Zero 3D perspective, zero isometric angles, zero glossy bevels.
45+
2. Hand-Drawn Diagram Mechanics (Rough.js / Excalidraw look): Every diagram box, document card (with folded top-right corner), and boundary container is drawn with TWO slightly offset, overlapping, hand-drawn sketchy white or soft lavender marker strokes (double-stroked wobble). Box interiors use visible 45-degree diagonal parallel marker hatch lines (hachure cross-hatching) in deep purple, dark slate, or brand orange, never solid gradients.
46+
3. Diagram Layout & Labels: Maximum 3 to 5 boxes flowing left-to-right connected by thick, sketchy, double-stroked white hand-drawn arrows. Left cluster shows the old painful anti-pattern slashed with a large sketchy Coral Red X mark and an ALL-CAPS marker caption (e.g., "DUPLICATES"). Right cluster shows the modern pattern topped with a bright sketchy Electric Lime / Mint Green checkmark and an ALL-CAPS marker caption (e.g., "DYNAMIC"). All text uses clean, legible white hand-drawn marker handwriting (Virgil font style), strictly 1 to 3 words per box. Never print hex codes on the image.
47+
4. Presenter Likeness (@alex.patterson): When a presenter cutout is requested, place Alex Patterson (mid-40s Caucasian man, short styled light-brown hair, warm blue-green eyes, neatly trimmed salt-and-pepper beard, NO glasses, black crew-neck t-shirt, round black Pixel Watch on left wrist) strictly in the Left Third or Right Third with a colored sketch rim-light, ensuring zero overlap with any diagram boxes or text.
48+
```
49+
50+
---
51+
52+
## 4. The 6-Part Zero-Shot Excalidraw Prompt Template (Standalone 16:9 Diagram)
53+
54+
Whenever the user asks to generate an architecture diagram image in Gemini App, **always expand the prompt into this exact 6-part structure** before calling the image generator:
55+
56+
```text
57+
Flat 2D hand-drawn dark-mode whiteboard software architecture diagram (16:9 aspect ratio) on a pure black (#000000) background with a faint dark gray (#212121) technical gridline pattern.
58+
59+
1. Drawing Style & Stroke Mechanics:
60+
- Authentic flat 2D whiteboard sketch aesthetic (Rough.js / Excalidraw style) with zero 3D perspective, zero isometric tilt, and zero glossy gradients.
61+
- Every card and container is drawn with TWO slightly offset, overlapping, hand-drawn wobbly white (#FFFFFF) and Soft Lavender (#B4A7D6) marker strokes (double-stroked sketchy lines).
62+
- Interior fills of cards use sparse 45-degree diagonal parallel marker hatch lines (hachure cross-hatching) in Royal Purple (#4B2E83) and dark slate (#1E293B).
63+
64+
2. Left Section (Anti-Pattern Cluster):
65+
- Inside a double-stroked sketchy boundary box on the left, draw three overlapping document cards with folded top-right corners labeled "[Bad Node 1]", "[Bad Node 2]", and "[Bad Node 3]".
66+
- Slash a large, thick, sketchy Coral Red (#FCA5A5) hand-drawn "X" mark directly across this cluster.
67+
- Underneath the boundary box, write the ALL-CAPS hand-drawn marker annotation "[ANTI-PATTERN CAPTION, e.g. DUPLICATES]" with a small sketchy curved white arrow pointing up at the box.
68+
69+
3. Center Section (Core Resolution Node):
70+
- Thick, double-stroked sketchy white arrows point from the left cluster to a single prominent center card labeled "[Core Node, e.g. Base Document]" filled with 45-degree diagonal hatch lines.
71+
72+
4. Right Section (Recommended Pattern Cluster):
73+
- Sketchy white hand-drawn arrows branch from the center card to two clean double-stroked boxes on the right labeled "[Good Output 1]" and "[Good Output 2]".
74+
- Above these right-side boxes, draw a large, vibrant, sketchy hand-drawn checkmark in Electric Lime Green (#C5E86C) and Mint (#86EFAC), paired with the ALL-CAPS marker annotation "[GOOD CAPTION, e.g. DYNAMIC]" and a small sketchy pointer arrow.
75+
76+
5. Typography & Visual Guardrails:
77+
- All labels are written in large, clean, highly legible white hand-drawn marker handwriting (Virgil font aesthetic).
78+
- generous black negative space between the Left, Center, and Right groups so no boxes or arrows overlap.
79+
- Use all color values strictly as visual rendering guidelines; never render hex codes, UI toolbars, or watermarks as text on the canvas.
80+
```
81+
82+
---
83+
84+
## 5. Gemini Canvas Mode: True Vector Diagrams (`Rough.js` + `Virgil` Font)
85+
86+
When a diagram requires **more than 5 nodes**, exact code/API method names (like `releases.create()`, `sanity::partOfRelease()`), or 100% typo-free vector text that image diffusion models might misspell, offer or open **Gemini Canvas** and generate a self-contained HTML/SVG interactive diagram using:
87+
- `@font-face` loading `Virgil` (`https://excalidraw.nyc3.cdn.digitaloceanspaces.com/fonts/Virgil.woff2`)
88+
- `roughjs` (`https://unpkg.com/roughjs@4.6.6/bundled/rough.cjs.js`) with `roughness: 1.8, bowing: 1.5, fillStyle: "hachure", fillWeight: 1.5, hachureAngle: -41, hachureGap: 8`
89+
- A built-in **"Download High-Res PNG (1920x1080)"** and **"Download SVG"** button so Alex can export pixel-perfect dark-mode diagrams directly from Gemini Canvas.

‎skills/codingcat-media-studio/SKILL.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ description: Visual and video generation rules for CodingCat.dev, including Gemi
77

88
This skill governs all visual media, mascot illustration prompts, hand-drawn dark-mode architecture diagrams, YouTube thumbnails, and video production workflows for **CodingCat.dev** across **Gemini App (`gemini.google.com`)**, **Google Flow (`Veo 3.1`)**, and **Google Antigravity (`agy`)**.
99

10+
## 0. Mandatory Pre-Tool Prompt Compiler Rule (Never Make the User Paste Long Prompts!)
11+
12+
Whenever the user asks for a diagram, thumbnail, or video with a short 1-sentence request (for example, *"Create a diagram for Sanity Content Releases"* or *"Make a thumbnail for WebMCP"*), **YOU (Gemini) must automatically compile their short request into the full 6-Part Zero-Shot Excalidraw Prompt in `references/excalidraw-diagrams.md` (or the 3-Zone Thumbnail Prompt in `references/youtube-thumbnails.md`) and pass that full expanded prompt into the image generation tool**. Never pass a short unexpanded summary to the image generator, and never ask the user to copy-paste the template themselves.
13+
1014
## 1. Environment-Aware Asset & Likeness Resolution (Gemini App vs. Antigravity)
1115

1216
Because **Gemini App (`gemini.google.com`)** uses **Avatar (`@alex.patterson`) + Styles + Skills** (rather than legacy Gems with attached photo folders), always resolve likenesses, brand marks, and styles based on the active runtime:

0 commit comments

Comments
 (0)