prjct-cli 0.4.9 → 0.5.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 (49) hide show
  1. package/CHANGELOG.md +332 -0
  2. package/CLAUDE.md +109 -3
  3. package/README.md +231 -96
  4. package/core/agent-detector.js +55 -122
  5. package/core/agent-generator.js +516 -0
  6. package/core/command-installer.js +104 -890
  7. package/core/commands.js +74 -76
  8. package/core/editors-config.js +9 -57
  9. package/core/git-integration.js +401 -0
  10. package/package.json +12 -9
  11. package/scripts/install.sh +0 -1
  12. package/templates/agents/be.template.md +42 -0
  13. package/templates/agents/data.template.md +41 -0
  14. package/templates/agents/devops.template.md +41 -0
  15. package/templates/agents/fe.template.md +42 -0
  16. package/templates/agents/mobile.template.md +41 -0
  17. package/templates/agents/pm.template.md +84 -0
  18. package/templates/agents/qa.template.md +54 -0
  19. package/templates/agents/scribe.template.md +95 -0
  20. package/templates/agents/security.template.md +41 -0
  21. package/templates/agents/ux.template.md +49 -0
  22. package/templates/commands/analyze.md +137 -3
  23. package/templates/commands/done.md +154 -5
  24. package/templates/commands/init.md +61 -3
  25. package/templates/commands/ship.md +146 -6
  26. package/templates/commands/sync.md +220 -0
  27. package/templates/examples/natural-language-examples.md +234 -22
  28. package/core/agents/codex-agent.js +0 -256
  29. package/core/agents/terminal-agent.js +0 -465
  30. package/templates/workflows/analyze.md +0 -159
  31. package/templates/workflows/cleanup.md +0 -73
  32. package/templates/workflows/context.md +0 -72
  33. package/templates/workflows/design.md +0 -88
  34. package/templates/workflows/done.md +0 -20
  35. package/templates/workflows/fix.md +0 -201
  36. package/templates/workflows/git.md +0 -192
  37. package/templates/workflows/help.md +0 -13
  38. package/templates/workflows/idea.md +0 -22
  39. package/templates/workflows/init.md +0 -80
  40. package/templates/workflows/natural-language-handler.md +0 -183
  41. package/templates/workflows/next.md +0 -44
  42. package/templates/workflows/now.md +0 -19
  43. package/templates/workflows/progress.md +0 -113
  44. package/templates/workflows/recap.md +0 -66
  45. package/templates/workflows/roadmap.md +0 -95
  46. package/templates/workflows/ship.md +0 -18
  47. package/templates/workflows/stuck.md +0 -25
  48. package/templates/workflows/task.md +0 -109
  49. package/templates/workflows/test.md +0 -243
package/README.md CHANGED
@@ -1,5 +1,4 @@
1
1
  ```
2
- (ノ◕ヮ◕)ノ*:・゚✧
3
2
  ██████╗ ██████╗ ██╗ ██████╗████████╗
4
3
  ██╔══██╗██╔══██╗ ██║██╔════╝╚══██╔══╝
5
4
  ██████╔╝██████╔╝ ██║██║ ██║
@@ -9,40 +8,31 @@
9
8
  prjct/cli
10
9
  ```
11
10
 
12
- **Ship fast, stay focused, no BS.**
11
+ **Ship fast, track progress, stay focused.**
13
12
 
14
- **AI-integrated project management for indie hackers and small teams** - Ship fast, stay focused, no ceremonies.
13
+ Developer momentum tool for indie hackers and small teams.
15
14
 
