# Test Writer: Tests for the Code That Matters

> Finds the important code with no tests and writes small, focused tests in your project's own framework, then runs them. A test that finds a real bug is kept and reported.

Test Writer: Tests for the Code That Matters is a free AI agent skill on Agensi by Upendra singh chauhan, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Upendra singh chauhan](https://www.agensi.io/creators/upendra-singh-chauhan)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Version: 1.0
- Last updated: 2026-11-25
- Security: scan passed (2026-11-25); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/test-writer-tests-for-the-code-that-matters
- Tags: testing, code-review, typescript, python, git, jest

## About this skill

Test Writer adds tests that catch real bugs, in the style your project already uses.

It finds your test framework, where the tests live and how they run, and runs them once to see where things stand. Then it looks for the code that matters most and has no tests: code that handles money, auth, data changes or parsing, code that changed recently, and code with many branches.

It writes small, focused tests next to your existing ones:
- one behaviour per test, named after the behaviour ("refuses an expired token");
- the edge cases: empty, none, very large, wrong type, the boundary values;
- no tests of private details that would break on a harmless refactor.

Then it runs them. If a new test fails because the code is wrong, it keeps the test and tells you, instead of bending the test to pass. It does not change your application code unless you ask.

You get what it covered and why, the commands to run the tests, and any bug a new test found.

Part of the Pitcrew crew: a free, open-source pit wall for Claude Code (npx pitcrew-cli).

## Requires

- An AI agent that can run shell commands
- A test framework in your project
- pitcrew-cli
- Node.js
- Git

It writes only test files and does not change your application code unless you ask.

## Known limitations

Requires an existing test runner setup. Cannot fix application bugs automatically. Impact analysis requires a git repository.

## 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 Writer: Tests for the Code That Matters 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

### How does Pitcrew determine which parts of my codebase need tests the most?

It looks for code with no tests that handles money, auth, data changes or parsing, code that changed recently (from git log), and code with many branches, and starts with those.

### Which AI agents are compatible with Pitcrew Test Writer?

Any agent that can read and write files and run shell commands in your project, such as Claude Code, Codex CLI or Cursor. It runs your project's own test command.

### Do I need to tell the skill which testing framework I am using?

No manual configuration is required; the skill automatically detects your existing framework (like Jest or Pytest), configuration files, and naming conventions to ensure the new tests blend seamlessly into your project.

### Can Pitcrew execute the tests it writes, or does it only generate the code?

Yes, the skill is designed to run the tests it generates immediately to verify they pass. If a test fails, it provides a detailed report, helping you identify whether the failure is due to a bug in your existing code or an issue with the test logic.

### Does it set up mocks or install test tools?

It follows the mocking style your existing tests already use. It does not install a test framework for you: your project needs one that runs.

### What is included, and what does it cost?

It is free. You get the skill's instructions (SKILL.md) and the MIT licence. It is part of the open-source Pitcrew crew.

---

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.
