ai-tracking-box — Claude Code rule: what it does, how to install
ai-tracking-box generates an animated target bounding box with corner brackets and oscillating coordinates to simulate computer vision tracking in GSAP.
AGPL-3.0 ★ 78,316 updated 2026-10-24
.claude/rules/ai-tracking-box.mdWhat ai-tracking-box does
This rule sets up the layout and styling for a computer vision target tracker. The markup arranges a central target mascot, four L-shaped bracket corner elements, and an attached tag displaying the predicted class with a percentage value. It relies on high-contrast styling with bright border accents on a dark radial backdrop.
Motion relies entirely on a GSAP timeline object. The bounding container pops in with an elastic scale transition, then enters a continuous tracking cycle. Both the target element and the surrounding frame drift along sine and cosine paths, while box dimensions slightly jitter to replicate live computational recalculation.
Running this component requires GSAP 3 loaded in the host environment; without the GSAP runtime, timeline playback fails immediately. Timing offsets, sine drift amplitude, and confidence range limits are configured via explicit script constants.
What it helps with
- build an animated bounding box with L-bracket corners
- simulate computer vision object tracking using GSAP timelines
- animate oscillating target positions and fluctuating box dimensions
- render a jittering detection confidence score above a target
Example prompts for the agent
- Create an animated target tracking frame using the
ai-tracking-boxrule - Tune the drift amplitude and bounce scale for the detection box timeline
- Implement the GSAP sine path tracking scene for object visualization
How to install ai-tracking-box
Manually: put the files in place
.claude/rules/ai-tracking-box.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/ai-tracking-box.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/ai-tracking-box.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/ai-tracking-box.mdManually: put the files in place
.clinerules/ai-tracking-box.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about ai-tracking-box
How to install ai-tracking-box in Claude Code?
Place the rule configuration at .claude/rules/ai-tracking-box.md. Claude Code will automatically adopt the layout patterns and timeline configurations in subsequent responses.
What does ai-tracking-box do?
It provides HTML, CSS, and GSAP timeline scripts that mimic machine learning object recognition. The box follows a target along sine curves while fluctuating in scale and updating its confidence rating.
What external libraries does this rule require?
The animation script requires GSAP 3. It depends on gsap.timeline with paused initialization and the back.out easing curve.