prjct-cli 0.8.4 → 0.8.8
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/CHANGELOG.md +115 -0
- package/CLAUDE.md +34 -0
- package/bin/prjct +19 -166
- package/core/agentic/context-builder.js +4 -3
- package/core/agentic/tool-registry.js +35 -0
- package/core/commands.js +84 -0
- package/core/index.js +178 -0
- package/core/infrastructure/command-installer.js +9 -26
- package/core/infrastructure/legacy-installer-detector.js +546 -0
- package/core/infrastructure/session-manager.js +14 -2
- package/core/infrastructure/setup.js +185 -0
- package/core/utils/jsonl-helper.js +137 -0
- package/package.json +1 -1
- package/scripts/install.sh +45 -8
- package/scripts/postinstall.js +12 -203
- package/templates/agents/AGENTS.md +3 -3
- package/templates/commands/ask.md +25 -338
- package/templates/commands/build.md +7 -4
- package/templates/commands/feature.md +19 -160
- package/templates/commands/help.md +41 -299
- package/templates/commands/idea.md +7 -4
- package/templates/commands/init.md +15 -112
- package/templates/commands/migrate-all.md +25 -84
- package/templates/commands/now.md +4 -3
- package/templates/commands/ship.md +20 -86
- package/templates/commands/suggest.md +36 -495
|
@@ -7,380 +7,67 @@ description: 'Conversational intent to action translator - helps users understan
|
|
|
7
7
|
|
|
8
8
|
## Purpose
|
|
9
9
|
|
|
10
|
-
Translate natural language intent into actionable prjct command flows. Helps users who know WHAT they want but don't know HOW
|
|
11
|
-
|
|
12
|
-
## Usage
|
|
13
|
-
|
|
14
|
-
```
|
|
15
|
-
/p:ask "<what you want to do>"
|
|
16
|
-
```
|
|
10
|
+
Translate natural language intent into actionable prjct command flows. Helps users who know WHAT they want but don't know HOW.
|
|
17
11
|
|
|
18
12
|
## Flow
|
|
19
13
|
|
|
20
14
|
1. **Understand intent**: Parse user's natural language description
|
|
21
|
-
2. **Analyze context**: Read project state (core/now.md
|
|
15
|
+
2. **Analyze context**: Read project state (`core/now.md`, `core/next.md`, `planning/roadmap.md`)
|
|
22
16
|
3. **Recommend flow**: Suggest specific command sequence with explanations
|
|
23
|
-
4. **
|
|
24
|
-
5. **Ask confirmation**: Interactive - don't execute automatically
|
|
17
|
+
4. **Ask confirmation**: Interactive - don't execute automatically
|
|
25
18
|
|
|
26
19
|
## Intent Categories
|
|
27
20
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
### 1. Feature Development
|
|
31
|
-
Keywords: "add", "implement", "create", "build", "agregar", "implementar", "crear"
|
|
21
|
+
**1. Feature Development**: "add", "implement", "create", "build"
|
|
22
|
+
→ `/p:feature "{desc}"` → `/p:done` (iterate) → `/p:ship "{name}"`
|
|
32
23
|
|
|
33
|
-
**
|
|
34
|
-
|
|
35
|
-
1. /p:feature "{description}"
|
|
36
|
-
→ Value analysis (impact/effort/timing)
|
|
37
|
-
→ Task breakdown
|
|
38
|
-
→ Auto-start first task
|
|
39
|
-
|
|
40
|
-
2. /p:done (after each task)
|
|
41
|
-
|
|
42
|
-
3. /p:ship "{feature name}" (when complete)
|
|
43
|
-
```
|
|
24
|
+
**2. Performance/Optimization**: "optimize", "improve", "faster", "memory leak"
|
|
25
|
+
→ `/p:feature "optimize {area}"` → `/p:build 1` → `/p:done` → `/p:ship "optimization"`
|
|
44
26
|
|
|
45
|
-
|
|
46
|
-
|
|
27
|
+
**3. Bug Fixing**: "bug", "error", "fix", "broken", "not working"
|
|
28
|
+
→ `/p:bug "{desc}"` → `/p:build "{bug task}"` → `/p:done` → `/p:ship "bug fixes"`
|
|
47
29
|
|
|
48
|
-
**
|
|
49
|
-
|
|
50
|
-
1. /p:feature "optimize {area}"
|
|
51
|
-
→ Break down into measurable tasks:
|
|
52
|
-
• Profile and identify bottlenecks
|
|
53
|
-
• Implement specific optimizations
|
|
54
|
-
• Measure improvements
|
|
55
|
-
• Document findings
|
|
56
|
-
|
|
57
|
-
2. /p:build 1 (start with profiling)
|
|
58
|
-
|
|
59
|
-
3. /p:done (iterate through tasks)
|
|
60
|
-
|
|
61
|
-
4. /p:ship "performance optimization"
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
### 3. Bug Fixing
|
|
65
|
-
Keywords: "bug", "error", "fix", "broken", "not working", "arreglar", "error"
|
|
66
|
-
|
|
67
|
-
**Recommended flow:**
|
|
68
|
-
```
|
|
69
|
-
1. /p:bug "{description}"
|
|
70
|
-
→ Auto-prioritized based on severity
|
|
71
|
-
→ Added to queue
|
|
30
|
+
**4. Design/Architecture**: "design", "architecture", "structure", "plan"
|
|
31
|
+
→ `/p:design {target} --type {architecture|api|component|database|flow}` → `/p:feature "implement {design}"` → `/p:build 1`
|
|
72
32
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
3. /p:done (when fixed)
|
|
76
|
-
|
|
77
|
-
4. /p:ship "bug fixes" (if part of larger batch)
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
### 4. Design/Architecture
|
|
81
|
-
Keywords: "design", "architecture", "structure", "plan", "diseñar", "arquitectura"
|
|
82
|
-
|
|
83
|
-
**Recommended flow:**
|
|
84
|
-
```
|
|
85
|
-
1. /p:design {target} --type {architecture|api|component|database|flow}
|
|
86
|
-
→ Create design document
|
|
87
|
-
→ Plan implementation
|
|
88
|
-
|
|
89
|
-
2. /p:feature "implement {design}"
|
|
90
|
-
→ Convert design to tasks
|
|
91
|
-
|
|
92
|
-
3. /p:build 1 (start implementation)
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
### 5. Lost/Confused
|
|
96
|
-
Keywords: "don't know", "help", "stuck", "what should", "no sé", "ayuda"
|
|
97
|
-
|
|
98
|
-
**Recommended flow:**
|
|
99
|
-
```
|
|
100
|
-
1. /p:suggest
|
|
101
|
-
→ Context-aware recommendations
|
|
102
|
-
→ Shows current state
|
|
103
|
-
→ Suggests next best action
|
|
104
|
-
|
|
105
|
-
OR
|
|
106
|
-
|
|
107
|
-
2. /p:help
|
|
108
|
-
→ Interactive guide
|
|
109
|
-
→ Shows available commands
|
|
110
|
-
→ Examples
|
|
111
|
-
```
|
|
33
|
+
**5. Lost/Confused**: "don't know", "help", "stuck", "what should"
|
|
34
|
+
→ `/p:suggest` (context-aware recommendations) OR `/p:help` (interactive guide)
|
|
112
35
|
|
|
113
36
|
## Response Format
|
|
114
37
|
|
|
115
38
|
```
|
|
116
39
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
117
|
-
🎯
|
|
40
|
+
🎯 I understand: {interpreted_intent}
|
|
118
41
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
119
42
|
|
|
120
|
-
📊
|
|
121
|
-
•
|
|
122
|
-
•
|
|
123
|
-
•
|
|
43
|
+
📊 YOUR CONTEXT:
|
|
44
|
+
• Current state: {current_state}
|
|
45
|
+
• Active tasks: {active_tasks}
|
|
46
|
+
• Last ship: {time_ago}
|
|
124
47
|
|
|
125
48
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
126
49
|
|
|
127
|
-
💡
|
|
50
|
+
💡 RECOMMENDED FLOW:
|
|
128
51
|
|
|
129
52
|
{step_by_step_command_flow}
|
|
130
53
|
|
|
131
|
-
|
|
54
|
+
Each step explained:
|
|
132
55
|
→ {command_1}: {why_this_command}
|
|
133
56
|
→ {command_2}: {what_it_does}
|
|
134
57
|
→ {command_3}: {expected_outcome}
|
|
135
58
|
|
|
136
59
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
137
60
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
"{similar_example_1}"
|
|
141
|
-
"{similar_example_2}"
|
|
142
|
-
|
|
143
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
144
|
-
|
|
145
|
-
¿Quieres que ejecute el paso 1?
|
|
146
|
-
[Sí] [No, solo dame las tareas] [Necesito más ayuda]
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
## Examples
|
|
150
|
-
|
|
151
|
-
### Example 1: Performance Optimization
|
|
152
|
-
|
|
153
|
-
**Input:**
|
|
154
|
-
```
|
|
155
|
-
/p:ask "quiero mejorar el performance y evitar memory leaks"
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
**Output:**
|
|
159
|
-
```
|
|
160
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
161
|
-
🎯 Entiendo: optimización de performance + solución de memory leaks
|
|
162
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
163
|
-
|
|
164
|
-
📊 TU CONTEXTO:
|
|
165
|
-
• Estado actual: sin tarea activa
|
|
166
|
-
• Tareas en cola: 3
|
|
167
|
-
• Último ship: hace 2 días
|
|
168
|
-
|
|
169
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
170
|
-
|
|
171
|
-
💡 RECOMENDACIÓN DE FLUJO:
|
|
172
|
-
|
|
173
|
-
1. /p:feature "optimizar performance y memory leaks"
|
|
174
|
-
|
|
175
|
-
Claude analizará y creará tareas como:
|
|
176
|
-
• Setup profiler (Chrome DevTools/React DevTools)
|
|
177
|
-
• Identificar memory leaks con heap snapshots
|
|
178
|
-
• Optimizar re-renders innecesarios
|
|
179
|
-
• Implementar memoization (useMemo, useCallback)
|
|
180
|
-
• Code splitting para reducir bundle size
|
|
181
|
-
• Medir mejoras y documentar
|
|
182
|
-
|
|
183
|
-
2. /p:build 1
|
|
184
|
-
→ Empezar con el profiling (necesitas datos primero)
|
|
185
|
-
|
|
186
|
-
3. /p:done
|
|
187
|
-
→ Después de cada tarea completada
|
|
188
|
-
|
|
189
|
-
4. /p:ship "performance optimization"
|
|
190
|
-
→ Cuando hayas terminado todas las mejoras
|
|
191
|
-
|
|
192
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
193
|
-
|
|
194
|
-
✨ POR QUÉ ESTE FLUJO:
|
|
195
|
-
|
|
196
|
-
→ /p:feature: Analiza el valor (impacto alto, esfuerzo medio)
|
|
197
|
-
Recomienda timing (hacer ahora antes de más features)
|
|
198
|
-
Breakdown inteligente (primero medir, luego optimizar)
|
|
199
|
-
|
|
200
|
-
→ /p:build: Asigna agente apropiado (probablemente FE)
|
|
201
|
-
Tracking de tiempo
|
|
202
|
-
Focus en una tarea a la vez
|
|
203
|
-
|
|
204
|
-
→ /p:done: Registra progreso
|
|
205
|
-
Mantiene momentum
|
|
206
|
-
Mueve a siguiente tarea
|
|
207
|
-
|
|
208
|
-
→ /p:ship: Commit + push + celebración
|
|
209
|
-
Actualiza docs
|
|
210
|
-
Registra el logro
|
|
211
|
-
|
|
212
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
213
|
-
|
|
214
|
-
¿Empezamos con /p:feature para analizar el valor y crear las tareas?
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
### Example 2: New Feature
|
|
218
|
-
|
|
219
|
-
**Input:**
|
|
220
|
-
```
|
|
221
|
-
/p:ask "I want to add user authentication"
|
|
61
|
+
Would you like me to execute step 1?
|
|
222
62
|
```
|
|
223
63
|
|
|
224
|
-
**Output:**
|
|
225
|
-
```
|
|
226
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
227
|
-
🎯 I understand: implement user authentication system
|
|
228
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
229
|
-
|
|
230
|
-
📊 YOUR CONTEXT:
|
|
231
|
-
• Current state: working on "navbar redesign"
|
|
232
|
-
• Queue: 2 tasks
|
|
233
|
-
• Last ship: 1 day ago
|
|
234
|
-
|
|
235
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
236
|
-
|
|
237
|
-
⚠️ IMPORTANTE: Tienes tarea activa
|
|
238
|
-
|
|
239
|
-
Opciones:
|
|
240
|
-
|
|
241
|
-
A) TERMINAR PRIMERO (Recomendado)
|
|
242
|
-
1. /p:done → Terminar "navbar redesign"
|
|
243
|
-
2. /p:feature "user authentication"
|
|
244
|
-
3. /p:build 1 → Empezar auth
|
|
245
|
-
|
|
246
|
-
B) GUARDAR PARA DESPUÉS
|
|
247
|
-
1. /p:feature "user authentication"
|
|
248
|
-
→ Se agrega a la cola
|
|
249
|
-
2. Continúa con navbar
|
|
250
|
-
3. /p:done cuando termines navbar
|
|
251
|
-
4. /p:build "authentication" cuando estés listo
|
|
252
|
-
|
|
253
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
254
|
-
|
|
255
|
-
💡 RECOMENDACIÓN:
|
|
256
|
-
|
|
257
|
-
Termina navbar primero (mantiene focus)
|
|
258
|
-
Luego /p:feature "authentication" hará:
|
|
259
|
-
|
|
260
|
-
• Análisis de valor (impacto: HIGH)
|
|
261
|
-
• Stack analysis (sugiere: Clerk, Auth0, o custom JWT)
|
|
262
|
-
• Task breakdown:
|
|
263
|
-
- Setup auth provider
|
|
264
|
-
- Implement login/signup UI
|
|
265
|
-
- Protected routes
|
|
266
|
-
- Session management
|
|
267
|
-
- Testing
|
|
268
|
-
|
|
269
|
-
• Auto-start primera tarea
|
|
270
|
-
|
|
271
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
272
|
-
|
|
273
|
-
¿Qué prefieres: A) Terminar navbar primero, o B) Agregar a cola?
|
|
274
|
-
```
|
|
275
|
-
|
|
276
|
-
### Example 3: Lost/Confused
|
|
277
|
-
|
|
278
|
-
**Input:**
|
|
279
|
-
```
|
|
280
|
-
/p:ask "no sé qué hacer ahora"
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
**Output:**
|
|
284
|
-
```
|
|
285
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
286
|
-
🎯 Entiendo: necesitas orientación sobre qué hacer
|
|
287
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
288
|
-
|
|
289
|
-
📊 TU CONTEXTO:
|
|
290
|
-
• Estado actual: sin tarea activa ✅
|
|
291
|
-
• Tareas en cola: 5 tareas esperando
|
|
292
|
-
• Último ship: hace 4 días ⚠️
|
|
293
|
-
|
|
294
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
295
|
-
|
|
296
|
-
💡 TE RECOMIENDO:
|
|
297
|
-
|
|
298
|
-
1. VER TU COLA DE TAREAS
|
|
299
|
-
/p:next
|
|
300
|
-
→ Muestra las 5 tareas top priority
|
|
301
|
-
→ Ya están priorizadas y listas para trabajar
|
|
302
|
-
|
|
303
|
-
2. EMPEZAR LA TAREA #1
|
|
304
|
-
/p:build 1
|
|
305
|
-
→ Empieza automáticamente la tarea top priority
|
|
306
|
-
→ Asigna agente apropiado
|
|
307
|
-
→ Tracking de tiempo
|
|
308
|
-
|
|
309
|
-
3. VER SUGERENCIAS INTELIGENTES
|
|
310
|
-
/p:suggest
|
|
311
|
-
→ Analiza tu contexto completo
|
|
312
|
-
→ Recomienda basado en:
|
|
313
|
-
- Tiempo sin ship (4 días)
|
|
314
|
-
- Velocidad reciente
|
|
315
|
-
- Urgencias
|
|
316
|
-
|
|
317
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
318
|
-
|
|
319
|
-
🎯 MI SUGERENCIA ESPECÍFICA:
|
|
320
|
-
|
|
321
|
-
Han pasado 4 días sin ship → Es momento de completar algo
|
|
322
|
-
|
|
323
|
-
Opción A: Trabaja en tareas de cola
|
|
324
|
-
/p:next → /p:build 1 → /p:done → /p:ship
|
|
325
|
-
|
|
326
|
-
Opción B: Crea algo nuevo rápido
|
|
327
|
-
/p:feature "quick win" → /p:build 1 → ship today
|
|
328
|
-
|
|
329
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
330
|
-
|
|
331
|
-
¿Qué prefieres?
|
|
332
|
-
1. Ver qué hay en cola (/p:next)
|
|
333
|
-
2. Sugerencias personalizadas (/p:suggest)
|
|
334
|
-
3. Contarme qué tienes en mente
|
|
335
|
-
```
|
|
336
|
-
|
|
337
|
-
## Key Principles
|
|
338
|
-
|
|
339
|
-
1. **Conversational**: Natural language, not technical
|
|
340
|
-
2. **Educational**: Explain WHY each command
|
|
341
|
-
3. **Contextual**: Always check project state first
|
|
342
|
-
4. **Interactive**: Ask confirmation, offer choices
|
|
343
|
-
5. **No auto-execution**: Show the path, let user decide
|
|
344
|
-
6. **Bilingual**: Support English and Spanish naturally
|
|
345
|
-
7. **Examples**: Show similar use cases when relevant
|
|
346
|
-
|
|
347
64
|
## Validation
|
|
348
65
|
|
|
349
|
-
- **Optional**: Can run without project initialized
|
|
350
|
-
- **If not initialized**: Suggest `/p:init` first
|
|
66
|
+
- **Optional**: Can run without project initialized (suggests `/p:init` if needed)
|
|
351
67
|
- **Read-only**: Never modifies files, only recommends
|
|
352
68
|
|
|
353
69
|
## Edge Cases
|
|
354
70
|
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
First, initialize:
|
|
360
|
-
/p:init # For existing project
|
|
361
|
-
/p:init "your idea" # For new project
|
|
362
|
-
|
|
363
|
-
Then I can help you!
|
|
364
|
-
```
|
|
365
|
-
|
|
366
|
-
### Very vague request
|
|
367
|
-
```
|
|
368
|
-
🤔 Puedes darme más detalles?
|
|
369
|
-
|
|
370
|
-
Qué quieres hacer:
|
|
371
|
-
• Agregar nueva funcionalidad?
|
|
372
|
-
• Arreglar algo que no funciona?
|
|
373
|
-
• Mejorar el código existente?
|
|
374
|
-
• No estás seguro?
|
|
375
|
-
|
|
376
|
-
Cuéntame más y te ayudo a encontrar el comando correcto!
|
|
377
|
-
```
|
|
378
|
-
|
|
379
|
-
## Success Criteria
|
|
380
|
-
|
|
381
|
-
After using `/p:ask`, user should:
|
|
382
|
-
- ✅ Understand WHAT commands to use
|
|
383
|
-
- ✅ Understand WHY those commands
|
|
384
|
-
- ✅ Understand the SEQUENCE of actions
|
|
385
|
-
- ✅ Feel confident to proceed
|
|
386
|
-
- ✅ Learn the system while using it
|
|
71
|
+
**No prjct project**: Suggest `/p:init` or `/p:init "idea"` first
|
|
72
|
+
**Vague request**: Ask for more details - feature? bug? optimization? not sure?
|
|
73
|
+
**Active task exists**: Offer options - finish first (recommended) or add to queue
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
allowed-tools: [Read, Write]
|
|
2
|
+
allowed-tools: [Read, Write, GetTimestamp]
|
|
3
3
|
description: 'Start task with agent assignment'
|
|
4
|
+
timestamp-rule: 'CRITICAL - ALWAYS use GetTimestamp() tool for id and started fields. NEVER generate timestamps manually.'
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
# /p:build
|
|
@@ -16,18 +17,20 @@ description: 'Start task with agent assignment'
|
|
|
16
17
|
2. Detect: `TaskSchema.detectAgent(task)` + complexity
|
|
17
18
|
3. Get: GitHub dev from `git config user.name` + remote
|
|
18
19
|
4. Create: task metadata with agent, complexity, estimate
|
|
19
|
-
5. Write: `core/now.md` with frontmatter
|
|
20
|
+
5. Write: `core/now.md` with frontmatter (use GetTimestamp() for id and started)
|
|
20
21
|
|
|
21
22
|
## Frontmatter
|
|
22
23
|
|
|
24
|
+
**Use GetTimestamp() tool for both id and started fields:**
|
|
25
|
+
|
|
23
26
|
```yaml
|
|
24
27
|
---
|
|
25
|
-
id: task-{
|
|
28
|
+
id: task-{GetTimestamp()}
|
|
26
29
|
agent: {detected_agent}
|
|
27
30
|
dev: @{github_username}
|
|
28
31
|
complexity: {trivial|simple|moderate|complex|epic}
|
|
29
32
|
estimated: {time_range}
|
|
30
|
-
started: {
|
|
33
|
+
started: {GetTimestamp()}
|
|
31
34
|
---
|
|
32
35
|
{task_description}
|
|
33
36
|
```
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
allowed-tools: [Read, Write, Bash]
|
|
2
|
+
allowed-tools: [Read, Write, Bash, GetTimestamp, GetDate]
|
|
3
3
|
description: 'Value analysis + roadmap + task breakdown + auto-start'
|
|
4
|
+
timestamp-rule: 'CRITICAL - ALWAYS use GetTimestamp() and GetDate() tools for ALL timestamps and dates. NEVER generate dates manually. LLM does not know current date.'
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
# /p:feature
|
|
@@ -21,128 +22,16 @@ description: 'Value analysis + roadmap + task breakdown + auto-start'
|
|
|
21
22
|
|
|
22
23
|
## Interactive Mode (No Parameters)
|
|
23
24
|
|
|
24
|
-
When executed without parameters,
|
|
25
|
+
When executed without parameters, show 6 category templates:
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
**1. 🎨 UI/UX**: dark mode, redesign, responsiveness, animations
|
|
28
|
+
**2. ⚡ Performance**: load time, memory leaks, code splitting, API speed
|
|
29
|
+
**3. 🔐 Features**: authentication, payments, admin dashboard, notifications
|
|
30
|
+
**4. 🧪 Quality**: unit tests, E2E testing, error tracking, coverage
|
|
31
|
+
**5. 🐛 Bug Fixes**: refactoring, memory leaks, deprecated code, error handling
|
|
32
|
+
**6. 📚 Docs**: API docs, onboarding, developer setup, examples
|
|
27
33
|
|
|
28
|
-
|
|
29
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
30
|
-
💡 WHAT FEATURE DO YOU WANT TO ADD?
|
|
31
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
32
|
-
|
|
33
|
-
You can describe freely or choose a template:
|
|
34
|
-
|
|
35
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
36
|
-
|
|
37
|
-
📋 QUICK START TEMPLATES:
|
|
38
|
-
|
|
39
|
-
1. 🎨 UI/UX Improvements
|
|
40
|
-
Examples:
|
|
41
|
-
• "add dark mode"
|
|
42
|
-
• "redesign dashboard"
|
|
43
|
-
• "improve mobile responsiveness"
|
|
44
|
-
• "add animations and transitions"
|
|
45
|
-
|
|
46
|
-
2. ⚡ Performance Optimization
|
|
47
|
-
Examples:
|
|
48
|
-
• "optimize page load time"
|
|
49
|
-
• "reduce memory leaks"
|
|
50
|
-
• "implement code splitting"
|
|
51
|
-
• "improve API response time"
|
|
52
|
-
|
|
53
|
-
3. 🔐 Features & Functionality
|
|
54
|
-
Examples:
|
|
55
|
-
• "implement user authentication"
|
|
56
|
-
• "add payment system"
|
|
57
|
-
• "create admin dashboard"
|
|
58
|
-
• "implement real-time notifications"
|
|
59
|
-
|
|
60
|
-
4. 🧪 Quality & Testing
|
|
61
|
-
Examples:
|
|
62
|
-
• "add unit tests"
|
|
63
|
-
• "implement E2E testing"
|
|
64
|
-
• "add error tracking"
|
|
65
|
-
• "improve code coverage"
|
|
66
|
-
|
|
67
|
-
5. 🐛 Bug Fixes & Refactoring
|
|
68
|
-
Examples:
|
|
69
|
-
• "refactor authentication flow"
|
|
70
|
-
• "fix memory leaks"
|
|
71
|
-
• "clean up deprecated code"
|
|
72
|
-
• "improve error handling"
|
|
73
|
-
|
|
74
|
-
6. 📚 Documentation & DevX
|
|
75
|
-
Examples:
|
|
76
|
-
• "add API documentation"
|
|
77
|
-
• "create onboarding guide"
|
|
78
|
-
• "improve developer setup"
|
|
79
|
-
• "add code examples"
|
|
80
|
-
|
|
81
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
82
|
-
|
|
83
|
-
💬 HOW TO USE:
|
|
84
|
-
|
|
85
|
-
Choose a number (1-6) or just describe what you want:
|
|
86
|
-
"I want to add authentication"
|
|
87
|
-
"Need to optimize performance"
|
|
88
|
-
"3" (shows feature examples)
|
|
89
|
-
|
|
90
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
91
|
-
|
|
92
|
-
What feature do you want to add?
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
### Template Category Deep Dive
|
|
96
|
-
|
|
97
|
-
If user selects a category number (1-6):
|
|
98
|
-
|
|
99
|
-
```
|
|
100
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
101
|
-
{CATEGORY_ICON} {CATEGORY_NAME}
|
|
102
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
103
|
-
|
|
104
|
-
Common features in this category:
|
|
105
|
-
|
|
106
|
-
{template_options_with_descriptions}
|
|
107
|
-
|
|
108
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
109
|
-
|
|
110
|
-
Choose one or describe your own:
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
**Example for Performance (Category 2):**
|
|
114
|
-
|
|
115
|
-
```
|
|
116
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
117
|
-
⚡ PERFORMANCE OPTIMIZATION
|
|
118
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
119
|
-
|
|
120
|
-
Common features in this category:
|
|
121
|
-
|
|
122
|
-
1. "Optimize page load time"
|
|
123
|
-
→ Bundle analysis, lazy loading, CDN setup
|
|
124
|
-
Impact: HIGH | Effort: 6-8h
|
|
125
|
-
|
|
126
|
-
2. "Reduce memory leaks"
|
|
127
|
-
→ Profiling, cleanup, optimization
|
|
128
|
-
Impact: HIGH | Effort: 4-6h
|
|
129
|
-
|
|
130
|
-
3. "Implement code splitting"
|
|
131
|
-
→ Route-based, component-based splitting
|
|
132
|
-
Impact: MEDIUM | Effort: 3-4h
|
|
133
|
-
|
|
134
|
-
4. "Improve API response time"
|
|
135
|
-
→ Caching, query optimization, CDN
|
|
136
|
-
Impact: HIGH | Effort: 6-10h
|
|
137
|
-
|
|
138
|
-
5. "Optimize rendering performance"
|
|
139
|
-
→ React.memo, useMemo, virtualization
|
|
140
|
-
Impact: MEDIUM | Effort: 4-6h
|
|
141
|
-
|
|
142
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
143
|
-
|
|
144
|
-
Choose a number or describe your specific need:
|
|
145
|
-
```
|
|
34
|
+
User can: choose category number OR describe freely
|
|
146
35
|
|
|
147
36
|
## Flow
|
|
148
37
|
|
|
@@ -158,22 +47,26 @@ Choose a number or describe your specific need:
|
|
|
158
47
|
|
|
159
48
|
Append to `planning/sessions/{YYYY-MM}/{YYYY-MM-DD}.jsonl`:
|
|
160
49
|
|
|
50
|
+
**Use GetTimestamp() and GetDate() tools to get real system time:**
|
|
51
|
+
|
|
161
52
|
```jsonl
|
|
162
|
-
{"ts":"
|
|
53
|
+
{"ts":"{GetTimestamp()}","type":"feature_add","name":"{feature}","tasks":{N},"impact":"{high/med/low}","effort":"{Xh}","status":"queued"}
|
|
163
54
|
```
|
|
164
55
|
|
|
165
56
|
## Index Update
|
|
166
57
|
|
|
167
58
|
Append to `planning/roadmap.md` (keep only last 30 days):
|
|
168
59
|
|
|
60
|
+
**Use GetDate() tool for current date:**
|
|
61
|
+
|
|
169
62
|
```markdown
|
|
170
63
|
## Queued
|
|
171
|
-
- [ ] {feature_name} ({N} tasks, {Xh} estimated) - Added
|
|
64
|
+
- [ ] {feature_name} ({N} tasks, {Xh} estimated) - Added {GetDate()}
|
|
172
65
|
```
|
|
173
66
|
|
|
174
|
-
If roadmap.md > 30 days old entries, archive
|
|
67
|
+
If roadmap.md > 30 days old entries, archive to `planning/archive/roadmap-{YYYY-MM}.md`
|
|
175
68
|
|
|
176
|
-
## Value Analysis
|
|
69
|
+
## Value Analysis Format
|
|
177
70
|
|
|
178
71
|
```
|
|
179
72
|
Feature: {description}
|
|
@@ -185,20 +78,6 @@ Value Analysis:
|
|
|
185
78
|
• Recommendation: {do_now/defer/needs_X_first}
|
|
186
79
|
```
|
|
187
80
|
|
|
188
|
-
## Task Breakdown
|
|
189
|
-
|
|
190
|
-
```
|
|
191
|
-
Roadmap: {feature_name}
|
|
192
|
-
|
|
193
|
-
Tasks:
|
|
194
|
-
1. [ ] {task_1}
|
|
195
|
-
2. [ ] {task_2}
|
|
196
|
-
3. [ ] {task_3}
|
|
197
|
-
... (as many as needed)
|
|
198
|
-
|
|
199
|
-
Estimated: {total_hours}h
|
|
200
|
-
```
|
|
201
|
-
|
|
202
81
|
## Response
|
|
203
82
|
|
|
204
83
|
```
|
|
@@ -213,27 +92,7 @@ Tasks:
|
|
|
213
92
|
2. {task_2}
|
|
214
93
|
...
|
|
215
94
|
|
|
216
|
-
|
|
95
|
+
Ready to start with task 1?
|
|
217
96
|
|
|
218
97
|
/p:done (when task complete) | /p:ship (when feature complete)
|
|
219
98
|
```
|
|
220
|
-
|
|
221
|
-
## Example
|
|
222
|
-
|
|
223
|
-
```
|
|
224
|
-
User: p. feature "agregar unit testing"
|
|
225
|
-
|
|
226
|
-
Claude analyzes:
|
|
227
|
-
- Impact: HIGH (quality improvement)
|
|
228
|
-
- Effort: 8h
|
|
229
|
-
- Timing: NOW (before shipping more features)
|
|
230
|
-
|
|
231
|
-
Tasks created:
|
|
232
|
-
1. Setup Jest/Vitest configuration
|
|
233
|
-
2. Write tests for core utilities
|
|
234
|
-
3. Write tests for components
|
|
235
|
-
4. Add CI/CD test runner
|
|
236
|
-
5. Update docs with testing guide
|
|
237
|
-
|
|
238
|
-
"¿Empezamos con tarea 1: Setup Jest/Vitest?"
|
|
239
|
-
```
|