example-p5-animation

example-p5-animation is a skill for Claude Code, Codex from BintzGavin/helios. It costs 27 tokens per session (449 once invoked), scanned A, original, Apache-2.0.

Guidance for using p5.js, a JavaScript library for creative drawings and animations, with Helios.

In plain words
What is it for?
Use it to create generative art and animated sketches that run as part of a Helios composition.
Why use it?
It helps connect creative coding sketches or generated artwork to Helios compositions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create generative art and animated sketches that run as part of a Helios composition.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bintzgavin/helios/p5
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add BintzGavin/helios --skill p5
Clone the repo
git clone --depth 1 https://github.com/BintzGavin/helios

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for example-p5-animation

README.md
[![agentmods](https://agentmods.dev/badge/skills/bintzgavin/helios/p5/github.svg)](https://agentmods.dev/skills/bintzgavin/helios/p5)
Your own site
<a href="https://agentmods.dev/skills/bintzgavin/helios/p5"><img src="https://agentmods.dev/badge/skills/bintzgavin/helios/p5/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for example-p5-animation

Your own site · 80×15
<a href="https://agentmods.dev/skills/bintzgavin/helios/p5"><img src="https://agentmods.dev/badge/skills/bintzgavin/helios/p5.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 449 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.00449
Opus 5.5 $0.00011 $0.00180
Sonnet 5.5 $0.00005 $0.00090
Haiku 4.5 $0.00003 $0.00045

Measured 1mo ago against content hash 04917548cbc3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

example-p5-animation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/examples/p5/SKILL.md · 63 lines

What it actually says

P5.js Animation

Integrate P5.js with Helios by using P5's Instance Mode and driving the draw() loop via Helios's state.

Quick Start

import { Helios } from '@helios-project/core';
import p5 from 'p5';

const helios = new Helios({ duration: 10, fps: 60 });
window.helios = helios; // lets the renderer and player drive it

const sketch = (p: p5) => {
  p.setup = () => {
    p.createCanvas(1920, 1080);
    p.noLoop(); // Disable P5's internal loop
  };

  p.draw = () => {
    // Get time from Helios
    const { currentFrame, fps } = helios.getState();
    const time = currentFrame / fps;

    p.background(200);
    p.fill(255, 0, 0);

    // Animate based on time
    const x = time * 100;
    p.circle(x, 540, 50);
  };
};

const instance = new p5(sketch, document.getElementById('canvas-container'));

// Drive P5 from Helios: redraw on every frame change.
helios.subscribe(() => instance.redraw());

Key Patterns

Instance Mode

Always use Instance Mode (new p5(sketch)) instead of Global Mode. This prevents global variable pollution and ensures compatibility with module bundlers.

Disable Internal Loop

Call p.noLoop() in setup(). P5's internal loop uses requestAnimationFrame which runs independently of Helios. By disabling it, you ensure P5 only draws when Helios updates.

Reactive Drawing

Instead of relying on P5's frameCount, calculate positions based on helios.getState().currentFrame.

helios.subscribe(() => {
   // Assuming 'myp5' is your instance
   myp5.redraw();
});
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -5 lines 04917548cbc3
  2. 3mo ago First seen · 68 lines · 27 tokens per session scan A cdc27a6363ef

Subscribe to this mod's changes

example-p5-animation is a skill published in the GitHub repository BintzGavin/helios (138 stars, last pushed 22d ago), licensed Apache-2.0. It adds 27 tokens to every session and 449 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

example-p5-animation compared with skills from other repositories

example-p5-animation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
example-p5-animationBintzGavin/heliosSkill13822d agoApache-2.0A27Claude Code, Codex
frost-sequence-camera-orbitheygen-com/hyperframesSkill95ktodayApache-2.0A51Claude Code
cuboid-carouselheygen-com/hyperframesSkill95ktodayApache-2.0A45Claude Code
media-useheygen-com/hyperframesSkill95ktodayApache-2.0A75Claude Code
slideshowheygen-com/hyperframesSkill95ktodayApache-2.0A57Claude Code
code-slice-heroheygen-com/hyperframesSkill95ktodayApache-2.0A44Claude Code
glass-shard-titleheygen-com/hyperframesSkill95ktodayApache-2.0A39Claude Code