一键导入
test-authoring
Design and write focused unit, integration, regression, and acceptance tests with reliable validation commands.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Design and write focused unit, integration, regression, and acceptance tests with reliable validation commands.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Runtime instructions for Ask mode: answer directly without code mutation.
Runs configurable multi-round research with compare, review, and explore modes, visible progress, source collection, and final sourced answers.
Creates and maintains project-board tasks with correct dedupe, umbrella/root linking, dependencies, tags, authors, assignments, and autopilot queue placement.
Runtime instructions for Plan mode: produce implementation or investigation plans without code mutation.
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".
| name | test-authoring |
| description | Design and write focused unit, integration, regression, and acceptance tests with reliable validation commands. |
| version | 1.0.0 |
| author | Sloppy Team |
| license | MIT |
| platforms | ["linux","macos","windows"] |
| metadata | {"hermes":{"tags":["Development","Testing","QA","Regression","Acceptance"],"related_skills":["tdd-workflow","development-code-review"]}} |
Use this skill when the user asks to add tests, improve coverage, write regression tests, define validation, or convert requirements into executable checks.
Before writing tests, identify:
Prefer the lowest test level that still proves the behavior with confidence.
Use unit tests for pure logic, transformations, validators, parsers, reducers, and small services with isolated dependencies.
Good unit tests are fast, deterministic, and specific. Avoid asserting private implementation details unless there is no better seam.
Use integration tests when correctness depends on persistence, transport, filesystem behavior, plugin boundaries, generated resources, or interactions between components.
Keep integration fixtures minimal and clean them up reliably.
Use regression tests when fixing a reported bug. A good regression test:
Use acceptance tests or scenario tests for user-visible workflows, CLI behavior, dashboard flows, or API contracts.
Acceptance tests should verify outcomes that matter to the user, not every internal step.
Run validation in layers:
Always report exactly what was run and the result. If validation cannot be run, explain the blocker and provide the best available manual verification.
When reporting test work, use:
## Test Summary
Added/updated:
- `path/to/test.ext` — covers <behavior>
Validation:
- `<command>` — <pass/fail/not run>
Coverage notes:
- Covered: <cases>
- Not covered / follow-up: <cases or none>