p5js

Automate p5.js sketch creation, testing, and multi-format export via a six-stage pipeline.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/Simon-Copilot-Studio/ai-content-hub --skill p5js-simon-copilot-studio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: p5js
Source: https://github.com/Simon-Copilot-Studio/ai-content-hub/tree/main/creative/p5js
Command: npx skills add https://github.com/Simon-Copilot-Studio/ai-content-hub --skill p5js-simon-copilot-studio

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires puppeteer, and includes scripts (resource) and references (resource) components.

What problem does it solve?

The p5.js Production Pipeline provides a complete, self-contained workflow to design, render, preview, and export browser-based sketches without setup friction, enabling rapid iteration and straightforward sharing.

Core Features & Use Cases

  • Self-contained HTML sketches running via CDN-loaded p5.js
  • Supports multiple modes: Generative art, Data visualization, Interactive experiences, 3D scenes, and Audio-reactive visuals
  • Built-in export formats: HTML, PNG, GIF, MP4, or SVG, with headless options for batch rendering
  • Six-stage workflow: CONCEPT → DESIGN → CODE → PREVIEW → EXPORT → VERIFY

Quick Start

Open this skill and follow the six-stage pipeline to build and export a self-contained browser-based sketch.

Frequently Asked Questions about p5js

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate self-contained p5.js sketches from a text prompt?

To generate self-contained p5.js sketches, the skill applies a six-stage pipeline (CONCEPT, DESIGN, CODE, PREVIEW, EXPORT, VERIFY) that outputs standalone HTML files running the p5.js library via CDN without setup friction.

Can I export generative art and data visualizations to MP4 or GIF?

Yes, you can export generative art and data visualizations to MP4, GIF, PNG, or SVG. The pipeline uses Puppeteer for headless browser rendering, enabling batch export of animated visuals and static frames directly from the p5.js canvas.

Does this workflow support 3D scenes and WebGL shaders?

Yes, this workflow supports 3D scenes and WebGL shader-driven visuals. The pipeline accommodates multiple creative coding modes, including interactive experiences, audio-reactive visuals, and 3D rendering, all contained within self-contained HTML sketches.

What is the best way to automate p5.js sketch creation and testing?

The best way to automate p5.js sketch creation and testing is using a structured six-stage pipeline that handles concept design, code generation, headless preview, and automated verification, ensuring self-contained HTML output works correctly before export.

Do I need Puppeteer to batch render p5.js sketches?

Yes, you need Puppeteer to batch render p5.js sketches headlessly. The pipeline relies on Puppeteer to automate browser-based rendering, capture canvas frames, and export multi-format files like PNG, GIF, and MP4 without manual intervention.