Works with the AI Agents you already use

    Quality Contract Harness

    by andan

    1

    Turn a risky code change into an explicit quality contract and verify it against current-build evidence, so “done” means proven, not assumed.

    $19

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Quality Contract Harness

    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

    ComponentRelationWhy it is in scope
    catalogdirectsrc/catalog/a.cjs is the changed path
    checkoutdependencydepends on catalog
    receiptdependencydepends on checkout
    unrelatedout of scopenot reachable from this change

    Gates that must pass before “done”

    GateSource
    custom-total (execution, expected 5000)spec:line-4
    amount-integrity, idempotency, failure-recovery, regression, rollback, data-invariantsrisk-rule:*
    accessibility, responsive, visual-regression, scope-reviewrisk-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

    1. 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.
    2. 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.
    3. 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:*, or approved: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.md with the host workflow, references/quickstart.md and the full references/v2.md contract 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Read Files
    Terminal / Shell
    Browser
    Listed9 days ago

    What's inside

    Frequently Asked Questions

    This skill solves the "hallucination of success" problem where AI agents claim a task is finished without proof. It enforces a structured verification loop that requires real-world build evidence and local script validation before a task can be marked as complete.

    The harness is designed for Node.js 18+ environments and works with any AI agent capable of executing local scripts and accessing project directories. It integrates via two specialized local scripts (`assist.cjs` and `engine.cjs`) to process data without needing external API calls.

    You receive the core quality logic, the specialized JavaScript execution engines (`assist.cjs` and `engine.cjs`), and the pre-configured workflow for risk assessment and evidence binding. It also includes documentation on how to authorize the necessary host tools for project observations.

    No, all verification and evidence binding are performed locally using the provided scripts. This ensures your code and build outputs stay within your environment while still benefiting from structured quality audits.

    The harness requires 'authorized host tools' to observe your project files and build outputs. If these tools are missing or the agent lacks the necessary permissions to read the local environment, the skill will report an 'Unverified' status and block the quality gate.

    While the skill comes with a robust default logic for risk flags and quality gates, the contract planning phase allows for user approval. This ensures the verification plan is specifically tailored to the unique technical changes of your current project.

    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.