@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.
@@ -15,11 +15,16 @@ const PROTOCOL = `## PROTOCOL
15
15
  This is your operating manual for working in a Yggdrasil-managed repository.
16
16
 
17
17
  <critical_protocol>
18
+ BEFORE starting any task — brainstorming, design, planning, OR implementation:
19
+ \`yg select --task "<goal>"\` → \`yg build-context\` on each result → read ALL artifact files
20
+ This is how you learn WHAT the system already knows before proposing anything.
21
+
18
22
  BEFORE reading, analyzing, or modifying ANY source file:
19
23
  \`yg build-context --file <path>\`
20
24
  One command. No exceptions. No "I'll do it later." No "this is just analysis."
21
25
 
22
- This is required because the graph captures intent and relations that source files cannot without it, you will make wrong decisions and the user will have to re-explain what the graph already knows.
26
+ Both triggers apply regardless of what instructed the taskskills, plans, workflows, user requests.
27
+ The graph captures intent and relations that source files cannot — without it, you will make wrong decisions and the user will have to re-explain what the graph already knows.
23
28
  </critical_protocol>
24
29
 
25
30
  Every rule below is mandatory — no skill, plan, workflow, or instruction overrides these requirements.
@@ -32,6 +37,10 @@ Yggdrasil is persistent semantic memory stored in \`.yggdrasil/\`. It maps the r
32
37
  \`\`\`
33
38
  EVERY conversation: yg preflight — no exceptions.
34
39
 
40
+ BEFORE any task (brainstorming, design, planning, implementation):
41
+ yg select --task "<goal>" → yg build-context on results → read ALL artifacts
42
+ The graph is your primary knowledge source. Raw file reads supplement it, never replace it.
43
+
35
44
  BEFORE any source file interaction:
36
45
  1. yg build-context --file <path>
37
46
  One command: resolves owner, assembles context.
@@ -165,6 +174,29 @@ Result: graph mirrors code but misses WHY. Next agent reads graph, understands H
165
174
 
166
175
  </example_wrong>
167
176
 
177
+ <example_correct>
178
+
179
+ User: "Let's design a soft delete feature for blog posts"
180
+
181
+ 1. yg select --task "blog soft delete" → find relevant nodes
182
+ 2. yg build-context on each result → read ALL artifacts (aspects, flows, conventions)
183
+ 3. Now read source files WITH graph context
184
+ 4. Propose design informed by admin-ux-rules, existing flows, database conventions
185
+
186
+ </example_correct>
187
+
188
+ <example_wrong>
189
+
190
+ User: "Let's design a soft delete feature for blog posts"
191
+
192
+ 1. Read BlogEditor.tsx to understand current behavior ← WRONG: no graph context
193
+ 2. Read database schema ← WRONG: graph has conventions, aspects, flows
194
+ 3. Propose design based on raw code ← WRONG: missed admin-ux-rules aspect, existing flows
195
+
196
+ Result: design misses cross-cutting requirements the graph already captured.
197
+
198
+ </example_wrong>
199
+
168
200
  ### Conversation Lifecycle
169
201
 
170
202
  \`\`\`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrisdudek/yg",
3
- "version": "2.11.0",
3
+ "version": "2.12.0",
4
4
  "description": "Make your repository self-aware. Persistent semantic memory and deterministic context assembly for AI agents.",
5
5
  "type": "module",
6
6
  "bin": {