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.
@@ -7,7 +7,7 @@ description: 'Interactive contextual guide - helps users based on their current
7
7
 
8
8
  ## Purpose
9
9
 
10
- Contextual help system that analyzes project state and provides relevant guidance. Different responses based on user's current situation.
10
+ Contextual help that analyzes project state and provides relevant guidance based on user's current situation.
11
11
 
12
12
  ## Flow
13
13
 
@@ -16,333 +16,75 @@ Contextual help system that analyzes project state and provides relevant guidanc
16
16
  3. **Provide relevant help**: Suggestions based on context
17
17
  4. **Show examples**: Concrete examples for their situation
18
18
 
19
- ## Response Based on Context
19
+ ## Context-Based Responses
20
20
 
21
- ### Context 1: Project Not Initialized
21
+ ### 1. Not Initialized
22
+ → Show welcome, explain `/p:init` vs `/p:init "idea"` (ARCHITECT MODE)
22
23
 
23
- ```
24
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
25
- 👋 WELCOME TO PRJCT!
26
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
27
-
28
- Ship Fast. No BS.
24
+ ### 2. Empty Queue + No Active Task
25
+ → Suggest: `/p:feature "{desc}"`, `/p:analyze`, `/p:roadmap`
26
+ Emphasize: Can talk naturally, no need to memorize commands
29
27
 
30
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
31
-
32
- 🚀 FIRST STEP: Initialize
28
+ ### 3. Has Active Task
29
+ → Show: current task, duration, started time
30
+ Suggest: `/p:done` (finished?), `/p:stuck "{issue}"` (blocked?), `/p:next` (see queue?)
31
+ → Emphasize: Focus on one task → Ship faster
33
32
 
34
- For existing project:
35
- /p:init
33
+ ### 4. Has Queue, No Active Task
34
+ → Suggest: `/p:next` (see top 5), `/p:build 1` (start #1), `/p:build "{name}"` (start specific)
35
+ → Show: queue size, last ship time
36
+ → Tip: `/p:suggest` for personalized recommendations
36
37
 
37
- For new blank project:
38
- /p:init "your idea here"
39
- Activates ARCHITECT MODE
40
- Conversational setup
41
- Tech stack recommendations
42
-
43
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
38
+ ### 5. Lost/Confused
39
+ Show 5 scenarios with examples:
40
+ - Want to build? `/p:feature "{desc}"`
41
+ - Something broken? `/p:bug "{desc}"`
42
+ - Don't know what to do? → `/p:suggest`
43
+ - See progress? → `/p:status` or `/p:recap`
44
+ - Need guidance? → `/p:ask "{what you want}"`
45
+ → Emphasize: Natural language works (English & Spanish)
44
46
 
45
- After init, I'll help you:
46
- • Break down features into tasks
47
- • Track your progress
48
- • Ship faster
49
-
50
- Let's start! 🎉
51
- ```
52
-
53
- ### Context 2: Initialized, No Active Task, Empty Queue
47
+ ## Response Format
54
48
 
