omnilearn-workflow 1.0.10 → 1.0.11
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.
|
@@ -39,7 +39,7 @@ Both scenarios follow the same core flow: research → analyze → produce struc
|
|
|
39
39
|
└── topics/
|
|
40
40
|
└── <topic>/
|
|
41
41
|
├── topic-roadmap.md ← Will be updated if refined
|
|
42
|
-
├── topic-explanation.md ← Theory
|
|
42
|
+
├── topic-explanation.md ← Theory: Expert-grade deep-dive (context hook → progressive layers → annotated examples → misconceptions → checkpoints) — updated if refined
|
|
43
43
|
├── topic-progress.md ← Progress state (preserved)
|
|
44
44
|
├── assignments/ ← May be added to if needed
|
|
45
45
|
│ ├── 01-<concept>/
|
|
@@ -76,7 +76,7 @@ This command performs the same rigorous research-backed process as `/omnilearn-r
|
|
|
76
76
|
└── topics/ ← MUST be preserved — never delete or alter
|
|
77
77
|
└── <topic-name>/
|
|
78
78
|
├── topic-roadmap.md
|
|
79
|
-
├── topic-explanation.md ← Theory
|
|
79
|
+
├── topic-explanation.md ← Theory: Expert-grade deep-dive (context hook → progressive layers → annotated examples → misconceptions → checkpoints)
|
|
80
80
|
├── topic-progress.md ← 🔑 Source of truth for user progress
|
|
81
81
|
├── assignments/ ← MUST NOT be modified
|
|
82
82
|
│ ├── 01-<concept>/
|
|
@@ -32,7 +32,7 @@ description: Create a comprehensive, real-world-ready learning roadmap for any s
|
|
|
32
32
|
└── topics/ ← Topics in the roadmap
|
|
33
33
|
└── <topic-name>/ ← One per topic
|
|
34
34
|
├── topic-roadmap.md ← Detailed subtopic roadmap
|
|
35
|
-
├── topic-explanation.md ← Theory:
|
|
35
|
+
├── topic-explanation.md ← Theory: Expert-grade deep-dive (context hook → progressive layers → annotated examples → misconceptions → checkpoints)
|
|
36
36
|
├── topic-progress.md ← 🔑 Progress: assignments, sessions, skills
|
|
37
37
|
├── assignments/
|
|
38
38
|
│ ├── 01-<concept>/
|
|
@@ -30,7 +30,7 @@ description: Start an interactive learning session. Generates hands-on assignmen
|
|
|
30
30
|
|
|
31
31
|
### What Every Topic Produces
|
|
32
32
|
|
|
33
|
-
1. **`topic-explanation.md`** —
|
|
33
|
+
1. **`topic-explanation.md`** — Expert-grade theory explainer: context hook → progressive layers (simple→complex) → annotated examples → misconceptions → checkpoints. Each layer is self-contained and correct; they build up WITHOUT assuming prior technical depth.
|
|
34
34
|
2. **Hands-on assignments** — calibrated difficulty: baseline → adjusted based on performance. NOT a fixed ladder.
|
|
35
35
|
3. **Test scripts** — immediate feedback so the user knows if they're on track.
|
|
36
36
|
4. **Scaffold code** — starter files so they jump straight into coding, not boilerplate.
|
|
@@ -58,7 +58,7 @@ The goal metric: **Can the user apply what they learned to real-world problems t
|
|
|
58
58
|
└── topics/
|
|
59
59
|
└── <topic-name>/ ← e.g., "error-handling", "neural-networks"
|
|
60
60
|
├── topic-roadmap.md ← Detailed subtopic roadmap (created on-demand)
|
|
61
|
-
├── **topic-explanation.md** ← ← 🔑 THEORY:
|
|
61
|
+
├── **topic-explanation.md** ← ← 🔑 THEORY: Expert-grade explanation (context hook → progressive layers 1→2→3 → annotated examples → misconceptions → checkpoints → bridge to assignments)
|
|
62
62
|
├── topic-progress.md ← 🔑 PROGRESS LIVES HERE: assignment status, sessions, skills demonstrated
|
|
63
63
|
├── assignments/
|
|
64
64
|
│ ├── 01-<concept-basics>/
|
|
@@ -275,45 +275,107 @@ task(category="deep", run_in_background=false, timeout=600000, prompt="
|
|
|
275
275
|
{TOPICS_DIR}/{topic}/topic-explanation.md
|
|
276
276
|
|
|
277
277
|
This is the THEORETICAL FOUNDATION the user reads BEFORE attempting assignments.
|
|
278
|
-
|
|
279
|
-
|
|
278
|
+
|
|
279
|
+
**CRITICAL PEDAGOGY RULES** (based on cognitive load theory + expert teaching research):
|
|
280
|
+
- **One-Level-Down Rule**: Start one level simpler than you think the user needs. You can always go deeper; you cannot undo confusion once it sets in. Each layer must be a correct (if simplified) mental model.
|
|
281
|
+
- **Unpack → Complexity → Repack**: Deconstruct the concept to its essence, progressively add real-world constraints, then reconstruct into a coherent mental model the user can carry forward.
|
|
282
|
+
- **Assume Nothing**: Make ALL prerequisites explicit. The user is here to LEARN. Do not assume they know the surrounding jargon unless you stated it as a prerequisite.
|
|
283
|
+
- **One New Idea at a Time**: Working memory holds ~4 chunks. Never introduce multiple new concepts in the same paragraph.
|
|
284
|
+
- **Concrete Before Abstract**: Show the full working example FIRST, then explain why it works. Humans learn patterns, then rules.
|
|
285
|
+
- **Address Misconceptions Proactively**: For every concept, anticipate the 2-3 most common confusions and address them BEFORE the user gets confused.
|
|
286
|
+
- **Active > Passive**: Embed quick checkpoints. The user should pause, think, or answer before moving on.
|
|
287
|
+
- **The Completeness Test**: Each layer must give a correct mental model IN ISOLATION. Layer 1 must not contradict Layer 3 — it's a simplified version of the same truth.
|
|
288
|
+
|
|
289
|
+
Use this format:
|
|
280
290
|
|
|
281
291
|
# {topic}
|
|
292
|
+
|
|
293
|
+
⏱️ Estimated reading time: {X}-{Y} minutes (varies by your depth preference — Layer 1 alone is ~3 min)
|
|
294
|
+
|
|
295
|
+
## Why This Matters
|
|
296
|
+
Start with a problem the reader has felt. A concrete situation: "You're building X and you notice Y behavior. You try Z but it doesn't work. That's because..."
|
|
297
|
+
|
|
298
|
+
**Hook them with the pain this concept solves.** Do NOT start with a definition. Start with the human situation.
|
|
299
|
+
|
|
300
|
+
> Example: Instead of "FastAPI is a modern web framework for Python", say: "You've built a Python script that processes data. Now you need to expose it as an API so others can call it. You could use Flask, but you notice it doesn't validate request data, your docs are hand-written, and async endpoints need boilerplate. FastAPI solves these three problems in one go."
|
|
301
|
+
|
|
302
|
+
## Prerequisites
|
|
303
|
+
Explicit checklist of what the user should already know. Numbered. No surprises.
|
|
304
|
+
```
|
|
305
|
+
Before reading this, you should be comfortable with:
|
|
306
|
+
1. {concept A} — we'll use it to build {new concept}
|
|
307
|
+
2. {concept B} — understanding this makes {topic} click faster
|
|
308
|
+
3. {tool/library C} — basic usage required
|
|
309
|
+
|
|
310
|
+
Not there yet? Review: {link to prerequisite topic or resource}
|
|
311
|
+
```
|
|
312
|
+
**Be honest here.** If you list something as a prerequisite and it actually isn't needed, you'll scare the user off. If you skip listing something that IS needed, the user will get confused.
|
|
313
|
+
|
|
314
|
+
## Layer 1: The Core Idea (One Level Down)
|
|
282
315
|
|
|
283
|
-
|
|
284
|
-
One paragraph. What this is and why it matters in the real world. Assume the user is scanning.
|
|
316
|
+
The simplest correct explanation. If you were explaining this to someone who knows the prerequisites but nothing more about this topic.
|
|
285
317
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
-
|
|
289
|
-
-
|
|
318
|
+
Describe the concept using:
|
|
319
|
+
- An analogy to something familiar (if one exists and is correct)
|
|
320
|
+
- The minimal working example — no edge cases, no error handling
|
|
321
|
+
- The ONE thing that makes this concept different from what the user already knows
|
|
290
322
|
|
|
291
|
-
|
|
292
|
-
|
|
323
|
+
Use **bold** for new terminology. Define each term inline immediately.
|
|
324
|
+
|
|
325
|
+
> **Keep it to 1-2 paragraphs max.** If you need more, you're not one level down enough.
|
|
326
|
+
|
|
327
|
+
## Layer 2: How It Actually Works
|
|
328
|
+
|
|
329
|
+
Now add real-world constraints. Pick up from Layer 1 and show the same concept with:
|
|
330
|
+
- The actual mechanics (code, system interaction, protocol details)
|
|
331
|
+
- Concrete syntax / implementation patterns
|
|
332
|
+
- How the pieces connect (architecture flow, data flow, call sequence)
|
|
333
|
+
- **Why** each piece exists (not just what it does)
|
|
334
|
+
|
|
335
|
+
For technical topics: include annotated code blocks where every line/block is explained with a comment on WHY it's there.
|
|
293
336
|
|
|
294
337
|
```{language}
|
|
295
|
-
#
|
|
338
|
+
# Line 1: We do X because... (REASON, not description)
|
|
339
|
+
# Line 2: This handles Y edge case because...
|
|
340
|
+
# Line 3: Without this, Z would break because...
|
|
296
341
|
```
|
|
297
342
|
|
|
298
|
-
> **
|
|
343
|
+
> **If the topic isn't code** (e.g., system design, ML theory): use concrete diagrams described in text. "The flow goes: Client → Load Balancer → Service A. The load balancer exists because..." Show the sequence explicitly.
|
|
344
|
+
|
|
345
|
+
## Layer 3: Real-World Production Context
|
|
346
|
+
|
|
347
|
+
Now go deeper. What changes when this runs at scale, in production, with real traffic?
|
|
299
348
|
|
|
300
|
-
|
|
301
|
-
|
|
349
|
+
- **Common Misconceptions** (2-3, proactively addressed):
|
|
350
|
+
| What People Think | What Actually Happens | Why The Confusion |
|
|
351
|
+
|------------------|----------------------|-------------------|
|
|
352
|
+
| "X does Y" | Actually X does Z because..." | "This confusion comes from..." |
|
|
302
353
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
354
|
+
- **Edge Cases & Failure Modes**: What breaks and why. How to handle it.
|
|
355
|
+
- **Trade-offs**: What you gain vs what you sacrifice by using this approach.
|
|
356
|
+
- **Performance & Security**: How this behaves under load. Security considerations.
|
|
357
|
+
- **Production Patterns**: How experienced practitioners actually use this (tools, configs, monitoring).
|
|
306
358
|
|
|
307
|
-
|
|
308
|
-
3-5 bullet points on how this is used in production / real-world scenarios. This bridges theory to the assignments.
|
|
359
|
+
> **Don't scare the user.** Frame these as: "Now that you understand the basics, here's how experienced engineers think about this. You don't need to master all of this today, but knowing these patterns will save you hours of debugging."
|
|
309
360
|
|
|
310
|
-
##
|
|
311
|
-
|
|
361
|
+
## Learning Checkpoints
|
|
362
|
+
|
|
363
|
+
Quick verification questions. The user should be able to answer these after reading. They are NOT graded — they're self-checks.
|
|
364
|
+
|
|
365
|
+
```
|
|
366
|
+
1. {Concept name}: In your own words, explain what this does and why it exists.
|
|
367
|
+
2. {Scenario question}: If {situation X} happens, what would {concept} do?
|
|
368
|
+
3. {Compare/contrast}: How is {this concept} different from {similar concept the user might confuse it with}?
|
|
369
|
+
|
|
370
|
+
If you can't answer these, re-read Layer 1 and Layer 2 above. If you're still unsure, ask me to clarify before starting the assignment.
|
|
371
|
+
```
|
|
312
372
|
|
|
313
373
|
## Ready to Practice?
|
|
314
|
-
Brief bridge sentence
|
|
374
|
+
Brief bridge sentence connecting theory to the first assignment. Reference specific concepts from the explanation:
|
|
315
375
|
|
|
316
|
-
|
|
376
|
+
"Now that you understand {concept from Layer 1} and {pattern from Layer 2}, open assignment 01-{name} to apply it. Pay special attention to {specific gotcha from Layer 3}."
|
|
377
|
+
|
|
378
|
+
STEP 4 — Create Assignment 1 (the first one) at:
|
|
317
379
|
{TOPICS_DIR}/{topic}/assignments/01-{concept}/
|
|
318
380
|
|
|
319
381
|
Create these files:
|
|
@@ -430,7 +492,7 @@ STEP 5 — Create topic-progress.md at:
|
|
|
430
492
|
- Do NOT create all assignments at once — only the first one. Subsequent assignments are generated on-demand as the user progresses.
|
|
431
493
|
- Do NOT make assignments purely theoretical — use real-world scenarios
|
|
432
494
|
- Do NOT skip the scaffold — the user should be able to start coding immediately
|
|
433
|
-
- Do NOT make topic-explanation.md
|
|
495
|
+
- Do NOT make topic-explanation.md a wall of text — use whitespace, headings, examples, and checkpoints to break it up. Each layer should take 3-5 minutes to read. The full document is a thorough deep-dive, not a skim.
|
|
434
496
|
- Do NOT use any external packages that aren't standard library without noting it
|
|
435
497
|
- Do NOT create assignments that are too easy (basic concept application) or too hard (leaps without foundation)
|
|
436
498
|
- Do NOT leave TODOs in scaffold that require making unrelated architectural decisions
|
|
@@ -450,7 +512,7 @@ STEP 5 — Create topic-progress.md at:
|
|
|
450
512
|
|
|
451
513
|
After completion, verify:
|
|
452
514
|
- topic-roadmap.md exists with proper structure
|
|
453
|
-
- **topic-explanation.md exists with all required sections (
|
|
515
|
+
- **topic-explanation.md exists with all required sections (Why This Matters, Prerequisites, Layer 1, Layer 2, Learning Checkpoints, Ready to Practice)**
|
|
454
516
|
- Assignment 1 exists with all 4 files (question.md, test, scaffold, solution-guide.md)
|
|
455
517
|
- Test script is syntactically valid (run a quick check)
|
|
456
518
|
|
|
@@ -465,7 +527,7 @@ If anything is missing, fix via session continuation: `task(task_id="<session_id
|
|
|
465
527
|
>
|
|
466
528
|
> 📖 **{SKILL_DIR}/topics/{topic}/topic-explanation.md**
|
|
467
529
|
>
|
|
468
|
-
> This covers:
|
|
530
|
+
> This covers: Why This Matters → Prerequisites → Layer 1 (Core Idea) → Layer 2 (How It Works) → Layer 3 (Production Context) → Learning Checkpoints → Ready to Practice
|
|
469
531
|
> It should take about 5-10 minutes to read.
|
|
470
532
|
>
|
|
471
533
|
> Let me know when you've finished reading, or ask me questions about anything that's unclear."
|
|
@@ -921,8 +983,8 @@ If no git repo: ask if user wants to initialize one (same as /omnilearn-roadmap)
|
|
|
921
983
|
| Skill roadmap exists | 0 | Tell user to run /omnilearn-roadmap first |
|
|
922
984
|
| User preferences read | 0 | Read the files |
|
|
923
985
|
| Topic roadmap exists (if needed) | 1.4 | Create it via deep subagent |
|
|
924
|
-
| topic-explanation.md exists with all sections (
|
|
925
|
-
| topic-explanation.md is
|
|
986
|
+
| topic-explanation.md exists with all sections (Why This Matters, Prerequisites, Layer 1, Layer 2, Layer 3, Learning Checkpoints, Ready to Practice) | 1.4 | Re-generate — topic-explanation.md is mandatory |
|
|
987
|
+
| topic-explanation.md is a proper deep-dive (not shallow, not a wall of text) | 1.4 | Add more depth or break into sections with whitespace and examples |
|
|
926
988
|
| Assignment 1 exists (question, test, scaffold, solution) | 1.4 | Fix incomplete assignment |
|
|
927
989
|
| Assignment tests are syntactically valid | 1.4 | Quick syntax check, fix if broken |
|
|
928
990
|
| topic-progress.md created when topic roadmap is made | 1.4 | Create it with proper structure |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnilearn-workflow",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
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",
|