prjct-cli 0.7.3 → 0.8.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.
@@ -0,0 +1,386 @@
1
+ ---
2
+ allowed-tools: [Read]
3
+ description: 'Conversational intent to action translator - helps users understand what to do'
4
+ ---
5
+
6
+ # /p:ask
7
+
8
+ ## Purpose
9
+
10
+ Translate natural language intent into actionable prjct command flows. Helps users who know WHAT they want but don't know HOW to do it with prjct.
11
+
12
+ ## Usage
13
+
14
+ ```
15
+ /p:ask "<what you want to do>"
16
+ ```
17
+
18
+ ## Flow
19
+
20
+ 1. **Understand intent**: Parse user's natural language description
21
+ 2. **Analyze context**: Read project state (core/now.md, core/next.md, planning/roadmap.md)
22
+ 3. **Recommend flow**: Suggest specific command sequence with explanations
23
+ 4. **Offer templates**: If applicable, show examples from similar use cases
24
+ 5. **Ask confirmation**: Interactive - don't execute automatically
25
+
26
+ ## Intent Categories
27
+
28
+ Claude analyzes and maps to one of these patterns:
29
+
30
+ ### 1. Feature Development
31
+ Keywords: "add", "implement", "create", "build", "agregar", "implementar", "crear"
32
+
33
+ **Recommended flow:**
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
+ ```
44
+
45
+ ### 2. Performance/Optimization
46
+ Keywords: "optimize", "improve", "faster", "performance", "memory leak", "optimizar", "mejorar"
47
+
48
+ **Recommended flow:**
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
72
+
73
+ 2. /p:build "{bug task}" (if high priority)
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
+ ```
112
+
113
+ ## Response Format
114
+
115
+ ```
116
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━
117
+ 🎯 Entiendo: {interpreted_intent}
118
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━
119
+
120
+ 📊 TU CONTEXTO:
121
+ • Estado actual: {current_state}
122
+ • Tareas activas: {active_tasks}
123
+ • Último ship: {time_ago}
124
+
125
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━
126
+
127
+ 💡 RECOMENDACIÓN DE FLUJO:
128
+
129
+ {step_by_step_command_flow}
130
+
131
+ Cada paso explicado:
132
+ → {command_1}: {why_this_command}
133
+ → {command_2}: {what_it_does}
134
+ → {command_3}: {expected_outcome}
135
+
136
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━
137
+
138
+ ✨ EJEMPLOS SIMILARES:
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"
222
+ ```
223
+
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
+ ## Validation
348
+
349
+ - **Optional**: Can run without project initialized
350
+ - **If not initialized**: Suggest `/p:init` first
351
+ - **Read-only**: Never modifies files, only recommends
352
+
353
+ ## Edge Cases
354
+
355
+ ### No prjct project
356
+ ```
357
+ ⚠️ No prjct project here
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
@@ -8,7 +8,8 @@ description: 'Value analysis + roadmap + task breakdown + auto-start'
8
8
  ## Usage
9
9
 
10
10
  ```
11
- /p:feature "<description>"
11
+ /p:feature "<description>" # Direct description
12
+ /p:feature # Interactive mode with templates
12
13
  ```
13
14
 
14
15
  ## What It Does
@@ -18,6 +19,131 @@ description: 'Value analysis + roadmap + task breakdown + auto-start'
18
19
  3. **Task breakdown**: Smart breakdown into logical tasks
19
20
  4. **Auto-start**: First task starts automatically
20
21
 
22
+ ## Interactive Mode (No Parameters)
23
+
24
+ When executed without parameters, `/p:feature` enters interactive mode with quick start templates.
25
+
26
+ ### Response: Interactive Mode
27
+
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
+ ```
146
+
21
147
  ## Flow
22
148
 
23
149
  1. Analyze value (impact/effort/timing)