55
49
  ```
56
50
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━
57
- 🎯 WHAT DO YOU WANT TO DO?
51
+ 🎯 HELP - {CONTEXT_TITLE}
58
52
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━
59
53
 
60
54
  📊 Your status:
61
- Project: initialized ✅
62
- • Active task: none
63
- • Queue: empty
64
- • Ready to work!
65
-
66
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
67
-
68
- 💡 RECOMMENDED NEXT STEPS:
69
-
70
- 1. 🚀 Add a feature
71
- Tell me what you want to build:
72
- → /p:feature "add dark mode"
73
- → /p:feature "implement auth"
74
- → /p:feature "optimize performance"
75
-
76
- I'll analyze value, break it into tasks, and start working!
77
-
78
- 2. 🔍 Analyze your project
79
- → /p:analyze
80
- Find TODOs, improvements, and opportunities
81
-
82
- 3. 📋 See your roadmap
83
- → /p:roadmap
84
- View planned features and progress
85
-
86
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
87
-
88
- 💬 TALK NATURALLY:
89
-
90
- You can just tell me:
91
- "I want to add authentication"
92
- "Help me optimize the app"
93
- "What should I do?"
94
-
95
- I understand! No need to memorize commands.
96
-
97
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
98
-
99
- 🆘 NEED MORE HELP?
100
-
101
- → /p:ask "what you want to do"
102
- (I'll guide you step by step)
103
-
104
- → /p:suggest
105
- (I'll analyze and recommend actions)
106
- ```
107
-
108
- ### Context 3: Initialized, Has Active Task
109
-
110
- ```
111
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
112
- 🎯 HELP - CURRENT STATUS
113
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
114
-
115
- 📊 Your status:
116
- • Working on: "{current_task}"
117
- • Started: {time_ago}
118
- • Queue: {N} tasks waiting
119
-
120
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
121
-
122
- 💡 WHAT YOU CAN DO:
123
-
124
- 1. ✅ Finished current task?
125
- → /p:done
126
- Marks complete, moves to next automatically
127
-
128
- 2. ❓ Stuck or need help?
129
- → /p:stuck "{what's blocking you}"
130
- I'll help troubleshoot
131
-
132
- 3. 📊 See what's next?
133
- → /p:next
134
- View your priority queue
135
-
136
- 4. 🎯 Check progress?
137
- → /p:status (visual dashboard)
138
- → /p:recap (detailed overview)
139
-
140
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
141
-
142
- 💬 OR JUST TELL ME:
143
-
144
- "I'm done"
145
- "I'm stuck with X"
146
- "What's next?"
147
- "Show me my progress"
148
-
149
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
150
-
151
- ⏱️ ACTIVE TASK INFO:
152
-
153
- Task: {current_task}
154
- Duration: {duration}
155
- Started: {timestamp}
156
-
157
- Focus on one task at a time → Ship faster!
158
- ```
159
-
160
- ### Context 4: Initialized, No Active Task, Has Queue
161
-
162
- ```
163
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
164
- 🎯 HELP - READY TO WORK!
165
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
166
-
167
- 📊 Your status:
168
- • Active task: none
169
- • Queue: {N} tasks ready
170
- • Last ship: {time_ago}
55
+ {relevant_state_info}
171
56
 
172
57
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━
173
58
 
174
59
  💡 RECOMMENDED ACTIONS:
175
60
 
176
- 1. ⚡ Start working (RECOMMENDED)
177
- /p:next
178
- See your top 5 priority tasks
179
-
180
- → /p:build 1
181
- Start task #1 immediately
182
-
183
- → /p:build "task name"
184
- Start specific task
185
-
186
- 2. 📊 Check your progress
187
- → /p:status (visual dashboard)
188
- → /p:recap (detailed overview)
61
+ 1. {action_1}
62
+ {command_or_natural_language}
189
63
 
190
- 3. 💡 Add new feature
191
- /p:feature "{description}"
192
- Analyze, break down, and start
64
+ 2. {action_2}
65
+ → {command_or_natural_language}
193
66
 
194
- 4. 🐛 Report a bug
195
- /p:bug "{description}"
196
- Auto-prioritized and queued
67
+ 3. {action_3}
68
+ → {command_or_natural_language}
197
69
 
198
70
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━
199
71
 
200
72
  💬 OR JUST SAY:
201
-
202
- "Show me what's next"
203
- "Start task 1"
204
- "I want to work on X"
205
-
206
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
207
-
208
- 💡 TIP:
209
-
210
- You have {N} tasks waiting!
211
- → /p:suggest for personalized recommendations
212
- ```
213
-
214
- ### Context 5: Lost/Confused
215
-
216
- ```
217
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
218
- 🆘 HOW CAN I HELP?
219
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
220
-
221
- No worries! Let me guide you.
222
-
223
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
224
-
225
- 🎯 CHOOSE YOUR SCENARIO:
226
-
227
- 1. 💡 "I want to build something new"
228
- → /p:feature "{what you want to build}"
229
-
230
- Examples:
231
- • /p:feature "add user authentication"
232
- • /p:feature "improve performance"
233
- • /p:feature "redesign homepage"
234
-
235
- 2. 🐛 "Something is broken"
236
- → /p:bug "{description}"
237
-
238
- Example:
239
- • /p:bug "login button not working"
240
-
241
- 3. ❓ "I don't know what to do"
242
- → /p:suggest
243
- I'll analyze your project and recommend
244
-
245
- 4. 📊 "I want to see my progress"
246
- → /p:status (visual)
247
- → /p:recap (detailed)
248
-
249
- 5. 🤔 "I need to understand something"
250
- → /p:ask "{what you want to do}"
251
-
252
- I'll translate your intent into actions!
253
-
254
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
255
-
256
- 💬 REMEMBER:
257
-
258
- You can talk naturally! Just tell me what you want:
259
-
260
- "I want to add dark mode"
261
- "Help me fix this bug"
262
- "What should I work on?"
263
- "I'm stuck with X"
264
-
265
- I understand both:
266
- • Natural language ✅
267
- • Commands ✅
268
- • English & Spanish ✅
73
+ "{natural_example_1}"
74
+ "{natural_example_2}"
269
75
 
270
76
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━
271
77
 
272
- 🚀 PRJCT PHILOSOPHY:
273
-
274
- Ship Fast. No BS.
275
-
276
- One task at a time
277
- Track progress automatically
278
- • Celebrate every ship
279
- • No ceremonies, no overhead
280
-
281
- Just build and ship! 🎉
78
+ 📚 CORE COMMANDS:
79
+ Planning: /p:feature, /p:roadmap, /p:bug
80
+ Working: /p:next, /p:build, /p:done
81
+ Shipping: /p:ship
82
+ Progress: /p:status, /p:recap
83
+ Help: /p:ask, /p:suggest, /p:stuck
282
84
  ```
