Skip to main content
rule CX Codex

charts — Claude Code rule: what it does, how to install

Guidelines for building Remotion charts and animated metrics without frame flickering.

no license ★ 849 updated 2026-01-24

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

What charts does

This rule instructs the agent on creating animated data components within the Remotion framework. It covers bar charts, circular segment graphs, histograms, and progress meters built with React, SVG, or D3.js.

External animation packages must be avoided. Third-party transition tools trigger visual flickering because they do not synchronize with Remotion rendering. Every motion value must calculate directly from useCurrentFrame().

The guidelines detail specific mathematical patterns. Heights for bar graphs scale via spring() delays, while circular SVG charts reveal their segments by recalculating stroke-dashoffset starting from the top center.

What it helps with

  • animate staggered bar charts in Remotion
  • draw animated SVG pie charts from top center
  • eliminate frame flickering in video chart renders
  • drive data-driven visualizations through useCurrentFrame

Example prompts for the agent

  • Create a staggered bar chart animation for my Remotion composition
  • Build an SVG pie chart component driven by current frame progress

How to install charts

Manually: put the files in place

.claude/rules/charts.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 charts

How to install the charts rule in Claude Code?

Save the rule file to .claude/rules/charts.md in your project root.

What does the charts rule do?

It guides Claude Code on structuring Remotion data visualizations using SVG and React primitives.

Why are third-party animation libraries blocked?

External engines do not sync with video frame sequencing, which leads to visible flickering during export.

Similar IDE rules

All IDE rules for Frontend and UI →

From the same set33

The whole set →
get-audio-duration get-audio-duration — a rule that teaches Claude Code to extract audio file duration in seconds using the Mediabunny library. CX Codex +1 ★ 849repo stars can-decode Checks whether the browser can decode a video or audio stream before attempting playback using Mediabunny. CX Codex +1 ★ 849repo stars assets The assets rule guides Claude Code in adding images, video, audio, and fonts to Remotion projects. Use it when an agent needs to wire media into a composition. CX Codex +1 ★ 849repo stars get-video-dimensions get-video-dimensions — a Claude rule that hands the agent working Mediabunny code for reading a video's width and height, whether the file sits behind a URL, on disk, or in Remotion. CX Codex +1 ★ 849repo stars lottie This rule covers loading and displaying Lottie animations in Remotion. Use it when a rendered video needs a Lottie asset. CX Codex +1 ★ 849repo stars import-srt-captions import-srt-captions — a Claude Code rule for importing .srt subtitle files into Remotion video projects. Uses parseSrt() from @remotion/captions to extract subtitles and integrate them into components. CX Codex +1 ★ 849repo stars 3d 3d enforces proper Three.js and React Three Fiber conventions for deterministic video rendering in Remotion. CX Codex +1 ★ 849repo stars parameters Explains how to add video parameterization using Zod schemas in Remotion compositions. Lets users edit parameters visually in the sidebar instead of hardcoding them. CX Codex +1 ★ 849repo stars

Project sponsors

Companies that keep this analytics open