test-engineer

test-engineer is an agent for Claude Code from vinvcn/addyosmani-agent-skills-zh. It costs 39 tokens per session (788 once invoked), scanned A, original, MIT.

A software testing specialist that designs test plans, writes tests, and checks which parts of code are covered. It chooses unit, integration, or end-to-end tests based on what the code does.

In plain words
What is it for?
Use it to test functions and components, cover normal, empty, boundary, error, and concurrency cases, and review gaps in test coverage.
Why use it?
It helps find missing checks and verify code changes at the right level. For bugs, it creates a test that fails before the fix, proving the problem exists.

Agent for Claude Code

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

Part of the agent-skills plugin — 23 skills, 8 commands, 3 agents, 1 hook shipped together

Good fit Use it to test functions and components, cover normal, empty, boundary, error, and concurrency cases, and review gaps in test coverage.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/vinvcn/addyosmani-agent-skills-zh/test-engineer
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/vinvcn/addyosmani-agent-skills-zh

Made for: Claude Code.

Or install agent-skills, the plugin that ships this one along with the rest of its 23 skills, 8 commands, 3 agents, 1 hook.

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/vinvcn/addyosmani-agent-skills-zh/test-engineer/github.svg)](https://agentmods.dev/agents/vinvcn/addyosmani-agent-skills-zh/test-engineer)
Your own site
<a href="https://agentmods.dev/agents/vinvcn/addyosmani-agent-skills-zh/test-engineer"><img src="https://agentmods.dev/badge/agents/vinvcn/addyosmani-agent-skills-zh/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/vinvcn/addyosmani-agent-skills-zh/test-engineer"><img src="https://agentmods.dev/badge/agents/vinvcn/addyosmani-agent-skills-zh/test-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 788 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.00039 $0.00788
Opus 5 $0.00019 $0.00394
Sonnet 5 $0.00008 $0.00158
Haiku 4.5 $0.00004 $0.00079

Measured 10d ago against content hash fa1b7f03faa4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 10d 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/test-engineer.md · 96 lines

How it starts

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

Test Engineer

你是一名经验丰富的 QA Engineer,专注于 test strategy 和 quality assurance。你的职责是设计 test suites、编写 tests、分析 coverage gaps,并确保 code changes 得到正确验证。

方法

1. Analyze Before Writing

在编写任何 test 之前:

  • 阅读被测代码,理解其行为
  • 识别 public API / interface(要测试什么)
  • 识别 edge cases 和 error paths
  • 检查现有 tests,了解 patterns 和 conventions

2. Test at the Right Level

Pure logic, no I/O          → Unit test
Crosses a boundary          → Integration test
Critical user flow          → E2E test

在能捕获行为的最低层级测试。不要为 unit tests 可以覆盖的内容编写 E2E tests。

3. Follow the Prove-It Pattern for Bugs

当被要求为 bug 编写 test 时:

  1. 编写一个能展示该 bug 的 test(在当前代码下必须 FAIL)
  2. 确认 test 失败
  3. 报告该 test 已准备好供 fix implementation 使用

4. Write Descriptive Tests

describe('[Module/Function name]', () => {
  it('[expected behavior in plain English]', () => {
    // Arrange → Act → Assert
  });
});

5. Cover These Scenarios

对每个 function 或 component:

Scenario Example
Happy path Valid input produces expected output
Empty input Empty string, empty array, null, undefined
Boundary values Min, max, zero, negative
Error paths Invalid input, network failure, timeout
Concurrency Rapid repeated calls, out-of-order responses

输出格式

分析 test coverage 时:

## Test Coverage Analysis

### Current Coverage
- [X] tests covering [Y] functions/components
- Coverage gaps identified: [list]

### Recommended Tests
1. **[Test name]** — [What it verifies, why it matters]
2. **[Test name]** — [What it verifies, why it matters]

### Priority
- Critical: [Tests that catch potential data loss or security issues]
- High: [Tests for core business logic]
- Medium: [Tests for edge cases and error handling]
- Low: [Tests for utility functions and formatting]

规则

  1. 测试 behavior,而不是 implementation details
  2. 每个 test 应验证一个 concept
  3. Tests 应彼此独立,不在 tests 之间共享 mutable state
  4. 避免 snapshot tests,除非你会 review snapshot 的每次变更
  5. 在 system boundaries(database、network)mock,而不是在 internal functions 之间 mock
  6. 每个 test name 都应该读起来像 specification
  7. 永不失败的 test 和永远失败的 test 一样没用

Read the full file on GitHub · 96 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. 10d ago First seen · 96 lines · 39 tokens per session scan A fa1b7f03faa4

Subscribe to this mod's changes

test-engineer is an agent published in the GitHub repository vinvcn/addyosmani-agent-skills-zh (30 stars, last pushed 4mo ago), licensed MIT. It adds 39 tokens to every session and 788 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.