Skip to content

aboylabs/ai-agent-skills / skills/creative/p5js

p5.js sketches: gen art, shaders, interactive, 3D.

FileKindSize
README.mdmarkdown3.2 KB
SKILL.mdskill md27.0 KB
references/animation.mdmarkdown10.2 KB
references/color-systems.mdmarkdown8.4 KB
references/core-api.mdmarkdown9.6 KB
references/export-pipeline.mdmarkdown15.2 KB
references/interaction.mdmarkdown8.1 KB
references/shapes-and-geometry.mdmarkdown7.0 KB
references/troubleshooting.mdmarkdown12.7 KB
references/typography.mdmarkdown6.6 KB
references/visual-effects.mdmarkdown22.9 KB
references/webgl-and-3d.mdmarkdown8.7 KB
scripts/export-frames.jsexecutablescript5.3 KB
scripts/render.shexecutablescript2.8 KB
scripts/serve.shexecutablescript833 B
scripts/setup.shexecutablescript2.4 KB
templates/viewer.htmlother10.6 KB

scripts/setup.sh

View on GitHub
#!/bin/bash
# p5.js Skill — Dependency Verification
# Run: bash skills/creative/p5js/scripts/setup.sh

set -euo pipefail

RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m'

ok() { echo -e "${GREEN}[OK]${NC} $1"; }
warn() { echo -e "${YELLOW}[WARN]${NC} $1"; }
fail() { echo -e "${RED}[FAIL]${NC} $1"; }

echo "=== p5.js Skill — Setup Check ==="
echo ""

# Required: Node.js (for Puppeteer headless export)
if command -v node &>/dev/null; then
  NODE_VER=$(node -v)
  ok "Node.js $NODE_VER"
else
  warn "Node.js not found — optional, needed for headless export"
  echo "  Install: https://nodejs.org/ or 'brew install node'"
fi

# Required: npm (for Puppeteer install)
if command -v npm &>/dev/null; then
  NPM_VER=$(npm -v)
  ok "npm $NPM_VER"
else
  warn "npm not found — optional, needed for headless export"
fi

# Optional: Puppeteer
if node -e "require('puppeteer')" 2>/dev/null; then
  ok "Puppeteer installed"
else
  warn "Puppeteer not installed — needed for headless export"
  echo "  Install: npm install puppeteer"
fi

# Optional: ffmpeg (for MP4 encoding from frame sequences)
if command -v ffmpeg &>/dev/null; then
  FFMPEG_VER=$(ffmpeg -version 2>&1 | head -1 | awk '{print $3}')
  ok "ffmpeg $FFMPEG_VER"
else
  warn "ffmpeg not found — needed for MP4 export"
  echo "  Install: brew install ffmpeg (macOS) or apt install ffmpeg (Linux)"
fi

# Optional: Python3 (for local server)
if command -v python3 &>/dev/null; then
  PY_VER=$(python3 --version 2>&1 | awk '{print $2}')
  ok "Python $PY_VER (for local server: python3 -m http.server)"
else
  warn "Python3 not found — needed for local file serving"
fi

# Browser check (macOS)
if [[ "$(uname)" == "Darwin" ]]; then
  if open -Ra "Google Chrome" 2>/dev/null; then
    ok "Google Chrome found"
  elif open -Ra "Safari" 2>/dev/null; then
    ok "Safari found"
  else
    warn "No browser detected"
  fi
fi

echo ""
echo "=== Core Requirements ==="
echo "  A modern browser (Chrome/Firefox/Safari/Edge)"
echo "  p5.js loaded via CDN — no local install needed"
echo ""
echo "=== Optional (for export) ==="
echo "  Node.js + Puppeteer — headless frame capture"
echo "  ffmpeg — frame sequence to MP4"
echo "  Python3 — local development server"
echo ""
echo "=== Quick Start ==="
echo "  1. Create an HTML file with inline p5.js sketch"
echo "  2. Open in browser: open sketch.html"
echo "  3. Press 's' to save PNG, 'g' to save GIF"
echo ""
echo "Setup check complete."
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall