test-agent

test-agent is a skill for Claude Code from oyi77/1ai-skills. It costs 23 tokens per session (1,101 once invoked), scanned A, original, MIT.

A testing method for building and maintaining test suites that cover normal behavior, errors, unusual inputs, and connections between parts of a system.

In plain words
What is it for?
Use it to analyze test gaps, write tests for likely failures, check edge cases, and maintain coverage requirements.
Why use it?
It helps find missing checks and avoids tests that pass without detecting realistic bugs.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the 1ai-skills plugin — 187 skills, 4 commands shipped together

Good fit Use it to analyze test gaps, write tests for likely failures, check edge cases, and maintain coverage requirements.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oyi77/1ai-skills/test-agent
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.

Any agent
npx skills add oyi77/1ai-skills --skill test-agent
Clone the repo
git clone --depth 1 https://github.com/oyi77/1ai-skills

Made for: Claude Code.

Or install 1ai-skills, the plugin that ships this one along with the rest of its 187 skills, 4 commands.

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 test-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/oyi77/1ai-skills/test-agent/github.svg)](https://agentmods.dev/skills/oyi77/1ai-skills/test-agent)
Your own site
<a href="https://agentmods.dev/skills/oyi77/1ai-skills/test-agent"><img src="https://agentmods.dev/badge/skills/oyi77/1ai-skills/test-agent/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 test-agent

Your own site · 80×15
<a href="https://agentmods.dev/skills/oyi77/1ai-skills/test-agent"><img src="https://agentmods.dev/badge/skills/oyi77/1ai-skills/test-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,101 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00023 $0.01101
Opus 5 $0.00012 $0.00550
Sonnet 5 $0.00005 $0.00220
Haiku 4.5 $0.00002 $0.00110

Measured 9d ago against content hash b3b064940fb1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

test-agent 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 9d ago.

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/coding/test-agent/SKILL.md · 127 lines

How it starts

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

Test Agent

Quick Reference — see parent for full agent ecosystem.

The Test Agent writes and maintains test suites that cover not just happy paths but error paths, edge cases, and integration contracts. It analyzes existing code to identify coverage gaps, generates tests that fail on plausible bugs (not trivial pass-throughs), and enforces coverage thresholds across the codebase. Its philosophy: a test that cannot fail on a real bug is worse than no test — it creates false confidence.

When Not to Use

  • Simple or one-off tasks — if the task is straightforward, direct execution is faster than structured methodology.
  • Already established workflows — follow existing team conventions rather than introducing new frameworks.
  • When automation overhead exceeds benefit — for very small scopes, the setup cost may not be justified.

Dependencies

  • Python 3.8+ or Node.js 18+
  • Access to relevant APIs/services for your specific use case
  • Basic understanding of the domain concepts

Commands

# Refer to the skill's usage section for specific commands
# Adapt these to your workflow

Key Responsibilities

  • Coverage gap analysis: Profile the existing test suite to find uncovered branches, error paths, and edge cases — not just line coverage
  • Generate meaningful tests: Write tests that defend explicit contracts (inputs → outputs, error states, invariants, transitions) rather than testing implementation details
  • Regression test for bugs: For every bug fix, generate a test that reproduces the original failure and confirms it stays fixed

Code Example

"""Minimal test agent pattern — analyze coverage and generate tests."""

import json, sys
from pathlib import Path

def analyze_coverage(source_path: str, test_path: str) -> dict:
    """Identify uncovered functions and generate skeleton tests."""
    source = Path(source_path)
    tests = Path(test_path)

    source_funcs = set()
    for file in source.rglob("*.py"):
        content = file.read_text()
        for line in content.split("\n"):
            stripped = line.strip()
            if stripped.startswith("def ") and not stripped.startswith("def _"):
                name = stripped.split("(")[0].replace("def ", "")
                source_funcs.add(name)

    test_funcs = set()
    for file in tests.rglob("test_*.py"):
        content = file.read_text()
        for line in content.split("\n"):
            stripped = line.strip()
            if stripped.startswith("def test_"):
                name = stripped.split("(")[0].replace("def ", "")
                test_funcs.add(name)

    uncovered = source_funcs - test_funcs

    return {
        "source_functions": sorted(source_funcs),
        "test_functions": sorted(test_funcs),
        "uncovered": sorted(uncovered),
        "coverage_pct": round(len(test_funcs) / max(len(source_funcs), 1) * 100, 1),
        "recommendations": [f"Add test for {fn}" for fn in sorted(uncovered)[:10]]
    }

if __name__ == "__main__":
    result = analyze_coverage(sys.argv[1], sys.argv[2])
    print(json.dumps(result, indent=2))

Read the full file on GitHub · 127 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. 9d ago First seen · 127 lines · 23 tokens per session scan A b3b064940fb1

Subscribe to this mod's changes

test-agent is a skill published in the GitHub repository oyi77/1ai-skills (12 stars, last pushed yesterday), licensed MIT. It adds 23 tokens to every session and 1,101 once invoked, about $0.0001 per session on Opus 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-08-30.

Related

Other skills, from other repositories

test-data-generator

Creates test fixtures, mock data, and test scenarios for unit and integration tests. Use when setting up test data, creating mocks, or generating test fixtures.

armanzeroeight/fastagent-plugins · 35 tokens

test-coverage-analyzer

Analyzes test coverage reports, identifies gaps, and recommends priority areas for testing. Use when reviewing coverage, finding untested code, or planning test improvements.

armanzeroeight/fastagent-plugins · 37 tokens

test-generator

Generates dbt tests including schema tests, data quality tests, and freshness checks. Use when adding tests to dbt models or implementing data quality validation.

armanzeroeight/fastagent-plugins · 34 tokens

matrix-optimizer

Optimize GitHub Actions matrix strategies for testing across multiple versions, platforms, and configurations. Use when configuring matrix builds, testing multiple versions, cross-platform testing, or optimizing CI resource usage. Trigger words include "matrix strategy", "test matrix", "multiple versions"…

armanzeroeight/fastagent-plugins · 60 tokens

bestow-curse

Bestow Curse saddles a target with a lasting disadvantage. The real-world version is constraint injection: deliberately adding friction, limitations, or handicaps to see how a system, process, or team adapts. This is the skill of resilience testing through artificial adversity — bandwidth throttling, feature removal…

Hmbown/Wizards-of-the-Ghosts · 68 tokens

confusion

Confusion makes targets act randomly and unpredictably. The real-world version is chaos engineering: injecting controlled randomness, unexpected inputs, and edge cases to discover how systems behave when things go wrong. This is fuzzing, monkey testing, and the art of breaking things on purpose so they do not break by…

Hmbown/Wizards-of-the-Ghosts · 65 tokens