@pi-unipi/workflow 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/skills/plan/SKILL.md
CHANGED
|
@@ -25,13 +25,17 @@ Review what was built, verify task completion, run codebase checks, add reviewer
|
|
|
25
25
|
|
|
26
26
|
---
|
|
27
27
|
|
|
28
|
-
## Phase 1: Load Plan
|
|
28
|
+
## Phase 1: Load Plan & Switch Branch
|
|
29
29
|
|
|
30
30
|
1. If `plan:` arg provided, read that plan
|
|
31
31
|
2. If not, list plans in `.unipi/docs/plans/` and ask user
|
|
32
32
|
3. Read plan fully — understand tasks, acceptance criteria, current status
|
|
33
|
+
4. **Read `workbranch:` from plan frontmatter:**
|
|
34
|
+
- If `workbranch:` exists and is not empty → switch to that branch/worktree
|
|
35
|
+
- If `workbranch:` missing or empty → review on current branch (main)
|
|
36
|
+
- To switch: `git checkout {workbranch}` or use worktree path
|
|
33
37
|
|
|
34
|
-
**Exit:**
|
|
38
|
+
**Exit:** On correct branch. Plan loaded.
|
|
35
39
|
|
|
36
40
|
---
|
|
37
41
|
|
package/skills/work/SKILL.md
CHANGED
|
@@ -39,6 +39,7 @@ If args not provided, ask user interactively:
|
|
|
39
39
|
- "Do you want to work on current branch or create a worktree?"
|
|
40
40
|
- If worktree: "What branch name?" (suggest based on spec topic)
|
|
41
41
|
- Create worktree if not exists
|
|
42
|
+
- **After creating/confirming worktree:** write `workbranch: {branch-name}` to the plan file frontmatter
|
|
42
43
|
|
|
43
44
|
2. **Specs:**
|
|
44
45
|
- List available plans in `.unipi/docs/plans/`
|