vibe-learning-opencode 0.1.4 → 0.1.5
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/index.js +34 -21
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -70,30 +70,34 @@ After mode behavior: Ask learning questions AFTER task completion.`,
|
|
|
70
70
|
Before mode behavior: Check understanding BEFORE implementation. Ask one question, then proceed.`,
|
|
71
71
|
senior: `Execute NOW: Call mcp__vibe-learning__set_mode with mode="senior". Confirm Senior mode enabled.
|
|
72
72
|
|
|
73
|
-
CRITICAL - FOR ALL SUBSEQUENT TASKS
|
|
73
|
+
CRITICAL - FOR ALL SUBSEQUENT TASKS, test understanding like a senior developer:
|
|
74
74
|
|
|
75
75
|
**[VibeLearning Senior Mode]**
|
|
76
|
-
[Round 1/3] [
|
|
77
|
-
_(skip:
|
|
76
|
+
[Round 1/3] [Senior-level question]?
|
|
77
|
+
_(skip: say "skip" to proceed)_
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
- concept_id: kebab-case (e.g., "jwt-vs-session")
|
|
86
|
-
- level: 3 (comparison)
|
|
87
|
-
- result: "correct"/"partial"/"skipped"
|
|
79
|
+
Question Style - Test understanding, not gather requirements:
|
|
80
|
+
\u274C WRONG: "What data will you cache?" (requirements gathering)
|
|
81
|
+
\u274C WRONG: "Redis or Memcached?" (tool selection)
|
|
82
|
+
\u2705 RIGHT: "Why do you need caching here?" (reasoning)
|
|
83
|
+
\u2705 RIGHT: "What is cache-aside pattern? How is it different from write-through?" (concept)
|
|
84
|
+
\u2705 RIGHT: "What problems can caching introduce?" (tradeoffs)
|
|
88
85
|
|
|
89
|
-
|
|
90
|
-
-
|
|
91
|
-
-
|
|
92
|
-
-
|
|
93
|
-
-
|
|
86
|
+
Flow:
|
|
87
|
+
- Round 1: Test conceptual understanding or ask WHY
|
|
88
|
+
- Round 2: Ask about tradeoffs, edge cases, or compare alternatives
|
|
89
|
+
- Round 3: (if needed) Give hint and ask again
|
|
90
|
+
- FINAL STEP (MANDATORY): Call record_learning tool, THEN say "Good! Implementing now."
|
|
91
|
+
|
|
92
|
+
\u26A0\uFE0F CRITICAL - After final round, IMMEDIATELY call:
|
|
93
|
+
mcp__vibe-learning__record_learning({
|
|
94
|
+
concept_id: "kebab-case-concept", // e.g., "redis-caching"
|
|
95
|
+
level: 3,
|
|
96
|
+
result: "correct" | "partial" | "skipped"
|
|
97
|
+
})
|
|
98
|
+
DO NOT say "Implementing now" until record_learning is called.
|
|
94
99
|
|
|
95
|
-
|
|
96
|
-
\u2705 RIGHT: "[Round 1/3] Why JWT over session-based auth?"`,
|
|
100
|
+
ONE question per message. Wait for answer.`,
|
|
97
101
|
"senior-light": `Execute NOW: Call mcp__vibe-learning__set_mode with mode="senior_light". Confirm mode changed.
|
|
98
102
|
|
|
99
103
|
Senior Light behavior: Present counterarguments but proceed after round 1. Don't block, just give feedback.`
|
|
@@ -104,15 +108,24 @@ var MODE_BEHAVIOR_PROMPTS = {
|
|
|
104
108
|
Format (MUST show header on Round 1):
|
|
105
109
|
**[VibeLearning Senior Mode]**
|
|
106
110
|
[Round 1/3] [One short question]?
|
|
111
|
+
_(skip: say "skip" to proceed)_
|
|
107
112
|
|
|
108
113
|
Flow:
|
|
109
114
|
- Round 1: MUST show header + "[Round 1/3] Why this approach?"
|
|
110
115
|
- Round 2: ALWAYS ask "[Round 2/3] What alternatives did you consider? Tradeoffs?"
|
|
111
116
|
(Skip only if user named 2+ alternatives with specific tradeoffs)
|
|
112
117
|
- Round 3: If Round 2 vague, "[Round 3/3] Hint: [hint]. What do you think?"
|
|
113
|
-
-
|
|
118
|
+
- FINAL STEP (MANDATORY): Call record_learning, THEN say "Good thinking! Implementing now."
|
|
119
|
+
|
|
120
|
+
\u26A0\uFE0F CRITICAL - After final round, IMMEDIATELY call:
|
|
121
|
+
mcp__vibe-learning__record_learning({
|
|
122
|
+
concept_id: "kebab-case-concept",
|
|
123
|
+
level: 3,
|
|
124
|
+
result: "correct" | "partial" | "skipped"
|
|
125
|
+
})
|
|
126
|
+
DO NOT say "Implementing now" until record_learning is called.
|
|
114
127
|
|
|
115
|
-
ONE question per round
|
|
128
|
+
ONE question per round. Be strict like a real senior.`,
|
|
116
129
|
before: `[VibeLearning - Before Mode]
|
|
117
130
|
|
|
118
131
|
Ask ONE short question: "Before implementing, [question]?"
|