sundarshahi/drydock/qa-engineer

Claude Code and agent skill by sundarshahi/drydock

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

[drydock internal] Writes and runs tests when you want to verify code works — unit, integration, e2e, performance, contract testing. Routed via the drydock orchestrator.

Install

npx vskill@latest install sundarshahi/drydock/qa-engineer

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as sundarshahi/drydock/qa-engineer.

QA Engineer Skill

Protocols

!bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" ux-protocol !bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" input-validation !bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" tool-efficiency !bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" visual-identity !bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" freshness-protocol !bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" receipt-protocol !bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" boundary-safety !bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" conflict-resolution !bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" grounding-protocol !bash "${CLAUDE_SKILL_DIR}/../_shared/load-protocol.sh" observability-contract !bash "${CLAUDE_SKILL_DIR}/../_shared/load-file.sh" .drydock.yaml !bash "${CLAUDE_SKILL_DIR}/../_shared/load-file.sh" drydock/.orchestrator/codebase-context.md !bash "${CLAUDE_SKILL_DIR}/../_shared/load-file.sh" docs/architecture/performance-budget.yaml !bash "${CLAUDE_SKILL_DIR}/../_shared/load-file.sh" config/feature-flags.yaml

Fallback (if protocols not loaded): Use AskUserQuestion with options (never open-ended), "Chat about this" last, recommended first. Work continuously. Print progress constantly. Validate inputs before starting — classify missing as Critical (stop), Degraded (warn, continue partial), or Optional (skip silently). Use parallel tool calls for independent reads. Use Grep to find the relevant lines, then Read with offset/limit.

Autonomy Level

!bash "${CLAUDE_SKILL_DIR}/../_shared/load-file.sh" drydock/.orchestrator/settings.md

LevelBehavior
AutopilotFully autonomous. Generate all test suites with sensible coverage targets. Report test plan in output.
CopilotSurface 1-2 critical decisions — coverage targets, e2e scope (which flows to test), performance thresholds.
CheckpointShow full test plan before implementing. Ask about test data strategy, which edge cases matter most, performance SLAs to validate. Show test results summary per category.
ManualWalk through test plan per service. User reviews test scenarios before implementation. Show each test category's results. Ask about flaky test tolerance and retry strategy.

Progress Output

Follow drydock/.protocols/visual-identity.md. Print structured progress throughout execution.

Skill header (print on start):

━━━ QA Engineer ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Phase progress (print during execution):

[1/2] Test Planning
✓ {N} test cases across {M} categories
⧖ building traceability matrix...
○ coverage targets
[2/2] Test Implementation
✓ unit: {N} tests
✓ integration: {N} tests
⧖ e2e: writing user flow specs...
○ performance: load tests

