- Home
- Skills
- Testing & Debugging
- Agent Test Suite Architect
Works with the AI Agents you already use
Agent Test Suite Architect
Autonomous QA architect. Generates robust unit, integration, and E2E test suites targeting a configurable branch-coverage threshold, accessible locators, and deterministic API mocks across TypeScript, Python, and Go.
$18
Agent Test Suite Architect
Example session with this skill installed
Audit src/auth/service.ts and write Vitest tests with 90% branch coverage. Mock the database and external OIDC provider. Run the tests and show me the measured coverage report.
- Read your context and instructions
- Compiled the agent test suite
I have analyzed src/auth/service.ts, identified five critical logical branches including token expiration and malformed JWKs, and generated a Vitest suite. I executed the tests locally using vitest run --coverage.
Test Suite Execution & Coverage Report
| Metric | Measured Result | Status |
|---|---|---|
| Branch Coverage | 92.3% | PASS (>90%) |
| Line Coverage | 96.8% | PASS |
| Function Coverage | 100% | PASS |
| Total Test Cases | 14 (12 Unit, 2 Integration) | SUCCESS |
Uncovered Gap Analysis
| File | Uncovered Branch / Line | Risk Level | Rationale / Recommendation |
|---|---|---|---|
service.ts | Line 142 (Network Timeout) | Low | Simulated via mock, but physical socket hang not tested. |
service.ts | Line 158 (Memory Limit) | Very Low | Edge case for extremely large JWT payloads. |
import { vi, describe, it, expect, beforeEach } from 'vitest';
import { AuthService } from './service';
import { db } from '../infra/db';
vi.mock('../infra/db', () => ({
db: {
user: { findUnique: vi.fn() }
}
}));
describe('AuthService', () => {
beforeEach(() => {
vi.clearAllMocks();
});
it('should throw Unauthorized when user record is missing', async () => {
// Arrange
const service = new AuthService();
(db.user.findUnique as any).mockResolvedValue(null);
// Act & Assert
await expect(service.validateSession('id_123'))
.rejects.toThrow('Unauthorized');
});
it('should return user data for valid session', async () => {
// Arrange
const mockUser = { id: 'id_123', email: 'test@example.com' };
(db.user.findUnique as any).mockResolvedValue(mockUser);
// Act
const result = await new AuthService().validateSession('id_123');
// Assert
expect(result).toEqual(mockUser);
expect(db.user.findUnique).toHaveBeenCalledWith({ where: { id: 'id_123' } });
});
});
Next steps
- Review the generated
src/auth/__tests__/service.spec.tsfile for business logic alignment. - Add
npm run test:coverageto your pre-commit hooks to maintain the 90% threshold. - Update the OIDC provider discovery URL in your
.env.testto match the new mock configuration.
Connects securely to your tools. The creator never sees your data.
About this skill
The problem
AI-generated code often focuses on the happy path, leading to production crashes caused by unhandled null pointers, network timeouts, or edge cases. Writing comprehensive test suites manually is time-consuming and prone to flaky implementations or weak assertions.
What it does
- Analyzes application logic to build a boundary matrix for nulls, overflows, and edge values.
- Generates idiomatic unit, integration, and E2E tests for TypeScript, Python, Go, and React.
- Implements deterministic mocks for third-party services like Stripe, AWS S3, and database connections.
- Enforces configurable branch coverage by executing real coverage tools and reporting measured gaps.
- Builds Playwright E2E tests using accessible locator hierarchies and web-first assertions.
Frameworks & tools
Vitest, Jest, Pytest, Go testing, Playwright, MSW, and GitHub Actions.
Why this beats prompting it yourself
Generic prompts result in brittle tests with hardcoded sleeps and low-quality mocks. This skill enforces strict QA patterns like Arrange-Act-Assert, eliminates flakiness by prohibiting arbitrary timeouts, and provides a verified gap analysis based on actual execution rather than estimates.
Use cases
- Writing integration tests for complex billing services involving external API mocks.
- Generating table-driven boundary tests for Go or Python backend logic.
- Building accessible, auto-waiting E2E suites for React or Next.js checkout flows.
- Auditing legacy code to identify and fill specific branch-coverage gaps.
Known limitations
Coverage reporting requires a local environment capable of running the project's specific test runner and coverage tool.
How to use
- 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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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 2 months ago
Permissions
What's inside
Frequently Asked Questions
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.