learn-anything-cli 0.2.0 → 0.2.1
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.
|
@@ -230,7 +230,7 @@ Follow the workflow defined in the skill:
|
|
|
230
230
|
1. Load context: match topic → read knowledge map → read learning state
|
|
231
231
|
2. Assess user level (beginner/intermediate/advanced) and adjust teaching strategy
|
|
232
232
|
3. Follow the explanation structure: positioning → analogy → core mechanism → code example → common misconceptions → Socratic check
|
|
233
|
-
4. CRITICAL —
|
|
233
|
+
4. CRITICAL — in the same turn as your explanation, use the Write tool to save the FULL explanation to ./.learn/topics/<topic>/sessions/<concept-name>-YYYY-MM-DD.md (match the user's language), use the Edit tool to update state.yaml
|
|
234
234
|
5. Identify sub-topics as recursive entry points (only AFTER saving the session)`;
|
|
235
235
|
export function getLearnExplainSkillTemplate() {
|
|
236
236
|
return {
|
|
@@ -310,7 +310,7 @@ The user submits their code or answer in the chat. Review it using the framework
|
|
|
310
310
|
- Set status to needs_practice
|
|
311
311
|
- Note specific areas to focus on
|
|
312
312
|
|
|
313
|
-
**
|
|
313
|
+
**In the same turn as your feedback**, save the session record. ⚠️ Do NOT wait for the user's next message — feedback text and file writes must happen together.
|
|
314
314
|
|
|
315
315
|
- Use the Write tool to create \`./.learn/topics/<topic-name>/sessions/<concept-name>-practice-YYYY-MM-DD.md\` — match the user's language (see Step 5 for naming rules and format)
|
|
316
316
|
|
|
@@ -375,8 +375,8 @@ Follow the workflow defined in the skill:
|
|
|
375
375
|
2. Assess difficulty level based on state.yaml (beginner/intermediate/challenge)
|
|
376
376
|
3. Project Mode: use Bash to create exercise dir → use Write to create README.md + starter file → tell user to open in IDE
|
|
377
377
|
Chat Mode: generate exercise in chat (background → requirements → code template → hint)
|
|
378
|
-
4. Project Mode: use Read to review user's code file → optionally use Bash to run it → provide structured feedback
|
|
379
|
-
Chat Mode: review code submitted in chat → provide structured feedback
|
|
378
|
+
4. Project Mode: use Read to review user's code file → optionally use Bash to run it → provide structured feedback, and in the same turn use Write to save session record + Edit to update state.yaml
|
|
379
|
+
Chat Mode: review code submitted in chat → provide structured feedback, and in the same turn use Write to save session record + Edit to update state.yaml`;
|
|
380
380
|
export function getLearnPracticeSkillTemplate() {
|
|
381
381
|
return {
|
|
382
382
|
name: SKILL_NAME,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "learn-anything-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "AI-powered recursive learning system with Socratic method and TDD practice",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"learn-anything-cli",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"prepublishOnly": "pnpm run build"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
|
-
"node": ">=20.
|
|
52
|
+
"node": ">=20.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/node": "^24.2.0",
|