prjct-cli 0.4.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.
- package/CHANGELOG.md +312 -0
- package/CLAUDE.md +300 -0
- package/LICENSE +21 -0
- package/README.md +424 -0
- package/bin/prjct +214 -0
- package/core/agent-detector.js +249 -0
- package/core/agents/claude-agent.js +250 -0
- package/core/agents/codex-agent.js +256 -0
- package/core/agents/terminal-agent.js +465 -0
- package/core/analyzer.js +596 -0
- package/core/animations-simple.js +240 -0
- package/core/animations.js +277 -0
- package/core/author-detector.js +218 -0
- package/core/capability-installer.js +190 -0
- package/core/command-installer.js +775 -0
- package/core/commands.js +2050 -0
- package/core/config-manager.js +335 -0
- package/core/migrator.js +784 -0
- package/core/path-manager.js +324 -0
- package/core/project-capabilities.js +144 -0
- package/core/session-manager.js +439 -0
- package/core/version.js +107 -0
- package/core/workflow-engine.js +213 -0
- package/core/workflow-prompts.js +192 -0
- package/core/workflow-rules.js +147 -0
- package/package.json +80 -0
- package/scripts/install.sh +433 -0
- package/scripts/verify-installation.sh +158 -0
- package/templates/agents/AGENTS.md +164 -0
- package/templates/commands/analyze.md +125 -0
- package/templates/commands/cleanup.md +102 -0
- package/templates/commands/context.md +105 -0
- package/templates/commands/design.md +113 -0
- package/templates/commands/done.md +44 -0
- package/templates/commands/fix.md +87 -0
- package/templates/commands/git.md +79 -0
- package/templates/commands/help.md +72 -0
- package/templates/commands/idea.md +50 -0
- package/templates/commands/init.md +237 -0
- package/templates/commands/next.md +74 -0
- package/templates/commands/now.md +35 -0
- package/templates/commands/progress.md +92 -0
- package/templates/commands/recap.md +86 -0
- package/templates/commands/roadmap.md +107 -0
- package/templates/commands/ship.md +41 -0
- package/templates/commands/stuck.md +48 -0
- package/templates/commands/task.md +97 -0
- package/templates/commands/test.md +94 -0
- package/templates/commands/workflow.md +224 -0
- package/templates/examples/natural-language-examples.md +320 -0
- package/templates/mcp-config.json +8 -0
- package/templates/workflows/analyze.md +159 -0
- package/templates/workflows/cleanup.md +73 -0
- package/templates/workflows/context.md +72 -0
- package/templates/workflows/design.md +88 -0
- package/templates/workflows/done.md +20 -0
- package/templates/workflows/fix.md +201 -0
- package/templates/workflows/git.md +192 -0
- package/templates/workflows/help.md +13 -0
- package/templates/workflows/idea.md +22 -0
- package/templates/workflows/init.md +80 -0
- package/templates/workflows/natural-language-handler.md +183 -0
- package/templates/workflows/next.md +44 -0
- package/templates/workflows/now.md +19 -0
- package/templates/workflows/progress.md +113 -0
- package/templates/workflows/recap.md +66 -0
- package/templates/workflows/roadmap.md +95 -0
- package/templates/workflows/ship.md +18 -0
- package/templates/workflows/stuck.md +25 -0
- package/templates/workflows/task.md +109 -0
- package/templates/workflows/test.md +243 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Read, Grep, Bash, Edit]
|
|
3
|
+
description: "Quick troubleshooting and automatic fixes"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Global Architecture
|
|
7
|
+
This command uses the global prjct architecture:
|
|
8
|
+
- Data stored in: `~/.prjct-cli/projects/{id}/`
|
|
9
|
+
- Config stored in: `{project}/.prjct/prjct.config.json`
|
|
10
|
+
- Commands synchronized across all editors
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# /p:fix - Quick Fix & Troubleshooting
|
|
15
|
+
|
|
16
|
+
## Purpose
|
|
17
|
+
Instantly diagnose and fix common issues. Get unstuck in seconds, not minutes.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
```
|
|
21
|
+
/p:fix [error message or description]
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Execution
|
|
25
|
+
1. Analyze error type (syntax/type/runtime/build)
|
|
26
|
+
2. Search for error patterns in codebase
|
|
27
|
+
3. Apply automatic fix if safe and obvious
|
|
28
|
+
4. Provide manual fix steps if complex
|
|
29
|
+
5. Log solution to `.prjct/memory/context.jsonl`
|
|
30
|
+
|
|
31
|
+
## Common Fixes
|
|
32
|
+
|
|
33
|
+
**Auto-fixable**:
|
|
34
|
+
- Missing semicolons, brackets, quotes
|
|
35
|
+
- Import statements for undefined variables
|
|
36
|
+
- Package.json dependencies
|
|
37
|
+
- Simple type errors
|
|
38
|
+
- Linting issues
|
|
39
|
+
|
|
40
|
+
**Guided fixes**:
|
|
41
|
+
- Null/undefined errors → Add null checks
|
|
42
|
+
- Module not found → Install package or fix path
|
|
43
|
+
- Build failures → Check configs and deps
|
|
44
|
+
- Test failures → Show diff and fix approach
|
|
45
|
+
|
|
46
|
+
## Implementation
|
|
47
|
+
|
|
48
|
+
**Error detection**:
|
|
49
|
+
```bash
|
|
50
|
+
# Check for common issues
|
|
51
|
+
- npm run lint 2>&1
|
|
52
|
+
- npm run typecheck 2>&1
|
|
53
|
+
- Check recent git changes
|
|
54
|
+
- Analyze error stack trace
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
**Response format for auto-fix**:
|
|
58
|
+
```
|
|
59
|
+
🔧 Fixed automatically!
|
|
60
|
+
|
|
61
|
+
Problem: Missing import for useState
|
|
62
|
+
Solution: Added import from 'react'
|
|
63
|
+
File: components/UserForm.tsx:1
|
|
64
|
+
|
|
65
|
+
✅ Error resolved - continue working!
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Response format for guided fix**:
|
|
69
|
+
```
|
|
70
|
+
🔍 Issue identified: Cannot read property 'id' of undefined
|
|
71
|
+
|
|
72
|
+
📍 Location: services/auth.js:45
|
|
73
|
+
🐛 Cause: user might be null
|
|
74
|
+
|
|
75
|
+
💡 Quick fix:
|
|
76
|
+
if (!user?.id) {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
Apply with: /p:fix apply
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Smart Features
|
|
84
|
+
- Learns from previous fixes
|
|
85
|
+
- Suggests preventive measures
|
|
86
|
+
- Links to relevant documentation
|
|
87
|
+
- Tracks fix patterns in memory
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Bash, Read, Grep, Glob]
|
|
3
|
+
description: "Smart git operations with auto-generated commit messages"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Global Architecture
|
|
7
|
+
This command uses the global prjct architecture:
|
|
8
|
+
- Data stored in: `~/.prjct-cli/projects/{id}/`
|
|
9
|
+
- Config stored in: `{project}/.prjct/prjct.config.json`
|
|
10
|
+
- Commands synchronized across all editors
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# /p:git - Smart Git Operations
|
|
15
|
+
|
|
16
|
+
## Purpose
|
|
17
|
+
Execute git operations with intelligent commit messages and automatic best practices. No thinking required.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
```
|
|
21
|
+
/p:git [commit|push|status|sync]
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Default: commit
|
|
25
|
+
|
|
26
|
+
## Execution
|
|
27
|
+
|
|
28
|
+
### `/p:git` or `/p:git commit`
|
|
29
|
+
1. Run `git status` to see changes
|
|
30
|
+
2. Analyze changes to generate smart commit message
|
|
31
|
+
3. Stage all changes with `git add -A`
|
|
32
|
+
4. Commit with generated message
|
|
33
|
+
5. Log to `.prjct/memory/context.jsonl`
|
|
34
|
+
|
|
35
|
+
### `/p:git push`
|
|
36
|
+
1. Commit any pending changes first
|
|
37
|
+
2. Push to current branch
|
|
38
|
+
3. Show deployment status if applicable
|
|
39
|
+
|
|
40
|
+
### `/p:git status`
|
|
41
|
+
1. Show clean git status with emoji indicators
|
|
42
|
+
2. Suggest next logical action
|
|
43
|
+
|
|
44
|
+
### `/p:git sync`
|
|
45
|
+
1. Pull latest changes
|
|
46
|
+
2. Commit local changes if any
|
|
47
|
+
3. Push to remote
|
|
48
|
+
4. Handle merge conflicts if needed
|
|
49
|
+
|
|
50
|
+
## Implementation
|
|
51
|
+
|
|
52
|
+
**Smart commit message generation**:
|
|
53
|
+
- Analyze file changes to determine type (feat/fix/docs/refactor)
|
|
54
|
+
- Extract meaningful description from changes
|
|
55
|
+
- Add emoji for visual clarity
|
|
56
|
+
- Include file scope when relevant
|
|
57
|
+
|
|
58
|
+
**Example messages**:
|
|
59
|
+
- "✨ feat: Add user authentication system"
|
|
60
|
+
- "🐛 fix: Resolve null pointer in auth middleware"
|
|
61
|
+
- "📝 docs: Update API documentation"
|
|
62
|
+
- "♻️ refactor: Simplify database connection logic"
|
|
63
|
+
|
|
64
|
+
**Response format**:
|
|
65
|
+
```
|
|
66
|
+
✅ Changes committed!
|
|
67
|
+
|
|
68
|
+
📝 Message: feat: Add user authentication
|
|
69
|
+
📊 Files: 3 changed, +150 lines
|
|
70
|
+
🔄 Branch: main
|
|
71
|
+
|
|
72
|
+
💡 Next: /p:git push to deploy
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Best Practices
|
|
76
|
+
- Always pulls before pushing
|
|
77
|
+
- Auto-stages all changes
|
|
78
|
+
- Generates conventional commit messages
|
|
79
|
+
- Tracks in project memory for context
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Read]
|
|
3
|
+
description: "Interactive guide - talk naturally, no memorization needed"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /p:help
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
```
|
|
10
|
+
/p:help
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
Interactive guide for users who want to talk naturally without memorizing commands.
|
|
15
|
+
|
|
16
|
+
## Response
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
🎯 What do you want to do?
|
|
20
|
+
|
|
21
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
22
|
+
|
|
23
|
+
1. 🚀 Start working on something
|
|
24
|
+
Say: "I want to start [task]"
|
|
25
|
+
Or: /p:now "task description"
|
|
26
|
+
|
|
27
|
+
2. ✅ I finished a task
|
|
28
|
+
Say: "I'm done" or "finished"
|
|
29
|
+
Or: /p:done
|
|
30
|
+
|
|
31
|
+
3. 🎉 Ship a feature
|
|
32
|
+
Say: "ship [feature name]"
|
|
33
|
+
Or: /p:ship "feature"
|
|
34
|
+
|
|
35
|
+
4. 💡 Capture an idea
|
|
36
|
+
Say: "I have an idea about [thing]"
|
|
37
|
+
Or: /p:idea "idea text"
|
|
38
|
+
|
|
39
|
+
5. 📊 See my progress
|
|
40
|
+
Say: "show me my progress"
|
|
41
|
+
Or: /p:recap
|
|
42
|
+
|
|
43
|
+
6. 🗺️ Plan ahead
|
|
44
|
+
Say: "show my roadmap"
|
|
45
|
+
Or: /p:roadmap
|
|
46
|
+
|
|
47
|
+
7. 🆘 I'm stuck on something
|
|
48
|
+
Say: "I'm stuck on [problem]"
|
|
49
|
+
Or: /p:stuck "issue description"
|
|
50
|
+
|
|
51
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
52
|
+
|
|
53
|
+
💬 Pro tip: Just talk naturally!
|
|
54
|
+
|
|
55
|
+
Instead of memorizing commands, tell me what you want:
|
|
56
|
+
• "let me start building the login"
|
|
57
|
+
• "I finished that"
|
|
58
|
+
• "ship the authentication system"
|
|
59
|
+
• "what should I work on next?"
|
|
60
|
+
|
|
61
|
+
I understand both natural language and /p:* commands.
|
|
62
|
+
|
|
63
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
64
|
+
|
|
65
|
+
What would you like to do?
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Implementation Notes
|
|
69
|
+
- Always respond conversationally
|
|
70
|
+
- Detect user intent from natural language
|
|
71
|
+
- Map to appropriate /p:* command
|
|
72
|
+
- Show example in both natural + command format
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Read, Write, Edit]
|
|
3
|
+
description: "Quick idea capture"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /p:idea
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
```
|
|
10
|
+
/p:idea <text>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Execution
|
|
14
|
+
|
|
15
|
+
1. Append to `~/.prjct-cli/projects/{id}/planning/ideas.md`:
|
|
16
|
+
```markdown
|
|
17
|
+
- [timestamp] [idea]
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
2. If actionable (has action verbs), add to `core/next.md`
|
|
21
|
+
3. Log to `memory/context.jsonl`:
|
|
22
|
+
```json
|
|
23
|
+
{"action":"idea","text":"[idea]","category":"[type]","actionable":true,"added_to_queue":true}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
4. Response (if actionable):
|
|
27
|
+
```
|
|
28
|
+
💡 Idea captured: [idea text]
|
|
29
|
+
|
|
30
|
+
✅ Added to task queue!
|
|
31
|
+
|
|
32
|
+
Ready to start?
|
|
33
|
+
• "start this idea" → Begin now
|
|
34
|
+
• "plan more" → Keep brainstorming
|
|
35
|
+
• "see all ideas" → View backlog
|
|
36
|
+
|
|
37
|
+
Or: /p:now "[idea]" | /p:idea | /p:recap
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Or (if just backlog):
|
|
41
|
+
```
|
|
42
|
+
💡 Idea saved: [idea text]
|
|
43
|
+
|
|
44
|
+
What now?
|
|
45
|
+
• "add another idea" → Keep brainstorming
|
|
46
|
+
• "start working" → Pick a task
|
|
47
|
+
• "see my ideas" → View backlog
|
|
48
|
+
|
|
49
|
+
Or: /p:idea | /p:now | /p:next
|
|
50
|
+
```
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Read, Write, Bash, Glob]
|
|
3
|
+
description: "Initialize prjct project with global architecture"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /p:init - Initialize Project
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
Initialize a new prjct project using global architecture with centralized data storage.
|
|
10
|
+
|
|
11
|
+
## Global Architecture
|
|
12
|
+
This command creates:
|
|
13
|
+
- **Global data directory**: `~/.prjct-cli/projects/{id}/` (shared across editors)
|
|
14
|
+
- **Local config file**: `.prjct/prjct.config.json` (links to global data)
|
|
15
|
+
- **Synchronized commands**: Available in Claude Code, Cursor, Windsurf
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
```
|
|
19
|
+
/p:init
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Implementation
|
|
23
|
+
|
|
24
|
+
When this command is executed in Claude Code:
|
|
25
|
+
|
|
26
|
+
### 1. Generate Project ID
|
|
27
|
+
```bash
|
|
28
|
+
# Generate unique ID from project path hash
|
|
29
|
+
PROJECT_PATH="$(pwd)"
|
|
30
|
+
PROJECT_ID=$(echo -n "$PROJECT_PATH" | shasum -a 256 | cut -c1-12)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### 2. Create Global Directory Structure
|
|
34
|
+
```bash
|
|
35
|
+
# Create global data directory
|
|
36
|
+
mkdir -p ~/.prjct-cli/projects/$PROJECT_ID/{core,progress,planning,analysis,memory}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### 3. Create Local Configuration
|
|
40
|
+
```bash
|
|
41
|
+
# Create local config directory
|
|
42
|
+
mkdir -p .prjct
|
|
43
|
+
|
|
44
|
+
# Get author info from git
|
|
45
|
+
AUTHOR_NAME=$(git config user.name 2>/dev/null || echo "Unknown")
|
|
46
|
+
AUTHOR_EMAIL=$(git config user.email 2>/dev/null || echo "unknown@example.com")
|
|
47
|
+
|
|
48
|
+
# Create config file linking to global data
|
|
49
|
+
cat > .prjct/prjct.config.json << EOF
|
|
50
|
+
{
|
|
51
|
+
"version": "0.3.0",
|
|
52
|
+
"projectId": "$PROJECT_ID",
|
|
53
|
+
"dataPath": "~/.prjct-cli/projects/$PROJECT_ID",
|
|
54
|
+
"author": {
|
|
55
|
+
"name": "$AUTHOR_NAME",
|
|
56
|
+
"email": "$AUTHOR_EMAIL"
|
|
57
|
+
},
|
|
58
|
+
"createdAt": "$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
|
|
59
|
+
}
|
|
60
|
+
EOF
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### 4. Initialize Core Files (in global directory)
|
|
64
|
+
|
|
65
|
+
**~/.prjct-cli/projects/{id}/core/now.md**:
|
|
66
|
+
```markdown
|
|
67
|
+
# NOW: No current task
|
|
68
|
+
|
|
69
|
+
Start a new task with `/p:now [task description]`
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
**~/.prjct-cli/projects/{id}/core/next.md**:
|
|
73
|
+
```markdown
|
|
74
|
+
# NEXT - Priority Queue
|
|
75
|
+
|
|
76
|
+
Add tasks here that should be done after the current task.
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
**~/.prjct-cli/projects/{id}/core/context.md**:
|
|
80
|
+
```markdown
|
|
81
|
+
# Project Context
|
|
82
|
+
|
|
83
|
+
## Overview
|
|
84
|
+
[Auto-generated from `/p:analyze`]
|
|
85
|
+
|
|
86
|
+
## Current Focus
|
|
87
|
+
[Link to current task in now.md]
|
|
88
|
+
|
|
89
|
+
## Key Information
|
|
90
|
+
- **Repository**: [auto-detected]
|
|
91
|
+
- **Tech Stack**: [auto-detected]
|
|
92
|
+
- **Architecture**: [auto-detected]
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### 5. Initialize Progress Tracking
|
|
96
|
+
|
|
97
|
+
**~/.prjct-cli/projects/{id}/progress/shipped.md**:
|
|
98
|
+
```markdown
|
|
99
|
+
# SHIPPED - Completed Features
|
|
100
|
+
|
|
101
|
+
## Week [CURRENT_WEEK], [YEAR]
|
|
102
|
+
|
|
103
|
+
_Ship features with `/p:ship <feature>`_
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**~/.prjct-cli/projects/{id}/progress/metrics.md**:
|
|
107
|
+
```markdown
|
|
108
|
+
# Progress Metrics
|
|
109
|
+
|
|
110
|
+
## This Week
|
|
111
|
+
- **Shipped**: 0 features
|
|
112
|
+
- **Active**: 0 tasks
|
|
113
|
+
- **Planned**: 0 items
|
|
114
|
+
|
|
115
|
+
## Historical
|
|
116
|
+
[Auto-updated by commands]
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### 6. Initialize Planning Layer
|
|
120
|
+
|
|
121
|
+
**~/.prjct-cli/projects/{id}/planning/ideas.md**:
|
|
122
|
+
```markdown
|
|
123
|
+
# IDEAS - Brain Dump
|
|
124
|
+
|
|
125
|
+
Capture ideas quickly with `/p:idea <text>`
|
|
126
|
+
|
|
127
|
+
## Backlog
|
|
128
|
+
- [ ] [Ideas will appear here]
|
|
129
|
+
|
|
130
|
+
## Someday/Maybe
|
|
131
|
+
- [ ] [Future ideas]
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**~/.prjct-cli/projects/{id}/planning/roadmap.md**:
|
|
135
|
+
```markdown
|
|
136
|
+
# Roadmap
|
|
137
|
+
|
|
138
|
+
## Current Sprint
|
|
139
|
+
[Active items from next.md]
|
|
140
|
+
|
|
141
|
+
## Upcoming
|
|
142
|
+
[Planned features and improvements]
|
|
143
|
+
|
|
144
|
+
## Long-term Vision
|
|
145
|
+
[Strategic goals and objectives]
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### 7. Initialize Memory Layer
|
|
149
|
+
|
|
150
|
+
Create empty JSONL files for historical tracking:
|
|
151
|
+
- **memory/context.jsonl**: Activity log with timestamps
|
|
152
|
+
- **memory/decisions.jsonl**: Decision history (not used yet)
|
|
153
|
+
|
|
154
|
+
### 8. Log Initialization
|
|
155
|
+
|
|
156
|
+
Add initialization record to memory:
|
|
157
|
+
```jsonl
|
|
158
|
+
{"timestamp":"2025-10-01T09:00:00Z","action":"init","author":"Name","projectPath":"/path/to/project","projectId":"abc123def456"}
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### 9. Success Message (Conversational Onboarding)
|
|
162
|
+
|
|
163
|
+
```
|
|
164
|
+
✅ Your project is ready!
|
|
165
|
+
|
|
166
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
167
|
+
|
|
168
|
+
💬 Let me show you around...
|
|
169
|
+
|
|
170
|
+
You don't need to memorize commands.
|
|
171
|
+
Just talk to me naturally!
|
|
172
|
+
|
|
173
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
174
|
+
|
|
175
|
+
🎯 To start working:
|
|
176
|
+
|
|
177
|
+
Say: "I want to start building the login page"
|
|
178
|
+
Or: /p:now "build login page"
|
|
179
|
+
|
|
180
|
+
→ I'll track your focus and time
|
|
181
|
+
|
|
182
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
183
|
+
|
|
184
|
+
✅ When you finish something:
|
|
185
|
+
|
|
186
|
+
Say: "I'm done" or "finished that"
|
|
187
|
+
Or: /p:done
|
|
188
|
+
|
|
189
|
+
→ I'll celebrate and suggest what's next
|
|
190
|
+
|
|
191
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
192
|
+
|
|
193
|
+
🚀 To ship a feature:
|
|
194
|
+
|
|
195
|
+
Say: "ship the authentication system"
|
|
196
|
+
Or: /p:ship "authentication system"
|
|
197
|
+
|
|
198
|
+
→ I'll track your velocity and wins
|
|
199
|
+
|
|
200
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
201
|
+
|
|
202
|
+
💡 Have ideas? Just say:
|
|
203
|
+
|
|
204
|
+
"I have an idea about dark mode"
|
|
205
|
+
"What should I work on next?"
|
|
206
|
+
"Show me my progress"
|
|
207
|
+
"I'm stuck on async state"
|
|
208
|
+
|
|
209
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
210
|
+
|
|
211
|
+
🆘 Need help anytime?
|
|
212
|
+
|
|
213
|
+
Type: /p:help
|
|
214
|
+
|
|
215
|
+
→ I'll show you all options in plain language
|
|
216
|
+
|
|
217
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
218
|
+
|
|
219
|
+
Ready to start? Tell me what you want to build first!
|
|
220
|
+
|
|
221
|
+
(Or type /p:help to see all options)
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
## Error Handling
|
|
225
|
+
|
|
226
|
+
- **If .prjct/ exists**: Warn that project may already be initialized
|
|
227
|
+
- **If git not available**: Use generic author info
|
|
228
|
+
- **If global directory creation fails**: Show error and suggest manual creation
|
|
229
|
+
- **If config write fails**: Check permissions on .prjct/ directory
|
|
230
|
+
|
|
231
|
+
## Notes
|
|
232
|
+
|
|
233
|
+
- Project ID is deterministic based on project path
|
|
234
|
+
- Same project path always gets same ID
|
|
235
|
+
- Global data enables cross-editor synchronization
|
|
236
|
+
- Local config is minimal (just links to global data)
|
|
237
|
+
- Works for solo developers and small teams (2-5 people)
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Read, Write, Edit]
|
|
3
|
+
description: "Display and manage priority queue"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Global Architecture
|
|
7
|
+
This command uses the global prjct architecture:
|
|
8
|
+
- Data stored in: `~/.prjct-cli/projects/{id}/`
|
|
9
|
+
- Config stored in: `{project}/.prjct/prjct.config.json`
|
|
10
|
+
- Commands synchronized across all editors
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# /p:next - Priority Queue
|
|
15
|
+
|
|
16
|
+
## Purpose
|
|
17
|
+
Display the prioritized queue of upcoming tasks.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
```
|
|
21
|
+
/p:next
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Execution
|
|
25
|
+
1. Read `.prjct/core/next.md`
|
|
26
|
+
2. Display numbered list of pending tasks with context
|
|
27
|
+
3. Show task count and suggest next action
|
|
28
|
+
4. Reference related planning and progress layers
|
|
29
|
+
|
|
30
|
+
## Implementation
|
|
31
|
+
|
|
32
|
+
1. **Read core/next.md**:
|
|
33
|
+
- Parse markdown list of tasks
|
|
34
|
+
- Number them for easy reference
|
|
35
|
+
- Show task priorities and contexts
|
|
36
|
+
|
|
37
|
+
2. **Context integration**:
|
|
38
|
+
- Reference planning/roadmap.md for strategic context
|
|
39
|
+
- Show progress/metrics.md for capacity planning
|
|
40
|
+
- Link to analysis/repo-summary.md for technical context
|
|
41
|
+
|
|
42
|
+
3. **Response format**:
|
|
43
|
+
```
|
|
44
|
+
📋 Priority Queue ([count] tasks):
|
|
45
|
+
|
|
46
|
+
1. [first task]
|
|
47
|
+
- Context: [link to planning/analysis if relevant]
|
|
48
|
+
- Priority: [high/medium/low]
|
|
49
|
+
2. [second task]
|
|
50
|
+
3. [third task]
|
|
51
|
+
...
|
|
52
|
+
|
|
53
|
+
💡 Start next task with: /p:now "[first task]"
|
|
54
|
+
📊 Context: See planning/roadmap.md for strategic priorities
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Or if empty:
|
|
58
|
+
```
|
|
59
|
+
📋 Queue is empty!
|
|
60
|
+
|
|
61
|
+
Add tasks:
|
|
62
|
+
- Directly edit .prjct/core/next.md
|
|
63
|
+
- Use /p:idea for quick capture
|
|
64
|
+
- Check /p:roadmap for strategic planning
|
|
65
|
+
|
|
66
|
+
📂 Related:
|
|
67
|
+
- Planning: .prjct/planning/roadmap.md
|
|
68
|
+
- Ideas: .prjct/planning/ideas.md
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Tips
|
|
72
|
+
- Keep queue short (5-10 items)
|
|
73
|
+
- Most important tasks first
|
|
74
|
+
- Review and reprioritize regularly
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Read, Write, Edit, TodoWrite]
|
|
3
|
+
description: "Manage current focus task"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /p:now
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
```
|
|
10
|
+
/p:now # Show current
|
|
11
|
+
/p:now [task] # Set focus
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Execution
|
|
15
|
+
|
|
16
|
+
**Show**: Read `~/.prjct-cli/projects/{id}/core/now.md`, display task + elapsed time
|
|
17
|
+
|
|
18
|
+
**Set**:
|
|
19
|
+
1. Update `core/now.md` with task + timestamp
|
|
20
|
+
2. Update `core/context.md`, `progress/metrics.md`
|
|
21
|
+
3. Log to `memory/context.jsonl`:
|
|
22
|
+
```json
|
|
23
|
+
{"action":"now","task":"[task]","timestamp":"[ISO]","previous":"[old]","layer":"core"}
|
|
24
|
+
```
|
|
25
|
+
4. Response:
|
|
26
|
+
```
|
|
27
|
+
🎯 Working on: [task description]
|
|
28
|
+
Started: [time]
|
|
29
|
+
|
|
30
|
+
When you're done:
|
|
31
|
+
• "I'm done" or "finished"
|
|
32
|
+
• Or type: /p:done
|
|
33
|
+
|
|
34
|
+
Need help? Say "I'm stuck" or use /p:stuck
|
|
35
|
+
```
|