react-grab — Claude Code skill: React element context from the browser
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.
npx skills add akillness/jeo-skills --skill react-grab -a claude-codeWhat react-grab 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(...).
What it helps with
- 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 for the agent
- 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
How to install react-grab
1Skills CLI (Vercel)
npx skills add akillness/jeo-skills --skill react-grab -a claude-code2Manually: put the files in place
~/.claude/skills/react-grab/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/react-grab/
1Skills CLI (Vercel)
npx skills add akillness/jeo-skills --skill react-grab -a codex2Manually: put the files in place
.agents/skills/react-grab/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add akillness/jeo-skills --skill react-grab -a cursor2Manually: put the files in place
.cursor/skills/react-grab/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install akillness/jeo-skills react-grab2Manually: put the files in place
.github/skills/react-grab/SKILL.md1Skills CLI (Vercel)
npx skills add akillness/jeo-skills --skill react-grab -a gemini-cli2Platform CLI
gemini skills install https://github.com/akillness/jeo-skills --path .agent-skills/react-grabManually: put the files in place
.devin/skills/react-grab/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add akillness/jeo-skills --skill react-grab -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about react-grab
How do I install react-grab in Claude Code?
Add the skill with npx skills add akillness/jeo-skills --skill react-grab -a claude-code. The skill file lands at ~/.claude/skills/react-grab/SKILL.md.
What does react-grab do?
It gives an agent the context of a React element you select: component name, file path, line and HTML. There is a manual clipboard flow and an MCP tool flow.
What does react-grab need to run?
Node.js 22 or newer. The browser overlay is meant for development only.