Skip to content

Algorithmic Art skill

Generative art in p5.js: flow fields, particles and noise, delivered as one HTML file with seed controls, sliders and PNG download.

Official · Anthropic
AuthorAnthropic
LicenceApache-2.0
Sourceanthropics/skills · SKILL.md on GitHub
Works inClaude Code · claude.ai · Claude API · Codex, Gemini CLI, Cursor, Copilot
Read from the source on

The algorithmic-art skill is Anthropic's official Claude skill for generative art written in p5.js. You describe a mood or an idea; Claude writes a short "algorithmic philosophy", then codes it as flow fields, particle systems, noise or recursive structures, and hands you one self-contained HTML page where the art runs.

Every piece is seeded: the same seed always draws the same image, and the page has buttons to step through seeds, sliders for the parameters the algorithm exposes, and a PNG download. It is the moving, tweakable sibling of the canvas-design skill, which makes static posters instead.

From the skill's SKILL.md: Same seed ALWAYS produces identical output

This is an official skill from Anthropic. Like any skill it gives the agent instructions and may include scripts it runs, so install it from the source linked here, not from a copy elsewhere.

What it does

  1. Turns your request into a named generative "movement" and a four-to-six-paragraph philosophy about the process (noise, forces, emergence), saved as Markdown.
  2. Starts from the bundled viewer template rather than writing a page from scratch, so every piece gets the same sidebar: seed display, previous, next, random and jump-to-seed, parameter sliders, optional colour pickers, regenerate, reset and download.
  3. Writes the p5.js algorithm with randomSeed() and noiseSeed() so results are reproducible.
  4. Chooses parameters that suit the algorithm (counts, scales, speeds, thresholds) and wires each one to a control.

What you get

  • The algorithmic philosophy as Markdown.
  • One self-contained .html file with the algorithm inline; it loads p5.js from a CDN, so viewing it needs an internet connection the first time.
  • PNG images of any seed, saved from the page's download button.

When to use it

  • You want generative or creative-coding art you can explore: many variations from one algorithm.
  • You want a background, cover or print made from patterns, flows or particles, and to pick the best seed yourself.
  • You want readable p5.js code to learn from or keep tuning.

When not to use it

  • You want a single finished poster with type: canvas-design fits better.
  • You need a video or GIF: the page animates in the browser but exports PNG frames, not a video file.
  • You need it fully offline: the viewer loads p5.js and two web fonts from CDNs.

What it needs

  • An agent that can write files (Claude Code, claude.ai, the Claude API with code execution, or another SKILL.md agent).
  • A web browser to open the HTML file, online the first time (p5.js 1.7.0 comes from cdnjs).
  • No packages to install, no API keys.

Files in the skill

File or folderWhat it is for
SKILL.mdThe method: philosophy first, then the p5.js implementation, the fixed versus variable parts of the viewer, and the seed rules.
templates/viewer.htmlThe required starting point for every piece: layout, sidebar, seed controls and action buttons, with comments marking what to replace.
templates/generator_template.jsA reference for structuring parameters, seeded randomness and classes in p5.js (not a menu of patterns).
LICENSE.txtApache License 2.0.

Licence as found in the repository on 2026-11-14: Apache-2.0.

Example prompts

Type one of these after installing; naming the skill makes sure it is used.

  • Use the algorithmic-art skill to make a flow field where thousands of particles leave thin trails, in deep blue and copper. Give me sliders for particle count and noise scale.
  • Create generative art inspired by tree rings: concentric, slightly irregular lines. I want to browse seeds and download the best one as a PNG.
  • Make a Voronoi-style cell pattern that relaxes over time, with colour based on cell size. Add a seed jump box.
  • Generate 100 variations of this algorithm and add a gallery mode that shows thumbnails of seeds 1 to 100.

How to install algorithmic-art

Installed with Anthropic's example skills

In Claude Code it comes in the example-skills plugin with eleven other example skills. To add only this one, copy the folder (skills-folder steps below); it is under 0.1 MB.

On claude.ai it is one of Anthropic's example skills: turn it on under Customize > Skills. The HTML it makes can be opened in the chat's preview or downloaded.

Viewing the result

Open the .html file in any modern browser. It needs internet access the first time, because p5.js is loaded from cdnjs and the interface fonts from Google Fonts; nothing else is fetched.

A skill is a folder with a SKILL.md file. You install it once; the agent reads its short description at the start of each session and loads the full instructions only when a request matches. Pick the place you use:

Claude Code: from the plugin marketplace

  1. Start Claude Code in a terminal with claude.
  2. Add the marketplace (once per computer):
    /plugin marketplace add anthropics/skills
  3. Install the plugin. Claude Code opens its details first: check what it will add (skills, hooks, MCP servers), then choose whether it is for you, for everyone on this repository, or for you in this repository only.
    /plugin install example-skills@anthropic-agent-skills
  4. Type / and look for /example-skills:algorithmic-art, or simply ask for the task.

From your shell instead of a session:

claude plugin marketplace add anthropics/skills
claude plugin install example-skills@anthropic-agent-skills

The plugin installs as a whole, so other skills come with it, including brand-guidelines, canvas-design, doc-coauthoring, frontend-design, internal-comms, mcp-builder, skill-creator, slack-gif-creator, theme-factory, web-artifacts-builder, webapp-testing.

Claude Code: copy the folder into your skills folder

