learn-anything-cli 0.5.0 → 0.5.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.
|
@@ -40,8 +40,8 @@ Structure your explanation:
|
|
|
40
40
|
|
|
41
41
|
1. **Positioning** — Where this concept sits in the knowledge map (one sentence).
|
|
42
42
|
2. **Analogy** — Real-world metaphor to build intuition.
|
|
43
|
-
3. **Core Mechanism** — "What" and "why" in clear language.
|
|
44
|
-
4. **Code Example** — Minimal but complete, with walkthrough.
|
|
43
|
+
3. **Core Mechanism** — "What" and "why" in clear language. If explaining based on existing project source code, reference specific file paths and line numbers.
|
|
44
|
+
4. **Code Example** — Minimal but complete, with walkthrough. When the code references existing project source files, annotate the exact file path and line range (e.g., \`src/core/config.ts:42-58\`).
|
|
45
45
|
5. **Common Misconceptions** — The most common beginner mistakes.
|
|
46
46
|
6. **Socratic Check** — 1-2 natural, curious questions to confirm understanding. If unsure, give the answer — don't wait.
|
|
47
47
|
|
|
@@ -93,11 +93,13 @@ Session file format:
|
|
|
93
93
|
|
|
94
94
|
## Code Example
|
|
95
95
|
|
|
96
|
+
> **📁 Source:** \`<file-path>:<line-range>\` — if this code references existing project source, annotate the exact file path and line range here. Omit this line for original/illustrative code.
|
|
97
|
+
|
|
96
98
|
\`\`\`[language]
|
|
97
|
-
[Write the complete code example,
|
|
99
|
+
[Write the complete code example. When referencing existing project source, add \`// 📁 <file-path>:<line-range>\` as the first comment inside the code block.]
|
|
98
100
|
\`\`\`
|
|
99
101
|
|
|
100
|
-
[Include your walkthrough of the code — what each part does]
|
|
102
|
+
[Include your walkthrough of the code — what each part does, referencing specific file locations where applicable]
|
|
101
103
|
|
|
102
104
|
## Common Misconceptions
|
|
103
105
|
|
|
@@ -60,6 +60,7 @@ Example starter:
|
|
|
60
60
|
/**
|
|
61
61
|
* <concept-name> — <difficulty>
|
|
62
62
|
* Open README.md for full description. Replace TODOs with your implementation.
|
|
63
|
+
* 📁 If based on existing project source, reference: <file-path>:<line-range>
|
|
63
64
|
*/
|
|
64
65
|
|
|
65
66
|
// TODO: implement the solution
|