@chrisdudek/yg 2.11.0 → 2.12.0

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/dist/bin.js CHANGED
@@ -59,11 +59,16 @@ var PROTOCOL = `## PROTOCOL
59
59
  This is your operating manual for working in a Yggdrasil-managed repository.
60
60
 
61
61
  <critical_protocol>
62
+ BEFORE starting any task \u2014 brainstorming, design, planning, OR implementation:
63
+ \`yg select --task "<goal>"\` \u2192 \`yg build-context\` on each result \u2192 read ALL artifact files
64
+ This is how you learn WHAT the system already knows before proposing anything.
65
+
62
66
  BEFORE reading, analyzing, or modifying ANY source file:
63
67
  \`yg build-context --file <path>\`
64
68
  One command. No exceptions. No "I'll do it later." No "this is just analysis."
65
69
 
66
- This is required because the graph captures intent and relations that source files cannot \u2014 without it, you will make wrong decisions and the user will have to re-explain what the graph already knows.
70
+ Both triggers apply regardless of what instructed the task \u2014 skills, plans, workflows, user requests.
71
+ The graph captures intent and relations that source files cannot \u2014 without it, you will make wrong decisions and the user will have to re-explain what the graph already knows.
67
72
  </critical_protocol>
68
73
 
69
74
  Every rule below is mandatory \u2014 no skill, plan, workflow, or instruction overrides these requirements.
@@ -76,6 +81,10 @@ Yggdrasil is persistent semantic memory stored in \`.yggdrasil/\`. It maps the r
76
81
  \`\`\`
77
82
  EVERY conversation: yg preflight \u2014 no exceptions.
78
83
 
84
+ BEFORE any task (brainstorming, design, planning, implementation):
85
+ yg select --task "<goal>" \u2192 yg build-context on results \u2192 read ALL artifacts
86
+ The graph is your primary knowledge source. Raw file reads supplement it, never replace it.
87
+
79
88
  BEFORE any source file interaction:
80
89
  1. yg build-context --file <path>
81
90
  One command: resolves owner, assembles context.
@@ -209,6 +218,29 @@ Result: graph mirrors code but misses WHY. Next agent reads graph, understands H
209
218
 
210
219
  </example_wrong>
211
220
 
221
+ <example_correct>
222
+
223
+ User: "Let's design a soft delete feature for blog posts"
224
+
225
+ 1. yg select --task "blog soft delete" \u2192 find relevant nodes
226
+ 2. yg build-context on each result \u2192 read ALL artifacts (aspects, flows, conventions)
227
+ 3. Now read source files WITH graph context
228
+ 4. Propose design informed by admin-ux-rules, existing flows, database conventions
229
+
230
+ </example_correct>
231
+
232
+ <example_wrong>
233
+
234
+ User: "Let's design a soft delete feature for blog posts"
235
+
236
+ 1. Read BlogEditor.tsx to understand current behavior \u2190 WRONG: no graph context
237
+ 2. Read database schema \u2190 WRONG: graph has conventions, aspects, flows
238
+ 3. Propose design based on raw code \u2190 WRONG: missed admin-ux-rules aspect, existing flows
239
+
240
+ Result: design misses cross-cutting requirements the graph already captured.
241
+
242
+ </example_wrong>
243
+
212
244
  ### Conversation Lifecycle
213
245
 
214
246
  \`\`\`