一键导入
testing
Comprehensive test creation using TDD principles. Use when writing tests, improving coverage, fixing failing tests, or setting up test infrastructure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Comprehensive test creation using TDD principles. Use when writing tests, improving coverage, fixing failing tests, or setting up test infrastructure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Remove AI-generated code smells and patterns from code. Use when cleaning up AI-generated code, removing over-commenting, simplifying verbose patterns, or making code look like a senior engineer wrote it.
Systematic code review with structured output and actionable findings. Use when reviewing code, auditing quality, checking for bugs, security vulnerabilities, or performance issues.
Create and maintain high-quality documentation using the librarian subagent. Use when writing docs, READMEs, API documentation, code summaries, or any text-based artifacts.
Design-first frontend development with modern UI/UX principles. Use when working on design, UI, styling, layout, CSS, responsive design, animations, components, or frontend visual tasks.
Atomic commits, rebase surgery, history search, and safe git operations. Use when committing, rebasing, squashing, searching git history, or performing any git operations.
Orchestrate multiple specialized subagents in a coordinated workflow. Use when running multiple agents together, delegating to agents, or executing complex multi-agent pipelines.
| name | testing |
| description | Comprehensive test creation using TDD principles. Use when writing tests, improving coverage, fixing failing tests, or setting up test infrastructure. |
Trigger: Use when writing tests, improving coverage, fixing failing tests, or setting up test infrastructure. Or when user says "test", "write tests", "coverage", "TDD".
Comprehensive test creation using the testing-expert subagent. Follows
TDD principles with arrange-act-assert pattern.
| Type | When | Tool |
|---|---|---|
| Unit | Single function/class | Direct invocation |
| Integration | Multiple components | End-to-end flow |
| Property | Input/output invariants | Property-based testing |
// Arrange: setup inputs, mocks, state
const input = ...;
// Act: call the function
const result = targetFunction(input);
// Assert: verify expected output
expect(result).toBe(expected);
Use the testing-expert subagent to write tests for [module/file]