stat-bars-and-fills — Claude Code rule for animated stats
stat-bars-and-fills is a Claude Code rule for animating graphics paired with statistics: bars, progress indicators, or star ratings. It applies when an interface presents a value with a visual measure.
GPL-3.0 ★ 171 updated 2026-11-17
.claude/rules/stat-bars-and-fills.mdWhat stat-bars-and-fills does
The rule describes three ways to animate a graphic beside a statistic: rising bars, a filling progress bar or ring, and a fractional star rating. Bar heights are set in CSS while GSAP animates scaleY; a bar fill uses scaleX, a ring uses its measured SVG stroke length, and stars reveal a clipped gold layer.
For a ring, the example measures its circumference with getTotalLength(). A progress fill needs width: 100%. The rule also calls for one layout pattern and one accent color across the stats, with the graphic and its paired number reaching their final values in sync.
What it helps with
- animate bars growing from the baseline
- fill a progress bar or ring to a value
- show a fractional star rating
- sync a statistic’s graphic with its changing number
Example prompts for the agent
- Animate the bars beside these figures from the baseline.
- Add a progress ring next to the value.
- Show this rating with a fractional star fill.
How to install stat-bars-and-fills
Manually: put the files in place
.claude/rules/stat-bars-and-fills.mdThe paths frontmatter field limits the files
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.cursor/rules/stat-bars-and-fills.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/stat-bars-and-fills.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/stat-bars-and-fills.mdManually: put the files in place
.clinerules/stat-bars-and-fills.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about stat-bars-and-fills
How do I install stat-bars-and-fills in Claude Code?
Add the rule at .claude/rules/stat-bars-and-fills.md.
What does stat-bars-and-fills do?
It sets out animation patterns for bars, progress indicators, and fractional star ratings paired with a statistic.
What does stat-bars-and-fills need to run?
Its animation examples use GSAP.