Skip to main content
rule CX Codex

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

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/rules/stat-bars-and-fills.md
Open on GitHub

What 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.md

The paths frontmatter field limits the files

Step 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.

Similar IDE rules

All IDE rules for Frontend and UI →

From the same set20

The whole set →
nudge-curve nudge-curve is a Claude Code rule that specifies a three-phase group slide animation to reveal content or shift layouts. CX Codex +1 ★ 171repo stars waterfall-entry waterfall-entry is a Claude Code rule for staggered bottom-up text arrivals. It runs during kinetic typography sequences in title cards and screen openers. CX Codex +1 ★ 171repo stars office The office skill for Claude Code creates and modifies Word documents, Excel workbooks, and PowerPoint decks. It runs when generating or inspecting office files via local scripts. CX Codex +1 ★ 171repo stars introduce-local-code introduce-local-code is a Claude Code skill that explains the assistant and the Local Code app. It activates for questions about the app’s purpose, features, or operation. CX Codex +1 ★ 171repo stars answers-charts answers-charts is a Claude Code skill that builds Matplotlib charts and embeds them directly into answers. It outputs verified PNG and SVG files strictly from supplied numbers. CX Codex +1 ★ 171repo stars uikit-ui-common-setup uikit-ui-common-setup is a Claude Code skill for writing and refactoring UIKit interfaces. It applies to work involving Workflow, ViewController, SnapKit, and UI state. CX Codex +1 ★ 171repo stars check_lean-and-lean-tools check_lean-and-lean-tools is a Claude Code skill that verifies Lean proofs for universal claims involving induction or recursion. It joins coding, debugging, review, or design tasks when a claim needs machine-checked lemmas. CX Codex +1 ★ 171repo stars use-draw-things-cli use-draw-things-cli is a Claude Code skill that creates or edits images and generates videos through draw-things-cli. It selects a model and its task-specific guidance. CX Codex +1 ★ 171repo stars

Project sponsors

Companies that keep this analytics open