skills/inspector-workbench/SKILL.md
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.