
react-grab
Capture exact React element context from a live browser UI and hand it to an AI coding agent as component name, source file path, line number, and HTML. Use when the user wants react-grab, element-context copy, component-source lookup from the browser, clipboard-to-agent React debugging, or MCP-backed element selection for React apps. Not for generic browser automation or login/session reuse (browser-harness, playwriter), broad UI annotation/review (agentation), React performance audits (react-best-practices), or general design-system work (design-system). Triggers on: react-grab, grab element context, copy component to AI, browser component picker, React component inspector, clipboard component source, get element context from browser, grab UI element.
- Installs
- 344
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/akillness/jeo-skills --skill react-grab- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads react-grab automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
react-grab — Browser element context for AI agents
Keyword:
react-grab·grab·element contextPoint at a live React UI element, capture the exact component/file/HTML context, and feed it straight into Claude Code, Cursor, Copilot, Codex, Gemini, or an MCP workflow.
When to use this skill
- Install
react-grabin a React project so agents can copy exact component context from the browser - Choose between clipboard flow, MCP flow, and plugin/API flow for React element capture
- Fix
react-grabsetup issues like wrong load point, missing file paths, or empty MCP responses - Add or remove an agent integration (
claude-code,cursor,codex,gemini,mcp, etc.) - Build a custom plugin or use the primitives API for a project-specific workflow
Do not use this skill for:
- Fresh-session browser automation, auth flows, or disposable browser verification →
browser-harness - Running-browser reuse with existing cookies/extensions/logins →
playwriter - Human feedback / annotation packets on rendered UI →
agentation - React performance diagnosis, rerender churn, hydration, bundle, or RSC/client-boundary work →
react-best-practices - General UI-system / token / component-library design work →
design-system
Instructions
Step 1: Classify the request
Choose one primary mode before giving commands:
- Clipboard install/use — user wants to hover, press Cmd/Ctrl+C, and paste context into an AI agent.
- MCP workflow — user wants the agent to call a tool like
get_element_contextafter browser selection. - Plugin/API workflow — user wants custom actions, lifecycle hooks, formatting, or primitives like
freeze(). - Troubleshooting/removal — user wants to fix setup problems or remove the integration cleanly.
Step 2: Confirm prerequisites truthfully
Use the upstream project as source of truth:
npx grab@latest initis the default install path.- Upstream
package.jsoncurrently requires Node.js >=22. - The browser overlay is a development-only tool; never present it as a production feature.
If the user’s environment is older than Node 22, say so explicitly before giving the install path.
Step 3: Give the shortest correct path
Mode A — Clipboard install/use
Use this as the default path unless the user explicitly asks for MCP or plugins:
# At the project root
npx -y grab@latest init
Then explain the runtime flow:
- Start the dev server.
- Open the app in the browser.
- Hover the target element.
- Press Cmd+C (Mac) or Ctrl+C (Windows/Linux).
- Paste the captured context into the AI agent.
Clipboard output should include:
- component name
- source file path
- line/column when available
- HTML snippet
If the user needs framework-specific setup, use references/install-and-routing.md.
Mode B — MCP workflow
When the user wants programmatic access from the agent instead of manual paste:
npx -y grab@latest add mcp
Explain the real flow clearly:
- User selects or hovers the element in the browser overlay.
- The MCP server exposes the latest selection.
- The AI agent calls
get_element_context. - The tool returns file path, component, stack, and HTML context.
If the user asks how this differs from clipboard flow:
- Clipboard is manual paste into chat.
- MCP is tool-based retrieval after selection.
Use references/agent-workflows.md for agent-specific install and routing guidance.
Mode C — Plugin/API workflow
When the user wants custom behavior, automation, or a deeper integration:
- Route installation and workflow choice first.
- Then point to:
references/api.mdfor full API surfacereferences/agent-workflows.mdfor practical plugin/MCP patterns
Common primitives to mention:
getElementContext(element)freeze()/unfreeze()openFile(filePath, lineNumber?)registerPlugin(...)
Do not dump the full API unless the user asked for the deep path.
Mode D — Troubleshooting/removal
If the user wants fixes or teardown:
- Use
references/troubleshooting.mdfor symptom-first triage. - For removal, use upstream CLI removal commands:
npx -y grab@latest remove <agent>
Step 4: Keep the boundary sharp
Keep react-grab focused on React element context capture from the browser.
Route out when the user is actually asking for:
- general browser automation →
browser-harnessorplaywriter - UI review / visual annotation →
agentation - performance / profiling / hydration / bundle / RSC issues →
react-best-practices - reusable component-system design →
design-systemordesign-system
Step 5: Prefer reference docs over bloating the front door
After classifying the mode, load only the matching support doc:
references/install-and-routing.mdreferences/agent-workflows.mdreferences/troubleshooting.mdreferences/api.md
Keep the main answer short unless the user explicitly asks for the long path.
Examples
Example 1: install in a Next.js app and use clipboard flow
User: “Set up react-grab in my Next.js app so I can copy a component into Claude Code.”
Response shape:
- Confirm Node 22+ prerequisite.
- Use
npx -y grab@latest initas the default path. - Explain dev-server → browser hover → Cmd/Ctrl+C → paste into Claude Code.
- Only load framework-specific setup if auto-detect is not viable.
Example 2: MCP setup for agent tool access
User: “Install react-grab MCP so the agent can grab the selected button context.”
Response shape:
- Confirm Node 22+ prerequisite.
- Run
npx -y grab@latest add mcp. - Explain that the browser selection happens first, then the agent calls
get_element_context. - Route generic browser-control questions to
browser-harness/playwriterif needed.
Example 3: custom plugin workflow
User: “Create a react-grab plugin that adds a Jira action to the context menu.”
Response shape:
- Keep
react-grabas the plugin/API lane. - Use
registerPlugin(...)with an action and optional hooks. - Point to
references/api.mdfor the full hook surface. - Keep the example focused on the requested action rather than reproducing the whole API.
Example 4: fix setup drift
User: “grab init keeps failing on my machine.”
Response shape:
- Check Node version first and call out the Node 22+ requirement.
- Confirm they are running from the project root.
- Use
references/troubleshooting.mdfor overlay/load/MCP/path failures. - Route unrelated framework build issues to the appropriate frontend skill.
Best practices
- State the Node.js >=22 prerequisite truthfully before recommending install commands.
- Default to
npx -y grab@latest initunless the user explicitly needs manual framework setup. - Keep it dev-only — never imply this belongs in production builds.
- Explain clipboard vs MCP clearly so users do not confuse paste-based and tool-based workflows.
- Route broad browser or UI-review work out early instead of letting
react-grababsorb adjacent skills. - Use support docs for depth instead of pasting long installation or API manuals into the main response.
References
- react-grab GitHub
- react-grab.com
- Install and routing guide
- Agent workflows
- Troubleshooting
- Full API reference
- Helper scripts —
install.shandadd-agent.sh
FAQ
What does the react-grab skill do?
Capture exact React element context from a live browser UI and hand it to an AI coding agent as component name, source file path, line number, and HTML. Use when the user wants react-grab, element-context copy, component-source lookup from the browser, clipboard-to-agent React debugging, or MCP-backed element selection for React apps. Not for generic browser automation or login/session reuse (browser-harness, playwriter), broad UI annotation/review (agentation), React performance audits (react-best-practices), or general design-system work (design-system). Triggers on: react-grab, grab element context, copy component to AI, browser component picker, React component inspector, clipboard component source, get element context from browser, grab UI element.
How do I install react-grab?
Run npx skills add https://github.com/akillness/jeo-skills --skill react-grab in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/react-grab/ (personal) or .claude/skills/react-grab/ (project).
Which AI agents can use react-grab?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is react-grab safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains react-grab?
It is published by akillness in akillness/jeo-skills. It has 344 recorded installs.
More from akillness/jeo-skills
rtk
akillness/jeo-skills
Install, initialize, verify, and troubleshoot RTK (Rust Token Killer) for AI coding agents. Use when you need to reduce shell-command token output, confirm that the correct rtk binary is installed, choose between Homebrew, install.sh, or Cargo installation, wire rtk init for Claude Code, Codex, Gemini CLI, Cursor, Copilot, Windsurf, Cline, or OpenCode, or use compact wrappers such as rtk git status, rtk read, rtk grep, rtk test, rtk lint, and rtk gain. Triggers on: rtk, rust token killer, token saver cli, rtk init, rtk gain, codex rtk, gemini rtk, opencode rtk, claude hook token reduction.
graphify
akillness/jeo-skills
Drive Graphify from its CLI to build, refresh, query, export, and serve a durable code/corpus knowledge graph. Use when the user wants .graphify/GRAPHREPORT.md, graph.json, graph.html, graphify update/summary/query/path/explain/tree, change-aware review context, git-hook or watch-based refresh, a stdio MCP graph server, or an install into jeo, jeopi, gjc, opencode, Claude, Codex, or Gemini. Also covers the honest structural fallback when native extraction is empty or misleading. Route simple locate/reference work to codebase-search, narrative knowledge-base work to llm-wiki, and project-memory handoff to opencontext. Triggers on: graphify, graphify update, graphify query, knowledge graph CLI, GRAPHREPORT.md, graph.json, codebase graph, graph refresh, graphify install, graphify serve, review context, affected flows.
data-analysis
akillness/jeo-skills
Analyze datasets to extract insights, identify patterns, and generate reports.
code-refactoring
akillness/jeo-skills
Turn a cleanup packet into one behavior-preserving refactor brief. Use when simplifying a messy function/component/service, freezing behavior before touching fragile legacy code, splitting a cleanup-heavy diff into reviewable slices, or planning a repeated migration / codemod without changing intended behavior. Route diagnosis to debugging, review judgment to code-review, validation-program design to testing-strategies, bottleneck-led tuning to performance-optimization, and pure symbol inventory to codebase-search.
technical-writing
akillness/jeo-skills
Write internal technical documentation for engineers and operators: technical specs, architecture docs, ADRs, runbooks, migration plans, and developer-facing implementation guides. Use when the main job is capturing a technical decision, system boundary, operating procedure, or rollout path for builders and maintainers. Triggers on: tech spec, design doc, architecture doc, ADR, runbook, migration guide, implementation guide, rollout doc, operational guide, and internal technical writing. End-user onboarding guides, tutorials, FAQs, and help-center flows belong here too. Route API portals to api-documentation, release notes to changelog-maintenance, decks to presentation-builder, and GTM messaging to marketing-automation.
web-accessibility
akillness/jeo-skills
Routing-first skill for web accessibility remediation and verification. Use when the main job is classifying which accessibility surface is failing — semantics, keyboard/focus, labels/announcements, visual perception/reflow, media alternatives, or routed-app navigation feedback — and turning vague audit, WCAG, axe/Lighthouse, or "make this accessible" requests into one concrete remediation packet. Broad UI critique for hierarchy, polish, and launch readiness belongs here too. Route component API architecture and system governance to design-system, and responsive layout strategy to responsive-design.
Popular frontend & design skills
setup-matt-pocock-skills
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
frontend-design
anthropics/skills
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
hyperframes-animation
heygen-com/hyperframes
All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
prototype
mattpocock/skills
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.
vercel-react-best-practices
vercel-labs/agent-skills
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.