Skip to content
HUIAHUB

anthropics/skills/skills/algorithmic-art

Algorithmic art with p5.js

Helps an agent create original generative art in p5.js with seeded randomness and adjustable parameters, for requests about flow fields, particle systems or code-based art.

Agent skillAgent skills

What Algorithmic art with p5.js does

The skill splits the work into two stages. First the agent writes an "algorithmic philosophy": a named generative art movement described in four to six paragraphs and saved as a Markdown file. It explains the idea through noise, particles, fields, forces and parameters instead of a fixed picture. Before coding, the agent also picks out a quiet conceptual reference from the user's request and folds it into the algorithm's parameters and behavior.

In the second stage the agent turns that philosophy into a p5.js sketch. It has to read the bundled templates/viewer.html first and keep its fixed parts: the layout, the Poppins and Lora fonts, the light Anthropic colors, the seed controls and the action buttons. Only the algorithm, the parameter object and the parameter controls change from piece to piece. Randomness is seeded, so one seed always gives the same output. A second file, templates/generator_template.js, is a reference for organizing parameters, seeded randomness and classes.

The result is the philosophy text plus one self-contained HTML file. It loads p5.js from a CDN and keeps everything else inline: sliders, optional color pickers, previous, next, random and jump-to-seed controls, and regenerate, reset and PNG download buttons. The file runs as a claude.ai artifact or in a browser.

Install

/plugin install example-skills@anthropic-agent-skills

Read the security check below before you run it. The repository's own instructions win if they differ.

Security check

What the skill's files do, from reading them. A flag that nobody has checked yet says "Not checked", never "No".

Runs scripts
Yes
Uses the network
Yes
Installs hooks
No
Asks for secrets
No

The folder ships one JavaScript file, templates/generator_template.js, a reference sketch the agent reads before writing its own code into an HTML file. The scan marks network use: the instructions and templates/viewer.html load p5.js from cdnjs.cloudflare.com, and the template also requests fonts from Google Fonts. No hooks or secret variables were found. Before installing, read both template files, and check the external script and font URLs in any generated HTML before you open or share it.

Scan details: Ships 1 script file: templates/generator_template.js. SKILL.md instructions include web requests or URLs to fetch. Checked at commit 8a1541c4a3ff.

Use cases

  • Generate flow-field or particle-system art in p5.js from a short brief.
  • Explore one generative design across many seeds with interactive sliders.
  • Produce a single shareable HTML file for a generative art piece.

Limitations

  • Every piece uses the bundled viewer template with Anthropic's fonts and light colors.
  • The generated HTML pulls p5.js from a CDN instead of bundling it.
  • The frontmatter asks for original work and warns against copying existing artists.

Sources