做什么
倒入 Vite/ Webpack 镜像插件 React Fiber 树,配置文件制作,并为 React 16-19 apps 提供可视调试覆盖.
技能库 智客分类:Agent 工作流 react-devtools-plus
倒入 Vite/ Webpack 镜像插件 React Fiber 树,配置文件制作,并为 React 16-19 apps 提供可视调试覆盖.
官方网址:skills.sh
先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。
倒入 Vite/ Webpack 镜像插件 React Fiber 树,配置文件制作,并为 React 16-19 apps 提供可视调试覆盖.
官方 description 未单独写出 Use when。按规范,代理会在用户任务与这段 description 的关键词匹配时激活本技能。
按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:React DevTools Plus、What It Does、Installation、For Vite Projects、For Webpack Projects、Configuration。
文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。
Drop-in Vite/Webpack plugin that mirrors React Fiber trees, profiles renders, and provides visual debugging overlay for React 16-19 apps.
React DevTools PlusWhat It DoesInstallationFor Vite ProjectsFor Webpack ProjectsConfigurationBasic ConfigurationAdvanced ConfigurationWebpack ConfigurationUsage PatternsAccessing DevToolsComponent Tree Inspection
来源分类:skills.sh agent-skill
namereact-devtools-plusdescription具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗
先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。
复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。
把 Agent Skill「react-devtools-plus」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-dd4dae3789e80d82-%E5%8F%8D%E5%BA%94-Devtools-Plus.html 请存为 .cursor/skills/react-devtools-plus/SKILL.md 或 .claude/skills/react-devtools-plus/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。
需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。
npx skills add 'https://github.com/reason-machines/devtools-skills' --list
npx skills add 'https://github.com/reason-machines/devtools-skills' --skill 'react-devtools-plus'
CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。
name: react-devtools-plus description: Drop-in Vite/Webpack plugin that mirrors React Fiber trees, profiles renders, and provides visual debugging overlay for React 16-19 apps. triggers:
Skill by ara.so — Devtools Skills collection.
React DevTools Plus is an open-source build tool plugin that provides visual debugging for React applications. It mirrors your React Fiber tree in real-time, profiles component renders, and offers a keyboard-first overlay—all with zero impact on production builds.
Alt/Option + Shift + D for inline debuggingpnpm add -D react-devtools-plus
// vite.config.ts
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
import { reactDevToolsPlus } from 'react-devtools-plus/vite'
export default defineConfig({
plugins: [
react(),
reactDevToolsPlus(),
],
})
npm install -D react-devtools-plus
// webpack.config.js
const { reactDevToolsPlus } = require('react-devtools-plus/webpack')
module.exports = {
plugins: [
reactDevToolsPlus(),
],
}
// vite.config.ts
import { reactDevToolsPlus } from 'react-devtools-plus/vite'
export default defineConfig({
plugins: [
react(),
reactDevToolsPlus({
// Enable/disable overlay (default: true in dev mode)
overlay: true,
// Custom DevTools route (default: '/__react_devtools__')
base: '/__react_devtools__',
// Editor integration (auto-detected by default)
launchEditor: 'code', // 'code' | 'webstorm' | 'cursor' | 'vim' | etc.
}),
],
})
// vite.config.ts
import { reactDevToolsPlus } from 'react-devtools-plus/vite'
export default defineConfig({
plugins: [
react(),
reactDevToolsPlus({
// Disable overlay, use only the dedicated route
overlay: false,
// Custom base path
base: '/__debug__',
// Specific editor with custom launch command
launchEditor: 'webstorm',
}),
],
})
// webpack.config.js
const { reactDevToolsPlus } = require('react-devtools-plus/webpack')
module.exports = {
mode: 'development',
plugins: [
reactDevToolsPlus({
overlay: true,
base: '/__react_devtools__',
launchEditor: 'code',
}),
],
}
Method 1: Keyboard Shortcut
Press Alt + Shift + D (Windows/Linux) or Option + Shift + D (macOS) to toggle the floating overlay.
Method 2: Direct URL
Navigate to http://localhost:5173/__react_devtools__/ (adjust port/base as configured).
Method 3: Toggle Overlay Visibility
Press Alt + Shift + R (Windows/Linux) or Option + Shift + R (macOS) to toggle overlay visibility.
Press Escape to close the overlay.
Once DevTools is open:
// next.config.mjs (with Vite plugin via next-with-vite)
import { defineConfig } from 'vite'
import { reactDevToolsPlus } from 'react-devtools-plus/vite'
export default defineConfig({
plugins: [
reactDevToolsPlus({
overlay: true,
base: '/__devtools__',
}),
],
})
// vite.config.ts
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
import { reactDevToolsPlus } from 'react-devtools-plus/vite'
export default defineConfig({
plugins: [
react(),
reactDevToolsPlus({
overlay: true,
launchEditor: 'cursor', // Open components in Cursor AI
}),
],
})
// apps/admin/vite.config.ts
import { defineConfig } from 'vite'
import { reactDevToolsPlus } from 'react-devtools-plus/vite'
export default defineConfig({
plugins: [
reactDevToolsPlus({
base: '/__admin_devtools__', // Unique base per app
}),
],
})
// apps/customer/vite.config.ts
import { defineConfig } from 'vite'
import { reactDevToolsPlus } from 'react-devtools-plus/vite'
export default defineConfig({
plugins: [
reactDevToolsPlus({
base: '/__customer_devtools__', // Unique base per app
}),
],
})
// vite.config.ts
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
import { reactDevToolsPlus } from 'react-devtools-plus/vite'
export default defineConfig(({ mode }) => ({
plugins: [
react(),
// Only enable in development and staging
(mode === 'development' || mode === 'staging') && reactDevToolsPlus({
overlay: mode === 'development', // Overlay only in dev
base: '/__devtools__',
}),
].filter(Boolean),
}))
// webpack.config.js
const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const { reactDevToolsPlus } = require('react-devtools-plus/webpack')
module.exports = {
mode: 'development',
entry: './src/index.tsx',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js',
},
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
plugins: [
new HtmlWebpackPlugin({
template: './public/index.html',
}),
reactDevToolsPlus({
overlay: true,
launchEditor: 'code',
}),
],
devServer: {
port: 3000,
hot: true,
},
}
interface ReactDevToolsPlusOptions {
/**
* Enable/disable the floating overlay
* @default true in development mode
*/
overlay?: boolean
/**
* Custom base path for DevTools UI
* @default '/__react_devtools__'
*/
base?: string
/**
* Editor to launch when clicking "Open in Editor"
* Auto-detected by default
* @default auto-detected
*/
launchEditor?: 'code' | 'webstorm' | 'cursor' | 'vim' | 'atom' | 'sublime' | string
}
| Shortcut | Action |
|----------|--------|
| Alt/Option + Shift + D | Toggle DevTools overlay |
| Alt/Option + Shift + R | Toggle overlay visibility |
| Escape | Close overlay |
Issue: Pressing the keyboard shortcut or navigating to the URL shows nothing.
Solutions:
NODE_ENV=development)Issue: The floating overlay is interfering with app interaction.
Solutions:
// Disable overlay, use dedicated route only
reactDevToolsPlus({
overlay: false,
})
Or toggle visibility with Alt/Option + Shift + R.
Issue: Clicking components doesn't open them in your editor.
Solutions:
// Explicitly specify your editor
reactDevToolsPlus({
launchEditor: 'code', // or 'cursor', 'webstorm', etc.
})
Ensure your editor's command-line tool is installed:
code command via Command Palette → "Shell Command: Install 'code' command in PATH"webstorm command is in PATHIssue: Some components are missing from the DevTools tree.
Solutions:
Issue: DevTools code appears in production bundle.
Solutions: The plugin should automatically exclude itself from production builds. Verify:
// vite.config.ts
export default defineConfig(({ mode }) => ({
plugins: [
react(),
// Plugin is dev-only by default
reactDevToolsPlus(),
],
}))
If issues persist:
// Explicitly guard
export default defineConfig(({ mode }) => ({
plugins: [
react(),
mode === 'development' && reactDevToolsPlus(),
].filter(Boolean),
}))
Issue: DevTools not accessible at custom path.
Solutions:
// Ensure base includes leading and trailing slashes
reactDevToolsPlus({
base: '/__custom_path__', // Correct
// NOT: base: 'custom_path' or base: '/custom_path'
})
Then navigate to: http://localhost:5173/__custom_path__/
React DevTools Plus is a monorepo with the following key packages:
react-devtools - Main Vite/Webpack pluginreact-devtools-client - DevTools UI clientreact-devtools-core - Core functionality and plugin systemreact-devtools-kit - State management and messagingreact-devtools-overlay - Floating overlay componentreact-devtools-scan - Render scanning utilitiesIf you need to contribute or debug the plugin itself:
# Clone the repository
git clone https://github.com/wzc520pyfm/react-devtools-plus.git
cd react-devtools-plus
# Install dependencies
pnpm install
# Start development mode
pnpm dev
# Run Vite playground
pnpm play
# Run Webpack playground
pnpm play:webpack
# Build all packages
pnpm build
# Run tests
pnpm test
# Lint code
pnpm lint
Agent 工作流
创造有效技能指南。 当用户想创造出新的技能(或更新现有的技能),以专业知识,工作流程,或工具集成来扩展克洛德的能力时,应该使用这种技能.
Agent 工作流
使用ClawdHub CLI搜索,安装,更新并发布从taladhub.com的代理技能. 需要获取苍蝇上的新技能时使用,将安装的技能同步到最新版本或特定版本,或者发布 npm-instainddhub CLI 的新/更新的技能文件夹.
Agent 工作流
管弦乐团多代理团队,任务设定周期,交接协议,审查工作流程. 使用时间: (1)建立2+特派员队伍,具有不同专业,(2)确定任务路线和生命周期(收录框_ spec_建设_审查_完成),(3)在特派员之间制定交接协议,(4)建立审查和质量关口,(5)管理特派员之间的交流和文物共享.
Agent 工作流
Spec-first,TDD,子代理驱动的软件开发工作流程. 当:(1)构建任何新功能或应用——触发脑暴_计划_子代理执行回路,(2)调试出一个bug或测试失败——触发系统性的根起过程,(3)用户说"让我们构建","帮助我计划","我想添加X",或"这个被打破",(4)完成一个功…