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

> Find AI-written tests that can never fail, prove with mutation testing which code changes your tests miss, and flag placeholder code and unsafe API and payment patterns (SQL injection, float money, missing idempotency keys, unverified webhooks). Node 18, no dependencies.

Catch Fake Tests and Unsafe Payment Code (Anti-Slop) is a paid AI agent skill on Agensi by Ala Ud Din Burki, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5.99 (one-time purchase)
- Creator: [Ala Ud Din Burki](https://www.agensi.io/creators/alaudin-burki)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Version: 1.1.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-02); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/catch-fake-tests-and-unsafe-payment-code-anti-slop
- Tags: testing, node-js, security, npm, code-review

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

## Known limitations

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Catch Fake Tests and Unsafe Payment Code (Anti-Slop) skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific types of code quality issues does this skill detect?

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.

### Are there any external accounts or software dependencies required to use this skill?

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.

### What kind of report or output should I expect after a scan?

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.

### How do I direct an AI agent to apply this skill to my project?

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.

### What are the known limitations of these code audits?

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.

### How does mutation testing help improve my test suite?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
