artemnovitckii/claude-animation-skills / skills/graph
graph
VerifiedMakes a minimal line-graph animation for a reel. A smooth black line draws itself on white (or white on black) while one big number counts up with the tip, then lands on the final value. Use when the user runs /graph or asks for a growth chart, a "0 to 100K" number animation or an animated stat.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 2.9 KB |
| build.pyexecutable | script | 886 B |
| template.html | other | 6.1 KB |
build.py
View on GitHub#!/usr/bin/env python3
"""/graph: spec.json -> a smooth line graph that draws itself while one number counts up (1080x1920, 4 s).
python3 build.py <spec.json> [--snap 1.5,3.2]
"""
import sys
from pathlib import Path
HERE = Path(__file__).resolve().parent
sys.path.insert(0, str(HERE.parents[1] / 'kit'))
import anim # noqa: E402
DEFAULTS = {'label': '', 'values': None, 'labels': [], 'final': None, 'prefix': '', 'suffix': '', 'decimals': 0, 'dark': False}
def check(spec):
v = spec['values']
if not isinstance(v, list) or len(v) < 2 or not all(isinstance(x, (int, float)) and x >= 0 for x in v):
sys.exit('spec: "values" needs 2 or more numbers, all 0 or above')
if max(v) <= 0:
sys.exit('spec: at least one value must be above 0')
if __name__ == '__main__':
anim.build(HERE / 'template.html', DEFAULTS, duration=lambda s: 4.0, check=check)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |