# stat-bars-and-fills

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.

- rule · `type=rule` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline · ★ 171 repo stars
- Author: drawthingsai
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/drawthingsai/local-code-community/tree/HEAD/Apps/LocalCode/Resources/Skills/hyperframes/guides/hyperframes-animation/rules/stat-bars-and-fills.md
- Updated: 2026-11-17
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/stat-bars-and-fills

## What it 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.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/stat-bars-and-fills.md` — The paths frontmatter field limits the files

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### Cursor

**Manually: put the files in place**
- File: `.cursor/rules/stat-bars-and-fills.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/stat-bars-and-fills.instructions.md` — The applyTo field sets which files it applies to

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/stat-bars-and-fills.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/stat-bars-and-fills.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/drawthingsai/local-code-community/tree/HEAD/Apps/LocalCode/Resources/Skills/hyperframes/guides/hyperframes-animation/rules/stat-bars-and-fills.md

## When to use it
- 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
- 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.

## Similar
- [statistical-and-uncertainty-visualization](https://affpapa.org/en/nevibecode/skills/statistical-and-uncertainty-visualization.md) — skill · 10 installs
- [MCP Analytics](https://affpapa.org/en/nevibecode/mcp/mcp-analytics.md) — MCP server · ★ 9 repo stars
- [loading-states](https://affpapa.org/en/nevibecode/skills/loading-states.md) — skill · 2700 installs
- [zeigarnik-effect](https://affpapa.org/en/nevibecode/skills/zeigarnik-effect.md) — skill · 1400 installs
- [iphone-duo-vertical-bars](https://affpapa.org/en/nevibecode/skills/iphone-duo-vertical-bars.md) — skill · 953 installs
- [stat-api — Sports Data](https://affpapa.org/en/nevibecode/mcp/stat-api-sports-data.md) — MCP server · ★ 2 repo stars

From the same set: [drawthingsai/local-code-community](https://affpapa.org/en/nevibecode/by/drawthingsai/local-code-community.md) — 20 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
