Parent
#28
What to build
When skill-writer test is called with a scope that already exists, it must clean the existing scope before creating a new one.
This ensures each test call starts with a genuinely fresh subagent — no leftover worktree state, no old history.jsonl, no stale branch. The recreate must call the same logic as skill-writer clean to guarantee consistency.
Acceptance criteria
Blocked by
Parent
#28
What to build
When
skill-writer testis called with a scope that already exists, it must clean the existing scope before creating a new one.This ensures each
testcall starts with a genuinely fresh subagent — no leftover worktree state, no oldhistory.jsonl, no stale branch. The recreate must call the same logic asskill-writer cleanto guarantee consistency.Acceptance criteria
skill-writer test --scope foo "..."called when~/local/tmp/claude/skill-writer/foo/already exists cleans the old scope first, then creates a new onehistory.jsonlis gone after recreateteston a new scope (no prior state) is unaffectedBlocked by