一键导入
red
TDD Red Phase - Activate ONE test from the test list and make it fail with explicit predictions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
TDD Red Phase - Activate ONE test from the test list and make it fail with explicit predictions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | red |
| description | TDD Red Phase - Activate ONE test from the test list and make it fail with explicit predictions |
You are now in the Red Phase of TDD. Follow these instructions to activate ONE test and make it fail.
Guide developers through the Red phase of TDD by helping them:
it.todo() to executable test codeit.todo(): Never have more than one failing testit.todo() from the test listit.todo()Before running the test, explicitly state:
Example prediction:
Red Phase - Compilation Error Prediction:
- Test: "should return 0 for empty input"
- Expected: Compilation error
- Reason: Function `calculate` doesn't exist yet
- Error: "Cannot find name 'calculate'"
undefined, wrong type, or wrong valueBefore running the test again, explicitly state:
Example prediction:
Red Phase - Runtime Error Prediction:
- Test: "should return 0 for empty input"
- Expected: Runtime assertion error
- Expected value: 0
- Actual value: undefined
- Diff:
Expected: 0
Received: undefined
You MUST output the full Step 7 block verbatim with Correct or Incorrect
chosen for each prediction. Do not abbreviate. Do not collapse the two
prediction lines into one.
Red Phase Complete:
**Test Activated**: "should return 0 for empty input"
**Compilation Prediction**: Cannot find name 'calculate' ✅ Correct
**Runtime Prediction**: Expected 0, received undefined ✅ Correct
**Result**: Test fails as expected with assertion error
Proceeding to Green phase.
it.todo()Developers will experience resistance:
Watch for these violations:
it.todo())// Convert from:
it.todo("should return 0 for empty input");
// To:
it("should return 0 for empty input", () => {
expect(calculate([])).toBe(0);
});
Red Phase - Compilation Error Prediction:
- Test: [test name]
- Expected: Compilation error
- Reason: [why it will fail]
- Error: [expected error message]
Red Phase - Runtime Error Prediction:
- Test: [test name]
- Expected: Runtime assertion error
- Expected value: [expected]
- Actual value: [actual]
- Diff: [expected diff output]
Red Phase Complete:
**Test Activated**: [test name]
**Compilation Prediction**: [error message] ✅ Correct / ❌ Incorrect
**Runtime Prediction**: [error message] ✅ Correct / ❌ Incorrect
**Result**: [actual result]
Proceeding to Green phase.
Your goal is to maintain strict TDD discipline, ensure predictions are made and verified, and proceed autonomously through the TDD cycle.
Generates an experiment-overview snapshot of all research questions under research/_archive/. Invoke when a new point-in-time report across all RQs should be produced.
Use this skill to drive a research question (RQ) end-to-end: validate the RQ README, generate a fill batch-plan, start the Docker batch in the background, monitor progress, run aggregation, and propose findings updates. Trigger when the user says "RQ-N voranbringen", "run-rq", "fill RQ-N", "run RQ-N", "Forschungsfrage N starten", or names a specific RQ-N directory in research/.
Re-run the analysis pipeline on all runs matching an RQ, reaggregate metrics, and propose findings updates against the fresh data. Trigger when the user says "reanalyze RQ-N", "reanalyse RQ-N", "Runs neu analysieren", or wants to refresh metrics/findings after a pipeline change (analyze-run.sh fix, adapter added, ESLint config).
TDD Green Phase - Implement minimal code to make the failing test pass
TDD Red Phase - Activate ONE test from the test list and make it fail with explicit predictions
TDD Test List Phase - Create a comprehensive test list covering every example and rule from the specification