Agent skill

Test Engineer

by CaoMeiYouRen in CaoMeiYouRen/caomei-auth

编写、补齐、运行和优化测试时使用,优先覆盖 Vitest 场景,也适用于组件逻辑、工具函数、状态管理和服务层的测试设计。用户提到 test、unit test、integration test、coverage、mock、Vitest、补测试时都应触发。

MITAuto-check passedTesting & QA

Install Test Engineer

skills CLI
$ npx skills add CaoMeiYouRen/caomei-auth --skill test-engineer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install CaoMeiYouRen/caomei-auth test-engineer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/CaoMeiYouRen/caomei-auth.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/test-engineer .claude/skills/test-engineer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
test-engineer
GitHub stars
220
Token cost
~252 tokens
SKILL.md length
64 words
Files
1
Skills in repo
14
Repo updated
First seen
Licence
MIT

At a glance

编写、补齐、运行和优化测试时使用,优先覆盖 Vitest 场景,也适用于组件逻辑、工具函数、状态管理和服务层的测试设计。用户提到 test、unit test、integration test、coverage、mock、Vitest、补测试时都应触发。

  • Tasks that involve Unit testing
  • SKILL.md covers 工作流, 关注点, 项目特化提示 and 反模式, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve Integration testing

What it does

Test Engineer is an agent skill from CaoMeiYouRen/caomei-auth. 编写、补齐、运行和优化测试时使用,优先覆盖 Vitest 场景,也适用于组件逻辑、工具函数、状态管理和服务层的测试设计。用户提到 test、unit test、integration test、coverage、mock、Vitest、补测试时都应触发。

Its SKILL.md is about 250 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Unit testing and Integration testing. It works with Vitest. The repository describes itself as: 草梅 Auth 是一个基于 Nuxt 全栈框架的统一登录平台。支持 OAuth2.0 协议,集成邮箱、用户名、手机号、验证码、社交媒体等多种登录注册方式。 The licence is MIT.

When your agent uses it

  • Tasks that involve Unit testing
  • Tasks that involve Integration testing

Example prompts

  • “/test-engineer”

What it can do on your machine

Read from SKILL.md and the folder at commit 7bd3bae. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Test Engineer loads about 252 tokens when it runs. Until then it costs about 35 tokens; SKILL.md has 64 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~35
When it runs · the whole SKILL.md, loaded when a task matches
~252

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from CaoMeiYouRen/caomei-auth at commit 7bd3bae, republished under its MIT licence (© CaoMeiYouRen). 64 words, ~252 tokens.

