AGENT SKILL

qe-calibrate

Measures how far the qestack judge agrees with human reviewers (agreement and Cohen's kappa) and proposes rubric fixes for the disagreements. Use each sprint, or when the user doubts the judge.

License 许可
Apache-2.0
所属仓库
quark-sri/qestack
最近更新
2026-11-14
Stars
★ 1
Forks
0

01 前言 Front Matter

name
qe-calibrate
license
Apache-2.0
description
Measures how far the qestack judge agrees with human reviewers (agreement and Cohen's kappa) and proposes rubric fixes for the disagreements. Use each sprint, or when the user doubts the judge.
argument-hint
[feature, for example 003-order-discount]
compatibility
Needs the qestack engine (Python 3.11+), git and a shell. Full guard only in Claude Code.

03 SKILL.md 正文

qe-calibrate

The judge is a model. It can be wrong. Calibration shows how much to trust it.

Steps

  1. Feature. The feature is $ARGUMENTS. If it is empty, find it as the preflight of the qestack skill says.
  2. Sample. Open specs/<feature>/quality-report.md, section "Human audit sample". It lists random tests and the tests with the lowest judge score. Use only the test keys.
  3. Human verdicts. Ask the user to review each test with the rubric (qestack show rubrics/test-judge) and to give a verdict: accept, revise or reject. Ask about one test at a time.
    • Do not suggest a verdict first.
    • Do not show the judge verdict, the judge score or the label "[lowest judge score]" before the human answers. That biases the human.
  4. Record. Write <runs_dir>/human-audit.json: [{"key": "<exact test key>", "verdict": "accept|revise|reject", "note": "..."}]. Use the exact keys from the report.
  5. Compute. Run qestack calibrate --feature <feature>. Exit 1 means that kappa is below 0.6, or that an input file is missing.
  6. Explain. Report the agreement and kappa:
    • kappa ≥ 0.7: the judge is reliable for this team
    • 0.6 to 0.7: use the judge with care; review more samples
    • below 0.6: do not trust the judge scores; fix the rubric or the prompt first
  7. Improve. For each disagreement, find the rubric dimension that caused it. Propose a concrete rubric change (a clearer score anchor or a new example). The rubric file is protected. Show the proposal to the user. The user can save a project copy in .qestack/rubrics/test-judge.md. The agents then use that copy.

Rules

  • Keep calibration-history.jsonl in git. The trend over sprints matters more than one value.

04 同仓库更多 Skills

quark-sri
quark-sri/qestack

unit-testing

Writes, fixes or improves unit tests for rules, calculations, validation and state logic: arrange-act-assert, exact oracles, boundary sets, doubles only at boundaries, controlled clock and randomness. Use when the user says 'write unit tests', 'TDD this' or 'mock this dependency'. Not for HTTP endpoints (use api-testing).

★ 1
quark-sri
quark-sri/qestack

ui-automation

Writes, fixes or structures browser end-to-end tests for critical journeys: role, label or test ID locators, auto-waiting assertions, API data setup, page objects, auth reuse and traces. Use when the user says 'UI test', 'end-to-end test' or 'our UI tests are brittle'. Not for business rules (use unit-testing).

★ 1
quark-sri
quark-sri/qestack

testcase-reviewer

Reviews automated tests or manual test cases like a senior test architect: scores fidelity, oracles, assertion depth, edge cases and determinism, and finds tests that pass on wrong code. Use when the user says 'review my tests', 'test smells' or 'review AI-written tests'. Not for fault injection (use mutation-probe).

★ 1
quark-sri
quark-sri/qestack

testability-review

Scores how testable a feature, module or design is before tests exist (seams for clock, randomness and network, hidden state, observability) and gives the smallest production change per blocker. Use when the user asks 'is this testable' or 'why is this hard to test'. Not for writing the tests (use unit-testing).

★ 1
quark-sri
quark-sri/qestack

test-strategy

Writes a test strategy for a product, system or team: quality goals, test levels and their share, environments, data, automation scope, non-functional testing, metrics and a roadmap. Use when the user says 'test strategy' or 'QA strategy'. Not for one sprint or release plan (use test-planning).

★ 1
quark-sri
quark-sri/qestack

test-runner

Finds how a project runs its tests, runs the right subset, and triages each failure as product bug, test defect, environment problem or flaky test, with evidence. Use when the user says 'run the tests' or asks 'which tests fail and why'. Not for pipeline design (use ci-cd-integration).

★ 1