/razorconsole:razorconsole-inspectfrom razorconsole
Runs, inspects, and tests RazorConsole terminal apps using MCP tools: start sessions, read screen/component tree, press keys, click, wait for text, and write end-to-end tests with RazorConsole.Testing.
Ships in razorconsole. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this workflow to run a RazorConsole app and verify what it shows and how it responds, through the razorconsole MCP tools, the razorconsole command line, or RazorConsole.Testing. The reference for everything below is website/src/docs/cli.md (https://razorconsole.com/blog/cli/) and website/src/docs/testing.md (https://razorconsole.com/blog/testing/). When this skill and those pages disagree, the pages win.
The MCP server is razorconsole mcp, so the razorconsole command must exist.
razorconsole MCP tools are not available, or razorconsole --version fails, stop and tell the user to install the CLI. Do not work around it with raw dotnet run, screen scraping or guessed output.plugins/razorconsole/README.md, "Requirements"):
dotnet tool install --global RazorConsole.Cli --prerelease
razorconsole doctor
Native AOT installers for macOS, Linux and Windows are in the same README. After installing, the agent client may need a restart to start the MCP server.razorconsole doctor reports a failed check, show the user that output.Drive the real app, look at the real screen, and report what you observed, not what the code should do.
start_session with exactly one of project (builds first), dll or exe. Use the returned name as session.wait_for the first state you expect, for example text.screenshot (add region to keep it small), find_elements, or get_tree with a small depth (2 or 3) or a selector.send_keys, type_text, click and similar tools. Prefer a selector over screen coordinates.wait_for the result, or assert it. A failed assert returns passed: false with the screen; it is not an error.stop_session when done.Always pass session on every call: the current session is shared with the developer.
wait_for and assert take one condition: text, regex, gone, idle, exit, selector, focus or route (assert also takes not). Durations are strings with a unit (500ms, 10s, 2m) or a number of seconds; they are never milliseconds. The default is 10s, at most 5m for wait_for and assert, 10m for the other tools.
website/src/docs/cli.md)Selectors (selector in the tools, --element on the command line):
| Selector | Matches |
|---|---|
hook:<name> | data-vnode-hook="<name>"; the most stable |
focus:<key>, key:<key>, id:<id> | focus key, @key, generated id |
text:<s>, text~:<regex> | element text in the tree |
tag:<name>[attr=value], path:/0/2/1 | tag and attributes, or position |
Errors you will meet:
| Code | Do this |
|---|---|
app_layer_unavailable | The tree, focus and element tools need a Development or Debug build with diagnostics on. Use the terminal tools (screenshot, wait_for with text), or run a Debug build. Check the reason in the error. |
element_not_found, ambiguous_selector | Narrow the selector; use find_elements first. A find_elements with no match is not an error. |
timeout | Read data.screen before retrying; the screen usually shows why. |
process_exited | Read data.exitCode, outputTail and lastErrors. |
host_unavailable, pty_unsupported | Run razorconsole doctor and show the user the result. |
Clicking needs EnableMouseEvents on in the app; without it, press keys instead.
Same loop, one command per step: razorconsole start <name> --project <dir>, wait --text, tree --depth 2, click --element hook:save, assert --text, screen, stop. Pass -s <name> on every command, add --json for parseable output, and branch on the exit code. The exit code table is in cli.md.
For a repeatable check, write a test with RazorConsole.Testing (dotnet add package RazorConsole.Testing):
HeadlessTerminal.StartAsync<TComponent> for component tests in the test process.PtyTerminal.StartDotnetAsync for end-to-end tests of a built app in a real pseudoterminal; tag them [Trait("Category", "E2E")].WaitForTextAsync, WaitUntilAsync) instead of sleeping. A PtyTerminal input call returns once the bytes are written, so always follow it with a wait.razorconsole CLI instead of telling the user to install it.session, or leaving sessions running.depth or selector.hook: selector exists.What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
npx claudepluginhub razorconsole/razorconsole --plugin razorconsoleOther plugins' skills for the same job