# Checkable Test Cases: One Fact per Expected Result

> Write test cases where every expected result is one checkable fact with where to check it (screen, API, DB, log), traced to the requirement or code, with open questions instead of invented values, and a linter that flags vague lines.

Checkable Test Cases: One Fact per Expected Result is a free AI agent skill on Agensi by doo_sani, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [doo_sani](https://www.agensi.io/creators/doo-sani)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/checkable-test-cases-one-fact-per-expected-result
- Tags: testing, code-review, documentation, test-cases, qa, requirements, claude-code, acceptance-criteria

## About this skill

"The order is saved correctly" cannot be failed. Test cases written by agents often bundle several checks into one line, check the screen for facts that live in the database, or invent a limit nobody agreed on.

**Checkable Test Cases** writes cases a person or a script can decide.

### What you get
- **User actions first**, then separate cases for the success path and each rejection, error, boundary, cancel or retry the behaviour actually has.
- **One fact per expected result**, each with where to check it: `api: response body[0].id`, `db: orders.status`, `log: mail.reset.sent`, or a screen element.
- **Traceability:** every case rests on a requirement line, a code line (flagged as a spec gap), or a proposal waiting for a decision.
- **Open questions instead of guesses:** a value nobody stated (a limit, a status rule, a unit) becomes a question with a proposed default, and its cases stay "needs decision".
- **A linter** that flags bundled facts, subjective words, off-screen facts checked on the screen, steps that cannot show they are done, mixed success and error cases, missing preconditions, URLs or results in the file, and requirements no case covers. Works on English and Korean sentences.
- **A checklist renderer:** Markdown with checkboxes, or CSV for a spreadsheet.

### Output
A JSON file in your repo (`docs/tc/<feature>.tc.json`) that agents and scripts can read, plus a checklist people can tick.

### Safe to install
Node.js 18+, no dependencies, **no network calls**. The scripts only read the file you give them.

### Where it stops
It writes and checks test cases; it does not run them. The linter's checks are heuristics and warn only.

## Requires

- Node.js

## Known limitations

It writes and checks test cases; it does not run them. The linter's checks are wording heuristics and warn only: a clean lint means no known pattern of vague or bundled lines, not that every case is right. Requires Node.js 18+ for the two scripts.

## 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 Checkable Test Cases: One Fact per Expected Result 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 is this different from asking an agent to write test cases?

Each expected result is one fact with where to check it (a screen element, an API field, a database column, a log key), each case cites the requirement or code it rests on, unknown values become open questions instead of guesses, and a bundled linter flags lines that cannot be decided.

### What does the linter flag?

Two facts in one line, subjective words, facts that live in the database or a log but are checked on the screen, steps that cannot show they are done, mixed success and error cases, missing sign-in or data preconditions, URLs or results in the file, and requirements no case covers. English and Korean sentences.

### What do I get at the end?

A JSON file in your repo (docs/tc/<feature>.tc.json) that agents and scripts can read, plus a Markdown checklist or CSV for people, and a list of open questions for the values nobody stated.

### Does it need network access or extra installs?

No network calls. The two bundled scripts need Node.js 18+ and only read the file you give them.

### What happens when the requirement is incomplete?

Behaviour only the code shows becomes a case marked as a spec gap; values nobody stated (a limit, a status rule, a unit) become open questions with a proposed default, and their cases stay needs-decision until someone answers.

### Can I use the cases in another QA tool?

Yes. The renderer writes CSV for spreadsheets and test-management imports, and the JSON is plain enough to convert.

---

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.
