prjct-cli 0.6.0 → 0.7.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.
Files changed (83) hide show
  1. package/CHANGELOG.md +67 -6
  2. package/CLAUDE.md +442 -36
  3. package/README.md +47 -54
  4. package/bin/prjct +174 -240
  5. package/core/agentic/command-executor.js +113 -0
  6. package/core/agentic/context-builder.js +85 -0
  7. package/core/agentic/prompt-builder.js +86 -0
  8. package/core/agentic/template-loader.js +104 -0
  9. package/core/agentic/tool-registry.js +117 -0
  10. package/core/command-registry.js +109 -65
  11. package/core/commands.js +2213 -2173
  12. package/core/domain/agent-generator.js +118 -0
  13. package/core/domain/analyzer.js +211 -0
  14. package/core/domain/architect-session.js +300 -0
  15. package/core/{agents → infrastructure/agents}/claude-agent.js +16 -13
  16. package/core/{author-detector.js → infrastructure/author-detector.js} +3 -1
  17. package/core/{capability-installer.js → infrastructure/capability-installer.js} +3 -6
  18. package/core/{command-installer.js → infrastructure/command-installer.js} +5 -3
  19. package/core/{config-manager.js → infrastructure/config-manager.js} +4 -4
  20. package/core/{editors-config.js → infrastructure/editors-config.js} +2 -10
  21. package/core/{migrator.js → infrastructure/migrator.js} +34 -19
  22. package/core/{path-manager.js → infrastructure/path-manager.js} +20 -44
  23. package/core/{session-manager.js → infrastructure/session-manager.js} +45 -105
  24. package/core/{update-checker.js → infrastructure/update-checker.js} +67 -67
  25. package/core/{animations-simple.js → utils/animations.js} +3 -23
  26. package/core/utils/date-helper.js +238 -0
  27. package/core/utils/file-helper.js +327 -0
  28. package/core/utils/jsonl-helper.js +206 -0
  29. package/core/{project-capabilities.js → utils/project-capabilities.js} +21 -22
  30. package/core/utils/session-helper.js +277 -0
  31. package/core/{version.js → utils/version.js} +1 -1
  32. package/package.json +4 -12
  33. package/templates/agents/AGENTS.md +101 -27
  34. package/templates/analysis/analyze.md +84 -0
  35. package/templates/commands/analyze.md +9 -2
  36. package/templates/commands/bug.md +79 -0
  37. package/templates/commands/build.md +5 -2
  38. package/templates/commands/cleanup.md +5 -2
  39. package/templates/commands/design.md +5 -2
  40. package/templates/commands/done.md +4 -2
  41. package/templates/commands/feature.md +113 -0
  42. package/templates/commands/fix.md +41 -10
  43. package/templates/commands/git.md +7 -2
  44. package/templates/commands/help.md +2 -2
  45. package/templates/commands/idea.md +14 -5
  46. package/templates/commands/init.md +62 -7
  47. package/templates/commands/next.md +4 -2
  48. package/templates/commands/now.md +4 -2
  49. package/templates/commands/progress.md +27 -5
  50. package/templates/commands/recap.md +39 -10
  51. package/templates/commands/roadmap.md +19 -5
  52. package/templates/commands/ship.md +118 -16
  53. package/templates/commands/status.md +4 -2
  54. package/templates/commands/sync.md +19 -15
  55. package/templates/commands/task.md +4 -2
  56. package/templates/commands/test.md +5 -2
  57. package/templates/commands/workflow.md +4 -2
  58. package/core/agent-generator.js +0 -525
  59. package/core/analyzer.js +0 -600
  60. package/core/animations.js +0 -277
  61. package/core/ascii-graphics.js +0 -433
  62. package/core/git-integration.js +0 -401
  63. package/core/task-schema.js +0 -342
  64. package/core/workflow-engine.js +0 -213
  65. package/core/workflow-prompts.js +0 -192
  66. package/core/workflow-rules.js +0 -147
  67. package/scripts/post-install.js +0 -121
  68. package/scripts/preuninstall.js +0 -94
  69. package/scripts/verify-installation.sh +0 -158
  70. package/templates/agents/be.template.md +0 -27
  71. package/templates/agents/coordinator.template.md +0 -34
  72. package/templates/agents/data.template.md +0 -27
  73. package/templates/agents/devops.template.md +0 -27
  74. package/templates/agents/fe.template.md +0 -27
  75. package/templates/agents/mobile.template.md +0 -27
  76. package/templates/agents/qa.template.md +0 -27
  77. package/templates/agents/scribe.template.md +0 -29
  78. package/templates/agents/security.template.md +0 -27
  79. package/templates/agents/ux.template.md +0 -27
  80. package/templates/commands/context.md +0 -36
  81. package/templates/commands/stuck.md +0 -36
  82. package/templates/examples/natural-language-examples.md +0 -532
  83. /package/core/{agent-detector.js → infrastructure/agent-detector.js} +0 -0
