react-grab

Capture React component context from browser UI elements for AI coding agents.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/supercent-io/skills-template --skill react-grab-supercent-io
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-grab
Source: https://github.com/supercent-io/skills-template/tree/main/.agent-skills/react-grab
Command: npx skills add https://github.com/supercent-io/skills-template --skill react-grab-supercent-io

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill eliminates the need to manually search for component file paths and names in your codebase when interacting with AI coding assistants, saving valuable development time.

Core Features & Use Cases

  • Instant Context Copying: Point at any UI element in your browser and copy its React component name, source file path, and HTML markup to your clipboard with a keyboard shortcut.
  • AI Agent Integration: Seamlessly paste this context into AI coding agents like Claude Code, Cursor, Copilot, or Gemini for precise code modifications.
  • Programmatic Access: Use the MCP server or primitives API for automated workflows and tooling.

Quick Start

Run npx -y grab@latest init to install react-grab in your project, then hover over a UI element in your browser and press Cmd+C (Mac) or Ctrl+C (Win/Linux) to copy its context.

Frequently Asked Questions about react-grab

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I copy React component context for AI coding agents directly from the browser?

You can capture React component context by pointing at a UI element and pressing Cmd+C or Ctrl+C. This copies the component name, source file path, and HTML markup to your clipboard for pasting into AI coding agents.

Does react-grab work with AI assistants like Cursor, Copilot, and Gemini?

Yes, react-grab supports integration with AI coding agents including Claude Code, Cursor, Copilot, Gemini, and Codex via CLI commands and scripts. You paste the captured component context into these assistants for precise code modifications.

What is the best way to stop manually searching for React file paths when prompting AI?

Using a browser-to-clipboard context capture tool eliminates manual file path searches. After initializing the tool, hovering over an element and copying automatically extracts the component name and source path for your AI prompt.

Can I access the captured React component data programmatically for automated workflows?

Yes, you can access captured React component data programmatically through an MCP server or a primitives API. This allows automated workflows, custom tooling, and integration with a plugin system for custom workflows.

How do I install and configure react-grab in my project?

Run `npx -y grab@latest init` in your project directory to install and configure react-grab. Once initialized, you can immediately capture component context from your browser UI elements using keyboard shortcuts.

What specific React component metadata gets copied to the clipboard?

The copied clipboard data includes the React component name, the source file path, and the HTML markup of the targeted UI element. This provides AI coding agents with precise context for code modifications.