mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
dccfb6bb14
When an agent is asked to fix Inspector UI, it must start the standalone lab and take screenshots. This PR adds `skills/inspector-workbench/SKILL.md` next to `inspector-docs`. `AGENTS.md` and `CLAUDE.md` point at it, so CopilotKit employee sessions load it by default. ## What does this PR do? - Adds the `inspector-workbench` skill. The default host is `nx run @copilotkit/web-inspector:dev:standalone` at `http://127.0.0.1:5177`. - Requires a screenshot after each visual change. Screenshot files go in `.inspector-workbench/` (gitignored), not the repo root. - Cross-links `inspector-docs` when a pane is added, renamed, or removed. - Registers the slug in `RESERVED_LIFECYCLE_SLUGS` so `pnpm sync:plugin-skills` does not delete the skill. ## Related PRs and Issues None. ## Checklist - [x] I have read the [Contribution Guide](https://github.com/copilotkit/copilotkit/blob/master/CONTRIBUTING.md) - [x] If the PR changes or adds functionality, I have updated the relevant documentation - [x] "Allow edits by maintainers" is checked (lets us help iterate on your PR directly — faster turnaround for everyone) ## Testing 1. Commands run: - `pnpm check:plugin-skills` passed (`plugin skill mirror in sync`). - `pnpm exec vitest run scripts/__tests__/sync-plugin-skills.test.ts` passed. - Full package tests were not run. This change is agent instructions plus the reserved-slug list. 2. Manual test: 1. Open `skills/inspector-workbench/SKILL.md`. 2. Confirm the default command is `nx run @copilotkit/web-inspector:dev:standalone`. 3. Ask an agent to fix Inspector UI. Confirm it starts the lab and takes a screenshot before it claims the UI is done. 3. How this PR makes testing easy: the reserved-slug unit test now includes `inspector-workbench`. CI `plugin-skills-check` will run on this path. ## Risk / rollback Low. This is agent instruction plus a gitignore folder. Revert the PR to undo.