# test legion

> Deterministic mutation testing and edge-case generation for Python and JavaScript suites.

test legion is a paid AI agent skill on Agensi by Nabid Nur, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $19.9 (one-time purchase)
- Creator: [Nabid Nur](https://www.agensi.io/creators/nabid-nur)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Version: 1.0
- Last updated: 2026-10-19
- Security: scan passed (2026-10-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/test-legion
- Tags: testing, pytest, jest, typescript, python, automation

## About this skill

Test suites often provide a false sense of security through high code coverage that fails to catch logical errors. Centurion replaces shallow coverage metrics with a mutation gauntlet and an edge-case horde to ensure your tests actually catch bugs. It targets Python and JavaScript/TypeScript codebases, using a deterministic agent architecture to hunt for boundary failures, race conditions, and weak assertions.

### What it does
- **Edge-case generation** deploys a matrix of 9,600 boundary hunters to test empty inputs, unicode, concurrency, and malformed data.
- **Mutation testing** runs a gauntlet that swaps AST operators to verify if your existing suite can actually detect logic changes.
- **Kill-rate ratcheting** enforces a monotonic ledger where module quality scores can only improve, never regress.
- **Flaky test quarantine** identifies and isolates non-deterministic tests with a generated hypothesis for the fix.
- **Fixture foraging** generates deterministic test fixtures based on real types, schemas, and traffic patterns.

### How it works
1. **Deploy** by running `centurion deploy <repo>` to survey the framework and establish a deployment plan.
2. **Horde** the target with `centurion horde <module>` to generate a parameterized edge-case matrix file.
3. **Mutate** the codebase using `centurion mutate` to identify survivors where logic was changed but tests still passed.
4. **Gate** the build with `centurion gate` to enforce a minimum kill-rate threshold before allowing a merge.

### Frameworks & tools
Supports Python 3.9+ (pytest) and Node 18+ (Jest, Vitest, Playwright). Works with any CLI-based environment including Claude Code, Cursor, and standard CI/CD shells.

### Why this beats prompting it yourself
Writing edge cases manually is tedious and prone to human oversight. This skill automates the creation of exhaustive test matrices and uses AST-level mutation to prove your assertions are actually functional rather than just passing.

### Use cases
- Hardening a mission-critical payment module against boundary condition errors.
- Identifying "tautology" tests that pass regardless of whether the code works.
- Enforcing a strict quality floor for new pull requests using the kill-rate gate.
- Debugging intermittent CI failures by isolating flaky tests into a managed quarantine.

### Known limitations
The mutation gauntlet will not run if the baseline test suite is currently failing. Core operations are restricted to Python 3.9+ and Node 18+ toolchains.

## Requires

- Python

## 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 test legion 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

### How is this different from standard code coverage tools?

Test Legion goes beyond coverage metrics by performing AST (Abstract Syntax Tree) mutations, intentionally changing your code's logic to see if your tests notice. This ensures your assertions are actually meaningful and not just passing because they touch the lines of code.

### Which frameworks and AI agents are compatible with Test Legion?

It is designed for Python 3.9+ (pytest) and Node.js 18+ (Jest, Vitest, Playwright) environments. It integrates seamlessly with CLI-based AI agents like Claude Code and Cursor, as well as standard CI/CD pipelines.

### What is 'Kill-rate ratcheting' and how does it protect my codebase?

The 'Kill-rate ratcheting' feature creates a permanent ledger of your code quality. Once a module achieves a certain mutation kill-rate, the 'centurion gate' command prevents any future commits from being merged if they lower that quality score.

### What exactly is included in the Test Legion purchase?

You receive the full Test Legion agent skill, including the edge-case generation engine, the mutation gauntlet, and the flaky test quarantine system. The purchase includes documentation for integration with popular IDEs and CI tools.

### Can Test Legion generate test data for me?

Yes, the 'Fixture foraging' feature analyzes your existing schemas and real traffic patterns to generate deterministic, production-like test data. This saves hours of manual work creating mock objects and edge-case inputs.

---

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.
