# Test Architect: Tests That Catch Real Bugs

> Writes tests tied to named risks (boundaries, dependency failures, concurrency) and runs them.

Test Architect: Tests That Catch Real Bugs is a free AI agent skill on Agensi by HEMAPRIYAN RK, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [HEMAPRIYAN RK](https://www.agensi.io/creators/hemapriyan-rk)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-15
- Security: scan passed (2026-10-13); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/test-architect-tests-that-catch-real-bugs
- Tags: testing, code-review, pytest, jest, qa-automation, code-quality, unit-tests, concurrency

## About this skill

### What it does

Writes the tests that would actually catch a bug: boundary values, malformed-but-plausible input, each dependency failing, concurrent access, and ML fallback paths. Every test is named after the risk it covers, and the skill runs them and tells you which failures are real bugs.

### Why it exists

Ten tests that run the same happy path with different values raise coverage and catch nothing. Concurrency and failure-injection tests are the ones most often skipped, and the ones most likely to find real problems.

### How it works

1. Scopes to the code you asked about and follows your project's existing test framework and conventions.
2. Lists the risks first, using a bundled catalog of failure cases by dependency type (HTTP, database, filesystem, queue, cache, clock, config, ML) and input boundaries.
3. Writes deterministic tests: fake clocks, stubbed dependencies, seeded randomness. Uses property-based testing where a whole input range matters.
4. Asserts on the contract, not the implementation, so tests don't pass just because they mirror the code.
5. Runs the tests and separates real bugs from test mistakes, without quietly changing a test to make it pass.

### What you get

A risk-to-test table with results, the test code, any bugs found with the input that triggers them, and the risks deliberately left out.

### When not to use it

Generating maximum coverage numbers or snapshot tests for UI. It deliberately writes fewer, sharper tests.

### Open source

Part of [claude-rigor-skills](https://github.com/hemapriyan-rk/claude-rigor-skills): 30 MIT-licensed skills that make AI show its work. The demo below, with its inputs, is in the [examples folder](https://github.com/hemapriyan-rk/claude-rigor-skills/tree/main/examples).

## Known limitations

- Covers the unit you point it at; it doesn't design end-to-end or load tests.
- Concurrency tests reduce but can't fully eliminate timing dependence; it uses barriers and controlled clocks to keep them deterministic.
- Some risks need a design decision before they can be tested (for example, an eviction policy). It lists those under "Not covered" instead of guessing.

## 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 Architect: Tests That Catch Real Bugs skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Why do some of its tests fail?

Because they found real bugs. The skill reports which failures are bugs in your code and which would be test mistakes, and never weakens a test just to make it pass.

### Will it use my existing framework?

Yes. It looks at an existing test file first and matches its framework, fixtures, and style.

### How many tests does it write?

As few as needed to cover the distinct risks it found. In the demo: 15 tests, 4 of which exposed real bugs.

---

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.