Put the skill's folder in ~/.claude/skills/ to use it in every project on this computer, or in .claude/skills/ inside a repository to share it with everyone who works there (commit it).

git clone --depth 1 https://github.com/anthropics/skills.git
mkdir -p ~/.claude/skills
cp -R skills/skills/algorithmic-art ~/.claude/skills/

Claude Code notices new or changed skills in these folders during the session. If the skills folder did not exist when the session started, run /reload-skills once. Then type /algorithmic-art or just describe the task.

On Windows, run the commands in Git Bash or WSL, or copy the folder into the same place with File Explorer.

claude.ai

algorithmic-art is one of the example skills Anthropic already provides, so there is nothing to upload: check that Code execution and file creation is on under Settings > Capabilities, then switch algorithmic-art on under Customize > Skills.

Plans: Anthropic's Help Center lists skills on Free, Pro, Max, Ultra, Team and Enterprise plans; its developer docs list uploading custom skills on Pro, Max, Ultra, Team and Enterprise. On Team plans skills are on by default; on Enterprise an owner must allow code execution and Skills under Organization settings > Plugins & skills. Skills you enable on claude.ai also load in Claude Code when you sign in with the same account.

We could not find steps for the Claude desktop app in Anthropic's skills documentation, so they are not listed here. Skills uploaded to claude.ai are not copied to the API, and API skills are not copied to claude.ai.

Claude API

Upload the folder once with the Skills API (as a ZIP; the total must be under 30 MB uncompressed), then list its id in the container of each Messages request together with the code execution tool. Uploaded skills are shared with your whole workspace.

git clone --depth 1 https://github.com/anthropics/skills.git
cd skills/skills
zip -r algorithmic-art.zip algorithmic-art
import anthropic

client = anthropic.Anthropic()
skill = client.skills.create(files=[open("algorithmic-art.zip", "rb")])

response = client.messages.create(
    model="claude-opus-5-5",
    max_tokens=4096,
    container={"skills": [{"type": "custom", "skill_id": skill.id, "version": "latest"}]},
    tools=[{"type": "code_execution_20250825", "name": "code_execution"}],
    messages=[{"role": "user", "content": "Use the algorithmic-art skill."}],
)

Skills on the API run in a sandbox with no internet access and no package installation, so a skill that needs a web service or an MCP server will not work there.

Codex, Gemini CLI, Cursor and GitHub Copilot

These agents read the same SKILL.md folders. The one folder all four accept inside a project is .agents/skills/, so this copies the skill there:

git clone --depth 1 https://github.com/anthropics/skills.git
mkdir -p .agents/skills
cp -R skills/skills/algorithmic-art .agents/skills/
AgentProject folderYour user folderNotes
OpenAI Codex
.agents/skills/
~/.agents/skills/
Type $ or run /skills to pick a skill; Codex also chooses one when your task matches.
Gemini CLI
.agents/skills/
.gemini/skills/
~/.agents/skills/
~/.gemini/skills/
Or install from Git with gemini skills install <git URL> --path <folder> --consent. Google replaced Gemini CLI with Antigravity CLI for free-tier and Google One users on 18 June 2026; Antigravity uses .agents/skills/ in a project and ~/.gemini/config/skills/ for you.
Cursor
.agents/skills/
.cursor/skills/
~/.agents/skills/
~/.cursor/skills/
Type / in Agent chat to pick a skill. Cursor also reads Claude Code's .claude/skills/ folders.
GitHub Copilot
.github/skills/
.agents/skills/
.claude/skills/
~/.copilot/skills/
~/.agents/skills/
Works in Copilot CLI, the cloud agent, and agent mode in VS Code, Visual Studio and JetBrains (IDE support depends on the version). Or run gh skill install OWNER/REPOSITORY SKILL (public preview, GitHub CLI 2.90.0 or later).
Only install skills you trust. Anthropic's advice is to use skills only from trusted sources, and to read every file of any other skill before using it: a skill can direct the agent to run commands, read files or send data in ways its description does not mention.

Sources for these steps

Checked against each vendor's documentation on 2026-11-14:

Tips for better generative pieces

Describe behaviour, not a picture: "particles that slow down near the centre" or "lines that branch less as they grow" gives the algorithm something to do.

Ask for the parameters you care about by name (density, speed, palette). The skill decides its controls from the algorithm, so naming them makes sure they get a slider.

When a seed looks right, write down its number. Re-opening the page later with that seed reproduces the same image at full size.

Questions about algorithmic-art

What is algorithmic art in this skill?

Art drawn by an algorithm rather than by hand: particles following a noise field, recursive branches, packed circles, wave interference. The skill writes that algorithm in p5.js and lets you explore it through its parameters and seeds.

Why does it use seeds?

A seed fixes the random numbers, so the same seed always draws the same picture. That lets you browse variations, note the number of one you like, and get exactly that image again or share it.

Can I change the colours and shapes after it is made?

Yes. The page exposes sliders (and colour pickers when the piece uses them) for the algorithm's parameters, and the code is plain p5.js in one file, so you or Claude can keep editing it.

Does the HTML file work without the internet?

Not on the first open: it loads p5.js from a CDN and two fonts from Google Fonts. Once your browser has cached them it can work offline, but that is up to the browser.

How is it different from canvas-design?

canvas-design makes one finished static poster as PNG or PDF, with type. algorithmic-art makes a living algorithm in an interactive page, so you choose among endless variations and export PNGs.

More AI skills

Related skills

Skill categories