omnilearn-workflow 1.0.1 → 1.0.2

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.
@@ -43,12 +43,43 @@ Both scenarios follow the same core flow: research → analyze → produce struc
43
43
  └── runs/
44
44
  ```
45
45
 
46
+ ## Current Date Context
47
+
48
+ ```bash
49
+ CURRENT_DATE=$(date +%Y-%m-%d)
50
+ CURRENT_YEAR=$(date +%Y)
51
+ ```
52
+
53
+ **Every subagent that does research or content generation MUST receive the current date and be told to prioritize current information over deprecated or outdated resources.**
54
+
55
+ ## MCP Tool Call Semantics (CRITICAL — Subagents Frequently Get This Wrong)
56
+
57
+ All subagents that use MCP tools MUST follow these exact calling conventions:
58
+
59
+ ### `context7_resolve-library-id` + `context7_query_docs`
60
+ 1. **ALWAYS call `context7_resolve-library-id` FIRST** with the library name to get the correct library ID.
61
+ 2. Use the returned library ID (format: `/org/package`) as the `libraryId` parameter in `context7_query_docs`.
62
+ 3. Do NOT guess or hardcode library IDs.
63
+ 4. Max 3 calls per question.
64
+
65
+ ### `google_search` / `websearch_web_search_exa`
66
+ - Use specific, well-formed queries — not keywords, but what you want to find.
67
+ - Good: `"best practices for error handling in Rust 2024"`
68
+ - Bad: `"Rust error handling"`
69
+ - Pass the `query` parameter as a string, not an object.
70
+
71
+ ### General Rules
72
+ - Match tool call parameter names EXACTLY as specified in the tool definitions.
73
+ - Do NOT wrap string parameters in objects.
74
+ - Do NOT nest tool calls unless required by the API.
75
+ - If a tool call fails, check parameter names and types before retrying.
76
+
46
77
  ## MANDATORY TOOLS
47
78
 
48
79
  | Tool | When | Why |
49
80
  |------|------|-----|
50
81
  | `google_search` / `websearch_web_search_exa` | Research | Topic research, answer questions, validate changes |
51
- | `context7_query_docs` | Tech topics | Official documentation for precise answers |
82
+ | `context7_resolve-library-id` + `context7_query_docs` | Tech topics | Official documentation for precise answers — MUST call resolve first |
52
83
  | `task(category="unspecified-high", background)` | Heavy work | Research, analysis, topic updates |
53
84
  | `read`, `write`, `edit`, `bash`, `grep`, `glob` | All phases | File operations |
54
85
 
@@ -12,6 +12,37 @@ description: Edit an existing learning roadmap with full research-backed revisio
12
12
  /omnilearn-roadmap-edit Python I want to add web scraping and automation
13
13
  ```
14
14
 
15
+ ## Current Date Context
16
+
17
+ ```bash
18
+ CURRENT_DATE=$(date +%Y-%m-%d)
19
+ CURRENT_YEAR=$(date +%Y)
20
+ ```
21
+
22
+ **All subagents that do research or content generation MUST receive the current date and prioritize current information over deprecated or outdated resources.**
23
+
24
+ ## MCP Tool Call Semantics (CRITICAL — Subagents Frequently Get This Wrong)
25
+
26
+ All subagents that use MCP tools MUST follow these exact calling conventions:
27
+
28
+ ### `context7_resolve-library-id` + `context7_query_docs`
29
+ 1. **ALWAYS call `context7_resolve-library-id` FIRST** with the library name to get the correct library ID.
30
+ 2. Use the returned library ID (format: `/org/package`) as the `libraryId` parameter in `context7_query_docs`.
31
+ 3. Do NOT guess or hardcode library IDs.
32
+ 4. Max 3 calls per question.
33
+
34
+ ### `google_search` / `websearch_web_search_exa`
35
+ - Use specific, well-formed queries — not keywords, but describe the ideal page.
36
+ - Good: `"current best practices for REST API design 2025"`
37
+ - Bad: `"REST API"`
38
+ - Pass `query` as a plain string, not wrapped in an object.
39
+
40
+ ### General Rules
41
+ - Match tool call parameter names EXACTLY as defined in the tool schema.
42
+ - Do NOT wrap string parameters in extra objects or arrays.
43
+ - Do NOT nest tool calls unless the API explicitly requires it.
44
+ - If a tool call fails, verify parameter names match before retrying.
45
+
15
46
  ## Core Behavior
16
47
 
17
48
  This command performs the same rigorous research-backed process as `/omnilearn-roadmap`, but operates on an EXISTING roadmap. It:
