Token导航 LogoToken导航

Agent Skill · 前端设计

react-grab(React grab 前端)

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

react-grab 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有提醒项,按安装量在前端设计类的 10,216 个 Skill 里排第 2,847。

总安装 1,835周安装 78GitHub Stars 11下载 643核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:react-grab(React grab 前端)
来源仓库:https://github.com/akillness/oh-my-skills
仓库路径:skills/react-grab
安装命令:
npx skills add https://github.com/akillness/oh-my-skills --skill react-grab
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/akillness/oh-my-skills --skill react-grab

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于捕获浏览器中 React 组件的上下文信息,辅助前端开发与调试。适合在 Codex、Claude、Cursor 等环境中提取组件文件路径、HTML 结构和状态信息。可通过剪贴板、MCP 或插件方式集成,实现精准的元素定位与上下文传递。

安装命令:npx skills add https://github.com/akillness/oh-my-skills --skill react-grab 使用前需确认项目中的 React 版本及文件结构,避免路径错误导致空响应。

来源仓库内路径:skills/react-grab

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/akillness/oh-my-skills --skill react-grab;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

react-grab 怎么安装?

在终端执行 npx skills add https://github.com/akillness/oh-my-skills --skill react-grab。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

react-grab 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

react-grab 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

react-grab 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

react-grab 用的人多吗?

公开数据是累计安装 1,835 次,近一周安装 78 次,下载 643 次,GitHub 11 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

react-grab 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
react-grab

React grab 前端 · 本页

1,83511操作浏览器未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

react-grab — Browser element context for AI agents

Keyword: react-grab · grab · element context Point 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-grab in 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-grab setup 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 → agent-browser
  • 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:

  1. Clipboard install/use — user wants to hover, press Cmd/Ctrl+C, and paste context into an AI agent.
  2. MCP workflow — user wants the agent to call a tool like get_element_context after browser selection.
  3. Plugin/API workflow — user wants custom actions, lifecycle hooks, formatting, or primitives like freeze().
  4. 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 init is the default install path.
  • Upstream package.json currently 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:

  1. Start the dev server.
  2. Open the app in the browser.
  3. Hover the target element.
  4. Press Cmd+C (Mac) or Ctrl+C (Windows/Linux).
  5. 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:

  1. User selects or hovers the element in the browser overlay.
  2. The MCP server exposes the latest selection.
  3. The AI agent calls get_element_context.
  4. 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.md for full API surface - references/agent-workflows.md for 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.md for 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 → agent-browser or playwriter
  • UI review / visual annotation → agentation
  • performance / profiling / hydration / bundle / RSC issues → react-best-practices
  • reusable component-system design → design-system or ui-component-patterns

Step 5: Prefer reference docs over bloating the front door

After classifying the mode, load only the matching support doc:

  • references/install-and-routing.md
  • references/agent-workflows.md
  • references/troubleshooting.md
  • references/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:

  1. Confirm Node 22+ prerequisite.
  2. Use npx -y grab@latest init as the default path.
  3. Explain dev-server → browser hover → Cmd/Ctrl+C → paste into Claude Code.
  4. 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:

  1. Confirm Node 22+ prerequisite.
  2. Run npx -y grab@latest add mcp.
  3. Explain that the browser selection happens first, then the agent calls get_element_context.
  4. Route generic browser-control questions to agent-browser / playwriter if needed.

Example 3: custom plugin workflow

User: “Create a react-grab plugin that adds a Jira action to the context menu.”

Response shape:

  1. Keep react-grab as the plugin/API lane.
  2. Use registerPlugin(...) with an action and optional hooks.
  3. Point to references/api.md for the full hook surface.
  4. 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:

  1. Check Node version first and call out the Node 22+ requirement.
  2. Confirm they are running from the project root.
  3. Use references/troubleshooting.md for overlay/load/MCP/path failures.
  4. Route unrelated framework build issues to the appropriate frontend skill.

Best practices

  1. State the Node.js >=22 prerequisite truthfully before recommending install commands.
  2. Default to npx -y grab@latest init unless the user explicitly needs manual framework setup.
  3. Keep it dev-only — never imply this belongs in production builds.
  4. Explain clipboard vs MCP clearly so users do not confuse paste-based and tool-based workflows.
  5. Route broad browser or UI-review work out early instead of letting react-grab absorb adjacent skills.
  6. Use support docs for depth instead of pasting long installation or API manuals into the main response.

References

平台分布

Codex

34.51%
按下载量换算222

Claude

31.44%
按下载量换算202

Cursor

19.45%
按下载量换算125

Gemini CLI

8.85%
按下载量换算57

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills