# react-bits

A skill that steers an agent through react-bits: pick dependencies, drop an animated component into a React project, fix GSAP and Three.js leaks, or send your own component upstream.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 211 installs · ★ 61 repo stars
- Author: akillness
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/akillness/jeo-skills/tree/HEAD/.agent-skills/react-bits/SKILL.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/react-bits

## What it does

The skill walks an agent through adding react-bits components to a React project. It names the peer dependencies a given piece needs (`gsap`, `motion`, `@react-three/fiber`, `lucide-react`) and covers two ways of bringing the source in: copy it, or pull it with `jsrepo` when the registry is configured. The stack it documents is Vite, Tailwind CSS v4, Three.js/Fiber, GSAP and Framer Motion.

One section is about cleanup. GSAP timelines belong in `useLayoutEffect`, or behind `useGSAP` from `@gsap/react`. Skip that and React 18/19 Strict Mode fires the animation twice. With Three.js the skill points at `<Canvas>` sizing and unmounting, so WebGL contexts are released.

Contributing back follows the same file: `npm run new:component` scaffolds the template, `npm run lint` and `npm run format` run before the commit, and the work goes out as `feat/<feature-name>` against `main`. The target project needs Node.js 18+ and Tailwind CSS v4.

## Requirements
- Works with: GitHub

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add akillness/jeo-skills --skill react-bits -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/react-bits/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/react-bits/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add akillness/jeo-skills --skill react-bits -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/react-bits/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add akillness/jeo-skills --skill react-bits -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/react-bits/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install akillness/jeo-skills .agent-skills/react-bits/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/react-bits/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add akillness/jeo-skills --skill react-bits -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/akillness/jeo-skills --path .agent-skills/react-bits
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/react-bits/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add akillness/jeo-skills --skill react-bits -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/akillness/jeo-skills/tree/HEAD/.agent-skills/react-bits/SKILL.md

## When to use it
- pick peer dependencies for one specific animated component
- wire a react-bits component into a Vite + Tailwind v4 project
- stop a GSAP animation from firing twice under Strict Mode
- release WebGL contexts when a Three.js scene unmounts
- scaffold a new component and open a PR on the right branch

## Example prompts
- Add the text animation component from react-bits to this project and install the peer dependencies it needs.
- The GSAP timeline runs twice in Strict Mode — clean it up with `useGSAP`.
- Scaffold a new animated component with `npm run new:component` and set up a `feat/` branch for the PR.

## Similar
- [premium-frontend-design](https://affpapa.org/en/nevibecode/skills/premium-frontend-design.md) — skill · 1400 installs
- [awwwards-animations](https://affpapa.org/en/nevibecode/skills/awwwards-animations.md) — skill · 3300 installs
- [generic-react-design-system](https://affpapa.org/en/nevibecode/skills/generic-react-design-system.md) — skill · 191 installs
- [motion-engineer](https://affpapa.org/en/nevibecode/agents/motion-engineer.md) — subagent · ★ 110 repo stars
- [gsap-react](https://affpapa.org/en/nevibecode/skills/gsap-react.md) — skill · 79900 installs
- [framer-motion-react](https://affpapa.org/en/nevibecode/skills/framer-motion-react.md) — skill · 930 installs

## Other versions with the same name
- [react-bits · philotheephilix](https://affpapa.org/en/nevibecode/skills/philotheephilix-react-bits.md) — 617 installs

From the same set: [akillness/jeo-skills](https://affpapa.org/en/nevibecode/by/akillness/jeo-skills.md) — 99 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
