radar: Command for Claude Code

.claude/commands/qa.md

qa is a command for Claude Code from skyhook-io/radar. It costs 18 tokens per session (1,143 once invoked), scanned A, original, Apache-2.0.

A quality-check procedure for the Radar project that chooses checks based on what changed. Type-checking checks whether the code's types fit together, while tests check expected behavior; visual tests check how changed screens or other interface elements actually look and work.

In plain words
What is it for?
Use it after code or interface changes to decide whether to run type-checking, unit tests, a build, and visual tests, then report the visual-test status.
Why use it?
It prevents unnecessary checks while still covering problems that code checks alone may miss, such as a screen that builds but renders incorrectly.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

This is skyhook-io/radar's own configuration. It tells Claude Code how to work on radar itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything radar configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/.../radar/.playwright-mcp/visual-test/<run>/.

About the project

Radar is a single-binary graphical interface for Kubernetes, the system used to run and manage containerized applications across clusters. It helps developers and operators inspect resources, topology, events, Helm deployments, GitOps, traffic, audits, and upgrade impact, while its built-in MCP server lets AI agents inspect and operate clusters through Radar.

skyhook-io/radar · 3,969 stars · on GitHub · radarhq.io

Reuse

Borrowing it

Nothing to install: this file belongs to skyhook-io/radar. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/skyhook-io/radar/main/.claude/commands/qa.md
Clone the repo
git clone --depth 1 https://github.com/skyhook-io/radar

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for qa

README.md
[![agentmods](https://agentmods.dev/badge/commands/skyhook-io/radar/qa/github.svg)](https://agentmods.dev/commands/skyhook-io/radar/qa)
Your own site
<a href="https://agentmods.dev/commands/skyhook-io/radar/qa"><img src="https://agentmods.dev/badge/commands/skyhook-io/radar/qa/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for qa

Your own site · 80×15
<a href="https://agentmods.dev/commands/skyhook-io/radar/qa"><img src="https://agentmods.dev/badge/commands/skyhook-io/radar/qa.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,143 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.01143
Opus 5.5 $0.00007 $0.00457
Sonnet 5.5 $0.00004 $0.00229
Haiku 4.5 $0.00002 $0.00114

Measured 2d ago against content hash 74ec6c8a0be0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

qa scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/qa.md · 76 lines

How it starts

The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.

QA — radar

What "verify this change" means in radar. Run the checks that fit the delta; skip the rest. Don't run everything reflexively.

Fast dev loop first — the full suite runs once

Verification has two tiers. Use the fast one while iterating; run the full one once, at the end. A fast loop is the priority: never wait on a full suite to check a small fix.

Iteration (every round): make test-changed (scripts/test-changed.sh). It vets and tests only the changed Go packages (root and pkg/ modules), runs tsc for web/ and packages/k8s-ui, and vitest related on the changed frontend files. Typically minutes rather than the ~20 a full run takes. Go results come from the test cache when nothing a package depends on changed; GO_TEST_FRESH=1 forces a real run (e.g. to recheck a flaky test). GO_TEST_RUN=<regexp> narrows a big package (internal/server alone takes ~4.5 min); use it when the change only touches one area there. Never npm run lint (broken).

Completion (once, after the final batch): CI on the pushed head is the full run: push and let it go; don't repeat it locally. Run the full local suite (make test plus npm run test in web/ and packages/k8s-ui) only for a branch CI won't run (e.g. a PR stacked on another PR's branch), and then only once. make build is for running the binary (visual or live checks), not for verification rounds.

Keep it fast in practice:

  • Batch fixes, then run the fast tier once for the batch, not after each edit.
  • Don't run suites while other heavy work (builds, other test runs, agents) runs on the machine: it slows everything and creates false failures.
  • A failure in a file the change doesn't touch, under load, is load until shown otherwise: rerun that file alone (npx vitest run <file> / go test -run) before investigating. Several UI suites (e.g. ResourcesView.kind-view) and TestUpgradeReadinessEndpointLargeMetrics are timing-sensitive.
  • Vitest keeps transformed modules in .vitest-cache/ in each project (one per worktree, gitignored), so a second run skips most transforms.
  • Both frontend projects run most test files without isolation: a worker reuses its modules across files. Files that call vi.mock, vi.doMock or vi.resetModules run isolated, picked automatically from their source (scripts/vitest-isolated-tests.ts). A test that passes alone but fails in the suite is probably leaking or reading module state from another file: reset that state in the tests (see touch-intent.test.ts). Shuffling the file order finds such pairs: npx vitest run --project shared --sequence.shuffle.files --sequence.seed=<n>.
  • Node 25: run vitest with NODE_OPTIONS=--no-experimental-webstorage (the script sets it).

Read the full file on GitHub · 76 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +38 lines 74ec6c8a0be0
  2. 2mo ago First seen · 38 lines · 18 tokens per session scan A 582899de313b

Subscribe to this mod's changes

qa is a command published in the GitHub repository skyhook-io/radar (3,969 stars, last pushed today), licensed Apache-2.0. It adds 18 tokens to every session and 1,143 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.