/harness-kit:qa-orchestratorfrom harness-kit
Coordinates acceptance testing via the Harness Kit `hrns qa` CLI. Plans and runs evidence-backed tests against running applications, generates reports, and summarizes results.
Ships in harness-kit. 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.
Read when SKILL.md points to them; scripts run unread.
<skill_context>
Coordinate acceptance testing through hrns qa. Keep user interaction and permission-gated execution in the main agent. Delegate discovery, scenario design, and verification to sub-agents.
</skill_context>
<when_to_use>
Use this skill when the user wants to:
Do not use this skill for unit tests, integration tests without a running public interface, static code review, load testing, native desktop testing, or formal security certification.
</when_to_use>
<command_selection>
Use scripts/safe_hrns_qa.py to preview and execute every
hrns qa command. The script passes an argument array with shell=False, restricts
QA actions, rejects credential flags, requires --report for qa run, and rejects
shell metacharacters when Windows resolves hrns to a batch launcher.
First run without --execute and show its normalized command during CONFIRMATION.
After explicit confirmation, repeat identical arguments with --execute.
Pass credential profile names only through --auth; never pass credential values.
For a source checkout, use --executable node --prefix-arg dist/cli/run.js.
A successful preview does not prove target readiness or descendant-process access.
Use hrns qa run for a new scope, new scenarios, or a new target execution. Always add --report in this skill.
Use actionless hrns qa only for the CLI's interactive scope and saved-plan flow. Prefer explicit qa run after this skill collects inputs.
Use hrns qa report --run <run-id> only to regenerate a report from an existing completed run. Do not execute scenarios again.
Use hrns qa exploratory only to execute the latest version of every saved plan. It does not create plans or append adaptive scenarios.
Use hrns qa auth only to create one named authentication profile through the interactive form. Require confirmation before writing it.
Resolve the runner before confirmation and always pass --agent <runner> to executable QA and report commands. When Codex is controlling the run, use --agent codex-cli. Never rely on the CLI's claude-cli default.
</command_selection>
<runner_selection>
Always select one compatible runner and pass it through --agent. Supported values:
codex-cli — Codex CLI (codex);claude-cli — Claude Code CLI (claude);copilot-cli — GitHub Copilot CLI (copilot);cursor-cli — Cursor CLI (agent);antigravity-cli — Antigravity CLI (agy);kiro-cli — Kiro CLI (kiro-cli);opencode-cli — OpenCode CLI (opencode);Selection order:
codex-cli, Claude Code uses claude-cli, Copilot uses copilot-cli, Cursor uses cursor-cli, Antigravity uses antigravity-cli, Kiro uses kiro-cli, and OpenCode uses opencode-cli.A CLI runner is compatible only when its exact executable resolves, its version probe succeeds, authentication is ready, and the execution context permits descendant processes. A package-based runner requires its package, runtime, and environment authentication. Do not display secret values. If compatibility cannot be proved, enter BLOCKED or request a runner choice; never fall back to claude-cli.
QA phase invocations intentionally use agent: ''. --agent selects the outer runner; it must not select a provider-specific named sub-agent.
</runner_selection>
<command_examples>
New API acceptance run:
hrns qa run --report --project . --scope "Validate health and order creation endpoints" --target "http://127.0.0.1:8080" --profile api --agent codex-cli
Use when testing HTTP status, headers, text, or JSON through public API endpoints.
Browser journey with mandatory scenarios:
hrns qa run --report --project "../store" --scope "Validate guest checkout" --scenario "A guest adds an available product to the cart" --scenario "A declined card shows a recoverable error without creating an order" --target "http://127.0.0.1:3000" --profile web --agent codex-cli
Use when clicks, forms, navigation, keyboard input, or visible assertions need a real browser.
CLI acceptance run:
hrns qa run --report --project "../tool" --scope "Validate help, version, and invalid command behavior" --target "../tool" --profile cli --agent codex-cli
Use when testing executable exit codes, stdout, and stderr. Target must be the CLI working directory.
Authenticated run with explicit runner settings:
hrns qa run --report --project . --scope "Validate authenticated account access" --target "https://test.example.com" --profile api --auth qa-user --agent codex-cli --model gpt-5.6-luna --effort high
Use when the user selected a named .harness-kit/auth.json profile and explicit agent settings. Never place credential values in the command.
Regenerate a completed run report:
hrns qa report --run "checkout-20260912011530-a1b2c3" --agent codex-cli --model gpt-5.6-luna --effort medium
Use when execution already completed but its report is missing or must be regenerated.
Execute all latest saved plans:
hrns qa exploratory --project . --target "http://127.0.0.1:3000" --agent codex-cli
Use for broad regression across saved plans. Do not add --profile, --scope, --scenario, or --report.
Create an authentication profile:
hrns qa auth --project .
Use only when QA needs a missing named profile. Prefer environment-variable storage in the interactive form.
Replace hrns with the confirmed executable form when using the source checkout without a global installation.
</command_examples>
<operating_boundaries>
--auth profile.hrns qa does not start external applications, APIs, databases, or other project services. Confirm target readiness. For a root index.html browser test, it may start and stop a temporary in-process static server.hrns alone does not prove this.</operating_boundaries>
<phase_flow>
INTAKE -> DISCOVERY -> SCENARIO_DESIGN -> PREFLIGHT -> CONFIRMATION -> EXECUTION -> VERIFICATION -> SUMMARY -> COMPLETE
DISCOVERY and SCENARIO_DESIGN may run in parallel after INTAKE.WAITING_USER.BLOCKED unless user confirms a proposed remedy.CONFIRMATION to EXECUTION.VERIFICATION when persisted state or evidence exists.</phase_flow>
<subagent_prompt_contract>
Build every sub-agent prompt with these tags:
<role>Single assigned responsibility.</role>
<context>Confirmed project and QA context needed for this task.</context>
<inputs>Exact paths, scope, target, profile, scenarios, and approved actions.</inputs>
<constraints>Authorization, read/write limits, secret handling, and stop conditions.</constraints>
<task>Concrete work for this phase only.</task>
<output_contract>Required concise, evidence-backed result.</output_contract>
Never include resolved secrets. Tell every sub-agent it is not alone in the codebase and must not revert others' work.
</subagent_prompt_contract>
<execution_phases>
Collect missing inputs. Reuse information already supplied.
Required:
index.html browser test;Optional:
api, web, web-game, mobile-web, accessibility, mcp, cli, websocket, security, or full; omit for automatic inference;codex-cli and show that mapping before confirmation. Never omit it and fall back to claude-cli;.harness-kit/auth.json;If mutation safety remains unknown, enter WAITING_USER. Do not continue.
Output: normalized input set plus unresolved questions.
Spawn project investigator. Read AGENTS.md, docs/.digest.md, docs/.graph.json, routed QA/product documentation, and public interface contracts. Check target/profile compatibility, expected behavior, and prerequisites. Do not install, start, or modify anything.
Read docs/business/intent.md when present. Use the graph or a targeted lookup in docs/business/ to read business policies or success criteria relevant to scenario selection. Flag conflicts with the approved QA scope before changing acceptance criteria.
Output: authoritative routes, methods, payloads, assertions, constraints, and path:line evidence.
Spawn separate scenario designer. Convert exact scope into minimal executable acceptance scenarios. Preserve every mandatory user scenario. Add only material functional, negative, boundary, security, accessibility, resilience, or state-transition coverage.
Each scenario must describe one observable behavior, expected result, supported driver, and target boundary. Exclude duplicates, speculative risks, implementation details, and load tests.
Do not invent routes, methods, payloads, credentials, or statuses. Mark unresolved details for user confirmation.
For the mcp profile, use tools/list to discover tool names and schemas, and tools/call with the exact public tool name and inputSchema keys to test behavior. Do not model protocol setup as a product scenario: the MCP driver handles Streamable HTTP initialization/session negotiation or stateless request metadata. Keep tool-level expected results separate from transport expectations.
Output: numbered scenarios with category, expected observation, and source or user basis.
Spawn read-only preflight investigator. Determine:
hrns executable and version;web, web-game, mobile-web, accessibility, and browser portions of full;curl availability for api and security;hrns to create one harmless descendant process.A direct <runner> --version command launched by the outer tool is not a descendant-process capability test. Prefer an existing diagnostic that spawns a child from inside the CLI. When none exists and Node.js is installed, use a short Node process that spawns process.execPath --version, reports synchronous throws and error events, then exits. Do not invoke the selected agent for this capability probe because that may create a session or incur usage.
Treat EPERM or EACCES from the nested probe as a process-permission blocker. This is not evidence that hrns, the runner, or the generated command is invalid. If the execution tool supports an explicit approval path for descendant processes, include that exact permission requirement in confirmation. Otherwise prepare the exact command for external-terminal execution.
When project dependencies are missing, propose npm install using declared package manager. Do not infer another package manager.
When hrns is unavailable, consult its installation documentation and propose one verified route for the current environment.
Use npx @romabeckman/hrns only after confirming publication and user approval. Propose npx playwright install chromium only when Chromium is missing.
Output: selected hrns and runner executables, prerequisite status, descendant-process capability, and exact proposed mutations or permission requirements.
Reconcile discovery, scenarios, and preflight. Show one concise confirmation block containing:
Auto when omitted;default when omitted;none;Ask for explicit confirmation. Any behavioral revision requires a new complete confirmation. Scenario approval alone does not authorize installation or execution.
Output: CONFIRMED, REVISE, or WAITING_USER.
Enter only after CONFIRMED. Execute from the main agent so the confirmed command, working directory, environment, and permission request remain unchanged. Do not edit application source or broaden scenarios.
Run confirmed prerequisites. Then execute:
<confirmed-executable> qa run --report --project <project> --scope <scope> [--scenario <scenario>]... [--target <target>] [--profile <profile>] --agent <runner> [--model <model>] [--effort <level>] [--auth <profile>]
Invoke it through the safety script:
python <skill-directory>/scripts/safe_hrns_qa.py --execute --cwd <working-directory> -- qa run --report ...
Pass options as distinct process arguments when supported. Otherwise use current shell's safe quoting. Omit unspecified flags. Never pass default, auto, or none placeholders.
Use the execution tool's approval mechanism when preflight found that descendant-process permission is required. QA confirmation does not itself grant broader process or filesystem permission; obtain that approval before launch.
Never silently retry with broader permissions. If execution unexpectedly fails with spawn EPERM or spawn EACCES, stop and classify it as a process-permission failure. Do not change runner, target, profile, scope, scenarios, shell, or quoting. Offer either:
Allow one retry only for a clearly transient tool failure using identical confirmed inputs and the same approved permission context. Stop on cancellation.
Output: command exit status, run ID, artifact paths, and shortest decisive errors.
Spawn verification sub-agent. Read new artifacts under <project>/docs/qa/runs/<run-id>/. Prefer report.json, cross-check state.json, and use REPORT.md for readable detail. Inspect only evidence needed to explain non-passing results. Never expose secrets or dump raw evidence.
For MCP failures, inspect the recorded request/response evidence and determine whether the intended tools/call reached a handler. Treat protocol/session errors such as -32600 missing session ID as transport failures when evidence shows the handler was not reached; group repeated failures with that shared cause instead of reporting one tool defect per scenario or acceptance criterion. Do not use successful calls through a separate connected MCP client as proof that the hrns qa HTTP run passed.
Output: reconciled verdict, scenario counts, non-passing reasons, bugs, errors, gaps, warnings, and artifact paths.
Return concise execution summary containing:
PASS, FAIL, BLOCKED, or INCONCLUSIVE;PASSED, FAILED, BLOCKED, and INCONCLUSIVE;For a process failure before a run ID exists, report the failing executable and OS error separately from the QA verdict. spawn EPERM or spawn EACCES supports an actionable next step: run the identical command in an approved descendant-process context or external terminal. Do not return Next action: none for this case.
Link local artifacts when supported. Distinguish process failure from QA verdict. If no report exists, summarize terminal output and persisted state.json, state that verified reporting was unavailable, and do not invent missing results.
Output: user-facing summary using <communication_protocol>, then COMPLETE.
</execution_phases>
<communication_protocol>
Emit one compact status block when each phase starts or reaches a decision. Keep command output concise. Do not dump prompts, secrets, full logs, or raw evidence.
📋 Phase {N}/8: {Phase Name} (qa-orchestrator — {owner})
✅ / ⚠️ / ❌ {verified outcome, blocker, or next action}
Use indicators consistently:
✅ phase completed with verified output;⚠️ user input, confirmation, prerequisite, or non-fatal warning requires attention;❌ phase failed or cannot continue safely.During EXECUTION, relay only material hrns qa milestones: runtime readiness, phase changes, scenario results, verdict, and artifact creation. Preserve exact error text only when needed to explain failure.
📋 Phase 1/8: Intake (qa-orchestrator — main-agent)
✅ Scope, target, profile, runner, model, effort, and safety boundaries collected
📋 Phase 2/8: Discovery (qa-orchestrator — project-investigator)
✅ Public contracts and project constraints identified with path:line evidence
📋 Phase 3/8: Scenario Design (qa-orchestrator — scenario-designer)
✅ 4 executable scenarios prepared; no unresolved contract assumptions
📋 Phase 4/8: Preflight (qa-orchestrator — preflight-investigator)
⚠️ Chromium missing — installation included in confirmation
📋 Phase 5/8: Confirmation (qa-orchestrator — main-agent)
⚠️ Awaiting explicit approval for scenarios, installation, and exact command
📋 Phase 5/8: Confirmation (qa-orchestrator — main-agent)
✅ Complete QA run confirmed
📋 Phase 6/8: Execution (qa-orchestrator — main-agent)
✅ Command completed; runtime verdict FAIL; run ID qa-20260912-a1b2c3
📋 Phase 7/8: Verification (qa-orchestrator — verification-agent)
✅ report.json reconciled with state.json and relevant evidence
📋 Phase 8/8: Summary (qa-orchestrator — main-agent)
✅ 3 passed, 1 failed, 0 blocked, 0 inconclusive — report linked
After phase status, return this concise structure:
QA verdict: {PASS | FAIL | BLOCKED | INCONCLUSIVE}
Run: {run-id}
Target: {target}
Profile: {profile}
Scenarios: {passed} passed, {failed} failed, {blocked} blocked, {inconclusive} inconclusive
Findings: {confirmed bugs, errors, gaps, or "none"}
Report: {path or "unavailable"}
Next action: {evidence-supported action or "none"}
Never convert FAIL, BLOCKED, or INCONCLUSIVE into a successful process claim. Report command exit status separately when it differs from QA verdict.
</communication_protocol>
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub romabeckman/harness-kit --plugin harness-kit14 skills in this plugin
/adversarial-qaAutonomous Adversarial QA agent. Reads machine-readable specs and code to execute edge-case and security testing, returning a JSON verdict./autonomous-orchestratorSovereign loop manager. Handles file initialization, feature lifecycle tracking, and recursive TDD-Validation-Optimization cycles. Strictly delegates all technical tasks to sub-agents./dream-evaluatorIndependently evaluate a named Project Dreaming hypothesis against a separate task and submit verified guidance to Project Memory. Invoke explicitly with the owning project and hypothesis ID./harness-evaluatorHarness performance evaluator. Scores recorded execution traces, compares skill chain versions within comparable task contexts, and reports Pareto frontiers and evidence for improvement./harness-tracerExecution trace recorder. Captures what happened during a skill session and persists structured logs to docs/harness-history/traces/. Enables retrospective analysis and harness optimization via harness-evaluator and meta-harness./meta-harnessMeta-Harness proposer. Uses prior skill versions, scores, and execution evidence to propose a targeted candidate and issue a JSON evaluation or promotion decision.Other plugins' skills for the same job