# Edgehunt: tests that find the edge cases

> Writes behaviour-first tests for a function or file: happy path, boundaries and errors, one clear assertion each, in your test framework.

Edgehunt: tests that find the edge cases is a free AI agent skill on Agensi by MAJI, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [MAJI](https://www.agensi.io/creators/maji)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Uses: 3
- Version: 1.0
- Last updated: 2026-10-16
- Security: scan passed (2026-10-16); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/edgehunt-tests-that-find-the-edge-cases
- Tags: testing, typescript, tdd

## About this skill

Writing tests often feels like a choice between meaningless code coverage or hours spent mocking complex internals. This skill enforces disciplined test generation by focusing on external behavior, edge cases, and readable naming conventions rather than implementation details.

### What it does
- **Targeted generation** creates tests for specific functions, entire files, or specific failing scenarios.
- **Behavioral focus** prioritizes happy paths, boundary conditions, and error states over internal logic.
- **Clean naming** enforces a strict subject-behavior-condition pattern for maximum readability.
- **Minimalist setup** ensures tests are concise and avoid "mocking the world" unless crossing a boundary.

### How it works
1. **Context check** involves the agent scanning your project manifest and config to detect your testing framework.
2. **Targeting** occurs when you run `Edgehunt <target>`, specifying a function, file, or scenario.
3. **Plan generation** lists prioritized test cases across happy paths, edge cases, and errors.
4. **Code generation** produces the final test suite in your project's specific style and framework.

### Frameworks & tools
This tool adapts to existing stacks including Jest, Vitest, Mocha, and Playwright. It supports TypeScript and JavaScript environments using standard assertion patterns.

### Why this beats prompting it yourself
Generic prompts often produce bloated tests with multiple assertions and excessive mocking that become brittle. This skill applies a specific hierarchy of testing priorities and a "one assertion per test" rule that makes your suite easier to debug.

### Use cases
- **New feature coverage** for quickly scaffolding the primary logic of a new module.
- **Regression testing** by targeting a specific failing scenario to prevent it from reappearing.
- **Edge case discovery** to identify boundary values like empty strings or type-coerced inputs you might miss.
- **Refactoring support** to ensure public behavior remains stable while internals change.

### Known limitations
It avoids snapshot tests for logic and does not test private internals. Integration tests involving databases or APIs are generated sparingly to maintain suite speed.

## 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 Edgehunt: tests that find the edge cases 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 maji test differ from just asking a standard LLM to write a test?

maji test focuses on external behavior and edge cases rather than implementation details, ensuring your tests don't break every time you refactor internal logic. It also enforces a strict "one assertion per test" rule and clean naming conventions to keep your suite readable and easy to debug.

### Does this skill work with any testing framework?

The skill automatically scans your project manifest and configuration files to detect your specific environment. It currently supports Jest, Vitest, Mocha, and Playwright, working seamlessly with both TypeScript and JavaScript.

### Are there any types of tests that maji test avoids generating?

It is designed for unit and unit-integration testing, prioritizing speed and stability. While it handles boundary conditions and error states, it avoids generating heavy integration tests for databases or APIs and does not support private internal or snapshot testing.

### Do I need to manually configure my project's folder structure for this to work?

No complex setup is required; once the skill is active, it uses a simple targeting command to scan your project context. It identifies your existing assertion patterns to ensure generated code matches your project's established style.

### What is included with my purchase of the maji test skill?

You receive the full maji test skill logic, including prioritized test planning and code generation modules. Future updates to logic patterns and framework compatibility are included to ensure the skill evolves alongside the supported testing libraries.

---

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.
