Use Rook in VS Code with GitHub Copilot
Use VS Code with GitHub Copilot to operate Rook from your agent repository: inspect the implementation, prepare a test profile, generate scenarios, and explain recorded results. The coding assistant runs Rook CLI; installing a skill does not turn Rook into an MCP server or automatically test the assistant itself.
Before You Start
- Install and sign in to VS Code with GitHub Copilot; its account or model-provider access is separate from your Rook account.
- Install the public Rook CLI and run
rook --version,rook doctor, thenrook loginif needed. - Open a repository containing an AI agent you own and a safe test environment. If this is your first run, complete the sample quickstart first.
- Use Git and Bash for the project-skill example below. On Windows, use a compatible shell such as WSL. Keep target credentials in Rook's environment store or approved environment variables, never in the skill or chat.
Install the Rook Skill
This client supports the Agent Skills format, but it is not a named target of @testmuai/rook-skill. Use its project skill directory with the unmodified bundle from the public Rook repository. This is a standards-based integration, not a separate Rook plugin.
Run this Bash example from your agent repository. It copies only the skill bundle from a pinned public source revision, and stops if a destination already exists:
(
set -eu
rook_skill_checkout=$(mktemp -d)
git clone --filter=blob:none https://github.com/LambdaTest/rook.git "$rook_skill_checkout/rook"
git -C "$rook_skill_checkout/rook" checkout --detach f199cb99c589b565e48a3a29781475daee907533
if test -e .github/skills/rook; then
echo "An existing rook skill needs review; nothing was overwritten." >&2
exit 1
fi
mkdir -p .github/skills
cp -R "$rook_skill_checkout/rook/skill-installer/skills" .github/skills/rook
)
Keep .github/skills/rook/SKILL.md and the entire references/ directory together. Review the files before committing the project skill for teammates. The temporary checkout contains public source only and can be removed after review.
For an update, review a newer public revision, back up the existing skill, and replace the whole bundle in a reviewed change. The Rook npm installer does not manage this manual copy. To stop using it, remove only this project's .github/skills/rook after preserving custom changes.
Confirm the Client Loaded It
Open the repository in VS Code, open Copilot Chat in Agent mode, and type /skills to open Configure Skills. Confirm rook appears, then select /rook in chat.
VS Code is the editor; GitHub Copilot is the agent in this walkthrough. If you use the Codex or Claude Code extension instead, follow that client's skill setup. In WSL, Dev Containers, or Remote SSH, install Rook and the skill where the extension actually executes commands, then verify rook --version in that environment's terminal.
Test Your Agent Through a Prompt
Start with an inspection-only request:
/rook Inspect this repository and explain the next safe setup step. Do not run paid commands or invoke the target yet.
A useful response identifies the selected project/agent, available profiles, missing setup, and the next command. It should not claim that tests ran merely because it read the skill.
Once you have checked the target and approved the cost, give a bounded testing request:
Use Rook to test the refund agent in this repository against its refund policy.
Use the staging profile and test fixtures only. Propose up to three scenarios.
Before invoking the target, show me the selected scenario, hooks, possible writes,
and expected credit spending, then ask for confirmation.
After approval, run one selected scenario and report its run ID, Pass, Fail,
Unable to Verify, and criterion-level evidence. Do not run paid RCA or retry
automatically.
Substitute your agent and policy. The assistant should discover/select the agent, configure or test its profile and hooks, and review generated scenarios before execution. A normal shared run requires rook sync; use --test only when you deliberately want a local-only result.
Profile creation, repair, testing, and scenario execution can invoke the real target. Inspect agent.yaml for write-capable calls before approving them. Discovery, generation, execution, and other model-backed operations can spend credits; the client's own model costs are separate. A prompt is not a hard spending cap. See permissions and safety.
Review the Actual Result
Ask for the current invocation's run ID and report. A zero process exit code does not mean every scenario passed. Keep Pass, Fail, and Unable to Verify separate; include incomplete work and the recorded evidence for each criterion.
From the same project workspace:
rook report <run-id> --json
rook ui --local
The local UI reads workspace evidence. For uploaded runs, use rook ui or open Rook projects, then select the project → agent → run → scenario. An intentional --test run stays local; do not expect it on the shared timeline.
Local UI
Open the scenario's criteria and files to inspect what actually happened. This existing HTTP smoke-test capture illustrates result review; it is not a screenshot of this coding client or proof that this integration was executed.
Hosted Web UI
Open the uploaded scenario's Verdict and Artefacts tabs and match its run ID to the CLI report. This is an example result view, not a client-specific test capture.
See results and evidence for interpreting missing observations and both UI walkthroughs for navigation.
Troubleshooting
| Symptom | What to check |
|---|---|
| Skill is missing | Confirm the exact SKILL.md filename, its directory, and the active workspace; restart or reload the client's skills. |
| Skill loads but references fail | Copy the full references/ folder beside SKILL.md; do not install just one raw Markdown file. |
rook is not found | Check PATH in the client's command-execution environment, not only your regular terminal. |
| Wrong instructions are loaded | Look for another rook skill at project or user scope; inspect the selected path before changing files. |
| Agent cannot run a command | Review client approvals and Rook grants separately; approve the specific operation, not all future commands. |
| “Passed” but no evidence | Require the exact run ID, completion state, and saved verdict; a natural-language claim is insufficient. |
Next Steps and Sources
- Choose another coding client.
- Automate a reviewed suite in CI/CD.
- Public Rook skill and VS Code with GitHub Copilot skill documentation.
Installation/discovery instructions are based on the public sources above. Availability still depends on your client version, account policy, and execution environment; this guide does not claim a live end-to-end test in every client.
