# react-grab

This skill lets an agent pull context for a React element you pick in a live browser: component name, file, line and HTML. Useful when a fix has to match the real DOM.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 344 installs · ★ 50
- 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-grab/SKILL.md
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/react-grab

## What it does

Three delivery paths are covered. The clipboard route is manual: hover an element, hit Cmd+C or Ctrl+C, paste the result into your agent. The MCP route is tool-based — once something is selected, the agent calls `get_element_context` and gets back the file path, component, stack and HTML. A plugin and API route exists for custom actions and lifecycle hooks.

Setup starts with `npx -y grab@latest init`; for the MCP path run `npx -y grab@latest add mcp`. The browser overlay is a development-only tool and has no place in production. Node.js 22 or newer is required, so check your version before running anything — older runtimes will not work.

The skill stays inside its lane. General browser automation, session reuse with existing logins, visual UI annotation, React performance work and design-system tasks belong to other skills. Custom plugins are built on primitives such as `getElementContext(element)`, `freeze()`, `openFile(filePath, lineNumber?)` and `registerPlugin(...)`.

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install akillness/jeo-skills react-grab
```

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add akillness/jeo-skills --skill react-grab -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-grab/SKILL.md

## When to use it
- hand an agent the real component path instead of a description
- locate the source of an element you can only see in the browser
- copy an HTML snippet into chat with one keystroke
- wire element selection to an agent through an MCP tool
- build a custom plugin on top of the API hooks

## Example prompts
- Install react-grab MCP so the agent can pull the selected button context
- Show me how to write a react-grab plugin with custom output formatting

## Similar
- [frontend-design](https://affpapa.org/en/nevibecode/skills/frontend-design.md) — skill · 1025790 installs
- [design-taste-frontend](https://affpapa.org/en/nevibecode/skills/design-taste-frontend.md) — skill · 678700 installs
- [prototype](https://affpapa.org/en/nevibecode/skills/prototype.md) — skill · 986201 installs
- [hyperframes](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes.md) — skill · 1200000 installs
- [hyperframes-cli](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes-cli.md) — skill · 1300000 installs
- [webapp-testing](https://affpapa.org/en/nevibecode/skills/webapp-testing.md) — skill · 186758 installs

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