package/README.md CHANGED
@@ -84,6 +84,7 @@ prjct install --force
84
84
  ```
85
85
 
86
86
  **Installation Location:**
87
+
87
88
  - **Claude Code & Claude Desktop**: `~/.claude/commands/p/`
88
89
 
89
90
  All 18 slash commands (`/p:*`) are automatically installed to Claude Code and Claude Desktop.
@@ -91,6 +92,7 @@ All 18 slash commands (`/p:*`) are automatically installed to Claude Code and Cl
91
92
  ### Version Management
92
93
 
93
94
  The installer automatically:
95
+
94
96
  - **Detects existing installations** and checks for updates
95
97
  - **Compares versions** between local and remote
96
98
  - **Prompts for updates** when newer versions are available
@@ -119,27 +121,6 @@ cd prjct-cli
119
121
  - ✅ **Auto-detects your environment** (Claude or Terminal fallback)
120
122
  - ✅ **Configures shell** (bash/zsh) automatically
121
123
 
122
- ## 🗑️ Uninstallation
123
-
124
- To completely remove prjct-cli from your system:
125
-
126
- ```bash
127
- cd ~/.prjct-cli
128
- ./uninstall.sh
129
- ```
130
-
131
- The uninstaller will:
132
-
133
- - **Safely remove** all prjct-cli components
134
- - **Offer options** for your project data:
135
- - Keep all `.prjct/` directories (recommended)
136
- - Back up before removal
137
- - Permanently delete (requires confirmation)
138
- - **Clean up** shell configuration and paths
139
- - **Remove** Claude Code commands
140
-
141
- > ⚠️ **WARNING**: Uninstallation is irreversible. The script will ask for confirmation before removing anything.
142
-
143
124
  ## 💬 p. Trigger - Zero Memorization
144
125
 
145
126
  **You don't need to memorize commands.** Just use the `p.` prefix and talk naturally!
@@ -158,6 +139,7 @@ Instead of: Just say:
158
139
  ```
159
140
 
160
141
  **How it works:**
142
+
161
143
  - Simple `p.` prefix signals prjct context
162
144
  - Works in English, Spanish, German, French - any language
163
145
  - System detects intent and executes the right command
@@ -173,12 +155,14 @@ Instead of: Just say:
173
155
  **prjct-cli helps you ship products fast.** Built for creators and small teams who prefer coding over meetings.
174
156
 
175
157
  **What it does:**
158
+
176
159
  - ✅ Track what you're working on
177
160
  - ✅ See what you've shipped
178
161
  - ✅ Stay focused on one thing
179
162
  - ✅ No meetings needed
180
163
 
181
164
  **What it doesn't do:**
165
+
182
166
  - ❌ Not like Jira or ClickUp
183
167
  - ❌ No sprint planning
184
168
  - ❌ No story points
@@ -210,27 +194,32 @@ No planning sessions. No standups. No retrospectives. Just **ship fast, track pr
210
194
  By focusing exclusively on Claude Code and Claude Desktop, we can build features that would be impossible with multi-platform support:
211
195
 
212
196
  **🤖 Smart AI Helpers**
197
+
213
198
  - Get help from specialized AI assistants (for frontend, backend, UX, security, etc.)
214
199
  - They activate automatically when you need them
215
200
  - Works with Claude's AI system
216
201
 
217
202
  **🔗 AI Tools Built-In**
203
+
218
204
  - Context7 - Gets documentation for any library automatically
219
205
  - Sequential - Helps solve complex problems
220
206
  - Magic - Creates UI components for you
221
207
  - Playwright - Tests your app in a real browser
222
208
 
223
209
  **✅ Code Change Verification**
210
+
224
211
  - Checks your actual code changes
225
212
  - Makes sure you actually completed what you said
226
213
  - No fake progress
227
214
 
228
215
  **💬 Talk Naturally**
216
+
229
217
  - Just describe what you want to do
230
218
  - Works in any language
231
219
  - No commands to memorize
232
220
 
233
221
  **Why it works better:**
222
+
234
223
  - ⚡ **Simpler code** - Faster to add features and fix bugs
235
224
  - 🎯 **Built for Claude** - Uses Claude's special features
236
225
  - 💯 **Everything tested** - We only support what actually works
@@ -278,35 +267,43 @@ prjct recap # Show progress
278
267
  ## 🎯 Quick Command Guide
279
268
 
280
269
  **New idea or feature:**
270
+
281
271
  - `/p:idea "add dark mode"` - Quick capture
282
272
  - `/p:now "implement dark mode"` - Start working now
283
273
 
284
274
  **Finished working:**