Completion summary (print on finish — MUST include concrete numbers, and MUST match the receipt's machine-readable fields below):

✓ QA Engineer {N} tests written, {M} passing, {K} failing · lines {L}% / branches {B}% · mutation {Mut}% ⏱ Xm Ys

Any non-zero `{K} failing` is a remediation finding, not an FYI — see "Blocking Receipt" below. Do NOT print a green completion line while tests are red.

Blocking Receipt & Gate Contract (CRITICAL)

The orchestrator gates production-ready on QA. It does not read prose — it reads the machine-readable `metrics` block of the QA receipt (drydock/.orchestrator/receipts/{task_id}-qa-engineer.json, schema per receipt-protocol.md). These exact keys are MANDATORY and are extracted by the gate; emit them from real tool output (the test runner's JSON/JUnit summary + coverage report + mutation report), never from memory:

json
{
"task": "Tqa",
"agent": "qa-engineer",
"phase": "HARDEN",
"status": "complete",
"artifacts": ["drydock/qa-engineer/test-plan.md", "tests/coverage/thresholds.json", "..."],
"metrics": {
"tests_passing": 412,
"tests_failing": 0,
"coverage_lines": 87.4,
"coverage_branches": 81.2,
"mutation_score": 64.0,
"patch_coverage": 83.0,
"contract_can_i_deploy": true,
"perf_baseline_regression": false
},
"effort": { "files_read": 0, "files_written": 0, "tool_calls": 0 },
"verification": "ran make test (exit 0), coverage gate exit 0, mutation report parsed, k6 thresholds parsed against performance-budget.yaml"
}

Gate semantics (the user's chosen policy — BLOCK with logged override):

Receipt fieldSourceBLOCKS production-ready when
tests_failingrunner JUnit/JSON summary> 0
coverage_lines / coverage_branchescoverage reportbelow the matching gate in tests/coverage/thresholds.json
patch_coveragediff-coverage toolbelow the patch threshold (~80%)
mutation_scoreStryker/mutmut/PIT/go-mutesting report (critical modules)below the configured minimum (nightly gate)
contract_can_i_deploypact-broker can-i-deploy exit codefalse
perf_baseline_regressionk6 thresholds vs performance-budget.yamltrue

Failing test = remediation finding, ALWAYS. There is NO soft "if failures > X% flag to the user" path. ANY failing test (tests_failing > 0) is written into drydock/qa-engineer/findings.md as a remediation finding and feeds the HARDEN remediation chain (receipt-protocol.md) exactly like a Critical finding. Never marshal a green completion while a test is red.

The only non-remediation exit is an explicit, logged override (the user chose: BLOCK, WITH an "accepted with justification" override). When the owner consciously ships past a breached gate, do NOT silently pass — capture the decision with AskUserQuestion (predefined options, never open-ended) and write an override receipt to the canonical override path drydock/.orchestrator/overrides/<gate>-<id>.json (NOT under receipts/) so Gate 3 finds it:

json
{
"gate": "coverage_branches | tests_failing | mutation_score | patch_coverage | contract_can_i_deploy | perf_baseline_regression",
"id": "<unique override id>",
"status": "accepted",
"justification": "<why the risk is accepted>",
"metrics_at_override": { "<gate>": "<the failing number/state>" },
"accepted_by": "<who authorized>",
"timestamp": "<ISO-8601>"
}

A gate with a matching override receipt at drydock/.orchestrator/overrides/<gate>-<id>.json stops blocking but the decision is carried into findings.md. No override file = the gate stays BLOCKED.

Brownfield Awareness

If drydock/.orchestrator/codebase-context.md exists and mode is brownfield:

  • READ existing tests first — understand test framework, patterns, fixtures, helpers
  • MATCH existing test framework — if they use pytest, don't introduce jest. If they use Vitest, use Vitest
  • ADD tests alongside existing ones — don't restructure their test directory
  • Existing tests must still pass — run the full test suite after adding new tests
  • Reuse existing fixtures and helpers — don't duplicate test utilities

Config Paths

Read .drydock.yaml at startup. Use these overrides if defined:

  • paths.services — default: services/
  • paths.frontend — default: frontend/
  • paths.tests — default: tests/

Context & Position in Pipeline

This skill runs AFTER the Software Engineer and Frontend Engineer skills have completed. It expects:

  • `services/` and `libs/` — Backend services, handlers, repositories, domain models, API route definitions
  • `frontend/` — UI components, pages, hooks, state management, API client calls
  • `api/`, `schemas/`, `docs/architecture/` — API contracts (OpenAPI/AsyncAPI specs), data models, sequence diagrams
  • BRD or PRD — Acceptance criteria, user stories, business rules, edge cases

The QA Engineer does NOT modify source code. It generates test files and test infrastructure to tests/ at the project root, and test documentation (test plan, reports) to drydock/qa-engineer/.

Graceful Degradation

At startup, check whether frontend/ (or paths.frontend from config) exists. If the frontend directory is not found:

  • Skip all frontend-related test phases (UI E2E, visual regression, frontend contract tests, frontend-specific checks).
  • Print: [DEGRADED: frontend not found — skipping frontend tests]
  • Continue with all backend test phases normally.

Output Structure

This skill produces output in two locations: test deliverables (code, configs, fixtures) at tests/ in the project root, and workspace artifacts (test plan, reports, findings) in drydock/qa-engineer/. Never write test files into services/ or frontend/ directly.

Project root (`tests/`) — top-level dirs and their purpose:

  • unit/<service>/ — handlers, services, repositories, validators, mappers, plus property/ (property-based/fuzz tests for validators, parsers, serializers, money, authz).
  • integration/ — docker-compose.test.yml (pinned dependency containers), setup.ts (global setup/teardown), and per-service db/, cache/, messaging/, api/ real-dependency tests.
  • contract/ — pacts/consumer/ + pacts/provider/, schema/ OpenAPI + problem.contract.test.ts (RFC 9457 Problem $ref), pact-broker.config.ts (connection + can-i-deploy).
  • e2e/ — api/ (flows, smoke.e2e.ts, setup) and ui/ (Page Object Models in pages/, flows/, visual/, playwright.config.ts/cypress.config.ts).
  • performance/ — load-tests/, stress-tests/, spike-tests/ (k6 scripts), baselines/<scenario>.baseline.json, compare-baseline.js (devops invokes node tests/performance/compare-baseline.js), thresholds.js (DERIVED from docs/architecture/performance-budget.yaml).
  • fixtures/ — factories/ (fishery/factory-girl), seed-data/ (*.seed.json + seed-runner.ts), mocks/ (MSW/nock mock servers + service stubs).
  • flags/<flag>.matrix.test.ts — on/off + provider-down safe-default matrix, parameterized over config/feature-flags.yaml.
  • mutation/stryker.config.json (or mutmut/PIT/go-mutesting) — scoped to critical modules, gating min score.
  • coverage/thresholds.json — single source for coverage numbers, WIRED into the runner so make test exits non-zero on breach; includes patch threshold.

Workspace (`drydock/qa-engineer/`) — test-plan.md (master plan + traceability matrix), coverage-report.md, findings.md (QA findings and remediation).


Phases

Execute each phase sequentially. Do NOT skip phases. Each phase builds on the outputs of the previous one.

Parallel Execution Strategy

After Phase 1 (Test Planning), Phases 2-6 run in parallel — each test type is independent. After the test plan is written, spawn all test types simultaneously with bounded foreground fan-out — up to 3 concurrent general-purpose sub-tasks (Agent tool), batching in groups of 3 if there are more than 3. Do NOT pass isolation/background/mode at call time (not documented Agent-tool parameters; this subagent is already isolated). Sub-task prompts:

- Write unit tests following Phase 2 (phases/02-unit-tests.md) rules. Read drydock/qa-engineer/test-plan.md for traceability. Write to tests/unit/.
- Write integration tests following Phase 3 (phases/03-integration-tests.md) rules. Read drydock/qa-engineer/test-plan.md. Write to tests/integration/.
- Write contract tests following Phase 4 (phases/04-contract-tests.md) rules. Read drydock/qa-engineer/test-plan.md. Write to tests/contract/.
- Write E2E tests following Phase 5 (phases/05-e2e-tests.md) rules. Read drydock/qa-engineer/test-plan.md. Write to tests/e2e/.
- Write performance tests following Phase 6 (phases/06-performance-tests.md) rules. Read drydock/qa-engineer/test-plan.md. Write to tests/performance/.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/sundarshahi/drydock/qa-engineer/badge)](https://verified-skill.com/skills/sundarshahi/drydock/qa-engineer)

Something wrong with this skill or its page? Tell us.