gtm-workflow-gif-generation
Generate workflow-style GTM GIFs from validated HTML demo reports using synthetic scene slides plus Playwright/Pillow scroll capture, with Python 3.12 fallback and GIF size optimization.
Best use case
gtm-workflow-gif-generation is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Generate workflow-style GTM GIFs from validated HTML demo reports using synthetic scene slides plus Playwright/Pillow scroll capture, with Python 3.12 fallback and GIF size optimization.
Teams using gtm-workflow-gif-generation should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/gtm-workflow-gif-generation/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How gtm-workflow-gif-generation Compares
| Feature / Agent | gtm-workflow-gif-generation | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Generate workflow-style GTM GIFs from validated HTML demo reports using synthetic scene slides plus Playwright/Pillow scroll capture, with Python 3.12 fallback and GIF size optimization.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# GTM Workflow GIF Generation Use when a demo/report already has a validated HTML artifact and you need a reusable GIF that tells the full story: prompt -> setup -> execution -> report -> browser walkthrough. ## When to use - A report-scroll GIF already exists but is not enough for GTM - You need one deterministic, reproducible workflow GIF per demo - The HTML report is already validated and present under `examples/demos/gtm/output/` ## Core pattern 1. Keep the generator local to `examples/demos/gtm/media/`. 2. Reuse the existing workflow generator structure from another demo if available. 3. Build 5 synthetic HTML scenes with shared dark-theme CSS: - prompt - repo/code setup - analysis execution/progress - report/artifact output - browser walkthrough label 4. Render those scenes with Playwright headless Chromium. 5. Append a scroll-through of the real validated HTML report by taking a full-page screenshot and cropping viewport-sized frames. 6. Assemble frames into a GIF with Pillow. 7. Update `examples/demos/gtm/media/README.md` with: - deliverable row - generation note - regeneration command 8. Commit/push the GIF, generator script, and README together. ## Important implementation details - Prefer `python3.12` directly if the script imports `playwright.sync_api`; `uv run python` may use a Python without Playwright installed. - For local HTML reports with external Plotly CDN assets, use: - `page.goto(..., wait_until="domcontentloaded")` - then `page.wait_for_timeout(5000)` instead of `networkidle`, which can hang or fail. - Keep constants aligned across demos: - `WIDTH = 1024` - `HEIGHT = 640` - `FRAME_DURATION_MS = 120` - `SCROLL_STEP = 80` - Hold each synthetic slide for several duplicate frames, then insert a few dark transition frames. - For the walkthrough, do one full-page screenshot and crop it into scrolling frames rather than driving interactive scrolling in real time. ## Size-control lesson If the generated GIF exceeds the repo hook threshold (5 MB), re-quantize it after generation: - reopen GIF with Pillow - quantize frames to ~128 colors - resave with `optimize=True` This was enough to shrink a 5.4 MB workflow GIF to ~3.6 MB without changing the underlying scene logic. ## Minimal file set per demo - `examples/demos/gtm/media/<demo>_workflow.gif` - `examples/demos/gtm/media/generate_<demo>_workflow_gif.py` - `examples/demos/gtm/media/README.md` ## Recovery / orchestration lessons - In tmux/interactive Codex sessions, the useful files may already exist even if the session later hits an Anthropic API 500. - After any interactive failure, verify externally before retrying: - `git status --short --branch` - `ls -lh examples/demos/gtm/media/...` - If the artifact exists and only commit/push remains, finish that outside the Codex session instead of rerunning the whole generation. ## Good commit pattern - `feat(gtm): add Demo N end-to-end workflow GIF for #2288` ## Closeout rule Once all demos in scope have workflow GIFs and README regeneration notes, close the follow-up issue and move downstream to gallery/embed work rather than continuing asset generation.
Related Skills
digitalmodel-orcawave-orcaflex-proof-workflows
Class-level digitalmodel OrcaWave/OrcaFlex readiness, semantic-proof, fixture-proof, and closeout workflows.
portable-pattern-verification-workflow
Multi-package implementation with verification strategy for cross-platform configuration hardening
plan-gated-issue-validation-workflow
Systematic validation pattern for plan-approved GitHub issues with pre-existing deliverables
multi-year-tax-filing-verification-workflow
Verify and reconcile complex multi-form tax filings by cross-referencing source documents, identifying data dependencies, and validating line-by-line against authoritative records.
multi-file-tax-reconciliation-workflow
Systematic parallel review and reconciliation of multi-document tax filings with cross-reference validation
metadata-only-wiki-sweep-workflow
Disciplined inventory process for cataloging documents by filename/path without content claims, using parent-centric grouping to prevent stub proliferation
label-driven-prompt-generation-architecture
Pattern for building automation scripts that classify GitHub issues into prompt templates using label-based routing and extract contextual data for batch processing
freetaxusa-efiling-workflow
Navigate FreeTaxUSA e-filing process through final steps, handling session timeouts and identifying required manual signature steps
financial-site-bypass-workflow
Workflow for accessing restricted financial sites when browser automation is blocked
financial-data-export-workflow
Structured process for exporting and analyzing multi-year brokerage transaction history when browser automation is blocked
cash-basis-tax-reconciliation-workflow
Multi-source document reconciliation to establish authoritative tax basis and complete Form 1120 for C-Corps using cash method
agent-team-prompt-generation
Create self-contained execution prompts that define multi-role workflows for Codex sessions without external dependencies