Loading...
Loading...
Compare original and translation side by side
/test-designer/test-designer| Task shape | Executor | Reason |
|---|---|---|
| Complex, architectural implications | Independent Agent (e.g., | True zero-context isolation; can use strongest model at highest effort |
| Medium complexity, current conversation clean | In-conversation subagent | Cheaper; still acceptable if main Agent hasn't yet proposed an implementation |
| Trivial | Don't dispatch — write tests inline |
| 任务类型 | 执行主体 | 原因 |
|---|---|---|
| 复杂、涉及架构影响 | Independent Agent(例如:全新会话的 | 真正的无上下文隔离;可使用最强模型并投入最高精力 |
| 中等复杂度、当前对话无干扰 | 对话内子Agent | 成本更低;若主Agent尚未提出实现方案,此方式仍可接受 |
| 简单任务 | 不要调度 —— 直接在代码内编写测试 |
xhighlowmediumhighxhighYou are designing failing tests for a feature. You will NOT see or write the
implementation. Your job is to produce executable tests that fail today and
pass only when the feature is correctly implemented.
Requirement:
<paste requirement description + acceptance criteria>
Code paths (read-only, for understanding context):
<list of file paths>
Existing test framework and conventions:
<infer from repo or specify>
Produce:
1. A test plan — enumerate the behaviors being tested (happy path + edge
cases), grouped by category (boundary / concurrency / lifecycle /
invariants / adversarial).
2. Executable test files that fail against the current code (or against
an empty implementation).
3. For each test, one-line rationale explaining the bug it would catch.
Constraints:
- Do NOT propose an implementation.
- Do NOT edit files outside the test directory.
- Cover edge cases explicitly; don't only test the happy path.
- Use the project's existing test framework and style.xhighlowmediumhighxhighYou are designing failing tests for a feature. You will NOT see or write the
implementation. Your job is to produce executable tests that fail today and
pass only when the feature is correctly implemented.
Requirement:
<paste requirement description + acceptance criteria>
Code paths (read-only, for understanding context):
<list of file paths>
Existing test framework and conventions:
<infer from repo or specify>
Produce:
1. A test plan — enumerate the behaviors being tested (happy path + edge
cases), grouped by category (boundary / concurrency / lifecycle /
invariants / adversarial).
2. Executable test files that fail against the current code (or against
an empty implementation).
3. For each test, one-line rationale explaining the bug it would catch.
Constraints:
- Do NOT propose an implementation.
- Do NOT edit files outside the test directory.
- Cover edge cases explicitly; don't only test the happy path.
- Use the project's existing test framework and style.ImportError[1, 2, 3]ImportError[1, 2, 3]test-driven-developmenttest-driven-developmentA test plan (bullet list, grouped by category) followed by the test files. Each test must include a one-line rationale comment. No implementation code. No commentary on how to implement. If assumptions about the code are needed, list them explicitly at the top of the test file.
测试计划(按类别分组的项目符号列表),随后是测试文件。每个测试必须包含一行理由注释。不得包含实现代码。不得提供实现建议。若需要对代码做出假设,需在测试文件顶部明确列出。
ImportErrorImportErrorbrainstormingtest-designertest-driven-developmentsystematic-debuggingverification-before-completionbrainstormingtest-designertest-driven-developmentsystematic-debuggingverification-before-completionUser: Starting work on the new plugin dependency resolver. Design tests first.
Assistant:
1. Requirement: "Resolver takes a plugin manifest and returns install order
respecting deps and detecting cycles. Must handle: transitive deps,
diamond deps, self-references, missing deps, cycles."
2. Code paths: src/plugins.ts, .claude/plugins.json schema, tests/ dir
3. Dispatch to an independent-agent skill (fresh session) at `xhigh` effort,
read-only on src/, writable on tests/
4. Agent returns: test plan (5 categories, 18 tests), tests/resolver.test.ts
with failing assertions + per-test rationale comments
5. Main Agent runs tests → all red → validates rationale → hands offUser: Starting work on the new plugin dependency resolver. Design tests first.
Assistant:
1. Requirement: "Resolver takes a plugin manifest and returns install order
respecting deps and detecting cycles. Must handle: transitive deps,
diamond deps, self-references, missing deps, cycles."
2. Code paths: src/plugins.ts, .claude/plugins.json schema, tests/ dir
3. Dispatch to an independent-agent skill (fresh session) at `xhigh` effort,
read-only on src/, writable on tests/
4. Agent returns: test plan (5 categories, 18 tests), tests/resolver.test.ts
with failing assertions + per-test rationale comments
5. Main Agent runs tests → all red → validates rationale → hands off