@@ -229,6 +260,7 @@ task(category="unspecified-high", run_in_background=true, prompt="
229
260
  3. REQUIRED TOOLS: google_search, websearch_web_search_exa, context7_resolve-library-id, context7_query_docs, read, write
230
261
 
231
262
  4. MUST DO:
263
+ - **CURRENT DATE: {CURRENT_DATE}** — ONLY research current information. Check for deprecation warnings. Prioritize resources from the last 1-2 years. Prefer latest stable versions of any library/framework/tool.
232
264
  - Analyze the user's change request: '{user_change_request}'
233
265
  - Use google_search / websearch_web_search_exa to research:
234
266
  * The specific topics/areas the user wants to add or modify
@@ -89,6 +89,37 @@ echo "Using learning directory: $LEARNING_DIR"
89
89
 
90
90
  All subsequent paths in this command use `$OMNILEARN_DIR` as the base.
91
91
 
92
+ ## Current Date Context (CRITICAL — Must Pass to ALL Subagents)
93
+
94
+ ```bash
95
+ CURRENT_DATE=$(date +%Y-%m-%d)
96
+ CURRENT_YEAR=$(date +%Y)
97
+ ```
98
+
99
+ **Every subagent that does research or content generation MUST receive the current date and be told to prioritize current information.**
100
+
101
+ ## MCP Tool Call Semantics (CRITICAL — Subagents Frequently Get This Wrong)
102
+
103
+ All subagents that use MCP tools MUST follow these exact calling conventions:
104
+
105
+ ### `context7_resolve-library-id` + `context7_query_docs`
106
+ 1. **ALWAYS call `context7_resolve-library-id` FIRST** with the library name to get the correct library ID.
107
+ 2. Use the returned library ID (format: `/org/package`) as the `libraryId` parameter in `context7_query_docs`.
108
+ 3. Do NOT guess or hardcode library IDs.
109
+ 4. Max 3 calls per question.
110
+
111
+ ### `google_search` / `websearch_web_search_exa`
112
+ - Use specific, well-formed queries — not keywords, but describe the ideal page.
113
+ - Good: `"blog post comparing Rust error handling patterns 2024"`
114
+ - Bad: `"Rust error handling"`
115
+ - Pass `query` as a plain string, not wrapped in an object.
116
+
117
+ ### General Rules
118
+ - Match tool call parameter names EXACTLY as defined in the tool schema.
119
+ - Do NOT wrap string parameters in extra objects or arrays.
120
+ - Do NOT nest tool calls unless the API explicitly requires it.
121
+ - If a tool call fails, verify parameter names match before retrying.
122
+
92
123
  ## MANDATORY TOOLS
93
124
 
94
125
  | Tool | When | Why |
@@ -197,6 +228,7 @@ task(category="unspecified-high", run_in_background=true, prompt="
197
228
  3. REQUIRED TOOLS: google_search, websearch_web_search_exa, context7_resolve-library-id, context7_query_docs, read, write
198
229
 
199
230
  4. MUST DO:
231
+ - **CURRENT DATE: {CURRENT_DATE}** — ONLY search for and reference current information. Prioritize resources from the last 1-2 years. Check for deprecation warnings on any library/framework/tool. Prefer latest stable versions. If something has been superseded (e.g. Create React App → Vite, npm → pnpm/uv), flag it.
200
232
 
201
233
  FIRST — Consider the user's level and existing knowledge:
202
234
  - User's stated experience with {skill}: {user level}
@@ -256,6 +288,7 @@ task(category="unspecified-high", run_in_background=true, prompt="
256
288
  3. REQUIRED TOOLS: google_search, websearch_web_search_exa, read, write
257
289
 
258
290
  4. MUST DO:
291
+ - **CURRENT DATE: {CURRENT_DATE}** — ONLY search for and reference current information. Prioritize resources from the last 1-2 years. Check for deprecation warnings on any library/framework/tool. Prefer latest stable versions. If something has been superseded (e.g. Create React App → Vite, npm → pnpm/uv), flag it.
259
292
 
260
293
  FIRST — Consider the user's level:
261
294
  - User's experience with {skill}: {user level}
@@ -337,11 +370,12 @@ task(category="unspecified-high", run_in_background=false, timeout=300000, promp
337
370
  3. REQUIRED TOOLS: google_search, websearch_web_search_exa, context7_query_docs, read, write, grep
338
371
 
339
372
  4. MUST DO:
373
+ - **CURRENT DATE: {CURRENT_DATE}** — ONLY reference current information. If you do additional online research, prioritize resources from the last 1-2 years. Check for deprecation warnings. Prefer latest stable versions of any library/framework/tool mentioned.
340
374
  - Read BOTH research files:
341
375
  * Content research: {RUNS_DIR}/research-content.md
342
376
  * Learning path research: {RUNS_DIR}/research-learning.md
343
377
  - Read cross-skill context: existing skills the user has
344
- - If there are gaps or contradictions, do additional research online
378
+ - If there are gaps or contradictions, do additional research online (using current date context)
345
379
 
346
380
  CRITICAL — Personalization rules:
347
381
  - **Do NOT include topics the user already knows.** If the user is experienced in Python and learning FastAPI, skip Python fundamentals entirely.
@@ -58,6 +58,37 @@ The goal metric: **Can the user apply what they learned to real-world problems t
58
58
  └── ...
59
59
  ```
60
60
 
61
+ ## Current Date Context (CRITICAL — Must Pass to ALL Subagents)
62
+
63
+ ```bash
64
+ CURRENT_DATE=$(date +%Y-%m-%d)
65
+ CURRENT_YEAR=$(date +%Y)
66
+ ```
67
+
68
+ **Every subagent that does research or content generation MUST receive the current date and be told to prioritize current information over deprecated or outdated resources.**
69
+
70
+ ## MCP Tool Call Semantics (CRITICAL — Subagents Frequently Get This Wrong)
71
+
72
+ All subagents that use MCP tools MUST follow these exact calling conventions:
73
+
74
+ ### `context7_resolve-library-id` + `context7_query_docs`
75
+ 1. **ALWAYS call `context7_resolve-library-id` FIRST** with the library name to get the correct library ID.
76
+ 2. Use the returned library ID (format: `/org/package`) as the `libraryId` parameter in `context7_query_docs`.
77
+ 3. Do NOT guess or hardcode library IDs.
78
+ 4. Max 3 calls per question.
79
+
80
+ ### `google_search` / `websearch_web_search_exa`
81
+ - Use specific, well-formed queries — not keywords, but describe the ideal page.
82
+ - Good: `"current state of Rust async patterns 2025"`
83
+ - Bad: `"Rust async"`
84
+ - Pass `query` as a plain string, not wrapped in an object.
85
+
86
+ ### General Rules
87
+ - Match tool call parameter names EXACTLY as defined in the tool schema.
88
+ - Do NOT wrap string parameters in extra objects or arrays.
89
+ - Do NOT nest tool calls unless the API explicitly requires it.
90
+ - If a tool call fails, verify parameter names match before retrying.
91
+
61
92
  ## MANDATORY TOOLS
62
93
 
63
94
  | Tool | When | Why |
@@ -183,6 +214,7 @@ task(category="deep", run_in_background=false, timeout=600000, prompt="
183
214
  3. REQUIRED TOOLS: google_search, websearch_web_search_exa, context7_resolve-library-id, context7_query_docs, read, write, bash, grep
184
215
 
185
216
  4. MUST DO — Step-by-Step:
217
+ - **CURRENT DATE: {CURRENT_DATE}** — ONLY research current information. Prioritize resources from the last 1-2 years. Check for deprecation warnings. Prefer latest stable versions of any library/framework/tool. If older resources reference superseded tools (e.g. CRA → Vite, pip → uv), flag and use the current standard.
186
218
 
187
219
  STEP 1 — Research:
188
220
  - Read the main roadmap to understand how this topic fits: {ROADMAP}
@@ -372,6 +404,7 @@ task(category="unspecified-high", run_in_background=false, prompt="
372
404
  3. REQUIRED TOOLS: google_search, websearch_web_search_exa, context7_query_docs, read, write
373
405
 
374
406
  4. MUST DO:
407
+ - **CURRENT DATE: {CURRENT_DATE}** — ONLY research current information. Check for deprecation warnings. If a library/framework has a newer standard (e.g. CRA → Vite, pip → uv), reference the current approach.
375
408
  - Read the current assignment: {ASSIGNMENT_DIR}/question.md (to understand context without giving away the solution)
376
409
  - Research the concept online to find the MOST COMMON confusion points
377
410
  - Design a micro-exercise that:
@@ -444,6 +477,7 @@ task(category="writing", run_in_background=false, prompt="
444
477
  3. REQUIRED TOOLS: read, write
445
478
 
446
479
  4. MUST DO:
480
+ - **CURRENT DATE: {CURRENT_DATE}** — Use current, real-world examples. Avoid outdated patterns or deprecated APIs.
447
481
  - Read the current assignment to understand what's been covered
448
482
  - Create 2-3 smaller exercises that target the specific area the user is struggling with
449
483
  - Each should be solvable in 5-15 minutes
@@ -455,6 +489,8 @@ task(category="writing", run_in_background=false, prompt="
455
489
  ")
456
490
  ```
457
491
 
492
+ ```
493
+
458
494
  ### 3.2 Track All Interactions
459
495
 
460
496
  For each user interaction during the session:
@@ -502,6 +538,7 @@ task(category="unspecified-high", run_in_background=false, timeout=300000, promp
502
538
  3. REQUIRED TOOLS: google_search, websearch_web_search_exa, context7_query_docs, read, write
503
539
 
504
540
  4. MUST DO:
541
+ - **CURRENT DATE: {CURRENT_DATE}** — ONLY use current, real-world scenarios. Avoid outdated APIs, deprecated libraries, or superseded best practices. Research what's current in the industry for this topic.
505
542
  - Read the topic-roadmap.md: {TOPICS_DIR}/{topic}/topic-roadmap.md
506
543
  - Read the previous assignment(s) to ensure progression: {ASSIGNMENT_DIR}
507
544
  - Read the user's learning preferences and history from {SKILL_PREFS}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnilearn-workflow",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "OmniLearn — AI-powered adaptive learning workflow for OpenCode. Multi-agent orchestration that creates personalized roadmaps, hands-on assignments, and tracks progress across any skill.",
5
5
  "keywords": [
6
6
  "opencode",