Skip to content

Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.

feat(design): Enhance design bundle agents with additional capabilities

Jez0fc121bd91b3
diff --git a/.claude/agents/a11y-auditor.md b/.claude/agents/a11y-auditor.md
index 66e0a9ae..9410d77a 100644
--- a/.claude/agents/a11y-auditor.md
+++ b/.claude/agents/a11y-auditor.md
@@ -256,6 +256,58 @@ Search CSS for:
Flag any that may not meet 4.5:1 ratio.
+#### Contrast Ratio Calculation
+
+To calculate contrast ratio manually, use this formula:
+
+**Step 1: Convert hex to relative luminance**
+```
+For each R, G, B value (0-255):
+1. Divide by 255 to get 0-1 range
+2. If value ≤ 0.03928: L = value / 12.92
+ If value > 0.03928: L = ((value + 0.055) / 1.055) ^ 2.4
+3. Luminance = 0.2126 × R + 0.7152 × G + 0.0722 × B
+```
+
+**Step 2: Calculate ratio**
+```
+Ratio = (L1 + 0.05) / (L2 + 0.05)
+Where L1 is the lighter color's luminance and L2 is the darker
+```
+
+**Quick Reference - Common Colors:**
+
+| Color | Hex | Luminance | vs White (#fff) | vs Black (#000) |
+|-------|-----|-----------|-----------------|-----------------|
+| White | #ffffff | 1.000 | 1:1 | 21:1 ✅ |
+| Black | #000000 | 0.000 | 21:1 ✅ | 1:1 |
+| Gray 500 | #6b7280 | 0.183 | 4.6:1 ✅ | 4.6:1 ✅ |
+| Gray 400 | #9ca3af | 0.352 | 2.9:1 ❌ | 7.4:1 ✅ |
+| Gray 600 | #4b5563 | 0.104 | 7.5:1 ✅ | 2.8:1 ❌ |
+| Slate 500 | #64748b | 0.176 | 4.7:1 ✅ | 4.5:1 ✅ |
+| Teal 500 | #14b8a6 | 0.356 | 2.8:1 ❌ | 7.6:1 ✅ |
+| Blue 600 | #2563eb | 0.137 | 5.7:1 ✅ | 3.7:1 ❌ |
+| Red 500 | #ef4444 | 0.213 | 4.0:1 ❌ | 5.3:1 ✅ |
+
+**WCAG Requirements:**
+- **4.5:1** - Normal text (< 18pt regular or < 14pt bold)
+- **3:1** - Large text (≥ 18pt regular or ≥ 14pt bold) and UI components
+- **3:1** - Focus indicators
+
+**Common Failing Combinations:**
+- Light gray text (#9ca3af) on white ❌
+- Teal (#14b8a6) text on white ❌
+- White text on light backgrounds ❌
+- Yellow (#fbbf24) text on white ❌
+
+**Safe Dark Text on Light Background:**
+- Use #374151 (gray-700) or darker
+- Use #1e293b (slate-800) for high contrast
+
+**Safe Light Text on Dark Background:**
+- Use #f9fafb (gray-50) or lighter
+- Use #ffffff for maximum contrast
+
### ARIA Misuse
```bash
diff --git a/.claude/agents/favicon-crafter.md b/.claude/agents/favicon-crafter.md
index 61d29076..225b4a4e 100644
--- a/.claude/agents/favicon-crafter.md
+++ b/.claude/agents/favicon-crafter.md
@@ -174,6 +174,62 @@ Always deliver:
<polygon points="16,0 30,8 30,24 16,32 2,24 2,8" fill="[COLOR]"/>
```
+### Star (ratings, favorites, awards)
+```xml
+<polygon points="16,0 20,12 32,12 22,19 26,32 16,24 6,32 10,19 0,12 12,12" fill="[COLOR]"/>
+```
+
+### Diamond (premium, luxury)
+```xml
+<polygon points="16,0 32,16 16,32 0,16" fill="[COLOR]"/>
+```
+
+### Heart (love, wellness, community)
+```xml
+<path d="M16 28C16 28 4 20 4 12C4 8 7 4 12 4C14 4 16 6 16 6C16 6 18 4 20 4C25 4 28 8 28 12C28 20 16 28 16 28Z" fill="[COLOR]"/>
+```
+
+### Cloud (cloud services, storage)
+```xml
+<path d="M8 22C4 22 2 19 2 16C2 13 5 11 8 11C8 7 12 4 17 4C22 4 26 8 26 13C29 13 30 16 30 18C30 21 28 22 25 22Z" fill="[COLOR]"/>
+```
+
+### Gradient Backgrounds
+
+**Two-color gradient (diagonal):**
+```xml
+<defs>
+ <linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:[COLOR1];stop-opacity:1" />
+ <stop offset="100%" style="stop-color:[COLOR2];stop-opacity:1" />
+ </linearGradient>
+</defs>
+<circle cx="16" cy="16" r="16" fill="url(#grad)"/>
+```
+
+**Three-color gradient (horizontal):**
+```xml
+<defs>
+ <linearGradient id="grad" x1="0%" y1="50%" x2="100%" y2="50%">
+ <stop offset="0%" style="stop-color:[COLOR1];stop-opacity:1" />
+ <stop offset="50%" style="stop-color:[COLOR2];stop-opacity:1" />
+ <stop offset="100%" style="stop-color:[COLOR3];stop-opacity:1" />
+ </linearGradient>
+</defs>
+<circle cx="16" cy="16" r="16" fill="url(#grad)"/>
+```
+
+**Radial gradient (glow effect):**
+```xml
+<defs>
+ <radialGradient id="grad" cx="50%" cy="50%" r="50%">
+ <stop offset="0%" style="stop-color:[COLOR1];stop-opacity:1" />
+ <stop offset="100%" style="stop-color:[COLOR2];stop-opacity:1" />
+ </radialGradient>
+</defs>
+<circle cx="16" cy="16" r="16" fill="url(#grad)"/>
+```
+
---
## Example Outputs
diff --git a/.claude/agents/image-prompter.md b/.claude/agents/image-prompter.md
index 7b7137bc..a2a821f3 100644
--- a/.claude/agents/image-prompter.md
+++ b/.claude/agents/image-prompter.md
@@ -131,3 +131,80 @@ Professional, trustworthy, approachable mood.
| Missing element | "Add [element] to [location]" |
| Wrong lighting | "Make lighting more [warm/cool/dramatic]" |
| Text illegible | "Make text larger and clearer" |
+
+---
+
+## Negative Prompts (What to Avoid)
+
+Always include "Do NOT include" or "Avoid" statements to prevent common artifacts:
+
+### For Photorealistic Images
+```
+Do NOT include:
+- Watermarks or text overlays
+- Extra limbs or distorted body parts
+- Blurry or out-of-focus areas
+- Unnatural skin textures or tones
+- Stock photo-style corporate posing
+```
+
+### For Illustrations/Vector
+```
+Avoid:
+- Photorealistic elements mixed with vector
+- Busy backgrounds that distract from subject
+- Gradients that clash with flat design
+- Multiple conflicting art styles
+```
+
+### For Infographics
+```
+Do NOT include:
+- Decorative elements that distract from data
+- Illegible small text
+- 3D effects that reduce clarity
+- More than 3-4 colors
+```
+
+### For Product Shots
+```
+Avoid:
+- Reflections that obscure product details
+- Background elements competing with product
+- Unrealistic proportions or scale
+- Visible supports or stands
+```
+
+### For Backgrounds/Textures
+```
+Do NOT include:
+- Recognizable objects or faces
+- Sharp contrast that distracts from foreground content
+- Patterns that cause visual fatigue
+- Elements that won't tile seamlessly (if tiling needed)
+```
+
+### Common AI Image Artifacts to Specify Against
+```
+Avoid:
+- Extra fingers or incorrect hand anatomy
+- Text/letters that are garbled or nonsensical
+- Inconsistent shadows (multiple light sources)
+- Floating objects without proper grounding
+- Uncanny valley facial expressions
+```
+
+### Example with Negative Prompt
+
+```
+**Prompt:**
+A photorealistic hero image of a modern home office with large windows,
+natural light streaming in, minimalist desk with laptop, plants on shelves.
+Warm, inviting atmosphere, shot at 35mm f/2.8, shallow depth of field.
+
+Do NOT include: people, visible brand logos on devices, cluttered desk,
+harsh shadows, corporate/generic stock photo feel.
+
+**Model:** gemini-2.5-pro-preview-image-generation
+**Config:** { aspectRatio: "16:9" }
+```
diff --git a/skills/accessibility/agents/a11y-auditor.md b/skills/accessibility/agents/a11y-auditor.md
index 66e0a9ae..9410d77a 100644
--- a/skills/accessibility/agents/a11y-auditor.md
+++ b/skills/accessibility/agents/a11y-auditor.md
@@ -256,6 +256,58 @@ Search CSS for:
Flag any that may not meet 4.5:1 ratio.
+#### Contrast Ratio Calculation
+
+To calculate contrast ratio manually, use this formula:
+
+**Step 1: Convert hex to relative luminance**
+```
+For each R, G, B value (0-255):
+1. Divide by 255 to get 0-1 range
+2. If value ≤ 0.03928: L = value / 12.92
+ If value > 0.03928: L = ((value + 0.055) / 1.055) ^ 2.4
+3. Luminance = 0.2126 × R + 0.7152 × G + 0.0722 × B
+```
+
+**Step 2: Calculate ratio**
+```
+Ratio = (L1 + 0.05) / (L2 + 0.05)
+Where L1 is the lighter color's luminance and L2 is the darker
+```
+
+**Quick Reference - Common Colors:**
+
+| Color | Hex | Luminance | vs White (#fff) | vs Black (#000) |
+|-------|-----|-----------|-----------------|-----------------|
+| White | #ffffff | 1.000 | 1:1 | 21:1 ✅ |
+| Black | #000000 | 0.000 | 21:1 ✅ | 1:1 |
+| Gray 500 | #6b7280 | 0.183 | 4.6:1 ✅ | 4.6:1 ✅ |
+| Gray 400 | #9ca3af | 0.352 | 2.9:1 ❌ | 7.4:1 ✅ |
+| Gray 600 | #4b5563 | 0.104 | 7.5:1 ✅ | 2.8:1 ❌ |
+| Slate 500 | #64748b | 0.176 | 4.7:1 ✅ | 4.5:1 ✅ |
+| Teal 500 | #14b8a6 | 0.356 | 2.8:1 ❌ | 7.6:1 ✅ |
+| Blue 600 | #2563eb | 0.137 | 5.7:1 ✅ | 3.7:1 ❌ |
+| Red 500 | #ef4444 | 0.213 | 4.0:1 ❌ | 5.3:1 ✅ |
+
+**WCAG Requirements:**
+- **4.5:1** - Normal text (< 18pt regular or < 14pt bold)
+- **3:1** - Large text (≥ 18pt regular or ≥ 14pt bold) and UI components
+- **3:1** - Focus indicators
+
+**Common Failing Combinations:**
+- Light gray text (#9ca3af) on white ❌
+- Teal (#14b8a6) text on white ❌
+- White text on light backgrounds ❌
+- Yellow (#fbbf24) text on white ❌
+
+**Safe Dark Text on Light Background:**
+- Use #374151 (gray-700) or darker
+- Use #1e293b (slate-800) for high contrast
+
+**Safe Light Text on Dark Background:**
+- Use #f9fafb (gray-50) or lighter
+- Use #ffffff for maximum contrast
+
### ARIA Misuse
```bash
diff --git a/skills/favicon-gen/agents/favicon-crafter.md b/skills/favicon-gen/agents/favicon-crafter.md
index 61d29076..225b4a4e 100644
--- a/skills/favicon-gen/agents/favicon-crafter.md
+++ b/skills/favicon-gen/agents/favicon-crafter.md
@@ -174,6 +174,62 @@ Always deliver:
<polygon points="16,0 30,8 30,24 16,32 2,24 2,8" fill="[COLOR]"/>
```
+### Star (ratings, favorites, awards)
+```xml
+<polygon points="16,0 20,12 32,12 22,19 26,32 16,24 6,32 10,19 0,12 12,12" fill="[COLOR]"/>
+```
+
+### Diamond (premium, luxury)
+```xml
+<polygon points="16,0 32,16 16,32 0,16" fill="[COLOR]"/>
+```
+
+### Heart (love, wellness, community)
+```xml
+<path d="M16 28C16 28 4 20 4 12C4 8 7 4 12 4C14 4 16 6 16 6C16 6 18 4 20 4C25 4 28 8 28 12C28 20 16 28 16 28Z" fill="[COLOR]"/>
+```
+
+### Cloud (cloud services, storage)
+```xml
+<path d="M8 22C4 22 2 19 2 16C2 13 5 11 8 11C8 7 12 4 17 4C22 4 26 8 26 13C29 13 30 16 30 18C30 21 28 22 25 22Z" fill="[COLOR]"/>
+```
+
+### Gradient Backgrounds
+
+**Two-color gradient (diagonal):**
+```xml
+<defs>
+ <linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:[COLOR1];stop-opacity:1" />
+ <stop offset="100%" style="stop-color:[COLOR2];stop-opacity:1" />
+ </linearGradient>
+</defs>
+<circle cx="16" cy="16" r="16" fill="url(#grad)"/>
+```
+
+**Three-color gradient (horizontal):**
+```xml
+<defs>
+ <linearGradient id="grad" x1="0%" y1="50%" x2="100%" y2="50%">
+ <stop offset="0%" style="stop-color:[COLOR1];stop-opacity:1" />
+ <stop offset="50%" style="stop-color:[COLOR2];stop-opacity:1" />
+ <stop offset="100%" style="stop-color:[COLOR3];stop-opacity:1" />
+ </linearGradient>
+</defs>
+<circle cx="16" cy="16" r="16" fill="url(#grad)"/>
+```
+
+**Radial gradient (glow effect):**
+```xml
+<defs>
+ <radialGradient id="grad" cx="50%" cy="50%" r="50%">
+ <stop offset="0%" style="stop-color:[COLOR1];stop-opacity:1" />
+ <stop offset="100%" style="stop-color:[COLOR2];stop-opacity:1" />
+ </radialGradient>
+</defs>
+<circle cx="16" cy="16" r="16" fill="url(#grad)"/>
+```
+
---
## Example Outputs
diff --git a/skills/image-gen/agents/image-prompter.md b/skills/image-gen/agents/image-prompter.md
index 7b7137bc..a2a821f3 100644
--- a/skills/image-gen/agents/image-prompter.md
+++ b/skills/image-gen/agents/image-prompter.md
@@ -131,3 +131,80 @@ Professional, trustworthy, approachable mood.
| Missing element | "Add [element] to [location]" |
| Wrong lighting | "Make lighting more [warm/cool/dramatic]" |
| Text illegible | "Make text larger and clearer" |
+
+---
+
+## Negative Prompts (What to Avoid)
+
+Always include "Do NOT include" or "Avoid" statements to prevent common artifacts:
+
+### For Photorealistic Images
+```
+Do NOT include:
+- Watermarks or text overlays
+- Extra limbs or distorted body parts
+- Blurry or out-of-focus areas
+- Unnatural skin textures or tones
+- Stock photo-style corporate posing
+```
+
+### For Illustrations/Vector
+```
+Avoid:
+- Photorealistic elements mixed with vector
+- Busy backgrounds that distract from subject
+- Gradients that clash with flat design
+- Multiple conflicting art styles
+```
+
+### For Infographics
+```
+Do NOT include:
+- Decorative elements that distract from data
+- Illegible small text
+- 3D effects that reduce clarity
+- More than 3-4 colors
+```
+
+### For Product Shots
+```
+Avoid:
+- Reflections that obscure product details
+- Background elements competing with product
+- Unrealistic proportions or scale
+- Visible supports or stands
+```
+
+### For Backgrounds/Textures
+```
+Do NOT include:
+- Recognizable objects or faces
+- Sharp contrast that distracts from foreground content
+- Patterns that cause visual fatigue
+- Elements that won't tile seamlessly (if tiling needed)
+```
+
+### Common AI Image Artifacts to Specify Against
+```
+Avoid:
+- Extra fingers or incorrect hand anatomy
+- Text/letters that are garbled or nonsensical
+- Inconsistent shadows (multiple light sources)
+- Floating objects without proper grounding
+- Uncanny valley facial expressions
+```
+
+### Example with Negative Prompt
+
+```
+**Prompt:**
+A photorealistic hero image of a modern home office with large windows,
+natural light streaming in, minimalist desk with laptop, plants on shelves.
+Warm, inviting atmosphere, shot at 35mm f/2.8, shallow depth of field.
+
+Do NOT include: people, visible brand logos on devices, cluttered desk,
+harsh shadows, corporate/generic stock photo feel.
+
+**Model:** gemini-2.5-pro-preview-image-generation
+**Config:** { aspectRatio: "16:9" }
+```