Runs Inspector UI work on the standalone Threads state lab so the agent can see the overlay. Use when a CopilotKit employee asks an agent to fix, polish, add, o
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-inspector-workbench-7e6bf2127bf7 ,按照其中的说明把「inspector-workbench」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
The Inspector overlay is a visual product. Code that compiles is not proof. The agent must run the standalone workbench and look at screenshots after each visual change.
This skill does not replace inspector-docs. If a pane is added, renamed,
or removed, load inspector-docs as well.
Load this skill at the start of any task that changes
packages/web-inspector UI, chrome, or overlay behavior.
Do not load it for docs-only Callout work. Do not load it for showcase cells. If the host app is the bug (z-index against host CSS, CopilotChat layout), use that host, then still take screenshots.
The default host is the standalone Threads state lab:
nx run @copilotkit/web-inspector:dev:standalonehttp://127.0.0.1:5177/?scenario=pro-enabled-existing&reset=1cpk-web-inspector and opens the overlay.Do not start a showcase app, an example app, or Storybook as the default host. Those are slower and hide Inspector-only faults.
The Nx target runs Vite and the CSS watch together. Do not run Vite alone.
Do not run pnpm --filter @copilotkit/web-inspector run dev. That watch
serves consumers, not this lab.
inspector-docs too.nx run @copilotkit/web-inspector:dev:standalone.http://127.0.0.1:5177 serves.http://127.0.0.1:5177/?scenario=pro-enabled-existing&reset=1.packages/web-inspector/src..inspector-workbench/<task>/. Never write a PNG at the repo root.Unit tests still belong in the same change. Screenshots do not replace tests.
dev:standalone process tree..inspector-workbench/.inspector-docsinspector-docs instead.| Signal | What it means | Do instead |
|---|---|---|
| Showcase, example, or Storybook is the first server | The agent skipped the workbench | Stop that server. Run Procedure 1 |
| No screenshot after a visual edit | The agent is guessing from CSS | Take a screenshot. Look at it |
PNG files at the repo root (inspector-open.png) | The screenshot path is wrong | Write under .inspector-workbench/<task>/ |
| "The CSS looks correct, so the UI is done" | Overlay bugs do not show in source | Screenshot the lab. Fix what the image shows |
| Vite started without the Nx target | CSS watch is missing | Use nx run @copilotkit/web-inspector:dev:standalone |
| Port 5178 or a random port | The lab pins 5177 | Free 5177. Do not pick another port |
| Workbench still running after the task | Watchers leak memory on this machine | Run Procedure 3 |
Pane added with no inspector-docs pass | Docs Callout will drift | Load inspector-docs in the same change |
strictPort.http://127.0.0.1:5177 with the same scenario query. Then screenshot.http://127.0.0.1:5177/?scenario=pro-enabled-existing&replay-notification=1.