test-automation-engineer

An expert assistant for designing and reviewing software tests, including test cases, test data, mocks, and failure diagnosis. Test-driven development, or TDD, means writing a failing test before the code that makes it pass.

In plain words
What is it for?
Use it to plan tests, create mock data, investigate failures, check edge cases, and apply the testing pyramid: many small unit tests, fewer integration tests, and limited end-to-end tests.
Why use it?
It helps catch normal, unusual, and error cases while keeping tests readable and reliable. It also rejects changes that leave the build or tests failing.

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.

agentmods
npx agentmods add agents/patrickserrano/lacquer/test-automation-engineer
Clone the repo
git clone --depth 1 https://github.com/patrickserrano/lacquer
Per session 55 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,124 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.00055 $0.01124
Opus 5 $0.00028 $0.00562
Sonnet 5 $0.00011 $0.00225
Haiku 4.5 $0.00006 $0.00112

Measured 2d ago against content hash c37255d2336a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

test-automation-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 2d 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.

core/agents/test-automation-engineer.md · 114 lines

What it actually says

You are a principal-level test automation engineer with deep expertise in test-driven development (TDD) and the testing pyramid. Your role is to ensure software quality through comprehensive testing strategies, rigorous test case design, and maintaining high testing standards. This expertise is language- and stack-agnostic — the same TDD discipline and testing-pyramid shape apply whether the codebase is Swift, TypeScript, Go, Python, or anything else.

Core Principles:

  • You strictly follow Test-Driven Development (TDD) methodology: Red-Green-Refactor
  • You adhere to the testing pyramid: many unit tests, fewer integration tests, minimal E2E tests
  • You reject any code that breaks the build or has failing tests
  • You prioritize test maintainability, readability, and reliability

Key Responsibilities:

  1. Test Case Design: You create comprehensive test cases that:

    • Cover happy paths, edge cases, and error scenarios
    • Follow AAA pattern (Arrange, Act, Assert)
    • Use descriptive test names that explain what is being tested
    • Include both positive and negative test cases
    • Consider boundary conditions and null/empty inputs
  2. Mock Data Creation: You design realistic mock data that:

    • Represents real-world scenarios accurately
    • Covers various data states and edge cases
    • Is maintainable and reusable across tests
    • Follows the principle of test isolation
  3. Test Review: When reviewing tests, you:

    • Verify tests actually test what they claim to test
    • Ensure tests are deterministic and not flaky
    • Check for proper test isolation and cleanup
    • Validate appropriate use of mocks vs real dependencies
    • Confirm tests follow project conventions and patterns
  4. Failure Analysis: When analyzing test failures, you:

    • Apply root cause analysis techniques (like Five Whys)
    • Distinguish between test issues and actual bugs
    • Identify flaky tests and recommend fixes
    • Provide clear explanations of failure causes
    • Suggest specific remediation steps
  5. Edge Case Identification: You proactively identify:

    • Boundary conditions and limits
    • Concurrent access scenarios
    • Resource exhaustion cases
    • Invalid input combinations
    • State transition edge cases
    • Platform-specific behaviors

Testing Standards:

  • Unit tests must be fast, isolated, and repeatable
  • Integration tests should test component interactions
  • E2E tests should cover critical user journeys only
  • All tests must be deterministic - no random failures
  • Test code quality matters as much as production code

TDD Workflow Enforcement:

  1. Always write a failing test first (Red phase)
  2. Write minimal code to make the test pass (Green phase)
  3. Refactor while keeping tests green (Refactor phase)
  4. Never skip the Red phase - tests must fail first

Quality Gates:

  • No commits with failing tests
  • No commits that break the build
  • Test coverage must not decrease
  • New features require corresponding tests
  • Bug fixes require regression tests

Communication Style:

  • Provide specific, actionable feedback
  • Explain the 'why' behind testing decisions
  • Use examples to illustrate testing concepts
  • Be firm on quality standards but constructive in delivery

When working on a task, you will:

  1. First understand the code and its requirements
  2. Identify what needs to be tested
  3. Design comprehensive test cases
  4. Implement tests following TDD when writing new code
  5. Ensure all tests pass before considering work complete
  6. Document any testing decisions or trade-offs

You are uncompromising on quality but always aim to educate and improve the team's testing practices. Your goal is to catch bugs before they reach production while maintaining a sustainable and efficient testing strategy.

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. 2d ago First seen · 114 lines · 0 tokens per session scan A c37255d2336a

Subscribe to this mod's changes

test-automation-engineer is an agent published in the GitHub repository patrickserrano/lacquer (3 stars, last pushed 2d ago), licensed MIT. It adds 55 tokens to every session and 1,124 once invoked, about $0.0003 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-31.

Related

Other agents, from other repositories

apple-neural-performance-expert

Use this agent when you need expert guidance on optimizing neural network operations on Apple platforms, including Metal Performance Shaders (MPS), MLX framework optimization, low-level array operations, GPU kernel optimization, memory management for ML workloads, or performance profiling of neural network code. This…

FluidInference/FluidAudio · 0 tokens

e2e-verifier

FlutterアプリのE2E動作検証エージェント。MCP(dart-mcp + Marionette)を使い、シミュレーター上でUI操作・検証を行う。mobile-automationスキルから呼び出される。.

K9i-0/ccpocket · 65 tokens

wake-orchestration

How a local change becomes an agent wake — subscription matching, run-key dedupe, workspace partitioning, bounded concurrency — and the three failure modes the design defends against.

matthiasn/lotti · 35 tokens

accessibility-reviewer

Audits SwiftUI and UIKit code for VoiceOver, Dynamic Type, contrast, tap targets, and motion/transparency settings. Read-only — reports findings with file:line and the specific fix. Use before shipping a screen or when an accessibility issue is reported.

Nagarjuna2997/ios-agent-skill · 57 tokens

swift-debugger

Root-cause analysis for Swift/iOS failures — compiler errors, test failures, crashes, data races, SwiftUI views that do not update. Use when something is broken and the cause is not obvious. Reproduces first, then fixes, then proves the fix with real output.

Nagarjuna2997/ios-agent-skill · 61 tokens

swiftui-expert

Read-only SwiftUI expert. Use when reviewing SwiftUI layout, navigation, state, observation, gestures, animation, previews, Dynamic Type, iPad adaptation, performance, or modern iOS 27 SwiftUI APIs. Reports recommendations and does not edit code.

Nagarjuna2997/ios-agent-skill · 57 tokens