Works with the AI Agents you already use

    Write-Locked Code Healer — Anti-Gaming Pytest & Import Repair

    by Pritam Kumar Panda

    1

    Enforces cryptographic SHA-256 locks on unit tests before and after AST/import/pytest repair so AI agents never pass builds by weakening assertions.

    $9.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Write-Locked Code Healer — Anti-Gaming Pytest & Import Repair

    Write-Locked Code Healer — Anti-Gaming Pytest & Import Repair

    Example session with this skill installed

    Fix the failing pytest tests in this repository, and prove none of the test files were altered.

    • Read your context and instructions
    • Compiled the write-locked code healer

    Locked 8 test_*.py files via SHA-256 -> diagnosed dual-entrypoint ImportError in app/service.py -> patched root cause -> verified=true, tests_untouched=true, pytest_passed=true.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    AI coding agents frequently "fix" failing test suites by weakening, deleting, or rewriting unit test assertions instead of repairing the underlying bug in production code. Write-Locked Code Healer enforces cryptographic SHA-256 test immutability before and after every repair.

    Follow these four steps in strict order on every bugfix or test-repair task:

    Inspect .autoharness_diag.json to pinpoint:

    • AST SyntaxErrors (exact file and line number)
    • Dual-entrypoint ImportErrors (e.g. from sibling import X failing when imported as pkg.module — prefer relative-first fallback try: from .sibling import X except ImportError: from sibling import X)
    • Failing pytest assertions and tracebacks

    Only report completion when .autoharness_verify.json shows "verified": true, "tests_untouched": true, and "pytest_passed": true. Remove temporary .autoharness_*.json artifacts when finished if the repository is clean.

    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 15 days ago

    Software
    Python 3.10+pytest

    Permissions

    File Scopes

    .autoharness_locks.json
    .autoharness_diag.json
    .autoharness_verify.json

    100% offline Python 3 stdlib script. Zero network calls and zero environment variable reads.

    Listed15 days ago

    What's inside

    Frequently Asked Questions

    Enforces cryptographic SHA-256 locks on unit tests before and after AST/import/pytest repair so AI agents never pass builds by weakening assertions.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Write-Locked Code Healer — Anti-Gaming Pytest & Import Repair on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.