275
+
285
276
  - `/p:done` - Mark complete, clear focus
286
277
  - `/p:ship "feature name"` - Celebrate important milestones
287
278
 
288
279
  **Lost context:**
280
+
289
281
  - `/p:recap` - Complete overview
290
282
  - `/p:next` - View task queue
291
283
 
292
284
  **Need help:**
285
+
293
286
  - `/p:stuck "error description"` - Get contextual solutions
294
287
  - `/p:fix "error message"` - Auto-diagnosis
295
288
 
296
289
  **Track progress:**
290
+
297
291
  - `/p:progress week` - Weekly metrics
298
292
  - `/p:context` - Project info
299
293
 
300
294
  **Code quality:**
295
+
301
296
  - `/p:cleanup` - Basic cleanup
302
297
  - `/p:cleanup --type code` - Remove dead code, unused imports
303
298
  - `/p:design "component" --type architecture` - Design before coding
304
299
 
305
300
  **Version control:**
301
+
306
302
  - `/p:git` - Smart commit
307
303
  - `/p:git push` - Commit + push
308
304
 
309
305
  **After cloning/pulling:**
306
+
310
307
  - `/p:analyze` - Auto-analyze codebase
311
308
  - `/p:analyze --sync` - Sync with implemented features
312
309
 
@@ -316,41 +313,41 @@ prjct recap # Show progress
316
313
 
317
314
  ### Core Commands (Essential) 🎯
318
315
 
319
- | Command | When to use? | What does it do? | Example Output |
320
- | ------------------- | ------------------------------ | ---------------------------------- | ----------------------------------------- |
321
- | `/p:init` | Starting a new project | Creates complete `.prjct/` structure | `✅ Project initialized!` |
322
- | `/p:now [task]` | To set your current focus | Defines ONE single active task | `🎯 Current: implement auth` |
323
- | `/p:done` | When finishing current task | Marks complete and clears focus | `✅ Task complete! Next: API integration` |
324
- | `/p:ship <feature>` | When completing something big | Celebrates and records the WIN | `🚀 SHIPPED: User auth! 🎉` |
325
- | `/p:recap` | To see complete overview | Shows progress and current state | `📊 3 shipped, 1 active, 5 queued` |
316
+ | Command | When to use? | What does it do? | Example Output |
317
+ | ------------------- | ----------------------------- | ------------------------------------ | ----------------------------------------- |
318
+ | `/p:init` | Starting a new project | Creates complete `.prjct/` structure | `✅ Project initialized!` |
319
+ | `/p:now [task]` | To set your current focus | Defines ONE single active task | `🎯 Current: implement auth` |
320
+ | `/p:done` | When finishing current task | Marks complete and clears focus | `✅ Task complete! Next: API integration` |
321
+ | `/p:ship <feature>` | When completing something big | Celebrates and records the WIN | `🚀 SHIPPED: User auth! 🎉` |
322
+ | `/p:recap` | To see complete overview | Shows progress and current state | `📊 3 shipped, 1 active, 5 queued` |
326
323
 
327
324
  ### Planning Commands 📋
328
325
 
329
- | Command | When to use? | What does it do? | Example Output |
330
- | ------------------- | ----------------------- | ------------------------------ | ------------------------------ |
326
+ | Command | When to use? | What does it do? | Example Output |
327
+ | ------------------- | ----------------------- | ---------------------------------- | ------------------------------ |
331
328
  | `/p:idea <text>` | When you have an idea | Quick capture without interrupting | `💡 Idea captured!` |
332
- | `/p:roadmap` | View strategic plan | Shows complete roadmap | `🚀 Sprint: 23% complete` |
333
- | `/p:roadmap add` | Add new feature | Automatically prioritizes | `✅ Added: Priority #3` |
334
- | `/p:next` | See what's next | Lists prioritized tasks | `1. Fix auth bug 2. Add tests` |
335
- | `/p:task <complex>` | Break down complex task | Divides into manageable subtasks | `📋 Split into 5 subtasks` |
329
+ | `/p:roadmap` | View strategic plan | Shows complete roadmap | `🚀 Sprint: 23% complete` |
330
+ | `/p:roadmap add` | Add new feature | Automatically prioritizes | `✅ Added: Priority #3` |
331
+ | `/p:next` | See what's next | Lists prioritized tasks | `1. Fix auth bug 2. Add tests` |
332
+ | `/p:task <complex>` | Break down complex task | Divides into manageable subtasks | `📋 Split into 5 subtasks` |
336
333
 
337
334
  ### Development Commands 🛠️
338
335
 
