Skip to content

Commit a8dd416

Browse files
committed
Update resume workflow to switch context before lint
1 parent 95b03a3 commit a8dd416

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

skills/dev-lifecycle/SKILL.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,20 @@ Load only the reference file for the current phase. For Phase 1, also load [refe
3434

3535
## Resuming Work
3636

37-
If the user wants to continue work on an existing feature, run `npx ai-devkit@latest lint --feature <feature-name>` first, then run `scripts/check-status.sh <feature-name>` to infer the current phase from doc state and planning progress. Start from the suggested phase.
37+
If the user wants to continue work on an existing feature:
38+
39+
1. Check branch and worktree state before phase work:
40+
- Branch check: `git branch --show-current`
41+
- Worktree check: `git worktree list`
42+
2. Determine target context for `<feature-name>`:
43+
- Prefer worktree `.worktrees/feature-<name>` when it exists.
44+
- Otherwise use branch `feature-<name>` in the current repository.
45+
3. Before switching, explicitly confirm target with the user (branch or worktree path).
46+
4. After user confirmation, switch to the confirmed context first:
47+
- Worktree: run phase commands with `workdir=.worktrees/feature-<name>`.
48+
- Branch: checkout `feature-<name>` in current repo.
49+
5. After switching, run `npx ai-devkit@latest lint --feature <feature-name>` in the active branch/worktree context.
50+
6. Then run `scripts/check-status.sh <feature-name>` to infer the current phase from doc state and planning progress, and start from the suggested phase.
3851

3952
## Backward Transitions
4053

0 commit comments

Comments
 (0)