- Home
- Skills
- Testing & Debugging
- Quality Contract Harness
Works with the AI Agents you already use
Quality Contract Harness
by andan
Turn a risky code change into an explicit quality contract and verify it against current-build evidence, so “done” means proven, not assumed.
$19
Quality Contract Harness
Example session with this skill installed
I changed the catalog pricing source in src/catalog/a.cjs (revision r2, build b2) and we ship tonight.
Before I merge: what has to be verified, and does that cover the checkout and receipt flows — or am I about to call this done on evidence from an older build?
- Read your context and instructions
- Compiled the quality contract harness
Release review — sandbox-app · revision r2 · build b2
Risk: high · 3 components in scope · 22 checks bound ·
status: pass (22 pass / 0 fail / 0 blocked / 0 unverified)
Recorded run on the bundled sandbox fixture. The contract was planned from the change itself and the approved dependency map, then verified only against evidence bound to build b2 and revision r2.
Scope the engine derived
| Component | Relation | Why it is in scope |
|---|---|---|
| catalog | direct | src/catalog/a.cjs is the changed path |
| checkout | dependency | depends on catalog |
| receipt | dependency | depends on checkout |
| unrelated | out of scope | not reachable from this change |
Gates that must pass before “done”
| Gate | Source |
|---|---|
custom-total (execution, expected 5000) | spec:line-4 |
amount-integrity, idempotency, failure-recovery, regression, rollback, data-invariants | risk-rule:* |
accessibility, responsive, visual-regression, scope-review | risk-rule:* (inspection / browser) |
impact-7-catalog-*, impact-7-receipt-*, impact-8-checkout-* | approved:dependency-map#<component>:<check> |
Why this pass is not a rubber stamp
Each row is bound to the revision, target, check id and source, e.g.
["r2","sandbox-app","custom-total","execution","spec:line-4","equals",5000]
Evidence from r1, another target or a different check id does not count, and a row that does not belong to the contract is reported as unexpected rather than ignored.
- 22 bound, 0 unexpected, 0 unresolved, 0 unverified
- The report states its limit plainly: the engine does not scan your diff or authenticate evidence itself — your agent collects authorised observations, and this verdict covers exactly those.
Next steps
- Merge is evidence-backed for these gates; re-run the same contract after the merge commit and before deploy.
- If the diff widens past
src/catalog/, the scope changes and the contract must be re-planned.
Connects securely to your tools. The creator never sees your data.
About this skill
Stop shipping code that only looks finished.
Quality Contract Harness plans a change-specific quality contract for the diff in front of you, then verifies completion against evidence from the current build — and nothing else. It is built for AI coding sessions, release gates and review handoffs, where the failure mode is a confident “done” that nobody actually verified.
How it works
- Plan the contract. The change (paths, flags, revision) and the approved dependency map decide which components are in scope and which checks apply — risk rules add what the change type demands, your specification adds the invariants that must not break.
- Bind the evidence. Every check carries a binding such as
["r2","sandbox-app","custom-total","execution","spec:line-4","equals",5000]. Evidence captured for another revision, build or scope cannot satisfy it. - Verify and report. The bundled deterministic engine returns pass / fail / blocked / unverified per check with the unresolved items spelled out. A plan never establishes completion; only current-build evidence does.
What the report gives you
- Risk level and the exact component scope, including dependency fallout beyond the edited folder.
- Each gate with its source:
risk-rule:*,spec:*, orapproved:dependency-map#<component>:<check>. - Counts of pass, fail, blocked and unverified, plus unexpected rows that do not belong to the contract.
- A plain statement of what is still unproven, so the next action is obvious.
What is bundled
SKILL.mdwith the host workflow,references/quickstart.mdand the fullreferences/v2.mdcontract reference.- A deterministic engine (
scripts/engine.cjs) that reads JSON on stdin and writes the report to stdout. - An optional helper (
scripts/assist.cjs) that prepares and binds inputs so you never hand-write JSON. - Worked example input and output, so the first run needs no guesswork.
Requirements
- Node.js 18 or newer.
- An agent host (Claude Code, Codex CLI, Cursor, and other SKILL.md agents) that can run a local Node script and read the project material you authorise.
- No API key, account or network access is needed by the bundled engine.
Licence
Proprietary commercial-use licence: use it for your own, your employer's and your clients' authorised work. Redistribution, resale and sharing of the skill materials are not permitted.
Requires Node.js 18+. Cannot perform network requests or write to source files. Depends on authorized host tools to gather real project observations.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 9 days ago
- Software
Node.js
The engine reads JSON on stdin and prints the report to stdout. It makes no network calls and writes no files.
Permissions
What's inside
Frequently Asked Questions
New in Testing & Debugging
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.