283
85
 
284
- ## Core Commands Reference
285
-
286
- Always include at the end of contextual help:
287
-
288
- ```
289
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
290
- 📚 CORE COMMANDS (if you prefer)
291
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
292
-
293
- Planning:
294
- /p:feature "{desc}" → Add feature with roadmap
295
- /p:roadmap → View strategic plan
296
- /p:bug "{desc}" → Report and track bug
297
-
298
- Working:
299
- /p:next → See priority queue
300
- /p:build {1-5} → Start task
301
- /p:now → Show current task
302
- /p:done → Complete task
303
-
304
- Shipping:
305
- /p:ship "{name}" → Commit, push, celebrate
306
-
307
- Progress:
308
- /p:status → Visual dashboard
309
- /p:recap → Detailed overview
310
-
311
- Help:
312
- /p:ask "{intent}" → Intent → Action guide
313
- /p:suggest → Smart recommendations
314
- /p:stuck "{issue}" → Get help
315
-
316
- Setup:
317
- /p:init → Initialize project
318
- /p:analyze → Deep analysis
319
-
320
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
321
-
322
- But remember: You can just talk naturally! 💬
323
- ```
324
-
325
- ## Key Principles
326
-
327
- 1. **Context-aware**: Different help based on state
328
- 2. **Actionable**: Always show what to do next
329
- 3. **Examples**: Concrete examples, not abstract
330
- 4. **Encouraging**: Positive, helpful tone
331
- 5. **Bilingual**: Support English and Spanish
332
- 6. **No jargon**: Simple, clear language
333
- 7. **Progressive**: Start simple, show depth if needed
334
-
335
86
  ## Validation
336
87
 
337
88
  - **Optional**: Works before project initialized
338
- - **Adaptive**: Response changes based on state
339
89
  - **Read-only**: Never modifies files
340
-
341
- ## Success Criteria
342
-
343
- After using `/p:help`, user should:
344
- - ✅ Know exactly what to do next
345
- - ✅ Understand they can talk naturally
346
- - ✅ Feel confident to proceed
347
- - ✅ Have concrete commands to try
348
- - ✅ Not feel overwhelmed
90
+ - **Adaptive**: Response changes based on state
@@ -1,6 +1,7 @@
1
1
  ---
2
- allowed-tools: [Write]
2
+ allowed-tools: [Write, GetTimestamp, GetDate]
3
3
  description: 'Quick idea capture'
4
+ timestamp-rule: 'CRITICAL - ALWAYS use GetTimestamp() tool for timestamps. NEVER generate timestamps manually. LLM does not know current date/time.'
4
5
  ---
5
6
 
6
7
  # /p:idea
@@ -13,15 +14,17 @@ description: 'Quick idea capture'
13
14
 
14
15
  ## Flow
15
16
 
16
- 1. **Append to session**: `planning/sessions/{YYYY-MM}/{YYYY-MM-DD}.jsonl`
17
- 2. **Update index**: Append to `planning/ideas.md` (keep only last 30 days)
17
+ 1. **Append to session**: `planning/sessions/{YYYY-MM}/{YYYY-MM-DD}.jsonl` (use GetTimestamp())
18
+ 2. **Update index**: Append to `planning/ideas.md` (keep only last 30 days, use GetDate())
18
19
  3. If actionable → add to `core/next.md`
19
20
  4. **Archive old**: If ideas.md > 30 days, move to `planning/archive/ideas-{YYYY-MM}.md`
20
21
 
21
22
  ## Session Log Format
22
23
 
24
+ **Use GetTimestamp() tool for real system time:**
25
+
23
26
  ```jsonl
24
- {"ts":"2025-10-04T16:00:00Z","type":"idea_add","idea":"{text}","actionable":{true/false},"priority":"{high/med/low}"}
27
+ {"ts":"{GetTimestamp()}","type":"idea_add","idea":"{text}","actionable":{true/false},"priority":"{high/med/low}"}
25
28
  ```
26
29
 
27
30
  ## Response
@@ -31,7 +31,7 @@ description: 'Initialize prjct project (with architect mode for blank projects)'
31
31
  6. Create: directory structure + base files
32
32
  7. Generate: initial roadmap
33
33
  8. Generate: agents
34
- 9. Ask: "¿Empezamos con la primera feature?"
34
+ 9. Ask: "Ready to start with the first feature?"
35
35
 
36
36
  ## Directory Structure
37
37
 