Download SKILL.mdSave it as .claude/skills/test-engineer/SKILL.md (or your agent's skills folder).
name
test-engineer
description
编写、补齐、运行和优化测试时使用,优先覆盖 Vitest 场景,也适用于组件逻辑、工具函数、状态管理和服务层的测试设计。用户提到 test、unit test、integration test、coverage、mock、Vitest、补测试时都应触发。
metadata.internal
true

Test Engineer

铁律:测试要证明行为,而不是机械复刻实现细节。

工作流

  • Step 1: 理解被测对象 ⚠️ REQUIRED
    • 1.1 先读源码与现有测试,找出关键分支和依赖。
    • 1.2 判断更适合写单元、集成还是更高层验证。
  • Step 2: 设计测试集 ⚠️ REQUIRED
    • 2.1 至少覆盖主流程、失败路径和边界条件。
    • 2.2 确认哪些依赖需要 mock,哪些更适合真实调用。
  • Step 3: 实现测试
    • 3.1 测试描述聚焦业务行为和预期结果。
    • 3.2 避免过度耦合内部实现细节。
  • Step 4: 执行并解释结果
    • 4.1 运行最相关的测试命令。
    • 4.2 失败时先解释根因,再决定改代码还是改测试。

关注点

  • 测试命名是否说明行为。
  • mock 是否掩盖了真正的集成风险。
  • 边界条件是否覆盖空值、异常和顺序问题。
  • 新功能是否补了回归保护。

项目特化提示

  • 如果仓库已有 tests/testSetup.ts 或全局 mock 入口,优先复用,不要在每个测试里重复造轮子。
  • 涉及前端逻辑时,优先考虑对 useI18n、路由和外部请求的可控 mock。
  • 写测试前先核对 package.json 中真实存在的测试命令与运行方式。

反模式

  • 只测 happy path。
  • 用快照或内部实现断言替代关键业务断言。
  • 测试失败时直接改断言让它绿掉。

交付前检查

  • 覆盖了主流程、失败路径和边界场景。
  • 测试断言体现业务行为而非内部细节。
  • 已运行相关测试或明确说明未运行原因。
  • 如仍有测试缺口,已明确指出。

© CaoMeiYouRen, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .github/skills/test-engineer of CaoMeiYouRen/caomei-auth.

Open the folder on GitHubat commit 7bd3bae

Compare with similar skills

Test Engineer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Test Engineer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Test Engineer this skillCaoMeiYouRen/caomei-auth220—~252Automated safety check: PassMIT
Test Writing WorkflowiOfficeAI/AionUi33k1 repos~1.2kAutomated safety check: PassApache-2.0
Designing TestsCloudAI-X/claude-workflow-v21.4k1 repos~1.5kAutomated safety check: PassMIT
Frontend TestingOhh-889/skyroc7951 repos~2.5kAutomated safety check: PassMIT
Running TestsNangoHQ/nango13k—~876Automated safety check: PassCustom licence
Backend Testingbiersoeckli/QuickStack362—~670Automated safety check: PassGPL-3.0

Similar skills

  • Test Writing Workflow

    iOfficeAI/AionUi

    Sets the test-writing workflow for the repository: risk-first scenario lists, behavior-focused Vitest tests, a full run before each commit and a coverage target.

    33k GitHub starsUsed in 1 repo~1.2k tokens
    Testing & QAAuto-check passed
  • Designing Tests

    CloudAI-X/claude-workflow-v2

    Designs and implements testing strategies for any codebase. An agent skill from CloudAI-X/claude-workflow-v2.

    1.4k GitHub starsUsed in 1 repo~1.5k tokens
    Testing & QAAuto-check passed
  • Frontend Testing

    Ohh-889/skyroc

    Generate Vitest + React Testing Library tests for Dify frontend components, hooks, and utilities.

    795 GitHub starsUsed in 1 repo~2.5k tokens
    Testing & QAAuto-check passed
  • Running Tests

    NangoHQ/nango

    A skill your agent uses when running tests in the Nango monorepo - knows unit vs integration configs, vitest commands, Docker setup, and common test patterns

    13k GitHub stars~876 tokensUpdated today
    Testing & QAAuto-check passed
  • Backend Testing

    biersoeckli/QuickStack

    Create and review QuickStack backend unit and integration tests using the project's Vitest, Prisma, SQLite, and k3s conventions.

    362 GitHub stars~670 tokensUpdated today
    Testing & QAAuto-check passed
  • MCP Testing

    adeze/raindrop-mcp

    MCP Testing Strategies with Vitest, Inspector, and Integration Tests

    188 GitHub stars~1.6k tokensUpdated 2 mo ago
    Testing & QAAuto-check passed

More from CaoMeiYouRen/caomei-auth

All 14 skills in this repo
  • Code Reviewer

    CaoMeiYouRen/caomei-auth

    审查当前 git 变更、PR、提交范围、技能定义文件、架构调整或安全敏感代码时使用。输出结构化 Review Gate 结论(Pass/Reject)、问题分级(blocker/warning/suggest)、最低验证矩阵、证据链与复查基线。覆盖正确性、安全、架构、SOLID、可删除代码、性能、异常处理与测试风险;默认只输出 review,不直接修改代码。用户提到 review、code…

    220 GitHub stars~1.5k tokensUpdated 7 days ago
    Auto-check passed
  • Full Stack Master

    CaoMeiYouRen/caomei-auth

    需要统筹需求澄清、上下文扫描、技术方案、前后端实现、UI 验证、测试、质量审查、文档同步和提交节奏时使用。它负责编排多技能协作,而不是亲自替代所有专业技能。用户提到 end-to-end workflow、全流程开发、从需求到提交、PDTFC+、多技能编排时都应触发。

    220 GitHub stars~1k tokensUpdated 7 days ago
    Auto-check passed
  • Quality Guardian

    CaoMeiYouRen/caomei-auth

    运行并解读 lint、类型检查、测试等质量门时使用。它不只是执行命令,还要根据变更范围选择最小充分检查、分析失败原因,并给出是否允许继续提交或发布的判断。用户提到 lint、typecheck、tests、quality gate、验证改动时都应触发。

    220 GitHub stars~358 tokensUpdated 7 days ago
    Auto-check passed
  • Devops Specialist

    CaoMeiYouRen/caomei-auth

    修改 Docker、CI/CD、部署配置、环境变量、运行时参数、构建脚本和发布流程时使用。优先覆盖 Docker、Vercel、Cloudflare 与 GitHub Actions 场景。用户提到 deploy、Dockerfile、workflow、CI、CD、environment variables、build pipeline、release config 时都应触发。

    220 GitHub stars~446 tokensUpdated 7 days ago
    Auto-check: notes
  • Gh CLI

    CaoMeiYouRen/caomei-auth

    使用 GitHub CLI(gh)处理仓库、issue、pull request、workflow、project、release、codespace、gist、search、api、auth、config、alias、secret、variable、extension、ruleset 和 status 等命令行操作时使用。用户提到 gh、gh cli、GitHub CLI、gh…

    220 GitHub stars~460 tokensUpdated 7 days ago
    Auto-check passed
  • Backend Expert

    CaoMeiYouRen/caomei-auth

    设计或实现后端 API、服务层、数据库读写、鉴权权限控制、输入校验、事务处理与错误处理时使用。用户提到 API、route、handler、server、auth、permission、drizzle、database、zod、Hono、Nuxt server routes、backend bug 修复时都应触发。

    220 GitHub stars~329 tokensUpdated 7 days ago
    Auto-check passed

Works with

Categories

Questions about Test Engineer

What does Test Engineer do?

编写、补齐、运行和优化测试时使用,优先覆盖 Vitest 场景,也适用于组件逻辑、工具函数、状态管理和服务层的测试设计。用户提到 test、unit test、integration test、coverage、mock、Vitest、补测试时都应触发。. Test Engineer is an agent skill from CaoMeiYouRen/caomei-auth.

When should I use Test Engineer?

Test Engineer fits situations like: tasks that involve Unit testing; tasks that involve Integration testing.

How do I install Test Engineer in Claude Code?

Run `npx skills add CaoMeiYouRen/caomei-auth --skill test-engineer -a claude-code`. Or copy the skill folder (.github/skills/test-engineer in CaoMeiYouRen/caomei-auth) into .claude/skills/test-engineer in your project. Claude Code loads it when a task matches its description.

How do I install Test Engineer in Codex?

Run `npx skills add CaoMeiYouRen/caomei-auth --skill test-engineer -a codex`. Or copy the skill folder (.github/skills/test-engineer in CaoMeiYouRen/caomei-auth) into .agents/skills/test-engineer in your project. Codex loads it when a task matches its description.

Can I use Test Engineer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add CaoMeiYouRen/caomei-auth --skill test-engineer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/test-engineer, .gemini/skills/test-engineer, .github/skills/test-engineer and .opencode/skills/test-engineer in your project.

What does Test Engineer need to run?

SKILL.md names no scripts, command-line tools or credentials: Test Engineer is instructions for the agent only.

Does Test Engineer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Test Engineer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Test Engineer use?

Test Engineer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Test Engineer use?

About 252 tokens (SKILL.md is roughly 1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Test Engineer?

Skills that share tags, products or a category with Test Engineer: Test Writing Workflow (iOfficeAI/AionUi, 33k stars), Designing Tests (CloudAI-X/claude-workflow-v2, 1.4k stars), Frontend Testing (Ohh-889/skyroc, 795 stars) and Running Tests (NangoHQ/nango, 13k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Test Engineer?

CaoMeiYouRen (a GitHub user) maintains it in CaoMeiYouRen/caomei-auth, which has 220 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on October 1, 2026.

Source: CaoMeiYouRen/caomei-auth on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.