playwright-gif-capture

playwright-gif-capture is a skill for Claude Code from simiancraft/simiancraft-skills. It costs 167 tokens per session (1,947 once invoked), scanned A, original, MIT.

A browser-based tool for recording web pages, canvases, and WebGL animations as looping GIF images. WebGL is technology that displays graphics in a browser using the computer’s graphics processor.

In plain words
What is it for?
It helps make GIFs of demos, canvas animations, shaders, and other moving web content, using tools such as ffmpeg to encode the frames.
Why use it?
It captures animation frames in a controlled sequence instead of relying on an uneven screen recording.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the simiancraft-skills plugin — 23 skills, 4 agents shipped together

Good fit It helps make GIFs of demos, canvas animations, shaders, and other moving web content, using tools such as ffmpeg to encode the frames.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/simiancraft/simiancraft-skills/playwright-gif-capture
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 simiancraft/simiancraft-skills --skill playwright-gif-capture
Clone the repo
git clone --depth 1 https://github.com/simiancraft/simiancraft-skills

Made for: Claude Code.

Or install simiancraft-skills, the plugin that ships this one along with the rest of its 23 skills, 4 agents.

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 playwright-gif-capture

README.md
[![agentmods](https://agentmods.dev/badge/skills/simiancraft/simiancraft-skills/playwright-gif-capture/github.svg)](https://agentmods.dev/skills/simiancraft/simiancraft-skills/playwright-gif-capture)
Your own site
<a href="https://agentmods.dev/skills/simiancraft/simiancraft-skills/playwright-gif-capture"><img src="https://agentmods.dev/badge/skills/simiancraft/simiancraft-skills/playwright-gif-capture/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 playwright-gif-capture

Your own site · 80×15
<a href="https://agentmods.dev/skills/simiancraft/simiancraft-skills/playwright-gif-capture"><img src="https://agentmods.dev/badge/skills/simiancraft/simiancraft-skills/playwright-gif-capture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 167 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,947 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00167 $0.01947
Opus 5.5 $0.00067 $0.00779
Sonnet 5.5 $0.00033 $0.00389
Haiku 4.5 $0.00017 $0.00195

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

Security

Grade A, and why

playwright-gif-capture 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 3mo 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/playwright-gif-capture/SKILL.md · 150 lines

How it starts

The opening of the file, as written. The whole thing — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GIF Capture: specialization of playwright-harness

Read playwright-harness first. The base owns prerequisites, the run pattern (write to /tmp/pw-*.mjs, run with playwright resolvable), and the drive/assert

  • WebGL-GPU patterns. This skill changes only how you turn a running animation into frames. Encoding and the quality/size tradeoffs live in references/gif-optimization.md; open it before tuning, since a deep-fried, janky, or oversized GIF is easy to make by accident.

Headless is required here (not just the default): the encode is offline and you want clean, chrome-free frames.

Prerequisites (in addition to the base)

  • ffmpeg to encode frames/video into a GIF; npm i ffmpeg-static in a /tmp dir gives a binary path, no system install.
  • For tuning, gifski (best on gradients) and gifsicle (size reduction); see references/gif-optimization.md. ImageMagick is an optional alternative.

Capture the frames. Two ways.

A. Frame-by-frame screenshots (default)

The default for canvas, WebGL, or any clock-driven animation. Drive the clock yourself, one frame at a time, and screenshot each step: deterministic (same frames every run), evenly spaced (no wall-clock jitter, so no jank), croppable to an element, and it sidesteps the recordVideo GPU-death trap below.

// /tmp/pw-gif.mjs  (run via the harness: node, with playwright resolvable)
import { chromium } from 'playwright';
import { mkdirSync } from 'node:fs';
const TARGET_URL = process.env.TARGET_URL || 'http://localhost:8080/';
const FRAMES = 48, FPS = 16, OUT = '/tmp/gif-frames';
mkdirSync(OUT, { recursive: true });

const browser = await chromium.launch({
  headless: true,
  args: ['--use-gl=angle', '--use-angle=gl', '--ignore-gpu-blocklist'], // real GPU under WSLg; see GPU note
});
const page = await browser.newPage({ viewport: { width: 960, height: 540 } });
await page.goto(TARGET_URL, { waitUntil: 'load' });
const target = page.locator('#canvas'); // element to crop to (omit -> full page)

for (let i = 0; i < FRAMES; i++) {
  const t = i / FPS; // animation time for this frame (seconds)
  // Step the animation deterministically. Best: the page exposes a render hook.
  await page.evaluate((t) => window.__renderAtTime?.(t), t);
  await page.waitForTimeout(30); // let the draw land (and the GPU flush)
  await target.screenshot({ path: `${OUT}/f${String(i).padStart(4, '0')}.png` });
}
await browser.close();
console.log(`wrote ${FRAMES} frames to ${OUT}`);

Read the full file on GitHub · 150 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3mo ago First seen · 150 lines · 167 tokens per session scan A 9989fc02f44b

Subscribe to this mod's changes

playwright-gif-capture is a skill published in the GitHub repository simiancraft/simiancraft-skills (8 stars, last pushed 7d ago), licensed MIT. It adds 167 tokens to every session and 1,947 once invoked, about $0.0007 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-31.

Related

playwright-gif-capture compared with skills from other repositories

playwright-gif-capture next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
playwright-gif-capturesimiancraft/simiancraft-skillsSkill87d agoMITA167Claude Code
ai-agent-readinesssigistry/marketplaceSkill33d agoMITA85Claude Code
set-lineupderekrbreese/fantasy-football-skillsSkill61mo agoMITA165Claude Code
submit-waiver-claimderekrbreese/fantasy-football-skillsSkill61mo agoMITA149Claude Code
propose-tradederekrbreese/fantasy-football-skillsSkill61mo agoMITA137Claude Code
demo-videolukaskellerstein/claude-my-marketplaceSkill312d agononeA144Claude Code
demo-capturelukaskellerstein/claude-my-marketplaceSkill312d agononeA151Claude Code