@@ -74,97 +74,23 @@ description: 'Initialize prjct project (with architect mode for blank projects)'
74
74
  🎯 WHAT DO YOU WANT TO DO FIRST?
75
75
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━
76
76
 
77
- Choose your path:
77
+ 5 clear paths:
78
+ 1. 🚀 Add feature → /p:feature "{desc}"
79
+ 2. 🐛 Fix bug → /p:bug "{desc}"
80
+ 3. 🔍 Analyze deeper → /p:analyze
81
+ 4. 📊 See status → /p:status or /p:recap
82
+ 5. 💡 Not sure? → /p:suggest or /p:help
78
83
 
79
- 1. 🚀 Add a new feature
80
- Tell me what you want to build!
81
-
82
- Examples:
83
- • "add user authentication"
84
- • "implement dark mode"
85
- • "optimize performance"
86
-
87
- → /p:feature "{description}"
88
-
89
- 2. 🐛 Fix a bug
90
- Describe what's broken
91
-
92
- Example:
93
- • "login button not working"
94
-
95
- → /p:bug "{description}"
96
-
97
- 3. 🔍 Analyze deeper
98
- Discover TODOs and improvements
99
-
100
- → /p:analyze
101
-
102
- 4. 📊 See current status
103
- View what's in your project
104
-
105
- → /p:status (visual dashboard)
106
- → /p:recap (detailed overview)
107
-
108
- 5. 💡 Not sure yet?
109
- Get personalized suggestions
110
-
111
- → /p:suggest
112
- → /p:help
113
-
114
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
115
-
116
- 💬 OR JUST TELL ME:
117
-
118
- You can talk naturally:
119
- "I want to add authentication"
120
- "Help me fix this performance issue"
121
- "What should I do?"
122
-
123
- I understand! No need to memorize commands.
124
-
125
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
84
+ 💬 OR JUST TELL ME: "I want to add authentication" / "What should I do?"
126
85
 
127
86
  Let's ship something! 🚀
128
87
  ```
129
88
 
130
89
  ## Response: Blank Project
131
90
 
132
- ```
133
- ✅ prjct initialized!
134
-
135
- 📐 ARCHITECT MODE ACTIVATED
136
-
137
- Your idea: "{idea}"
138
-
139
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
140
-
141
- 🎨 TECH STACK RECOMMENDATIONS:
142
-
143
- Based on your idea, I recommend:
144
-
145
- ⭐ Option 1: Next.js + TypeScript + Tailwind
146
- → Best for: Full-stack apps, SEO, modern UI
147
- → Why: Fast, scalable, great DX
148
-
149
- Option 2: React + Vite + shadcn/ui
150
- → Best for: SPAs, rapid prototyping
151
- → Why: Lightweight, flexible
152
-
153
- Option 3: Vue 3 + Nuxt
154
- → Best for: Progressive apps, content sites
155
- → Why: Easy learning curve, performant
156
-
157
- Custom: Tell me your preference
158
- → Any stack works with prjct!
159
-
160
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
161
-
162
- Which option works for you? (1, 2, 3, or describe your choice)
163
-
164
- [After user confirms:]
165
-
166
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
91
+ After ARCHITECT MODE activates and user confirms stack:
167
92
 
93
+ ```
168
94
  ✅ Structure created!
169
95
 
170
96
  📁 Project: {path}
@@ -176,35 +102,12 @@ Which option works for you? (1, 2, 3, or describe your choice)
176
102
  🎯 WHAT'S NEXT?
177
103
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━
178
104
 
179
- Your roadmap is ready! You can:
180
-
181
- 1. 🚀 Start with first feature (RECOMMENDED)
182
- /p:feature "{first_feature}"
183
- I'll break it down and we'll start building
184
-
185
- 2. 📊 See your roadmap
186
- → /p:roadmap
187
- View all planned features
188
-
189
- 3. 🔍 Review project structure
190
- → /p:recap
191
- See what was created
192
-
193
- 4. 💡 Modify the plan
194
- Just tell me:
195
- "I also want to add {feature}"
196
- "Let's do {different_feature} first"
105
+ 1. 🚀 Start first feature (RECOMMENDED) → /p:feature "{first_feature}"
106
+ 2. 📊 See roadmap → /p:roadmap
107
+ 3. 🔍 Review structure /p:recap
108
+ 4. 💡 Modify plan Just tell me
197
109
 
198
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
199
-
200
- 💬 REMEMBER:
201
-
202
- You can talk naturally! Just tell me what you want:
203
- "Start with authentication"
204
- "Show me the roadmap"
205
- "I want to add another feature"
206
-
207
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
110
+ 💬 REMEMBER: Talk naturally! "Start with auth" / "Show roadmap" / "Add another feature"
208
111
 
209
112
  Ready to start building? 🚀
210
113
  ```