/kenji:design-generative-artfrom kenji skills
Creates algorithmic visuals with p5.js, Canvas, or SVG using seeded randomness and interactive controls. Handles flow fields, particle systems, and procedural art.
Ships in kenji skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Degree of freedom: MIXED. Algorithm and palette [HIGH freedom]; existing
pipeline inventory and seed reproducibility [LOW freedom — run exactly].
Create generative, procedural, and mathematical art using code. Transform algorithms into visual experiences.
| Skill | Owns |
|---|---|
| design-generative-art (this) | Algorithmic visuals with p5.js, Canvas, or SVG; seeded randomness, controls |
data-visualization | Interactive, accessible charts and dashboards with Recharts, D3, or Victory |
Inventory: no p5; one
getContext('2d')chart canvas — do not hijack it. Seed:mulberry32(42)drives a newsrc/components/art/flow field. Parameterize:density,palette(ocean),scale; slider re-renders from the same seed. Validate: seed 42 twice matches;prefers-reduced-motionstops the RAF loop.
data-visualization; UI illustration → design-frontend; WebGL/3D → enhance-web-web3dBefore creating ANY generative art, verify:
cat package.json | grep -i "p5\|three\|canvas\|pixi\|paper"
ls -la src/components/art/ src/components/generative/ 2>/dev/null
rg "Canvas|useFrame|getContext.*2d|WebGL" --type tsx -l
rg "simplex\|perlin\|noise\|seedrandom" --type ts
Why: Don't conflict with existing rendering pipelines or duplicate utility code.
Every piece should be reproducible with a seed:
function mulberry32(seed: number) {
return function() {
let t = seed += 0x6D2B79F5
t = Math.imul(t ^ t >>> 15, t | 1)
t ^= t + Math.imul(t ^ t >>> 7, t | 61)
return ((t ^ t >>> 14) >>> 0) / 4294967296
}
}
// Usage
const rng = mulberry32(42) // Same seed = same output
const value = rng() // 0-1 deterministic random
Make art controllable via parameters:
interface ArtParams {
seed: number
density: number // 0-1
palette: string[]
scale: number
speed: number
complexity: number // 0-1
}
Design for any canvas size:
// Normalize coordinates to 0-1 range
const nx = x / width
const ny = y / height
// Then scale to canvas
const px = nx * canvas.width
const py = ny * canvas.height
function generateLSystem(system: LSystem): string {
let current = system.axiom
for (let i = 0; i < system.iterations; i++) {
current = current.split('').map(c => system.rules[c] || c).join('')
}
return current
}
Full implementations of all four: references/algorithms.md.
'use client' canvas wrapper; seed, width, height, palette, className propsuseCallback keyed on seed/size/palette; useEffect calls itDate.now() seed) and a labelled numeric seed inputmaxWidth: '100%', height: 'auto' for responsive displayFull component: references/component-palettes-export.md §React Component Pattern.
Curated 5-color sets in warm / cool / monochrome / vibrant / Japanese-inspired groups (sunset, ocean, ink, neon, wabi, …).
Table: references/component-palettes-export.md §Color Palettes.
requestAnimationFrame loop; t = frame * params.speed * 0.01rgba(0,0,0,0.02)) for trailscancelAnimationFrameFull loop: references/algorithms.md §Animation Loop.
canvas.toDataURL('image/png') into a download link named ${filename}-${Date.now()}.pngXMLSerializer → Blob (image/svg+xml) → URL.createObjectURLHelpers: references/component-palettes-export.md §Export & Sharing.
enhance-web-web3d — WebGL, Three.js, shaders for 3D generative artdesign-motion — Animation patterns for interactive piecesdesign-canvas — Print-quality visual design philosophydata-visualization — Data-driven generative compositionsAfter creating algorithmic art:
prefers-reduced-motionWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
generative-art, procedural-visuals, p5js, canvas, svg, seeded-randomness
npx claudepluginhub kensaurus/skills --plugin kenji162 skills in this plugin
/audit-accessibilityWCAG 2.2 AA audit via playwright-cli: axe-core, keyboard, contrast, target size, focus, ARIA. Use when "audit accessibility", "check a11y", "WCAG audit", "check keyboard nav", or "test screen reader".
/audit-agent-speedMeasure and fix a slow coding-agent setup: status line, hooks, instruction bloat, effort, worktree pile-up, antivirus and indexer scans. Use when "Claude is slow" or "CPU is pinned". App speed → audit-performance.
/audit-analyticsRead-only audit of product-analytics events (PostHog, Amplitude, Mixpanel, GA4): taxonomy, funnels, consent-gated firing, dead or duplicate events. Use when "audit our analytics", "are we tracking the right events", or "funnel instrumentation".
/audit-auth-flowsRead-only audit of app-layer auth: route×gate matrix, session lifecycle, OAuth, provider traps (getSession vs getUser, middleware-only gates, CVE-2025-29927). Use when "audit our auth" or "check middleware protection". RLS → plan-rls-audit.
/audit-backend-architectureRead-only backend-architecture audit and pattern advisor, gated by stack. Use when "audit backend architecture", "which pattern should I use", "am I over-engineering", or "sync vs event-driven". Enforced boundaries → enhance-arch-boundaries.
/audit-bundle-sizeAnalyse and shrink a web app's JavaScript bundle. Use when "reduce bundle size", "code splitting", "slow initial load", or "why is the bundle so big". Runtime → audit-performance.
Other plugins' skills for the same job