algorithmic-art
What it does
This tool creates art using code, following a computational artistic philosophy. It generates both the description of this philosophy and the code (in p5.js) to create the art.
When to use it
- ✓When you want to create original art based on mathematical rules.
- ✓When you seek to explore the beauty of self-organizing systems.
- ✓When you wish to transform abstract ideas into computer-generated visual art.
Skill link
https://github.com/anthropics/skills/blob/main/skills/algorithmic-art/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
📦 This skill is in these packs
Example of what to ask your AI
“Create an algorithmic art philosophy called 'Controlled Chaos' and then generate the p5.js code to visualize it.”
5 new skills a week. 1 minute to read.
algorithmic-art: full guide
Most AI image tools give you one picture and nothing else. If you want it a bit different, you start over. This skill works another way. It makes your agent write a small program that draws the picture by rules, such as particles following a flow field. Because the art comes from code, you can change one setting and see the whole piece change.
The skill makes the agent do two things in order: write a short philosophy for the piece, then build an interactive HTML page from a fixed viewer template. The page has a seed control, parameter sliders and buttons to regenerate. It suits people who like to explore variations of a visual idea, such as designers, hobbyists, teachers and anyone curious about generative art. You do not need to know how to code.
Use cases
A cover image for a newsletter
You want a calm, abstract header for a monthly report. You describe the mood, the agent builds a flow-field piece, and you step through seeds until one fits. You then change the quantity and scale sliders to make the lines thinner and the layout less crowded.
A classroom demo of emergence
A teacher wants students to see how simple rules create complex patterns. The agent makes a particle or branching sketch with sliders. Students change one parameter at a time and watch the pattern react, which makes the idea visible without any math on the board.
A personal series with repeatable results
You like a result and want to keep it. Every piece is tied to a seed number, so the same seed always draws the same image. You can write down seed 4821 and later come back to it, or share the number with a colleague.
Step by step
- 1Install the skill in ~/.claude/skills/algorithmic-art/ (or your project's .claude/skills/) and keep the templates folder with it, because the agent reads templates/viewer.html first.
- 2Describe the feeling or subject you want, not a finished picture. Mention an idea such as 'tides' or 'city at night' and, if you like, a system such as flow fields or particles.
- 3Let the agent write the philosophy file first. Read it, because the code follows it. Ask for changes before the code is written if the direction is wrong.
- 4Open the generated HTML file in your browser. Use the previous, next and random seed buttons to browse variations.
- 5Adjust the parameter sliders on the sidebar, then use Regenerate or Reset. When you like a result, note its seed number.
Example
What to ask
“Make generative art about migrating birds at dusk. Use a flow field with thousands of particles, warm orange and deep blue colors, and give me sliders for particle count and noise scale.”
What you get
You get a philosophy .md file describing the movement, then one HTML page. It shows a 1200 by 1200 canvas where trails sweep across a dusk gradient. The sidebar has a seed picker, your two sliders, and Regenerate and Reset buttons.
Tips
- ✓Give the agent a feeling or a concept rather than exact shapes. The skill treats your input as a starting point and leaves room for its own choices, so a very strict brief works against it.
- ✓Change one slider at a time. With many particles and several noise layers, changing everything at once makes it hard to see what caused a difference.
- ✓The output is code that draws on a canvas, not a photo or illustration. It will not render a recognizable object like a specific animal or face, so ask for patterns, textures and abstract forms instead.
Alternatives
- image-generation
Pick this when you want a one-off picture from a written description, with optional reference images, and do not need seeds, sliders or code.
- image-poster
Pick this for finished posters, key art or illustrations made with image tools, where you want a polished single image rather than an explorable sketch.
- design-shotgun
Pick this when you want several AI design options side by side to compare and refine, instead of tuning one rule-based piece.
Questions and answers
Do I need to install p5.js or any software?
No. The skill produces one self-contained HTML file that loads p5.js from a web address. Open it in any browser. You only need an internet connection the first time so the library can load.
Can I get the same image again later?
Yes. The skill uses a seed number for all randomness, so the same seed always gives the same output. Write down the seed of a version you like and enter it again with the jump-to-seed control.
Can I ask it to copy a famous generative artist's style?
The skill is written to make original work and to avoid copying existing artists, to prevent copyright problems. You can name a mood or a system like flow fields, but not ask for a replica of someone's pieces.
How it works
First, it defines an artistic philosophy (a manifesto on how art is created through computational processes). Then, it uses this philosophy to write code that generates visual art, focusing on the beauty of the process and originality.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Algorithmic philosophies are computational aesthetic movements that are then expressed through code. Output .md files (philosophy), .html files (interactive viewer), and .js files (generative algorithms).
This happens in two steps:
- Algorithmic Philosophy Creation (.md file)
- Express by creating p5.js generative art (.html + .js files)
First, undertake this task:
ALGORITHMIC PHILOSOPHY CREATION
To begin, create an ALGORITHMIC PHILOSOPHY (not static images or templates) that will be interpreted through:
- Computational processes, emergent behavior, mathematical beauty
- Seeded randomness, noise fields, organic systems
- Particles, flows, fields, forces
- Parametric variation and controlled chaos
THE CRITICAL UNDERSTANDING
- What is received: Some subtle input or instructions by the user to take into account, but use as a foundation; it should not constrain creative freedom.
- What is created: An algorithmic philosophy/generative aesthetic movement.
- What happens next: The same version receives the philosophy and EXPRESSES IT IN CODE - creating p5.js sketches that are 90% algorithmic generation, 10% essential parameters.
Consider this approach:
- Write a manifesto for a generative art movement
- The next phase involves writing the algorithm that brings it to life
The philosophy must emphasize: Algorithmic expression. Emergent behavior. Computational beauty. Seeded variation.
HOW TO GENERATE AN ALGORITHMIC PHILOSOPHY
Name the movement (1-2 words): "Organic Turbulence" / "Quantum Harmonics" / "Emergent Stillness"
Articulate the philosophy (4-6 paragraphs - concise but complete):
To capture the ALGORITHMIC essence, express how this philosophy manifests through:
- Computational processes and mathematical relationships?
- Noise functions and randomness patterns?
- Particle behaviors and field dynamics?
- Temporal evolution and system states?
- Parametric variation and emergent complexity?
CRITICAL GUIDELINES:
- Avoid redundancy: Each algorithmic aspect should be mentioned once. Avoid repeating concepts about noise theory, particle dynamics, or mathematical principles unless adding new depth.
- Emphasize craftsmanship REPEATEDLY: The philosophy MUST stress multiple times that the final algorithm should appear as though it took countless hours to develop, was refined with care, and comes from someone at the absolute top of their field. This framing is essential - repeat phrases like "meticulously crafted algorithm," "the product of deep computational expertise," "painstaking optimization," "master-level implementation."
- Leave creative space: Be specific about the algorithmic direction, but concise enough that the next Claude has room to make interpretive implementation choices at an extremely high level of craftsmanship.
The philosophy must guide the next version to express ideas ALGORITHMICALLY, not through static images. Beauty lives in the process, not the final frame.
PHILOSOPHY EXAMPLES
"Organic Turbulence" Philosophy: Chaos constrained by natural law, order emerging from disorder. Algorithmic expression: Flow fields driven by layered Perlin noise. Thousands of particles following vector forces, their trails accumulating into organic density maps. Multiple noise octaves create turbulent regions and calm zones. Color emerges from velocity and density - fast particles burn bright, slow ones fade to shadow. The algorithm runs until equilibrium - a meticulously tuned balance where every parameter was refined through countless iterations by a master of computational aesthetics.
"Quantum Harmonics" Philosophy: Discrete entities exhibiting wave-like interference patterns. Algorithmic expression: Particles initialized on a grid, each carrying a phase value that evolves through sine waves. When particles are near, their phases interfere - constructive interference creates bright nodes, destructive creates voids. Simple harmonic motion generates complex emergent mandalas. The result of painstaking frequency calibration where every ratio was carefully chosen to produce resonant beauty.
"Recursive Whispers" Philosophy: Self-similarity across scales, infinite depth in finite space.
…
FAQ
What is algorithmic art?
It's art created using a set of rules or an algorithm (a computational step-by-step process), where the beauty often comes from the generation process itself, not just the final result.
What is p5.js?
It's a code library (a set of tools) that makes it easy to create visual and interactive art directly in a web browser using JavaScript.
Why is the philosophy important?
The philosophy guides the code creation, ensuring the generated art has a concept behind it and follows specific principles of computational beauty, such as order emerging from chaos or self-similar patterns.
Details
Original description by the author
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.
repo: anthropics/skills
Popularity
- GitHub stars
- 181k
- Ranking position
- #636
- License
- —
- Updated
- 10/9/2026
Comments
- …
More skills from this repository
academy-guide
181kHas your agent recommend courses and tutorials for learning Claude. It's useful when you have questions about how to use Claude or its products.
brand-guidelines
181kHas your agent apply Anthropic's brand colors and visual style to materials. It's useful for maintaining the company's visual identity across projects.
canvas-design
181kHelps your agent create beautiful visual art in files. It's useful when you ask for a poster, art, or any static design.
claude-api
181kProvides information about the Claude API, like models, pricing, and settings. It's useful for developers using the Claude API in their projects.
Similar skills
gifgrep
394kLets your agent search GIF libraries, preview results, download a GIF, and pull out a still frame or a contact sheet of frames.
meme-maker
394kLets your agent pick a meme template, add your own captions, and create the meme as an SVG or PNG image.
ios-icon-gen
280kLets your agent generate icons for iOS apps. It uses Apple symbols or icons from other sources to create the correct files.