339
- | Command | When to use? | What does it do? | Example Output |
340
- | -------------------- | ------------------------- | ------------------------------------- | ------------------------------------- |
341
- | `/p:analyze` | Understand project state | Auto-analyze & sync with real code | `🔍 14 commands, 8 features detected` |
342
- | `/p:analyze --sync` | After git pull or clone | Sync .prjct/ with implemented code | `✅ Synced 5 tasks, 3 features` |
343
- | `/p:git` | Quick commit | Smart message + commit | `✅ feat: add auth system` |
344
- | `/p:test` | Run tests | Run + auto-fix simple errors | `✅ 42 passing, 2 fixed` |
345
- | `/p:fix <error>` | Solve errors | Diagnosis and solutions | `🔧 Solution: check null first` |
336
+ | Command | When to use? | What does it do? | Example Output |
337
+ | ------------------- | ------------------------ | ---------------------------------- | ------------------------------------- |
338
+ | `/p:analyze` | Understand project state | Auto-analyze & sync with real code | `🔍 14 commands, 8 features detected` |
339
+ | `/p:analyze --sync` | After git pull or clone | Sync .prjct/ with implemented code | `✅ Synced 5 tasks, 3 features` |
340
+ | `/p:git` | Quick commit | Smart message + commit | `✅ feat: add auth system` |
341
+ | `/p:test` | Run tests | Run + auto-fix simple errors | `✅ 42 passing, 2 fixed` |
342
+ | `/p:fix <error>` | Solve errors | Diagnosis and solutions | `🔧 Solution: check null first` |
346
343
 
347
344
  ### Metrics Commands 📊
348
345
 
349
- | Command | When to use? | What does it do? | Example Output |
350
- | ------------------ | ----------------------- | ----------------------------- | --------------------------------- |
351
- | `/p:progress` | View productivity | Weekly metrics | `📈 7 shipped, velocity: 1.4/day` |
352
- | `/p:context` | Project info | Current state and context | `📚 Sprint 3, Day 12, 67% done` |
353
- | `/p:stuck <issue>` | When you need help | Contextual solutions | `💡 Try: npm install cors` |
346
+ | Command | When to use? | What does it do? | Example Output |
347
+ | ------------------ | ------------------ | ------------------------- | --------------------------------- |
348
+ | `/p:progress` | View productivity | Weekly metrics | `📈 7 shipped, velocity: 1.4/day` |
349
+ | `/p:context` | Project info | Current state and context | `📚 Sprint 3, Day 12, 67% done` |
350
+ | `/p:stuck <issue>` | When you need help | Contextual solutions | `💡 Try: npm install cors` |
354
351
 
355
352
  ## 🔄 Common Workflows
356
353
 
@@ -407,14 +404,6 @@ No migration needed. Just `/p:init` and start working.
407
404
  └── decisions.jsonl # Decision history
408
405
  ```
409
406
 
410
- ### Migration from Old Structure
411
-
412
- If you have an existing flat `.prjct/` structure, run:
413
-
414
- ```bash
415
- ./migrate.sh # Automatic migration to layered structure
416
- ```
417
-
418
407
  ## 🎨 Philosophy
419
408
 
420
409
  - **Zero friction**: Commands within your existing workflow
@@ -440,6 +429,7 @@ If you have an existing flat `.prjct/` structure, run:
440
429
  ### What You Get
441
430
 
442
431
  **With Claude Code/Desktop (Recommended):**
432
+
443
433
  - ✅ Smart AI helpers for different tasks
444
434
  - ✅ AI tools that help you code
445
435
  - ✅ Checks your actual code changes
@@ -448,6 +438,7 @@ If you have an existing flat `.prjct/` structure, run:
448
438
  - ✅ Everything works
449
439
 
450
440
  **With Terminal/CLI Only:**
441
+
451
442
  - ⚠️ Basic commands work (`prjct now`, `prjct done`, etc.)
452
443
  - ❌ No AI helpers
453
444
  - ❌ No AI tools
@@ -486,6 +477,7 @@ Starting with v0.5.0, prjct-cli only supports Claude Code and Claude Desktop. Th
486
477
  **"I prefer Cursor/Windsurf"**
487
478
 
488
479
  We get it! But consider:
480
+
489
481
  - **No extra setup** - Works with whatever Claude subscription you have (free tier or Pro)
490
482
  - **Better AI** - Latest Claude 3.5 Sonnet (Cursor/Windsurf use older models)
491
483
  - **prjct-cli features** - Designed specifically for Claude's capabilities
@@ -495,6 +487,7 @@ Give Claude Code a try - you might prefer it! And if not, you can stay on v0.4.1
495
487
  **"This feels limiting"**
496
488
 
497
489
  It's actually the opposite. By specializing, we can:
490
+
498
491
  - Build features impossible with multi-platform (agents, MCP, git validation)
499
492
  - Ship updates 2x faster (less code to maintain)
500
493
  - Deliver higher quality (proper testing of everything we support)