@xynogen/pix-skills 0.4.13 → 0.4.14

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/skills/handoff.md +21 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xynogen/pix-skills",
3
- "version": "0.4.13",
3
+ "version": "0.4.14",
4
4
  "description": "Pi extension — agent skill loader (skill tool + skills bundle)",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
package/skills/handoff.md CHANGED
@@ -13,14 +13,26 @@ Single-agent session handoff via toggle. One session closes, next picks up exact
13
13
 
14
14
  ## Below are what agent MUST do
15
15
 
16
- ### Step 1: Detect Mode
16
+ ### Step 1: Determine Repo Root
17
17
 
18
- ```bash
19
- test -f HANDOFF.md && echo "RECEIVING" || echo "GIVING"
18
+ Resolve the directory where `HANDOFF.md` should live:
19
+
20
+ - User mentioned a specific path/repo in the prompt? Use that as root.
21
+ - Otherwise: use the `bash` tool to run `git rev-parse --show-toplevel` from the relevant directory.
22
+ - Still unclear? Ask: "Which directory is the repo root for this handoff?"
23
+
24
+ Call this resolved path **REPO_ROOT** in your reasoning only — never pass it as a shell variable.
25
+
26
+ ### Step 2: Detect Mode
27
+
28
+ Use the `bash` tool to check if `HANDOFF.md` exists in REPO_ROOT:
29
+
30
+ ```
31
+ bash: ls <REPO_ROOT>/HANDOFF.md
20
32
  ```
21
33
 
22
- - Output `GIVING` → proceed to **Giving Mode**
23
- - Output `RECEIVING` → proceed to **Receiving Mode**
34
+ - File found → **Receiving Mode**
35
+ - File not found (error/empty) → **Giving Mode**
24
36
 
25
37
  ---
26
38
 
@@ -39,7 +51,7 @@ Collect all of the following — summarize if long, but never drop critical deci
39
51
  - Every failed attempt with its reason — **most critical section**
40
52
  - Single next concrete action for next session
41
53
 
42
- **Step 2: Write `HANDOFF.md` in repo root using this exact structure**
54
+ **Step 2: Write `HANDOFF.md` in the resolved repo root using this exact structure**
43
55
 
44
56
  ```markdown
45
57
  # Handoff — [feature / work area name]
@@ -67,7 +79,7 @@ Collect all of the following — summarize if long, but never drop critical deci
67
79
  **Step 3: Confirm to user**
68
80
 
69
81
  ```
70
- Handoff written → HANDOFF.md
82
+ Handoff written → <REPO_ROOT>/HANDOFF.md
71
83
  Next session: call this skill again to resume.
72
84
  ```
73
85
 
@@ -79,9 +91,7 @@ Next session: call this skill again to resume.
79
91
 
80
92
  **Step 1: Read the file**
81
93
 
82
- ```bash
83
- cat HANDOFF.md
84
- ```
94
+ Use the `read` tool on `<REPO_ROOT>/HANDOFF.md`.
85
95
 
86
96
  **Step 2: Internalize before doing anything**
87
97
 
@@ -92,9 +102,7 @@ cat HANDOFF.md
92
102
 
93
103
  **Step 3: Delete the file**
94
104
 
95
- ```bash
96
- rm HANDOFF.md
97
- ```
105
+ Use the `bash` tool: `rm <REPO_ROOT>/HANDOFF.md`
98
106
 
99
107
  Deleted immediately so next session starts fresh in giving mode.
100
108