@ngxtm/devkit 3.13.0 → 3.14.0

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.
@@ -4,9 +4,9 @@ description: Guided project building — you code, AI mentors. Build your own pr
4
4
  argument-hint: [topic]
5
5
  ---
6
6
 
7
- # Learn Mode v3.0
7
+ # Learn Mode v3.1
8
8
 
9
- > Build your product. Write every line. Understand every decision.
9
+ > Build your product. Design the architecture. Write every line. Understand every decision.
10
10
 
11
11
  ## Activation
12
12
 
@@ -93,11 +93,69 @@ Update frontmatter: `phase: LEARN`
93
93
 
94
94
  ---
95
95
 
96
- ## Phase 3: BUILD (core phase)
96
+ ## Phase 3: DESIGN (Socratic architecture thinking)
97
97
 
98
- 1. **Plan steps**: Break implementation into 3-7 verifiable steps. Show plan to user.
98
+ > User thinks first, AI guides not the other way around.
99
99
 
100
- 2. **For each step, follow the teaching mode**:
100
+ 1. **Frame the problem**: AI presents the high-level problem to solve:
101
+ > "We need to build {topic}. Before I suggest anything — how would YOU approach this? What components or pieces do you think we need?"
102
+
103
+ Ask via `AskUserQuestion`. Let user think and answer.
104
+
105
+ 2. **Build on user's answer**:
106
+ - If user's approach is solid → acknowledge strengths, refine together
107
+ - If user's approach has gaps → ask guiding questions: "What about {concern}? How would you handle that?"
108
+ - If user has no idea → break it down: "Let's start smaller — what's the first thing a user would do with this feature?"
109
+
110
+ 3. **Explore alternatives**: Present 2-3 different approaches with trade-offs:
111
+ > "Your approach uses X. Another option is Y. Here's how they compare:"
112
+
113
+ | Aspect | Approach A (user's) | Approach B | Approach C |
114
+ |--------|-------------------|-----------|-----------|
115
+ | Complexity | ... | ... | ... |
116
+ | Scalability | ... | ... | ... |
117
+ | Learning value | ... | ... | ... |
118
+
119
+ Ask user to choose via `AskUserQuestion`. Explain WHY each trade-off matters.
120
+
121
+ 4. **Architecture decisions**: For the chosen approach, walk through key decisions:
122
+ - Data flow: how data moves through the system
123
+ - File/module structure: where code lives and why
124
+ - Dependencies: what libraries/tools and why those specifically
125
+ - Patterns: which design patterns and why (not just "use MVC" but why MVC fits here)
126
+
127
+ For each decision, ask user: "Does this make sense? Any concerns?"
128
+
129
+ 5. **Write to tutorial file**: Record the design discussion, chosen approach, and rationale.
130
+
131
+ Update frontmatter: `phase: DESIGN`
132
+
133
+ ---
134
+
135
+ ## Phase 4: PLAN (concrete implementation steps)
136
+
137
+ 1. **Break down the chosen design** into 3-7 concrete, verifiable steps. Each step should:
138
+ - Have a clear goal (what's done when this step is complete)
139
+ - Build on previous steps (incremental, testable progress)
140
+ - Be small enough to verify immediately
141
+
142
+ 2. **Show plan to user** with rationale for the ordering:
143
+ > "Here's the build order. We start with X because Y depends on it. Step 3 before Step 4 because..."
144
+
145
+ 3. **User validates**: Ask via `AskUserQuestion`:
146
+ > "Does this plan make sense? Want to reorder anything or add/remove steps?"
147
+
148
+ Adjust plan based on user feedback.
149
+
150
+ 4. **Write plan to tutorial file**: Each step with goal, files involved, and acceptance criteria.
151
+
152
+ Update frontmatter: `phase: PLAN`, `total_steps: {N}`
153
+
154
+ ---
155
+
156
+ ## Phase 5: BUILD (core phase)
157
+
158
+ 1. **For each step from the PLAN phase, follow the teaching mode**:
101
159
 
102
160
  ### Guided Mode (user codes everything)
103
161
 
@@ -171,7 +229,7 @@ Update frontmatter: `phase: LEARN`
171
229
 
172
230
  ---
173
231
 
174
- ## Phase 4: WRAP-UP
232
+ ## Phase 6: WRAP-UP
175
233
 
176
234
  1. **Summary**: What was built, key takeaways (3-5 points)
177
235
 
@@ -209,6 +267,7 @@ Display: `Tutorial saved: learn/{filename}.md`
209
267
 
210
268
  ## Version History
211
269
 
270
+ - **3.1.0** - Added DESIGN phase (Socratic architecture) and PLAN phase (concrete steps). Full flow: INIT → LEARN → DESIGN → PLAN → BUILD → WRAP-UP
212
271
  - **3.0.0** - Teaching modes (guided/scaffolded/demonstrated), best-practice review, explain-back checkpoints, user-codes-first philosophy
213
272
  - **2.0.0** - Rewrite: adaptive difficulty via codingLevel, 4 phases, WebSearch, Socratic method, resume support, tiered verify, 17 languages, codebase-aware
214
273
  - **1.0.0** - Initial release
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngxtm/devkit",
3
- "version": "3.13.0",
3
+ "version": "3.14.0",
4
4
  "description": "Per-project AI skills with smart tech detection - lightweight and context-optimized",
5
5
  "main": "cli/index.js",
6
6
  "bin": {
@@ -4,9 +4,9 @@ description: Guided project building — you code, AI mentors. Build your own pr
4
4
  argument-hint: [topic]
5
5
  ---
6
6
 
7
- # Learn Mode v3.0
7
+ # Learn Mode v3.1
8
8
 
9
- > Build your product. Write every line. Understand every decision.
9
+ > Build your product. Design the architecture. Write every line. Understand every decision.
10
10
 
11
11
  ## Activation
12
12
 
@@ -93,11 +93,69 @@ Update frontmatter: `phase: LEARN`
93
93
 
94
94
  ---
95
95
 
96
- ## Phase 3: BUILD (core phase)
96
+ ## Phase 3: DESIGN (Socratic architecture thinking)
97
97
 
98
- 1. **Plan steps**: Break implementation into 3-7 verifiable steps. Show plan to user.
98
+ > User thinks first, AI guides not the other way around.
99
99
 
100
- 2. **For each step, follow the teaching mode**:
100
+ 1. **Frame the problem**: AI presents the high-level problem to solve:
101
+ > "We need to build {topic}. Before I suggest anything — how would YOU approach this? What components or pieces do you think we need?"
102
+
103
+ Ask via `AskUserQuestion`. Let user think and answer.
104
+
105
+ 2. **Build on user's answer**:
106
+ - If user's approach is solid → acknowledge strengths, refine together
107
+ - If user's approach has gaps → ask guiding questions: "What about {concern}? How would you handle that?"
108
+ - If user has no idea → break it down: "Let's start smaller — what's the first thing a user would do with this feature?"
109
+
110
+ 3. **Explore alternatives**: Present 2-3 different approaches with trade-offs:
111
+ > "Your approach uses X. Another option is Y. Here's how they compare:"
112
+
113
+ | Aspect | Approach A (user's) | Approach B | Approach C |
114
+ |--------|-------------------|-----------|-----------|
115
+ | Complexity | ... | ... | ... |
116
+ | Scalability | ... | ... | ... |
117
+ | Learning value | ... | ... | ... |
118
+
119
+ Ask user to choose via `AskUserQuestion`. Explain WHY each trade-off matters.
120
+
121
+ 4. **Architecture decisions**: For the chosen approach, walk through key decisions:
122
+ - Data flow: how data moves through the system
123
+ - File/module structure: where code lives and why
124
+ - Dependencies: what libraries/tools and why those specifically
125
+ - Patterns: which design patterns and why (not just "use MVC" but why MVC fits here)
126
+
127
+ For each decision, ask user: "Does this make sense? Any concerns?"
128
+
129
+ 5. **Write to tutorial file**: Record the design discussion, chosen approach, and rationale.
130
+
131
+ Update frontmatter: `phase: DESIGN`
132
+
133
+ ---
134
+
135
+ ## Phase 4: PLAN (concrete implementation steps)
136
+
137
+ 1. **Break down the chosen design** into 3-7 concrete, verifiable steps. Each step should:
138
+ - Have a clear goal (what's done when this step is complete)
139
+ - Build on previous steps (incremental, testable progress)
140
+ - Be small enough to verify immediately
141
+
142
+ 2. **Show plan to user** with rationale for the ordering:
143
+ > "Here's the build order. We start with X because Y depends on it. Step 3 before Step 4 because..."
144
+
145
+ 3. **User validates**: Ask via `AskUserQuestion`:
146
+ > "Does this plan make sense? Want to reorder anything or add/remove steps?"
147
+
148
+ Adjust plan based on user feedback.
149
+
150
+ 4. **Write plan to tutorial file**: Each step with goal, files involved, and acceptance criteria.
151
+
152
+ Update frontmatter: `phase: PLAN`, `total_steps: {N}`
153
+
154
+ ---
155
+
156
+ ## Phase 5: BUILD (core phase)
157
+
158
+ 1. **For each step from the PLAN phase, follow the teaching mode**:
101
159
 
102
160
  ### Guided Mode (user codes everything)
103
161
 
@@ -171,7 +229,7 @@ Update frontmatter: `phase: LEARN`
171
229
 
172
230
  ---
173
231
 
174
- ## Phase 4: WRAP-UP
232
+ ## Phase 6: WRAP-UP
175
233
 
176
234
  1. **Summary**: What was built, key takeaways (3-5 points)
177
235
 
@@ -209,6 +267,7 @@ Display: `Tutorial saved: learn/{filename}.md`
209
267
 
210
268
  ## Version History
211
269
 
270
+ - **3.1.0** - Added DESIGN phase (Socratic architecture) and PLAN phase (concrete steps). Full flow: INIT → LEARN → DESIGN → PLAN → BUILD → WRAP-UP
212
271
  - **3.0.0** - Teaching modes (guided/scaffolded/demonstrated), best-practice review, explain-back checkpoints, user-codes-first philosophy
213
272
  - **2.0.0** - Rewrite: adaptive difficulty via codingLevel, 4 phases, WebSearch, Socratic method, resume support, tiered verify, 17 languages, codebase-aware
214
273
  - **1.0.0** - Initial release