design-generative-art
Skill9 starsChanged 42 days agoMITView on GitHub
Create algorithmic visuals with p5.js, Canvas, or SVG using seeded randomness and interactive controls. Use when "generative art", "procedural visuals", "flow fields", "particle system", or "art from code". Charts → data-visualization.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- kensaurus/skillsedited, first seen Oct 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- kensaurus/skills★ 933% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository165 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/approved-plan-execution.mdcCursor rule
- .cursor/rules/skill-workflows.mdcCursor rule
- .cursor/rules/verification-before-completion.mdcCursor rule
- llms.txtllms.txt
- audit-accessibilitySkill
- audit-agent-speedSkill
- audit-analyticsSkill
- audit-auth-flowsSkill
- audit-backend-architectureSkill
- audit-bundle-sizeSkill
- audit-cicdSkill
- audit-codemod-safetySkill
- audit-code-qualitySkill
- audit-code-reviewSkill
- audit-db-schemaSkill
- audit-doctrineSkill
- audit-env-paritySkill
- audit-fe-apiSkill
- audit-gate-logicSkill
- audit-i18nSkill
- audit-infra-costSkill
- audit-langfuse-llmSkill
- audit-llm-securitySkill
- audit-monetization-iapSkill
- audit-payment-systemSkill
- audit-performanceSkill
- audit-realworldSkill
- audit-registry-listingSkill
- audit-resilienceSkill
- audit-responsiveSkill
- audit-securitySkill
- audit-skill-conflictsSkill
- audit-ui-statesSkill
- audit-uiux-design-systemSkill
- audit-ux-journeysSkill
- audit-uxSkill
- backend-db-performanceSkill
- backend-error-handlingSkill
- backend-observabilitySkill
- backend-patternsSkill
- backend-realtimeSkill
- burndown-fullSkill
- complete-everythingSkill
- data-pipelineSkill
- data-visualizationSkill
- debug-errorSkill
- debug-fe-be-integrationSkill
- debug-sentry-monitorSkill
- deploy-npmSkill
- deploy-verifySkill
- design-apiSkill
- design-canvasSkill
- design-emailSkill
- design-frontendSkill
- design-mobile-firstSkill
- design-motionSkill
- design-prdSkill
- design-systemSkill
- design-themeSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Create generative, procedural, and mathematical art using code.
- Distinctive: line 59
Why: Don't conflict with existing rendering pipelines or duplicate utility code.
- Distinctive: line 64
Every piece should be reproducible with a seed:
- Distinctive: line 161
After creating algorithmic art:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Algorithmic Art Skill
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.
How to reason
- Inventory — existing p5 / canvas / noise utilities
- Seed — deterministic RNG; same seed = same pixels
- Parameterize — density, palette, scale, complexity
- Validate — resolution-independent; reduced-motion on loops
Worked example
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.
Self-critique before reporting
- No pipeline clash — did not overwrite an existing canvas/WebGL path
- Reproducible — same seed paints identical output
- Controls matter — each param changes the picture, not just a label
- Right owner — data charts →
data-visualization; UI illustration →design-frontend; WebGL/3D →enhance-web-web3d
Check existing first [LOW freedom — run exactly]
Before creating ANY generative art, verify:
- Check for existing creative coding setup:
cat package.json | grep -i "p5\|three\|canvas\|pixi\|paper"
ls -la src/components/art/ src/components/generative/ 2>/dev/null- Check for existing canvas/WebGL usage:
rg "Canvas|useFrame|getContext.*2d|WebGL" --type tsx -l- Check for existing noise/random utilities:
rg "simplex\|perlin\|noise\|seedrandom" --type tsWhy: Don't conflict with existing rendering pipelines or duplicate utility code.
Core Principles [HIGH freedom]
1. Seeded Randomness
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 random2. Parameterized Generation
Make art controllable via parameters:
interface ArtParams {
seed: number
density: number // 0-1
palette: string[]
scale: number
speed: number
complexity: number // 0-1
}3. Resolution Independence
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.heightTechniques [HIGH freedom]
- Flow fields — a grid of angles; particles follow it with low alpha for trails
- Recursive subdivision — split a rect 30–70% until depth or a random stop, fill leaves
- Circle packing — grow candidates until collision or bounds, keep those with r > 2
- L-systems — rewrite an axiom by rules, then draw with a turtle stack
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.
React Component Pattern [HIGH freedom]
'use client'canvas wrapper;seed,width,height,palette,classNameprops- Render in
useCallbackkeyed on seed/size/palette;useEffectcalls it - Controls: a Regenerate button (
Date.now()seed) and a labelled numeric seed input - Canvas styled
maxWidth: '100%', height: 'auto'for responsive display
Full component: references/component-palettes-export.md §React Component Pattern.
Color Palettes [HIGH freedom]
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.
Animation Loop [HIGH freedom]
requestAnimationFrameloop;t = frame * params.speed * 0.01- Semi-transparent black overlay (
rgba(0,0,0,0.02)) for trails - Return a cleanup that calls
cancelAnimationFrame
Full loop: references/algorithms.md §Animation Loop.
Export & Sharing [HIGH freedom]
- PNG:
canvas.toDataURL('image/png')into a download link named${filename}-${Date.now()}.png - SVG:
XMLSerializer→Blob(image/svg+xml) →URL.createObjectURL
Helpers: references/component-palettes-export.md §Export & Sharing.
Related Skills
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 compositions
Validation [LOW freedom — do not skip]
After creating algorithmic art:
- Reproducibility → Same seed produces identical output
- Performance → 60fps for animated pieces
- Resolution → Looks good at target export size
- Palette → Colors work together harmoniously
- Parameters → Controls produce meaningful visual changes
- Export → PNG/SVG export works correctly
- Accessibility → Animated art respects
prefers-reduced-motion
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

