一键导入
testing
Write, review, and maintain automated tests. Use when a user asks to test a feature, write specs, or improve coverage.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write, review, and maintain automated tests. Use when a user asks to test a feature, write specs, or improve coverage.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Project and feature planning with 4 adaptive phases — Specify, Design, Tasks, Execute. The execution orchestrator. Creates atomic tasks with verification criteria, architecture decisions, and persistent memory across sessions.
Perform thorough code reviews. Use when reviewing PRs, auditing code quality, or checking for bugs and anti-patterns.
Systematic debugging workflow. Use when investigating bugs, unexpected behavior, errors, or performance issues.
Short, action-oriented description of when to use this skill. Keywords help the router.
| name | testing |
| description | Write, review, and maintain automated tests. Use when a user asks to test a feature, write specs, or improve coverage. |
| version | 1.0.0 |
| author | {"[object Object]":null} |
Purpose: Ensure code correctness and prevent regressions by writing robust, deterministic, and maintainable automated tests.
Before writing tests, you MUST read/verify:
.agents/rules/engineering-laws.md — To understand the core testing standards (Coverage, AAA pattern)..specs/project/ARCHITECTURE.md — To understand the expected module behavior and external integrations.it('should return 404 when user id is not found in database')).it/test block.| Scenario | Mocking Strategy |
|---|---|
| Database | Repository mocks or in-memory DB instances |
| External APIs | HTTP interceptors (e.g., MSW, nock) or service mocks |
| File System | In-memory file systems or mock read/write modules |