Catch Fake Tests and Unsafe Payment Code (Anti-Slop)

    by Ala Ud Din Burki

    1

    AI agents under pressure to turn a test suite green write tests that pass no matter what the code does.

    $5.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Catch Fake Tests and Unsafe Payment Code (Anti-Slop)

    Example session with this skill installed

    Run a deep slop audit on this repository: can my tests actually fail, and is there any unsafe API or payment code?

    • Read your context and instructions
    • Compiled the catch fake tests

    AI Slop Audit — scam-contract-checker

    Date: 2026-11-30 ·

    Scope: scam-contract-checker ·

    Method: automated static analysis + mutation testing (see Scope & method below)

    Health score: 83/100 — grade B

    Largely clean; address the items below before the next release.

    SeverityCount
    🔴 High0
    🟡 Medium0
    ⚪ Low0

    Top risks

    No high-severity findings.

    1. Test integrity — can these tests actually fail?

    Tests scanned: 5. Static slop findings: 🔴 0 · 🟡 0 · ⚪ 0.

    None found.

    Mutation test (proof): 14 injected bugs · 8 caught · 6 survived · mutation score 57%.

    Survivors are real code changes the tests did NOT catch:

    filelineundetected change
    src/chains.ts44true → false
    src/cli.ts56!== → ===
    src/honeypot.ts79true → false
    src/honeypot.ts103false → true
    src/honeypot.ts112false → true
    src/probe.ts28false → true

    2. API & payment safety

    None found.

    3. Placeholder / fake code & secrets

    None found.

    4. Prioritized remediation plan

    1. Rotate any real secrets found in §3 (minutes; highest blast radius).
    2. Fix rigged tests in §1 — delete tautologies, un-.only, replace swallowed catches and floating async with real assertions. A green suite that can't fail is worse than none.
    3. Close API/payment holes in §2 — integer money, idempotency keys, webhook signature checks, parameterised SQL, no card data in logs.
    4. Replace placeholder/fake code in §3 with real implementations, or mark it clearly as unfinished.
    5. Prove it: re-run slop-audit --deep; target 0 high-severity findings and a mutation score ≥ 80% on core logic.

    Scope & method

    Produced by the anti-slop toolchain: test-slop.mjs (static test-slop), slop-scan.mjs (API/payment/placeholder/secret heuristics), mutate-test.mjs (mutation testing). These are

    heuristic: each finding should be confirmed by reading the code, and they do not replace a full security review. Mutation testing proves only the mutations it tried. Absence of findings is not a guarantee of correctness.

    Real output from 2026-11-30. Re-run after fixes to show the before/after.

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

    About this skill

    AI agents under pressure to turn a test suite green write tests that pass no matter what the code does. This skill catches them and proves which bugs your tests would miss.

    • Rigged tests: no assertion, expect(true).toBe(true), .only/.skip, swallowed failures, un-awaited promises, snapshot-only tests.
    • Mutation testing: flips operators and booleans in your source, reruns your tests, and lists every change no test caught.
    • Unsafe API and payment code: SQL built from strings, money as floats, no idempotency key on charges, unverified webhooks, card data in logs, placeholder code presented as finished.
    • One graded report with a health score and a fix plan, ready to hand to a client.

    Each script exits non-zero on serious findings, so it fits CI or a pre-commit hook. The static scans are heuristics; confirm findings by reading the code.

    Node.js 18 or newer, no dependencies, runs locally: your code never leaves your machine.

    Static scans are heuristic and require manual verification. Mutation testing requires a clean git tree and Node 18+. Does not scan for leaked secrets.

    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.

    Frequently Asked Questions

    This skill identifies fake tests that are structurally unable to fail, such as those with missing assertions, swallowed errors, or un-awaited promises. It also scans for placeholder code in API and payment logic, detects hallucinated npm dependencies, and flags unsafe AI agent patterns like prompt injection risks.

    This skill requires Node 18 or higher to function. While it uses the public npm registry to verify dependencies, it does not require any external accounts or API keys to perform its audits.

    The skill generates a comprehensive graded report that includes a health score, ranked findings, and a specific fix plan. It also provides real-time feedback through scripts that exit with non-zero codes when high-severity issues are found, making it suitable for integration into automated workflows.

    You can prompt your agent to perform specific tasks such as checking for tests that always pass, conducting a mutation test, or auditing payment code for safety. It is also effective to ask the agent to use this skill before claiming a task is finished to prove the code actually works.

    Static scans are based on heuristics and require manual verification of the findings to confirm accuracy. Additionally, the mutation testing feature requires a clean git tree and currently only supports Node.js environments.

    Mutation testing temporarily modifies your source logic to see if your existing tests actually catch the changes. If a test suite remains green after the code is broken, the skill identifies these surviving mutations so you can add tests that properly pin the required behavior.

    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.