Skip to content
AI Dev Toolkit.
Esc
  • Loading…

Claude skill · Design and art · Anthropic

Algorithmic art skill for Claude

algorithmic-art is an Anthropic skill for generative art in p5.js. Claude writes a short algorithmic philosophy, then a seeded sketch inside a fixed viewer template, so the same seed redraws the same piece and controls change its parameters. It loads when you ask for art made with code. Install it with the example-skills plugin or copy the folder.

Command
/algorithmic-art
Licence
Apache-2.0, copying allowed with attribution
Folder
4 files, 58 KB
Runs code
1 script

Overview

What does algorithmic-art do?

Like canvas-design, it starts from a written “algorithmic philosophy”, then implements it in p5.js. The work is seeded, so the same seed reproduces the same piece, and the result is an interactive viewer where you can change parameters and explore variations.

Claude must read templates/viewer.html before writing any HTML and keep its fixed sections, so every piece shares a working structure and only the algorithm and its controls change. A second template shows the expected p5.js code structure.

Triggers

When does Claude use it?

  • Requests for art made with code: generative or algorithmic art, flow fields, particle systems.
Its description, which Claude matches against
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

What it needs

  • Nothing to install; the output is an HTML artifact that loads p5.js.

Install

How do I install it in Claude Code?

From the plugin marketplace

Plugin (type in Claude Code)
/plugin marketplace add anthropics/skills
/plugin install example-skills@anthropic-agent-skills

The example-skills plugin brings 12 skills, including this one; it runs as /example-skills:algorithmic-art.

As a personal or project skill

Personal skill: every project on this machine (shell)
git clone --depth 1 https://github.com/anthropics/skills.git
mkdir -p ~/.claude/skills
cp -r skills/skills/algorithmic-art ~/.claude/skills/
Project skill: one repository, shared through git (shell)
git clone --depth 1 https://github.com/anthropics/skills.git
mkdir -p .claude/skills
cp -r skills/skills/algorithmic-art .claude/skills/

Either way it’s available as /algorithmic-art.

claude.ai and API

How do I use it in claude.ai and the API?

claude.ai

Anthropic’s skills README says its example skills are already available on paid claude.ai plans, so check Customize > Skills before uploading anything.

Claude API

Upload the folder through the Skills API, then list it in container.skills as type custom with the returned ID, alongside the code execution tool. Uploaded skills are shared across your workspace.

Upload with the Python SDK
from anthropic import Anthropic
from anthropic.lib import files_from_dir

client = Anthropic()
skill = client.skills.create(files=files_from_dir("algorithmic-art"))
print(skill.id)  # use as a custom skill_id with the code execution tool

API containers have no network access, so its scripts can’t download anything there.

Checks

SKILL.md validator results

Its SKILL.md (405 lines) run through our SKILL.md validator, with the folder’s file list, for both targets. These check the file’s format, not whether the skill works well.

Claude Code

0 errors, 0 warnings, 0 tips

claude.ai and the API

0 errors, 0 warnings, 1 tip

  • tipThe Claude Help Center’s upload guide gives a 200-character description limit for claude.ai, though the platform docs say 1,024. Keep it under 200 if you’ll upload it there.

Folder

What’s in the folder?

  • LICENSE.txt11 KB
  • SKILL.md19 KB
  • templates/2 files, 28 KB

SKILL.md sections

  1. ALGORITHMIC PHILOSOPHY CREATION
  2. THE CRITICAL UNDERSTANDING
  3. HOW TO GENERATE AN ALGORITHMIC PHILOSOPHY
  4. PHILOSOPHY EXAMPLES
  5. ESSENTIAL PRINCIPLES
  6. DEDUCING THE CONCEPTUAL SEED
  7. P5.JS IMPLEMENTATION
  8. ⚠️ STEP 0: READ THE TEMPLATE FIRST ⚠️
  9. TECHNICAL REQUIREMENTS
  10. CRAFTSMANSHIP REQUIREMENTS
  11. OUTPUT FORMAT
  12. INTERACTIVE ARTIFACT CREATION
  13. CRITICAL: WHAT'S FIXED VS VARIABLE
  14. REQUIRED FEATURES
  15. USING THE ARTIFACT
  16. VARIATIONS & EXPLORATION
  17. THE CREATIVE PROCESS
  18. RESOURCES

Source

Licence and source

FAQ

Questions people ask

What does seeded randomness mean in algorithmic-art?

The sketch draws its random numbers from a seed, a starting value. The same seed always produces the same sequence of numbers, so the same artwork comes out every time. Change the seed and you get a new variation from the same algorithm. Keep the seed of a piece you like and you can reproduce it exactly.

What do I get from the algorithmic-art skill?

An interactive HTML artifact built from the skill’s templates/viewer.html, which loads p5.js. It shows the piece with controls for its parameters and seed, so you can explore variations without asking Claude again. Claude keeps the template’s fixed sections and changes only the algorithm and its controls.

Is the algorithmic-art skill free to copy?

Yes. It is under the Apache 2.0 licence, so you can copy and adapt it, keeping the licence with it. The folder holds four files: SKILL.md, the licence, a viewer template and a p5.js code template. Copy it into ~/.claude/skills for every project, or into a repository’s .claude/skills folder.

Related

All Claude skillsWrite your own skillSlash command builderGuide: subagents, skills and commands