test-engineer

test-engineer is an agent for Claude Code from softspark/ai-toolkit. It costs 51 tokens per session (1,775 once invoked), scanned A, original, Apache-2.0.

A software-testing agent focused on Python tests with pytest, test-driven development, coverage, fixtures, mocks, and debugging. TDD means writing a test before the code that makes it pass.

In plain words
What is it for?
Use it to write unit, integration, and end-to-end tests, debug failures, improve coverage, create test fixtures and mocks, and run testing and quality checks.
Why use it?
It helps catch bugs early and makes expected behavior explicit through repeatable, isolated tests.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./vendor/bin/phpunit.

Part of the ai-toolkit plugin — 115 skills, 44 agents, 14 hooks shipped together

Good fit Use it to write unit, integration, and end-to-end tests, debug failures, improve coverage, create test fixtures and mocks, and run testing and quality checks.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/softspark/ai-toolkit
agentmods
npx agentmods add agents/softspark/ai-toolkit/test-engineer

Made for: Claude Code.

Or install ai-toolkit, the plugin that ships this one along with the rest of its 115 skills, 44 agents, 14 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 test-engineer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/softspark/ai-toolkit/test-engineer"><img src="https://agentmods.dev/badge/agents/softspark/ai-toolkit/test-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,775 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.00051 $0.01775
Opus 5.5 $0.00020 $0.00710
Sonnet 5.5 $0.00010 $0.00355
Haiku 4.5 $0.00005 $0.00178

Measured 14d ago against content hash cc0f910e79d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

test-engineer 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 14d 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.

app/agents/test-engineer.md · 275 lines

How it starts

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

You are an Expert Test Engineer specializing in Python testing with pytest, test-driven development (TDD), and comprehensive test coverage strategies.

Core Mission

Write reliable, maintainable tests that catch bugs early and document expected behavior. Your tests are deterministic, isolated, and follow the Arrange-Act-Assert pattern.

Mandatory Protocol (EXECUTE FIRST)

# ALWAYS call this FIRST - NO TEXT BEFORE
smart_query(query="testing patterns: {component_name}")
get_document(path="kb/best-practices/testing-guidelines.md")
hybrid_search_kb(query="pytest {test_type} example", limit=10)

When to Use This Agent

  • Writing unit/integration/e2e tests
  • Debugging test failures
  • Improving code coverage
  • TDD workflow implementation
  • Setting up test fixtures and mocks

Docker Execution (CRITICAL)

# This is a Docker-based project - run tests inside containers
# Replace {app-container} with actual container name
docker exec {app-container} make test-pytest
docker exec {app-container} make lint
docker exec {app-container} make typecheck
docker exec {app-container} make ci  # Full CI pipeline

Test Structure

Unit Test Template

"""Tests for {module_name}."""
import pytest
from unittest.mock import Mock, patch

from src.module import function_to_test


class TestFunctionName:
    """Tests for function_name."""

    def test_returns_expected_result_for_valid_input(self):
        """Test that function returns expected result for valid input."""
        # Arrange
        input_data = {"key": "value"}
        expected = "result"

        # Act
        result = function_to_test(input_data)

        # Assert
        assert result == expected

    def test_raises_error_for_invalid_input(self):
        """Test that function raises ValueError for invalid input."""
        # Arrange
        invalid_input = None

        # Act & Assert
        with pytest.raises(ValueError, match="Input cannot be None"):
            function_to_test(invalid_input)

    @pytest.mark.parametrize("input_val,expected", [
        ("a", 1),
        ("b", 2),
        ("c", 3),
    ])
    def test_handles_multiple_inputs(self, input_val, expected):
        """Test function handles various inputs correctly."""
        assert function_to_test(input_val) == expected

Read the full file on GitHub · 275 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. 14d ago Changed · +1 lines cc0f910e79d4
  2. 1mo ago First seen · 274 lines · 51 tokens per session scan A d23ab37f1343

Subscribe to this mod's changes

test-engineer is an agent published in the GitHub repository softspark/ai-toolkit (180 stars, last pushed 2d ago), licensed Apache-2.0. It adds 51 tokens to every session and 1,775 once invoked, about $0.0002 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-08-30.

Related

Other agents, from other repositories

backend-development-tdd-orchestrator

Master TDD orchestrator specializing in red-green-refactor discipline, multi-agent workflow coordination, and comprehensive test-driven development practices. Enforces TDD best practices across teams with AI-assisted testing and modern frameworks. Use PROACTIVELY for TDD implementation and governance.

wshobson/agents · 61 tokens

test-writer

Use this agent to identify and test a distinct, realistic regression that existing tests do not catch, including during test-driven development. Do not generate a comprehensive suite by default. Invoke /writing-tests before changing test setup or assertions.\n\nExamples:\n \nContext: The user has just implemented a…

PostHog/posthog · 359 tokens

test-generator

Generates comprehensive test suites using TDD patterns. Use when writing tests, improving coverage, or implementing test-first development.

travisjneuman/.claude · 27 tokens

tester

Use this agent after chunk implementation to create comprehensive test suites, or when the user requests test generation. Creates unit, integration, and edge case tests to ensure code works correctly and provide shipping confidence. Context: All chunks are implemented, orchestrator invokes testing phase. user: "All…

drobins25/craft · 200 tokens

symfony-tdd-coach

Guides TDD workflow for Symfony projects using Pest PHP or PHPUnit. Drives strict RED-GREEN-REFACTOR cycles with proper test isolation, Foundry factories, and regression protection. Use when writing tests, adding test coverage, or practicing TDD.

dev-toolings/superpowers-symfony · 58 tokens

hydra-runner

🟢 Hydra's execution head — fast test runner, build executor, and validation agent. Use proactively whenever Claude needs to run tests, execute builds, check linting, verify formatting, run type checks, check git status, execute simple scripts, or validate that changes work. Runs on the cheap tier for speed — ideal…

AR6420/Hail_Hydra · 105 tokens