/agent-integration-testing
Use when the user requests integration testing, feature validation, or test plan execution
$ npx -y skills add av/facts --skill agent-integration-testing --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/agent-integration-testing
Context preview
The summary Claude sees to decide when to auto-load this skill.
Use when the user requests integration testing, feature validation, or test plan execution
SKILL.md
agent-integration-testing.SKILL.mdname: agent-integration-testing
description: Use when the user requests integration testing, feature validation, or test plan execution
Agent Integration Testing
Overview
This skill guides the creation and autonomous execution of verifiable integration test specifications. It ensures that tests are actionable by agents, properly documented, and systematically executed by subagents to validate features or fix failures.
Core Process
1. **Investigate Codebase Area**
- By default, investigate the entire codebase to understand the context.
- If the user specifies a feature area, use `glob` and `grep` to narrow the investigation.
2. **Write Test Specification**
- Create a test spec file at `./tests/<name>.md`.
- Use `<name> = "integration"` unless the user specifies a particular feature area.
- The document MUST include a **Prerequisites** section at the top detailing any setup needed before tests become runnable (e.g., environment variables, database seeding, background services).
3. **Define Verifiable Tests**
- Each test must be written in plain English.
- Include clear **steps to reproduce**.
- Include a set of **expectations**.
- **CRITICAL:** Every expectation must be strictly verifiable by an agent using available tools (e.g., shell commands, HTTP requests, reading file outputs). If a test cannot be verified by an agent, it is invalid and must be rewritten or removed.
4. **Execute Tests via Subagents**
- Spawn subagents (using the `Task` tool or `@mention` subagent system) to run each individual test.
- The subagent must follow the prerequisites, execute the steps, and validate the outcomes against the expectations.
- Collect the results (Pass/Fail and logs) from the subagents.
5. **Fix Failures (Optional)**
- If the user explicitly specifies that failures should be fixed, spawn another subagent (e.g., the `SWE` or `BUILDER` agent) to investigate and fix any noted failures.
Quick Reference
| Action | Pattern / Command | |--------|-------------------| | Test File Location | `./tests/<name>.md` (default: `integration.md`) | | Prerequisites | Must be documented at the top of the test file | | Test Format | Plain English, Repro Steps, Verifiable Expectations | | Execution | Spawn one subagent per test or test suite | | Fixing | Spawn SWE/BUILDER subagent if requested by user |
Red Flags - STOP and Start Over
- **Unverifiable Tests:** "Verify the UI looks nice" or "Check if the animation is smooth." (Agents cannot verify visual aesthetics without specific tools). **Fix:** Rewrite to check DOM elements, network responses, or file states.
- **Missing Prerequisites:** Subagents failing because the server wasn't started. **Fix:** Ensure the prerequisite section explicitly defines the commands to start dependencies.
- **Executing Tests Manually:** Running tests in the main conversation thread instead of spawning subagents. **Fix:** Dispatch parallel subagents for isolated execution.
Example Test Specification (`./tests/auth-integration.md`)
# Auth Integration Tests
## Prerequisites
- Start the test database: `docker compose up -d db`
- Run migrations: `npm run migrate`
- Start the server in background: `npm run start:test &`
## Test 1: User Registration
**Steps:**
1. Send a POST request to `/api/register` with payload `{"email": "test@example.com", "password": "pass"}`.
**Expectations:**
1. The HTTP response status must be `201 Created`.
2. A subsequent query to the database using `sqlite3 test.db "SELECT email FROM users WHERE email='test@example.com';"` must return the email.Read more
name: agent-integration-testing description: Use when the user requests integration testing, feature validation, or test plan execution
Agent Integration Testing
Overview
This skill guides the creation and autonomous execution of verifiable integration test specifications. It ensures that tests are actionable by agents, properly documented, and systematically executed by subagents to validate features or fix failures.
Core Process
1. **Investigate Codebase Area**
- By default, investigate the entire codebase to understand the context.
- If the user specifies a feature area, use `glob` and `grep` to narrow the investigation.
2. **Write Test Specification**
- Create a test spec file at `./tests/<name>.md`.
- Use `<name> = "integration"` unless the user specifies a particular feature area.
- The document MUST include a **Prerequisites** section at the top detailing any setup needed before tests become runnable (e.g., environment variables, database seeding, background services).
3. **Define Verifiable Tests**
- Each test must be written in plain English.
- Include clear **steps to reproduce**.
- Include a set of **expectations**.
- **CRITICAL:** Every expectation must be strictly verifiable by an agent using available tools (e.g., shell commands, HTTP requests, reading file outputs). If a test cannot be verified by an agent, it is invalid and must be rewritten or removed.
4. **Execute Tests via Subagents**
- Spawn subagents (using the `Task` tool or `@mention` subagent system) to run each individual test.
- The subagent must follow the prerequisites, execute the steps, and validate the outcomes against the expectations.
- Collect the results (Pass/Fail and logs) from the subagents.
5. **Fix Failures (Optional)**
- If the user explicitly specifies that failures should be fixed, spawn another subagent (e.g., the `SWE` or `BUILDER` agent) to investigate and fix any noted failures.
Quick Reference
| Action | Pattern / Command | |--------|-------------------| | Test File Location | `./tests/<name>.md` (default: `integration.md`) | | Prerequisites | Must be documented at the top of the test file | | Test Format | Plain English, Repro Steps, Verifiable Expectations | | Execution | Spawn one subagent per test or test suite | | Fixing | Spawn SWE/BUILDER subagent if requested by user |
Red Flags - STOP and Start Over
- **Unverifiable Tests:** "Verify the UI looks nice" or "Check if the animation is smooth." (Agents cannot verify visual aesthetics without specific tools). **Fix:** Rewrite to check DOM elements, network responses, or file states.
- **Missing Prerequisites:** Subagents failing because the server wasn't started. **Fix:** Ensure the prerequisite section explicitly defines the commands to start dependencies.
- **Executing Tests Manually:** Running tests in the main conversation thread instead of spawning subagents. **Fix:** Dispatch parallel subagents for isolated execution.
Example Test Specification (`./tests/auth-integration.md`)
# Auth Integration Tests
## Prerequisites
- Start the test database: `docker compose up -d db`
- Run migrations: `npm run migrate`
- Start the server in background: `npm run start:test &`
## Test 1: User Registration
**Steps:**
1. Send a POST request to `/api/register` with payload `{"email": "test@example.com", "password": "pass"}`.
**Expectations:**
1. The HTTP response status must be `201 Created`.
2. A subsequent query to the database using `sqlite3 test.db "SELECT email FROM users WHERE email='test@example.com';"` must return the email.Antidote for fluffy specs, a toolkit for fact-driven development with AI agents
Repo: av/facts
Other skills on facts.
- /bugbash
Systematically explore and test any software project (CLI, API, Backend, Library, etc.) to find bugs, usability issues, and edge cases. Produces a structured report with full reproduction evidence (exact commands, inputs, logs, and tracebacks) for every issue.
Open skill - /discipline
Bulletproof agent operating protocol. 15 failure-prevention rules distilled from 120+ real sessions and 10 agent definitions. Covers fabrication, constraint tracking, verification, scoping, retry discipline, and communication. Load before any task to prevent the most common
Open skill - /facts-discover
Scan the codebase and classify every fact by lifecycle stage — tag @draft, @spec, or @implemented based on what the code actually shows. Add missing facts, fix inaccurate ones, remove obsolete ones. Use when asked to discover facts, bootstrap or update a fact sheet, scan the
Open skill - /facts-implement
Operate on @spec facts — implement them in code, then tag @implemented. Use when asked to implement facts, implement the spec, build from the fact sheet, make facts true, or work through unimplemented requirements.
Open skill - /facts-refine
Operate on @draft facts — collaboratively refine them into precise, actionable @spec facts. Resolve ambiguities, fill gaps, eliminate contradictions, and sharpen labels until every fact is ready to implement. Use when asked to refine facts, clarify the spec, review facts for
Open skill - /facts
Manage .facts files — atomic, validatable truth statements about a project. Install, check, list, add, edit, remove, and lint facts via the CLI. ALWAYS read this skill when the user mentions facts in any capacity.
Open skill

