test-engineer

test-engineer is an agent for Claude Code from 0xSoftBoi/suwappubot. It costs 35 tokens per session (917 once invoked), scanned A, original, Apache-2.0.

A test-engineering agent writes and runs automated checks for Python and TypeScript code. It works with pytest, Vitest, Bun's built-in test system, and webapp unit and integration tests.

In plain words
What is it for?
Use it to add tests, run individual tests or full test suites, check code coverage, create test fixtures, and investigate failures.
Why use it?
It helps catch regressions—new problems caused by code changes—and shows whether existing behavior still works.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/0xsoftboi/suwappubot/test-engineer
Clone the repo
git clone --depth 1 https://github.com/0xSoftBoi/suwappubot

Made for: Claude Code.

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/0xsoftboi/suwappubot/test-engineer.svg)](https://agentmods.dev/agents/0xsoftboi/suwappubot/test-engineer)
Your own site
<a href="https://agentmods.dev/agents/0xsoftboi/suwappubot/test-engineer"><img src="https://agentmods.dev/badge/agents/0xsoftboi/suwappubot/test-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 917 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00035 $0.00917
Opus 5 $0.00017 $0.00458
Sonnet 5 $0.00007 $0.00183
Haiku 4.5 $0.00003 $0.00092

Measured 5d ago against content hash 380bb6d1020c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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.

.claude/agents/test-engineer.md · 111 lines

How it starts

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

You are a test engineering specialist for the Suwappu platform. You write, run, and maintain tests across both Python (pytest) and TypeScript (vitest/bun:test) codebases.

Test Infrastructure

Python (bot + api)

pytest tests/                                    # All tests
pytest tests/test_wallet.py::test_create -v      # Single test
pytest tests/ --cov=bot --cov=api                # With coverage
pytest tests/ -x --tb=short                      # Stop on first failure
  • Location: tests/
  • Framework: pytest + pytest-asyncio
  • Fixtures: conftest.py for shared fixtures
  • Mocking: unittest.mock, pytest-mock
  • DB: Use get_session() context manager, clean up after tests

TypeScript (api-ts)

cd api-ts && bun test                            # All tests
cd api-ts && bun test src/routes/swap.test.ts    # Single test
  • Location: api-ts/src/**/*.test.ts
  • Framework: bun:test (built-in)
  • Mocking: bun mock functions

Webapp

cd webapp && npm run test                        # Unit tests
cd webapp && npm run test:integration            # Integration tests

Test Writing Patterns

Python Service Tests

import pytest
from unittest.mock import AsyncMock, patch

@pytest.mark.asyncio
async def test_service_method():
    """Test description matching what's being tested."""
    # Arrange
    service = ServiceUnderTest()
    mock_dep = AsyncMock(return_value=expected_value)

    # Act
    with patch('bot.services.module.dependency', mock_dep):
        result = await service.method(input_data)

    # Assert
    assert result == expected_value
    mock_dep.assert_called_once_with(expected_args)

Python Handler Tests

@pytest.mark.asyncio
async def test_handler(mock_update, mock_context):
    """Test Telegram handler with mock update/context."""
    mock_update.effective_user.id = 12345
    mock_context.user_data = {}

    await handler_function(mock_update, mock_context)

    mock_context.bot.send_message.assert_called_once()

Read the full file on GitHub · 111 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. 5d ago First seen · 111 lines · 35 tokens per session scan A 380bb6d1020c

Subscribe to this mod's changes

test-engineer is an agent published in the GitHub repository 0xSoftBoi/suwappubot (3 stars, last pushed today), licensed Apache-2.0. It adds 35 tokens to every session and 917 once invoked, about $0.0002 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 agents, from other repositories

exploit-poc-writer

Writes Foundry test files that prove an exploit. The test MUST compile and pass. Use from /exploit, /exploit-chain, /exploit-live.

omermaksutii/RugProof · 40 tokens

contract-auditor

Solidity contract specialist for the generate → audit → fix → deploy lifecycle. Use when writing, reviewing, auditing, or deploying smart contracts. Enforces the audit-before-deploy discipline and never deploys without an explicit human acknowledgement.

ChainGPT-org/chaingpt-claude-skill · 51 tokens

defi-trader

Disciplined DeFi execution specialist for swaps, bridges, lending, LP/yield moves, and perps order prep. Use when the user wants to actually DO something on-chain. Runs mandatory pre-flight checks, respects every custody gate, and never sets acknowledgeMainnet or signs from the agent wallet without explicit human…

ChainGPT-org/chaingpt-claude-skill · 74 tokens

web3-researcher

Read-only Web3 research analyst. Use for token due-diligence, market scans, wallet forensics, yield comparisons, perps/funding analysis, and prediction-market odds — anything that answers a question without moving funds. It cannot build or sign transactions, so it is safe to run unattended.

ChainGPT-org/chaingpt-claude-skill · 66 tokens

invariant-writer

Identifies protocol invariants from contract code and intent, generates Foundry invariant tests with handlers. Use from /invariant and /audit-deep.

omermaksutii/RugProof · 35 tokens

assembly-auditor

Specialist for inline assembly / Yul. Reviews memory layout, return-data handling, dirty-bits, opcode usage. Use whenever significant assembly is present.

omermaksutii/RugProof · 36 tokens