algorithmic-art is one of the example skills in Anthropic’s public skills repository. It triggers when someone asks for art made with code, generative art, flow fields or particle systems, and has Claude work in two steps: first write an algorithmic philosophy, a short manifesto for a named generative art movement such as “Organic Turbulence” or “Stochastic Crystallization”, saved as a Markdown file; then express that philosophy as a p5.js sketch.
The sketch is built from a bundled HTML viewer template that Claude must read first and keep the fixed parts of: the layout, the Anthropic fonts and colors, the seed controls and the action buttons. Claude replaces only the algorithm, the parameters object and the slider and color controls for them. Randomness is always seeded with randomSeed and noiseSeed so the same seed redraws the same piece, and the frontmatter asks Claude to make original work rather than copy existing artists.
What You Get
- A two-step method: a named algorithmic philosophy written to a Markdown file, then a p5.js implementation of it
- Five worked philosophy examples, from Perlin-noise flow fields to Voronoi tessellation and recursive branching
- templates/viewer.html, a ready layout with a sidebar for seed, parameters, colors and actions, which Claude uses as the literal starting point
- templates/generator_template.js, a commented reference for parameter objects, seeded randomness, the p5.js lifecycle, entity classes and PNG export
- Rules for seeded, reproducible output where one seed always draws the same piece
- Craftsmanship guidance on balance, color harmony, composition and performance
Common Use Cases
- Making a flow field or particle system sketch that can be explored seed by seed
- Turning a loose theme or mood into an original generative art piece
- Producing a shareable single-file HTML artwork that opens in any browser
- Generating a series of variations from one algorithm, such as seeds 1 to 100 or a gallery of presets
What Makes It Unique
Where frontend-design steers Claude’s interface design and pdf routes document tasks to Python tools, algorithmic-art is a creative skill that puts writing before code: Claude has to articulate an aesthetic movement in prose before it writes a line of p5.js, and the code is meant to express that philosophy rather than pick a pattern from a menu. It also fixes the presentation, not the art: every piece shares the same viewer layout, Anthropic styling and seed controls, while the algorithm and its parameters change each time.
Under The Hood
The skill is a SKILL.md of instructions plus two template files and the license text; it ships no scripts and runs no commands. Claude reads templates/viewer.html, then writes the philosophy as a Markdown file and the artwork as a single HTML file with the algorithm inline. That page loads p5.js 1.7.0 from cdnjs and the Poppins and Lora fonts from Google Fonts when it is opened, so it needs a network connection in the browser; nothing else is fetched. generator_template.js is a reference only, and its export helper saves the canvas as a PNG named after the seed. The guide asks for Regenerate and Download PNG buttons alongside Reset, though the template’s Actions section ships only Reset, so Claude adds the others.