← 教程列表
agents

Task 1: GATE — TDD Validation of Step 1a (Native Tool Preference)

📅 2026/6/12 16:30:02⏱ 约 5 分钟阅读👁 9 阅读

Step 1a is the load-bearing assumption of the entire design. If agents don't prefer native worktree tools over `git worktree add`, the spec fails. Validate this FIRST, before touching any skill files. **Files:** - Create: `tests/claude-code/test-worktree-native-preference.sh` - Read: `skills/using-git-worktrees/SKILL.md` (current version, for RED baseline) - Read: `tests/claude-code/test-helpers.sh` (for `run_claude`, `assert_contains`, etc.) - Read: `skills/writing-skills/testing-skills-with-subagents.md` (TDD framework) **This task is a gate.** If the GREEN phase fails after 2 REFACTOR iterations, STOP. Do not proceed to Task 2. Report back — the creation approach needs redesign. - [ ] **Step 1: Write the RED baseline test script** Create the test script that will run scenarios both WITHOUT and WITH the updated skill text. The RED phase runs against the current skill (which has no Step 1a). ```bash #!/usr/bin/env bash

← 返回教程列表 AI8899 · 内容仅供学习参考