omnilearn-workflow 1.0.1 → 1.0.3

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
 
@@ -131,7 +162,7 @@ task(category="unspecified-high", run_in_background=false, prompt="
131
162
  1. TASK: Create a focused micro-exercise that tests the user's understanding of '{concept}' in '{skill}'. The user is confused about: '{user_request}'.
132
163
  2. EXPECTED OUTCOME: A self-contained micro-exercise (5-15 min) that isolates the specific concept and lets the user figure it out by coding/building.
133
164
 
134
- 3. REQUIRED TOOLS: google_search, websearch_web_search_exa, context7_resolve-library-id, context7_query_docs, read, write
165
+ 3. REQUIRED TOOLS: google_search, websearch_web_search_exa, context7_resolve-library-id, context7_query-docs, read, write
135
166
 
136
167
  4. MUST DO:
137
168
  - Read the current topic-roadmap.md to understand what's been covered: {TOPIC_ROADMAP}
@@ -244,7 +275,7 @@ task(category="unspecified-high", run_in_background=true, prompt="
244
275
  1. TASK: Research online to find better ways to structure and teach '{topic}' in '{skill}'.
245
276
  2. EXPECTED OUTCOME: A research document with web-sourced findings about best practices for teaching/learning this topic.
246
277
 
247
- 3. REQUIRED TOOLS: google_search, websearch_web_search_exa, context7_resolve-library-id, context7_query_docs, read, write
278
+ 3. REQUIRED TOOLS: google_search, websearch_web_search_exa, context7_resolve-library-id, context7_query-docs, read, write
248
279
 
249
280
  4. MUST DO:
250
281
  - Analyze the user's refinement request: '{user_request}'
@@ -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:
@@ -226,9 +257,10 @@ task(category="unspecified-high", run_in_background=true, prompt="
226
257
  1. TASK: Research online to validate and inform the user's requested roadmap changes for {skill}.
227
258
  2. EXPECTED OUTCOME: A research document with web-sourced findings about the topics the user wants to add/modify.
228
259
 
229
- 3. REQUIRED TOOLS: google_search, websearch_web_search_exa, context7_resolve-library-id, context7_query_docs, read, write
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 |
@@ -97,7 +128,7 @@ All subsequent paths in this command use `$OMNILEARN_DIR` as the base.
97
128
  | `task(category="unspecified-high", background)` | Content creation | Heavy research, roadmap synthesis, file writing |
98
129
  | `task(category="deep", background)` | Autonomous multi-step | Complex subtasks that need internal orchestration |
99
130
  | `google_search` / `websearch_web_search_exa` | Research phases | Web research for content, learning paths, best practices |
100
- | `context7_resolve-library-id` + `context7_query_docs` | Tech skills | Official documentation for languages, frameworks, libraries |
131
+ | `context7_resolve-library-id` + `context7_query-docs` | Tech skills | Official documentation for languages, frameworks, libraries |
101
132
  | `read`, `write`, `edit`, `bash`, `grep`, `glob` | Every phase | File operations and navigation |
102
133
  | `bash(git ...)` | Completion phase | Git commit after roadmap creation |
103
134
 
@@ -194,9 +225,10 @@ task(category="unspecified-high", run_in_background=true, prompt="
194
225
 
195
226
  2. EXPECTED OUTCOME: A comprehensive, structured markdown file covering all knowledge areas, concepts, tools, and practices needed for real-world proficiency in {skill} — **filtered and prioritized based on what the user already knows**.
196
227
 
197
- 3. REQUIRED TOOLS: google_search, websearch_web_search_exa, context7_resolve-library-id, context7_query_docs, read, write
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}
@@ -334,14 +367,15 @@ task(category="unspecified-high", run_in_background=false, timeout=300000, promp
334
367
  1. TASK: Synthesize research into a personalized, level-adaptive, cross-skill-integrated master roadmap for {skill}.
335
368
  2. EXPECTED OUTCOME: A detailed roadmap.md file with a learning path TAILORED to this user's level and existing knowledge — skipping what they already know, integrating related skills, and focused on real-world readiness.
336
369
 
337
- 3. REQUIRED TOOLS: google_search, websearch_web_search_exa, context7_query_docs, read, write, grep
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 |
@@ -67,7 +98,7 @@ The goal metric: **Can the user apply what they learned to real-world problems t
67
98
  | `task(category="writing")` | Content writing | Topic explanations, solution guides |
68
99
  | `task(category="unspecified-high", ["programming"])` | Technical work | Test scripts, scaffold code |
69
100
  | `google_search` / `websearch_web_search_exa` | Research | Learning resources, topic best practices |
70
- | `context7_query_docs` | Tech skills | Official docs for languages/frameworks |
101
+ | `context7_query-docs` | Tech skills | Official docs for languages/frameworks |
71
102
  | `question` tool | User interaction | Present topic choices, ask for preferences |
72
103
  | `read`, `write`, `edit`, `bash`, `grep`, `glob` | Every phase | File operations |
73
104
  | `bash(git ...)` | Completion | Commit progress |
@@ -180,9 +211,10 @@ task(category="deep", run_in_background=false, timeout=600000, prompt="
180
211
  1. TASK: Create a comprehensive subtopic roadmap and initial learning materials for the topic '{topic}' within the skill '{skill}'.
181
212
  2. EXPECTED OUTCOME: A detailed topic-roadmap.md with structured learning path, AND the first assignment with question, test script, scaffold, and solution guide.
182
213
 
183
- 3. REQUIRED TOOLS: google_search, websearch_web_search_exa, context7_resolve-library-id, context7_query_docs, read, write, bash, grep
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}
@@ -369,9 +401,10 @@ task(category="unspecified-high", run_in_background=false, prompt="
369
401
  1. TASK: Create a focused micro-exercise that tests the user's understanding of '{concept}' in '{skill}'. The user is struggling with this concept during assignment '{assignment}' on topic '{topic}'.
370
402
  2. EXPECTED OUTCOME: A self-contained micro-exercise (5-15 min to solve) that isolates the specific concept and lets the user figure it out by coding.
371
403
 
372
- 3. REQUIRED TOOLS: google_search, websearch_web_search_exa, context7_query_docs, read, write
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:
@@ -499,9 +535,10 @@ task(category="unspecified-high", run_in_background=false, timeout=300000, promp
499
535
  1. TASK: Create the next assignment ({assignment-num}) for topic '{topic}' in skill '{skill}'.
500
536
  2. EXPECTED OUTCOME: Complete assignment with question.md, test script, scaffold, and solution-guide.md at the next difficulty level.
501
537
 
502
- 3. REQUIRED TOOLS: google_search, websearch_web_search_exa, context7_query_docs, read, write
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.3",
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",