sticky-note-cli 2.6.4 → 2.6.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 +1 -1
- package/templates/CLAUDE.md +21 -0
- package/templates/copilot-instructions.md +21 -9
package/package.json
CHANGED
package/templates/CLAUDE.md
CHANGED
|
@@ -186,6 +186,27 @@ after. A raw `git checkout` or `git switch` will fail if sticky-note
|
|
|
186
186
|
files have uncommitted changes. The alias `git sw <branch>` also works
|
|
187
187
|
if set up by `npx sticky-note init`.
|
|
188
188
|
|
|
189
|
+
### ⚠️ Overlap warnings (CRITICAL — always surface these)
|
|
190
|
+
|
|
191
|
+
Sticky-note hooks detect when your files overlap with other teammates'
|
|
192
|
+
open or stuck threads. When you see `[STICKY-NOTE] ⚠️ OVERLAP DETECTED`
|
|
193
|
+
in your injected context, you **MUST** start your response with this
|
|
194
|
+
exact banner format before doing ANYTHING else:
|
|
195
|
+
|
|
196
|
+
```
|
|
197
|
+
⚠️ Overlap detected: [user] is working on [files] — [narrative summary]
|
|
198
|
+
Status: [STUCK/OPEN] | Resume: npx sticky-note resume [id]
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
Rules:
|
|
202
|
+
- This banner MUST be the **very first thing** in your response
|
|
203
|
+
- Do NOT bury it at the end or in a footnote
|
|
204
|
+
- Do NOT rephrase it as "Also noted..." or "By the way..."
|
|
205
|
+
- Then continue with the user's actual request normally
|
|
206
|
+
|
|
207
|
+
This pattern exists to prevent two teammates from wasting hours on the
|
|
208
|
+
same problem. Treat it like a system alert, not optional context.
|
|
209
|
+
|
|
189
210
|
### `[STICKY-NOTE]` tags
|
|
190
211
|
|
|
191
212
|
All sticky-note hooks prefix their output with `[STICKY-NOTE]`. When you
|
|
@@ -168,17 +168,29 @@ if set up by `npx sticky-note init`.
|
|
|
168
168
|
|
|
169
169
|
Sticky-note hooks detect when your files overlap with other teammates'
|
|
170
170
|
open or stuck threads. When you see `[STICKY-NOTE] ⚠️ OVERLAP DETECTED`
|
|
171
|
-
in your injected context, you **MUST**
|
|
171
|
+
in your injected context, you **MUST** start your response with this
|
|
172
|
+
exact banner format before doing ANYTHING else:
|
|
172
173
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
```
|
|
175
|
+
⚠️ Overlap detected: [user] is working on [files] — [narrative summary]
|
|
176
|
+
Status: [STUCK/OPEN] | Resume: npx sticky-note resume [id]
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
Example:
|
|
180
|
+
```
|
|
181
|
+
⚠️ Overlap detected: alice is working on session-start.js, cli.js — fixing auth token refresh
|
|
182
|
+
Status: STUCK (tried retry logic, tokens expire mid-request) | Resume: npx sticky-note resume demo-ali
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
Rules:
|
|
186
|
+
- This banner MUST be the **very first thing** in your response
|
|
187
|
+
- Show it BEFORE your thinking indicators (◐, ●, etc.)
|
|
188
|
+
- Do NOT bury it at the end or in a footnote
|
|
189
|
+
- Do NOT rephrase it as "Also noted..." or "By the way..."
|
|
190
|
+
- Then continue with the user's actual request normally
|
|
177
191
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
BEFORE doing any other work, even if the user asked you to do something
|
|
181
|
-
else first.
|
|
192
|
+
This pattern exists to prevent two teammates from wasting hours on the
|
|
193
|
+
same problem. Treat it like a system alert, not optional context.
|
|
182
194
|
|
|
183
195
|
### `[STICKY-NOTE]` tags
|
|
184
196
|
|