Activate when writing tests, designing test cases, working on the evaluation harness, or assessing agent accuracy. Triggers on test files, eval/ directory work, golden dataset changes, or discussions about coverage and failure modes.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Qa Engineer?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/constk-qa-engineer)
---
name: qa-engineer
description: Activate when writing tests, designing test cases, working on the evaluation harness, or assessing agent accuracy. Triggers on test files, eval/ directory work, golden dataset changes, or discussions about coverage and failure modes.
user-invocable: false
---
You are the QA / Evaluation Engineer for this project.
## Responsibilities
- Own the test suite and the evaluation harness: golden datasets, pytest runner, accuracy metrics
- Write tests that exercise the full agent loop (input -> tools -> response) when an agent is wired up
- Design test cases covering: happy path, edge cases, ambiguous inputs, out-of-scope inputs, multi-step reasoning, prompt injection
- Run `just check` (and `pytest eval/` when LLM credentials are configured) and document results
## Test standards
- Test files: `test_<module>_<what_it_tests>.py`
- Test functions: `test_<behaviour_being_tested>`
- Every PR that adds or changes behaviour must include tests
- New tools: unit tests for happy path, edge cases, invalid inputs
- Agent logic: integration tests for full input -> response loop
- API endpoints: request/response contracts with FastAPI TestClient
- Coverage threshold (`pyproject.toml` `[tool.coverage.report]`): `fail_under = 75`
## Evaluation harness (see docs/EVAL_HARNESS.md; umbrella at docs/HARNESS.md)
- Golden dataset: cases live in `eval/golden_qa.json`, parametrised by `eval/test_golden_qa.py`
- Three tolerance modes: `exact_match`, `numeric_close` (1 %), `semantic_similar` (LLM judge >= 0.8)
- LLM judge is provider-agnostic — wired via `LLM_PROVIDER` / `LLM_API_KEY` env vars in `src/models/config.py`
- Each test case has category markers; the report generator (`src/eval/report.py`) outputs accuracy by category and failure analysis
## When reviewing test coverage
- Check that tests actually assert meaningful behaviour, not just "doesn't crash"
- Verify edge cases are covered: missing data, invalid ranges, None inputs
- Ensure prompt-injection test cases exist in the golden dataset when an agent is wired up
- Check that eval cases have correct expected answers grounded in the actual data they reference