16
- Works with **Claude Code**, **Cursor AI**, **Codeium**, **OpenAI Codex**, and **Warp Terminal**.
17
-
18
- [![OpenAI Codex Compatible](https://img.shields.io/badge/OpenAI%20Codex-Compatible-00a67e)](AGENTS.md)
19
15
  [![Claude Code Ready](https://img.shields.io/badge/Claude%20Code-Ready-6366f1)](CLAUDE.md)
16
+ [![Claude Desktop Compatible](https://img.shields.io/badge/Claude%20Desktop-Compatible-6366f1)]()
20
17
 
21
- ## 🤖 Intelligent Agent Detection
22
-
23
- **prjct-cli automatically detects and adapts to your environment** - No configuration needed!
24
-
25
- The system intelligently identifies whether you're using:
18
+ ## 🤖 Claude-Native Architecture
26
19
 
27
- - **Claude Code** Rich markdown, MCP integration, interactive features
28
- - **OpenAI Codex** → Structured output for sandboxed environments
29
- - **Terminal/CLI** → ANSI colors, progress spinners, native experience
20
+ **prjct-cli is purpose-built for Claude's unique capabilities:**
30
21
 
31
- ### How It Works
22
+ - **Dynamic AI Agents** - Auto-generated specialists based on your stack
23
+ - **MCP Integration** - Native Model Context Protocol support
24
+ - **Slash Commands** - `/p:*` commands in Claude Code and Desktop
25
+ - **Git Validation** - Last commit as source of truth
26
+ - **Natural Language** - Talk naturally, commands adapt
32
27
 
33
- ```javascript
34
- // Automatic detection strategies:
35
- 1. Environment Variables (CLAUDE_AGENT, CODEX_AGENT)
36
- 2. Configuration Files (AGENTS.md, CLAUDE.md)
37
- 3. Runtime Capabilities (MCP availability)
38
- 4. Filesystem Characteristics (sandboxed paths)
39
- ```
28
+ ### Why Claude-Only?
40
29
 
41
- Each agent gets optimized output:
30
+ We chose to focus 100% on Claude to deliver:
42
31
 
43
- - **Claude**: `✅ **Task complete!** Ready for the next challenge?`
44
- - **Codex**: `[SUCCESS] Task complete. NEXT: Use /p:next`
45
- - **Terminal**: `✅ Task complete! Use prjct next`
32
+ - **Deep Integration** - Leverage Claude's agent system and MCP
33
+ - **Better Quality** - Optimized for Claude's strengths
34
+ - **Simpler Codebase** - No multi-platform compromises
35
+ - **Honest Compatibility** - We only support what we can validate
46
36
 
47
37
  ## ⚡ Installation
48
38
 
@@ -83,35 +73,20 @@ For easier installation from GitHub Packages, see [GitHub Packages Setup](docs/G
83
73
 
84
74
  ### Editor Command Installation
85
75
 
86
- After initial installation, `prjct` can install commands to your AI editors:
76
+ After initial installation, `prjct` automatically installs slash commands to Claude:
87
77
 
88
78
  ```bash
89
- # Interactive installation (default) - select which editors to use
79
+ # Interactive installation (recommended)
90
80
  prjct install
91
81
 
92
- # Non-interactive - install to all detected editors
93
- prjct install --no-interactive
94
-
95
- # Install to specific editor only
96
- prjct install --editor claude
97
- prjct install --editor cursor
98
- prjct install --editor codex
99
- prjct install --editor windsurf
100
-
101
82
  # Force update existing commands
102
83
  prjct install --force
103
-
104
- # Create templates from existing commands
105
- prjct install --create-templates
106
84
  ```
107
85
 
108
- **Detected Editors:**
109
- - **Claude Code**: `~/.claude/commands/p/`
110
- - **Cursor AI**: `~/.cursor/commands/p/`
111
- - **OpenAI Codex**: `{project}/AGENTS.md`
112
- - **Windsurf/Codeium**: `{project}/.windsurf/workflows/`
86
+ **Installation Location:**
87
+ - **Claude Code & Claude Desktop**: `~/.claude/commands/p/`
113
88
 
114
- The interactive mode (default) will show checkboxes to select which editors to install to, optimizing for your actual workflow.
89
+ All 18 slash commands (`/p:*`) are automatically installed to Claude Code and Claude Desktop.
115
90
 
116
91
  ### Version Management
117
92
 
@@ -134,14 +109,14 @@ cd prjct-cli
134
109
 
135
110
  - ✅ **Installs to** `~/.prjct-cli/`
136
111
  - ✅ **Checks prerequisites** (Node.js 18+, Git)
137
- - ✅ **Detects AI editors** (Claude Code, Cursor, Codeium)
138
- - ✅ **Installs slash commands** to all detected editors
139
- - ✅ **Creates global structure** for cross-editor data sharing
112
+ - ✅ **Detects Claude** (Code or Desktop)
113
+ - ✅ **Installs slash commands** to `~/.claude/commands/p/`
114
+ - ✅ **Creates global structure** in `~/.prjct-cli/`
140
115
  - ✅ **Version management** with automatic update detection
141
- - ✅ **Configures AI assistant integration** (MCP)
116
+ - ✅ **Configures MCP integration** (Context7, Sequential, Magic, Playwright)
142
117
  - ✅ **Sets up the** `prjct` **command**
143
118
  - ✅ **Creates project structure** in `.prjct/`
144
- - ✅ **Auto-detects your environment** (Claude/Codex/Terminal)
119
+ - ✅ **Auto-detects your environment** (Claude or Terminal fallback)
145
120
  - ✅ **Configures shell** (bash/zsh) automatically
146
121
 
147
122
  ## 🗑️ Uninstallation
@@ -165,36 +140,109 @@ The uninstaller will:
165
140
 
166
141
  > ⚠️ **WARNING**: Uninstallation is irreversible. The script will ask for confirmation before removing anything.
167
142
 
168
- ## 💬 Talk Naturally - Zero Memorization
143
+ ## 💬 p. Trigger - Zero Memorization
169
144
 
170
- **You don't need to memorize commands.** Just talk to your AI assistant naturally!
145
+ **You don't need to memorize commands.** Just use the `p.` prefix and talk naturally!
171
146
 
172
- The system detects your intent in **English** and **Spanish** and maps it to the right command:
147
+ The system detects your intent and maps it to the right command - **works in any language**:
173
148
 
174
149
  ```
175
- ✨ Natural Language Examples:
150
+ ✨ Natural Language with p. Trigger:
176
151
 
177
152
  Instead of: Just say:
178
- /p:now "implement auth" → "I want to start building the auth system"
179
- /p:done → "I'm done" or "finished"
180
- /p:ship "feature" → "ship the authentication"
181
- /p:stuck "error" → "I'm stuck on this error"
182
- /p:idea "add feature" → "I have an idea about dark mode"
153
+ /p:now "implement auth" → "p. I want to start building the auth system"
154
+ /p:done → "p. I'm done" or "p. finished"
155
+ /p:ship "feature" → "p. ship the authentication"
156
+ /p:stuck "error" → "p. I'm stuck on this error"
157
+ /p:idea "add feature" → "p. I have an idea about dark mode"
183
158
  ```
184
159
 
185
160
  **How it works:**
186
- - Type `/p:help` for an interactive guide with natural language options
161
+ - Simple `p.` prefix signals prjct context
162
+ - Works in English, Spanish, German, French - any language
163
+ - System detects intent and executes the right command
164
+ - Auto-validates you're in a prjct project before execution
187
165
  - Every command response suggests what to do next
188
- - System guides you conversationally - no guessing needed
189
- - Gradually learn commands while talking naturally
190
166
 
191
- **Available in:** 🇺🇸 English 🇪🇸 Spanish
167
+ **Available in:** Any language - powered by Claude's natural language understanding
168
+
169
+ ## 🚀 Built for Claude - Ship Fast, No BS
170
+
171
+ ### Track Progress, Not Meetings
172
+
173
+ **prjct-cli helps you ship products fast.** Built for creators and small teams who prefer coding over meetings.
174
+
175
+ **What it does:**
176
+ - ✅ Track what you're working on
177
+ - ✅ See what you've shipped
178
+ - ✅ Stay focused on one thing
179
+ - ✅ No meetings needed
180
+
181
+ **What it doesn't do:**
182
+ - ❌ Not like Jira or ClickUp
183
+ - ❌ No sprint planning
184
+ - ❌ No story points
185
+ - ❌ No charts or reports
186
+ - ❌ No meetings
187
+
188
+ **Philosophy: Just Ship It**
189
+
190
+ ```
191
+ /p:now "build auth" → Focus
192
+ work work work → Ship
193
+ /p:done → Next
194
+ /p:ship "authentication" → Celebrate
195
+ ```
196
+
197
+ No planning sessions. No standups. No retrospectives. Just **ship fast, track progress, stay focused**.
198
+
199
+ **Who uses this:**
200
+
201
+ - 🎯 **Solo creators** - Build products without project management overhead
202
+ - 👥 **Small teams** (2-5 people) - Coordinate without meetings
203
+ - 🚀 **Product builders** - Ship features fast
204
+ - 💪 **Makers** - Focus on building, not planning
205
+
206
+ ### Why 100% Claude-Focused?
207
+
208
+ **This isn't a limitation - it's a superpower.**
209
+
210
+ By focusing exclusively on Claude Code and Claude Desktop, we can build features that would be impossible with multi-platform support:
211
+
212
+ **🤖 Smart AI Helpers**
213
+ - Get help from specialized AI assistants (for frontend, backend, UX, security, etc.)
214
+ - They activate automatically when you need them
215
+ - Works with Claude's AI system
216
+
217
+ **🔗 AI Tools Built-In**
218
+ - Context7 - Gets documentation for any library automatically
219
+ - Sequential - Helps solve complex problems
220
+ - Magic - Creates UI components for you
221
+ - Playwright - Tests your app in a real browser
222
+
223
+ **✅ Code Change Verification**
224
+ - Checks your actual code changes
225
+ - Makes sure you actually completed what you said
226
+ - No fake progress
227
+
228
+ **💬 Talk Naturally**
229
+ - Just describe what you want to do
230
+ - Works in any language
231
+ - No commands to memorize
232
+
233
+ **Why it works better:**
234
+ - ⚡ **Simpler code** - Faster to add features and fix bugs
235
+ - 🎯 **Built for Claude** - Uses Claude's special features
236
+ - 💯 **Everything tested** - We only support what actually works
237
+ - 🤝 **Honest about compatibility** - We tell you what works and what doesn't
238
+
239
+ **See [MIGRATION.md](MIGRATION.md) for v0.5.0 upgrade guide.**
192
240
 
193
241
  ## 📱 Platform Usage
194
242
 
195
- ### Claude Code / Cursor AI / Codeium
243
+ ### Claude Code & Claude Desktop
196
244
 
197
- All three editors support the same slash commands through automatic installation:
245
+ Built exclusively for Claude with native slash commands:
198
246
 
199
247
  ```
200
248
  # Core Commands (or just talk naturally!)
@@ -213,25 +261,9 @@ All three editors support the same slash commands through automatic installation
213
261
  /p:roadmap # Strategic planning
214
262
  ```
215
263
 
216
- **Multi-Editor Workflow**: Switch between Claude Code, Cursor, and Codeium seamlessly - all commands access the same global data in `~/.prjct-cli/projects/`.
217
-
218
- ### OpenAI Codex / GitHub OpenAI Codex
219
-
220
- The repository includes `AGENTS.md` for full OpenAI Codex compatibility.
221
-
222
- ```
223
- # Codex automatically reads AGENTS.md for guidance
224
- /p:init # Creates .prjct/ structure
225
- /p:now "add API endpoint" # Updates current focus
226
- /p:ship "REST API" # Celebrates shipped feature
227
- /p:progress week # Shows weekly metrics
228
- /p:context # Show project context
229
- /p:recap # Display project overview
230
- ```
231
-
232
- > **Setup**: Authorize the Codex GitHub app for your organization, and Codex will automatically detect the AGENTS.md configuration.
264
+ All data is stored in `~/.prjct-cli/projects/` and shared seamlessly between Claude Code and Claude Desktop.
233
265
 
234
- ### Warp Terminal
266
+ ### Terminal / CLI (Fallback)
235
267
 
236
268
  ```bash
237
269
  prjct init # Initialize project
@@ -241,7 +273,7 @@ prjct ship "authentication" # Ship feature
241
273
  prjct recap # Show progress
242
274
  ```
243
275
 
244
- > Warp AI also understands `/p:` commands in the terminal
276
+ > **Note**: Terminal mode works but has limited features (no AI agents, MCP, or natural language). **We strongly recommend Claude Code** for the full experience.
245
277
 
246
278
  ## 🎯 Quick Command Guide
247
279
 
@@ -278,7 +310,7 @@ prjct recap # Show progress
278
310
  - `/p:analyze` - Auto-analyze codebase
279
311
  - `/p:analyze --sync` - Sync with implemented features
280
312
 
281
- > 💡 **Tip:** Visit [prjct.dev/commands](https://prjct.dev/commands) for interactive command guide or [prjct.dev/workflows-guide](https://prjct.dev/workflows-guide) for step-by-step examples
313
+ > 💡 **Tip:** Visit [prjct.app/commands](https://prjct.app/commands) for interactive command guide or [prjct.app/workflows-guide](https://prjct.app/workflows-guide) for step-by-step examples
282
314
 
283
315
  ## 📖 Complete Command Reference
284
316
 
@@ -330,7 +362,7 @@ prjct recap # Show progress
330
362
 
331
363
  **Sprint planning:** `/p:roadmap` → Add features → `/p:now` top priority → `/p:ship` → `/p:roadmap next`
332
364
 
333
- > 📚 **More workflows:** Visit [prjct.dev/workflows-guide](https://prjct.dev/workflows-guide) for detailed interactive examples
365
+ > 📚 **More workflows:** Visit [prjct.app/workflows-guide](https://prjct.app/workflows-guide) for detailed interactive examples
334
366
 
335
367
  ## ❓ FAQ
336
368
 
@@ -341,15 +373,15 @@ No, by design. Single-focus philosophy. Use `/p:done` before switching.
341
373
  `/p:done` clears focus. `/p:ship` celebrates important features with metrics.
342
374
 
343
375
  **Where is my data stored?**
344
- Everything is local in `.prjct/` directory. Never leaves your machine.
376
+ Everything is local in `~/.prjct-cli/projects/{id}/`. Never leaves your machine.
345
377
 
346
378
  **Does it work with teams?**
347
- Designed for indie hackers. For teams, each dev has their own `.prjct/` or shares via git.
379
+ Designed for creators and small teams (2-5 people). Each member has their own local data in `~/.prjct-cli/projects/{id}/`, with shared `.prjct/prjct.config.json` in the repo for project identification.
348
380
 
349
381
  **How do I migrate from Jira/Trello?**
350
382
  No migration needed. Just `/p:init` and start working.
351
383
 
352
- > 💬 **More questions?** Check [prjct.dev/faq](https://prjct.dev/faq) or [open an issue](https://github.com/jlopezlira/prjct-cli/issues)
384
+ > 💬 **More questions?** Check [prjct.app/faq](https://prjct.app/faq) or [open an issue](https://github.com/jlopezlira/prjct-cli/issues)
353
385
 
354
386
  ## 📂 File Structure
355
387
 
@@ -401,14 +433,117 @@ If you have an existing flat `.prjct/` structure, run:
401
433
 
402
434
  ## 🛠️ Requirements
403
435
 
404
- - Node.js 18+
405
- - One of: Claude Code, OpenAI Codex, Cursor, VS Code, or Warp Terminal
436
+ - **Node.js 18+** - Required for CLI operation
437
+ - **Claude Code or Claude Desktop** - Recommended for full features (works with free tier or Pro)
438
+ - **Terminal/CLI** - Fallback mode (limited features)
439
+
440
+ ### What You Get
441
+
442
+ **With Claude Code/Desktop (Recommended):**
443
+ - ✅ Smart AI helpers for different tasks
444
+ - ✅ AI tools that help you code
445
+ - ✅ Checks your actual code changes
446
+ - ✅ Talk naturally - no commands to memorize
447
+ - ✅ Use slash commands (`/p:*`) in Claude
448
+ - ✅ Everything works
449
+
450
+ **With Terminal/CLI Only:**
451
+ - ⚠️ Basic commands work (`prjct now`, `prjct done`, etc.)
452
+ - ❌ No AI helpers
453
+ - ❌ No AI tools
454
+ - ❌ Can't talk naturally
455
+ - ❌ Doesn't check code changes
456
+ - ❌ Many features missing
457
+
458
+ **Get Claude Code at https://claude.ai/code** - Works with whatever subscription you have (free tier or Pro). No extra costs, tokens, or API keys to configure.
459
+
460
+ ## ❓ FAQ
461
+
462
+ ### Why Claude-only? What about Cursor/Windsurf?
406
463
 
407
- ### AI Assistant Configuration
464
+ **TL;DR**: By focusing 100% on Claude, we deliver features that would be impossible with multi-platform support.
465
+
466
+ **The Long Answer:**
467
+
468
+ Starting with v0.5.0, prjct-cli only supports Claude Code and Claude Desktop. This isn't a limitation - **it's a strategic decision that makes the tool better**.
469
+
470
+ **What We Gain:**
471
+
472
+ 1. **🤖 Smart AI Helpers** - Get specialized help (for frontend, backend, UX, security, etc.) that activates automatically. Only works with Claude's AI system.
473
+
474
+ 2. **🔗 AI Tools Built-In** - Gets library docs automatically, helps solve complex problems, creates UI components, and tests your app in a browser. Only works with Claude.
475
+
476
+ 3. **✅ Code Change Verification** - Checks your actual code changes to make sure you completed what you said. Needs Claude to work.
477
+
478
+ 4. **💬 Talk Naturally** - Just describe what you want - works in any language. Uses Claude's language understanding.
479
+
480
+ 5. **⚡ Simpler Code** - Less code = faster features, faster bug fixes, better quality.
481
+
482
+ 6. **💯 Everything Tested** - We only support what actually works and what we can test.
483
+
484
+ **But What About...**
485
+
486
+ **"I prefer Cursor/Windsurf"**
487
+
488
+ We get it! But consider:
489
+ - **No extra setup** - Works with whatever Claude subscription you have (free tier or Pro)
490
+ - **Better AI** - Latest Claude 3.5 Sonnet (Cursor/Windsurf use older models)
491
+ - **prjct-cli features** - Designed specifically for Claude's capabilities
492
+
493
+ Give Claude Code a try - you might prefer it! And if not, you can stay on v0.4.10 (last multi-editor version), though we don't recommend it.
494
+
495
+ **"This feels limiting"**
496
+
497
+ It's actually the opposite. By specializing, we can:
498
+ - Build features impossible with multi-platform (agents, MCP, git validation)
499
+ - Ship updates 2x faster (less code to maintain)
500
+ - Deliver higher quality (proper testing of everything we support)
501
+
502
+ **"What about my team?"**
503
+
504
+ prjct-cli is designed for **creators and small teams** (1-5 people) who ship fast.
505
+
506
+ For best results, standardize your team on Claude Code. Consistent tools = better collaboration. Works with whatever Claude subscription each team member has.
507
+
508
+ **"Is this a money grab?"**
509
+
510
+ **No.** There's zero financial incentive. prjct-cli works with whatever Claude subscription you have (free tier or Pro) - no extra costs, no tokens to buy, no API keys to configure.
511
+
512
+ This decision is purely **technical** - to build the best possible tool for developers who ship fast by leveraging Claude's unique capabilities.
513
+
514
+ **"Will you add back multi-editor support?"**
515
+
516
+ **No.** This was a deliberate architectural decision for v0.5.0, not a temporary change.
517
+
518
+ However, **v0.4.10 still exists** if you need multi-editor support. You can lock to that version with:
519
+
520
+ ```bash
521
+ npm install -g prjct-cli@0.4.10
522
+ ```
523
+
524
+ Just know you'll miss all the new features (agents, MCP, git validation, natural language).
525
+
526
+ ### Can I work on multiple tasks?
527
+
528
+ No, by design. Single-focus philosophy. Use `/p:done` before switching.
529
+
530
+ ### Difference between `/p:done` and `/p:ship`?
531
+
532
+ `/p:done` clears focus. `/p:ship` celebrates important features with metrics.
533
+
534
+ ### Where is my data stored?
535
+
536
+ Everything is local in `~/.prjct-cli/projects/{id}/`. Never leaves your machine.
537
+
538
+ ### Does it work with teams?
539
+
540
+ Designed for creators and small teams (2-5 people). Each member has their own local data in `~/.prjct-cli/projects/{id}/`, with shared `.prjct/prjct.config.json` in the repo for project identification.
541
+
542
+ ### How do I migrate from Jira/Trello?
543
+
544
+ No migration needed. Just `/p:init` and start working.
408
545
 
409
- - **OpenAI Codex**: AGENTS.md file (included)
410
- - **Claude Code**: CLAUDE.md file (included)
411
- - **Warp Terminal**: Shell integration (via setup.sh)
546
+ > 💬 **More questions?** Check [MIGRATION.md](MIGRATION.md) or [open an issue](https://github.com/jlopezlira/prjct-cli/issues)
412
547
 
413
548
  ## 🤝 Contributing
414
549