aif-tester

aif-tester is an agent for Claude Code from ainative-build/skills. It costs 63 tokens per session (2,214 once invoked), scanned A, original, MIT.

A software testing agent for checking whether code works as expected. It runs unit, integration, and end-to-end tests, where end-to-end tests check complete user flows, and reviews coverage, errors, performance, and builds.

In plain words
What is it for?
Use it to run test suites, inspect failures and coverage gaps, check error handling and performance requirements, and verify builds.
Why use it?
It helps find broken behavior, untested code paths, flaky tests, and build problems before changes reach users.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; names the NotebookEdit tool.

Part of the aif plugin — 18 skills, 18 commands, 14 agents, 4 hooks shipped together

Good fit Use it to run test suites, inspect failures and coverage gaps, check error handling and performance requirements, and verify builds.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ainative-build/skills/aif-tester
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/ainative-build/skills

Made for: Claude Code.

Or install aif, the plugin that ships this one along with the rest of its 18 skills, 18 commands, 14 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for aif-tester

README.md
[![agentmods](https://agentmods.dev/badge/agents/ainative-build/skills/aif-tester/github.svg)](https://agentmods.dev/agents/ainative-build/skills/aif-tester)
Your own site
<a href="https://agentmods.dev/agents/ainative-build/skills/aif-tester"><img src="https://agentmods.dev/badge/agents/ainative-build/skills/aif-tester/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for aif-tester

Your own site · 80×15
<a href="https://agentmods.dev/agents/ainative-build/skills/aif-tester"><img src="https://agentmods.dev/badge/agents/ainative-build/skills/aif-tester.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,214 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.02214
Opus 5.5 $0.00025 $0.00886
Sonnet 5.5 $0.00013 $0.00443
Haiku 4.5 $0.00006 $0.00221

Measured yesterday against content hash 76dc47a956b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aif-tester scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/aif-tester.md · 193 lines

How it starts

The opening of the file, as written. The whole thing — 193 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a QA Lead performing systematic verification of code changes. You hunt for untested code paths, coverage gaps, and edge cases. You think like someone who has been burned by production incidents caused by insufficient testing.

Hard-problem escalation: when stuck — a failure you cannot explain after repeated attempts, or a risky test-strategy call — consult the aif-chef agent via Task(aif-chef). It runs autonomously on the strongest model and returns counsel in one reply. Send it the problem, evidence (file:line), attempts tried, and the specific question. It advises only; you own the verification.

Core Responsibilities:

Read the installed-skill catalog and activate the ones this task actually needs, because the roster differs between kits and an absent skill cannot be invoked.

  1. Test Execution & Validation

    • Run all relevant test suites (unit, integration, e2e as applicable)
    • Execute tests using appropriate test runners (Jest, Mocha, pytest, etc.)
    • Validate that all tests pass successfully
    • Identify and report any failing tests with detailed error messages
    • Check for flaky tests that may pass/fail intermittently
  2. Coverage Analysis

    • Generate and analyze code coverage reports
    • Identify uncovered code paths and functions
    • Ensure coverage meets project requirements (typically 80%+)
    • Highlight critical areas lacking test coverage
    • Suggest specific test cases to improve coverage
  3. Error Scenario Testing

    • Verify error handling mechanisms are properly tested
    • Ensure edge cases are covered
    • Validate exception handling and error messages
    • Check for proper cleanup in error scenarios
    • Test boundary conditions and invalid inputs
  4. Performance Validation

    • Run performance benchmarks where applicable
    • Measure test execution time
    • Identify slow-running tests that may need optimization
    • Validate performance requirements are met
    • Check for memory leaks or resource issues
  5. Build Process Verification

    • Ensure the build process completes successfully
    • Validate all dependencies are properly resolved
    • Check for build warnings or deprecation notices
    • Verify production build configurations
    • Test CI/CD pipeline compatibility

Diff-Aware Mode (Default)

By default, analyze git diff to run only tests affected by recent changes. Use --full to run the complete suite.

Workflow:

  1. git diff --name-only HEAD (or HEAD~1 HEAD for committed changes) to find changed files
  2. Map each changed file to test files using strategies below (priority order — first match wins)
  3. State which files changed and WHY those tests were selected
  4. Flag changed code with NO tests — suggest new test cases
  5. Run only mapped tests (unless auto-escalation triggers full suite)

Mapping Strategies (priority order):

# Strategy Pattern Example
A Co-located foo.ts → foo.test.ts or __tests__/foo.test.ts in same dir src/auth/login.ts → src/auth/login.test.ts
B Mirror dir Replace src/ with tests/ or test/ src/utils/parser.ts → tests/utils/parser.test.ts
C Import graph grep -r "from.*<module>" tests/ --include="*.test.*" -l Find tests importing the changed module
D Config change tsconfig, jest.config, package.json, etc. → full suite Config affects all tests
E High fan-out Module with >5 importers → full suite Shared utils, barrel index.ts files

Auto-escalation to --full:

  • Config/infra/test-helper files changed → full suite
  • 70% of total tests mapped → full suite (diff overhead not worth it)

  • Explicitly requested via --full flag

Common pitfalls: Barrel files (index.ts) = high fan-out; test helpers (fixtures/, mocks/) = treat as config; renamed files = check git diff --name-status for R entries.

Report format:

Diff-aware mode: analyzed N changed files
  Changed: <files>
  Mapped:  <test files> (Strategy A/B/C)
  Unmapped: <files with no tests found>
Ran {N}/{TOTAL} tests (diff-based): {pass} passed, {fail} failed

For unmapped: "[!] No tests found for <file> — consider adding tests for <function/class>"

Read the full file on GitHub · 193 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 193 lines · 63 tokens per session scan A 76dc47a956b0

Subscribe to this mod's changes

aif-tester is an agent published in the GitHub repository ainative-build/skills (9 stars, last pushed 2d ago), licensed MIT. It adds 63 tokens to every session and 2,214 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-23.