prjct-cli 0.5.0 → 0.6.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 +169 -1
- package/CLAUDE.md +43 -28
- package/README.md +4 -4
- package/bin/prjct +78 -63
- package/core/agent-generator.js +19 -10
- package/core/ascii-graphics.js +433 -0
- package/core/command-registry.js +553 -0
- package/core/commands.js +274 -62
- package/core/task-schema.js +342 -0
- package/package.json +4 -3
- package/templates/agents/AGENTS.md +79 -101
- package/templates/agents/be.template.md +14 -29
- package/templates/agents/coordinator.template.md +34 -0
- package/templates/agents/data.template.md +14 -28
- package/templates/agents/devops.template.md +14 -28
- package/templates/agents/fe.template.md +14 -29
- package/templates/agents/mobile.template.md +14 -28
- package/templates/agents/qa.template.md +14 -41
- package/templates/agents/scribe.template.md +15 -81
- package/templates/agents/security.template.md +14 -28
- package/templates/agents/ux.template.md +14 -36
- package/templates/commands/analyze.md +36 -239
- package/templates/commands/build.md +41 -0
- package/templates/commands/cleanup.md +24 -87
- package/templates/commands/context.md +24 -93
- package/templates/commands/design.md +20 -98
- package/templates/commands/done.md +16 -181
- package/templates/commands/fix.md +27 -66
- package/templates/commands/git.md +33 -60
- package/templates/commands/help.md +18 -52
- package/templates/commands/idea.md +11 -36
- package/templates/commands/init.md +30 -277
- package/templates/commands/next.md +20 -62
- package/templates/commands/now.md +18 -22
- package/templates/commands/progress.md +23 -78
- package/templates/commands/recap.md +22 -74
- package/templates/commands/roadmap.md +21 -90
- package/templates/commands/ship.md +26 -161
- package/templates/commands/status.md +40 -0
- package/templates/commands/stuck.md +21 -33
- package/templates/commands/sync.md +19 -209
- package/templates/commands/task.md +18 -80
- package/templates/commands/test.md +23 -72
- package/templates/commands/workflow.md +20 -212
- package/templates/agents/pm.template.md +0 -84
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
allowed-tools: [
|
|
2
|
+
allowed-tools: [Write]
|
|
3
3
|
description: "Quick idea capture"
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -10,41 +10,16 @@ description: "Quick idea capture"
|
|
|
10
10
|
/p:idea <text>
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## Flow
|
|
14
|
+
1. Append: `planning/ideas.md` with timestamp
|
|
15
|
+
2. If actionable → add to `core/next.md`
|
|
16
|
+
3. Log: `memory/context.jsonl`
|
|
14
17
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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]
|
|
18
|
+
## Response
|
|
19
|
+
```
|
|
20
|
+
💡 {idea}
|
|
21
|
+
{✅ Added to queue | 📝 Saved to backlog}
|
|
43
22
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
• "start working" → Pick a task
|
|
47
|
-
• "see my ideas" → View backlog
|
|
23
|
+
/p:now "{idea}" | /p:next
|
|
24
|
+
```
|
|
48
25
|
|
|
49
|
-
Or: /p:idea | /p:now | /p:next
|
|
50
|
-
```
|
|
@@ -1,295 +1,48 @@
|
|
|
1
1
|
---
|
|
2
|
-
allowed-tools: [Read, Write, Bash
|
|
3
|
-
description: "Initialize prjct project
|
|
2
|
+
allowed-tools: [Read, Write, Bash]
|
|
3
|
+
description: "Initialize prjct project"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# /p:init
|
|
6
|
+
# /p:init
|
|
7
7
|
|
|
8
|
-
##
|
|
9
|
-
|
|
8
|
+
## Flow
|
|
9
|
+
1. Generate: project ID from path hash
|
|
10
|
+
2. Create: `~/.prjct-cli/projects/{id}/` structure
|
|
11
|
+
3. Write: `.prjct/prjct.config.json`
|
|
12
|
+
4. Init: all markdown files with templates
|
|
13
|
+
5. Log: `memory/context.jsonl`
|
|
10
14
|
|
|
11
|
-
##
|
|
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)
|
|
15
|
+
## Directory Structure
|
|
31
16
|
```
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
#
|
|
36
|
-
|
|
17
|
+
~/.prjct-cli/projects/{id}/
|
|
18
|
+
├── core/ # now.md, next.md, context.md
|
|
19
|
+
├── progress/ # shipped.md, metrics.md
|
|
20
|
+
├── planning/ # ideas.md, roadmap.md
|
|
21
|
+
├── analysis/ # repo-summary.md
|
|
22
|
+
└── memory/ # context.jsonl
|
|
37
23
|
```
|
|
38
24
|
|
|
39
|
-
|
|
40
|
-
```
|
|
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
|
|
25
|
+
## Config Format
|
|
26
|
+
```json
|
|
50
27
|
{
|
|
51
|
-
"version": "0.
|
|
52
|
-
"projectId": "
|
|
53
|
-
"dataPath": "~/.prjct-cli/projects
|
|
28
|
+
"version": "0.6.0",
|
|
29
|
+
"projectId": "{id}",
|
|
30
|
+
"dataPath": "~/.prjct-cli/projects/{id}",
|
|
54
31
|
"author": {
|
|
55
|
-
"name": "
|
|
56
|
-
"email": "
|
|
57
|
-
|
|
58
|
-
|
|
32
|
+
"name": "{from git}",
|
|
33
|
+
"email": "{from git}",
|
|
34
|
+
"github": "{from remote}"
|
|
35
|
+
}
|
|
59
36
|
}
|
|
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. Run Project Analysis
|
|
155
|
-
|
|
156
|
-
Execute `/p:analyze` to understand the project:
|
|
157
|
-
|
|
158
|
-
```javascript
|
|
159
|
-
// This should execute the analyze command internally
|
|
160
|
-
// The AI will:
|
|
161
|
-
// 1. Scan project structure
|
|
162
|
-
// 2. Detect stack and frameworks
|
|
163
|
-
// 3. Check git status
|
|
164
|
-
// 4. Determine which agents are needed
|
|
165
|
-
// 5. Save analysis to .prjct/analysis/repo-summary.md
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
### 9. Generate AI Agents
|
|
169
|
-
|
|
170
|
-
Based on the analysis, generate specialized AI agents:
|
|
171
|
-
|
|
172
|
-
```javascript
|
|
173
|
-
const agentGenerator = require('../core/agent-generator')
|
|
174
|
-
const analysis = await readAnalysisFile('.prjct/analysis/repo-summary.md')
|
|
175
|
-
|
|
176
|
-
// Generate all required agents
|
|
177
|
-
const generatedAgents = await agentGenerator.generateAll(analysis)
|
|
178
|
-
|
|
179
|
-
// Agents are created in ~/.claude/agents/
|
|
180
|
-
// They are immediately available in Claude Code and Claude Desktop
|
|
181
37
|
```
|
|
182
38
|
|
|
183
|
-
|
|
184
|
-
- **Base** (always): PM, UX, FE, BE, QA, Scribe (6 agents)
|
|
185
|
-
- **Conditional** (based on project):
|
|
186
|
-
- Security (if web app or has auth)
|
|
187
|
-
- DevOps (if Docker/CI/CD detected)
|
|
188
|
-
- Mobile (if React Native/Flutter detected)
|
|
189
|
-
- Data (if ML/data science detected)
|
|
190
|
-
|
|
191
|
-
### 10. Log Initialization
|
|
192
|
-
|
|
193
|
-
Add initialization record to memory:
|
|
194
|
-
```jsonl
|
|
195
|
-
{"timestamp":"2025-10-01T09:00:00Z","action":"init","author":"Name","projectPath":"/path/to/project","projectId":"abc123def456","agents":["pm","ux","fe","be","qa","scribe","security"]}
|
|
39
|
+
## Response
|
|
196
40
|
```
|
|
41
|
+
✅ prjct initialized!
|
|
197
42
|
|
|
198
|
-
|
|
43
|
+
📁 Data: ~/.prjct-cli/projects/{id}
|
|
44
|
+
📝 Config: .prjct/prjct.config.json
|
|
199
45
|
|
|
46
|
+
/p:now | /p:idea | /p:status
|
|
200
47
|
```
|
|
201
|
-
✅ Your project is ready!
|
|
202
|
-
|
|
203
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
204
|
-
|
|
205
|
-
📦 Project Analysis Complete
|
|
206
|
-
|
|
207
|
-
Project: [PROJECT_NAME]
|
|
208
|
-
Type: [PROJECT_TYPE]
|
|
209
|
-
Stack: [DETECTED_STACK]
|
|
210
|
-
|
|
211
|
-
🤖 AI Agents Generated ([COUNT] specialists)
|
|
212
|
-
|
|
213
|
-
✅ PM - Project coordination
|
|
214
|
-
✅ UX - Design & user experience
|
|
215
|
-
✅ FE - Frontend development
|
|
216
|
-
✅ BE - Backend development
|
|
217
|
-
✅ QA - Testing & quality
|
|
218
|
-
✅ Scribe - Documentation
|
|
219
|
-
[+ conditional agents if detected]
|
|
220
|
-
|
|
221
|
-
These agents are now available in Claude and will provide
|
|
222
|
-
specialized expertise for your project tasks.
|
|
223
|
-
|
|
224
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
225
|
-
|
|
226
|
-
💬 Let me show you around...
|
|
227
|
-
|
|
228
|
-
You don't need to memorize commands.
|
|
229
|
-
Just talk to me naturally!
|
|
230
|
-
|
|
231
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
232
|
-
|
|
233
|
-
🎯 To start working:
|
|
234
|
-
|
|
235
|
-
Say: "I want to start building the login page"
|
|
236
|
-
Or: /p:now "build login page"
|
|
237
|
-
|
|
238
|
-
→ I'll track your focus and time
|
|
239
|
-
|
|
240
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
241
|
-
|
|
242
|
-
✅ When you finish something:
|
|
243
|
-
|
|
244
|
-
Say: "I'm done" or "finished that"
|
|
245
|
-
Or: /p:done
|
|
246
|
-
|
|
247
|
-
→ I'll celebrate and suggest what's next
|
|
248
|
-
|
|
249
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
250
|
-
|
|
251
|
-
🚀 To ship a feature:
|
|
252
|
-
|
|
253
|
-
Say: "ship the authentication system"
|
|
254
|
-
Or: /p:ship "authentication system"
|
|
255
|
-
|
|
256
|
-
→ I'll track your velocity and wins
|
|
257
|
-
|
|
258
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
259
|
-
|
|
260
|
-
💡 Have ideas? Just say:
|
|
261
|
-
|
|
262
|
-
"I have an idea about dark mode"
|
|
263
|
-
"What should I work on next?"
|
|
264
|
-
"Show me my progress"
|
|
265
|
-
"I'm stuck on async state"
|
|
266
|
-
|
|
267
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
268
|
-
|
|
269
|
-
🆘 Need help anytime?
|
|
270
|
-
|
|
271
|
-
Type: /p:help
|
|
272
|
-
|
|
273
|
-
→ I'll show you all options in plain language
|
|
274
|
-
|
|
275
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
276
|
-
|
|
277
|
-
Ready to start? Tell me what you want to build first!
|
|
278
|
-
|
|
279
|
-
(Or type /p:help to see all options)
|
|
280
|
-
```
|
|
281
|
-
|
|
282
|
-
## Error Handling
|
|
283
|
-
|
|
284
|
-
- **If .prjct/ exists**: Warn that project may already be initialized
|
|
285
|
-
- **If git not available**: Use generic author info
|
|
286
|
-
- **If global directory creation fails**: Show error and suggest manual creation
|
|
287
|
-
- **If config write fails**: Check permissions on .prjct/ directory
|
|
288
|
-
|
|
289
|
-
## Notes
|
|
290
48
|
|
|
291
|
-
- Project ID is deterministic based on project path
|
|
292
|
-
- Same project path always gets same ID
|
|
293
|
-
- Global data enables cross-editor synchronization
|
|
294
|
-
- Local config is minimal (just links to global data)
|
|
295
|
-
- Works for solo developers and small teams (2-5 people)
|
|
@@ -1,74 +1,32 @@
|
|
|
1
1
|
---
|
|
2
|
-
allowed-tools: [Read
|
|
3
|
-
description: "
|
|
2
|
+
allowed-tools: [Read]
|
|
3
|
+
description: "Show priority queue (top 5 non-blocking)"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
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
|
|
6
|
+
# /p:next
|
|
11
7
|
|
|
8
|
+
## Flow
|
|
9
|
+
1. Check: `core/now.md` → if active task, show warning
|
|
10
|
+
2. Read: `core/next.md` → filter blocked tasks
|
|
11
|
+
3. Return: top 5 actionable
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
# /p:next - Priority Queue
|
|
15
|
-
|
|
16
|
-
## Purpose
|
|
17
|
-
Display the prioritized queue of upcoming tasks.
|
|
18
|
-
|
|
19
|
-
## Usage
|
|
13
|
+
## Response (active task)
|
|
20
14
|
```
|
|
21
|
-
|
|
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
|
|
15
|
+
⚠️ Active: {current_task}
|
|
16
|
+
Started: {time_ago}
|
|
31
17
|
|
|
32
|
-
|
|
33
|
-
- Parse markdown list of tasks
|
|
34
|
-
- Number them for easy reference
|
|
35
|
-
- Show task priorities and contexts
|
|
18
|
+
Complete first: /p:done
|
|
36
19
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
```
|
|
20
|
+
📋 Queue preview:
|
|
21
|
+
{top_5_numbered}
|
|
22
|
+
```
|
|
56
23
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
24
|
+
## Response (no active)
|
|
25
|
+
```
|
|
26
|
+
📋 Priority Queue
|
|
60
27
|
|
|
61
|
-
|
|
62
|
-
- Directly edit .prjct/core/next.md
|
|
63
|
-
- Use /p:idea for quick capture
|
|
64
|
-
- Check /p:roadmap for strategic planning
|
|
28
|
+
{numbered_tasks_1_to_5}
|
|
65
29
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
- Ideas: .prjct/planning/ideas.md
|
|
69
|
-
```
|
|
30
|
+
/p:build {1-5} | /p:build "{task}"
|
|
31
|
+
```
|
|
70
32
|
|
|
71
|
-
## Tips
|
|
72
|
-
- Keep queue short (5-10 items)
|
|
73
|
-
- Most important tasks first
|
|
74
|
-
- Review and reprioritize regularly
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
allowed-tools: [Read, Write
|
|
2
|
+
allowed-tools: [Read, Write]
|
|
3
3
|
description: "Manage current focus task"
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -7,29 +7,25 @@ description: "Manage current focus task"
|
|
|
7
7
|
|
|
8
8
|
## Usage
|
|
9
9
|
```
|
|
10
|
-
/p:now # Show
|
|
11
|
-
/p:now [task] # Set
|
|
10
|
+
/p:now # Show
|
|
11
|
+
/p:now [task] # Set
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
##
|
|
14
|
+
## Flow
|
|
15
15
|
|
|
16
|
-
**Show**: Read
|
|
16
|
+
**Show**: Read `core/now.md` → display task + elapsed
|
|
17
17
|
|
|
18
18
|
**Set**:
|
|
19
|
-
1.
|
|
20
|
-
2. Update `core/context.md`, `progress/metrics.md`
|
|
21
|
-
3. Log
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
• Or type: /p:done
|
|
33
|
-
|
|
34
|
-
Need help? Say "I'm stuck" or use /p:stuck
|
|
35
|
-
```
|
|
19
|
+
1. Write: `core/now.md` with task + timestamp
|
|
20
|
+
2. Update: `core/context.md`, `progress/metrics.md`
|
|
21
|
+
3. Log: `memory/context.jsonl`
|
|
22
|
+
|
|
23
|
+
## Response
|
|
24
|
+
```
|
|
25
|
+
🎯 {task}
|
|
26
|
+
Started: {time}
|
|
27
|
+
|
|
28
|
+
Done? → /p:done
|
|
29
|
+
Stuck? → /p:stuck
|
|
30
|
+
```
|
|
31
|
+
|
|
@@ -1,92 +1,37 @@
|
|
|
1
1
|
---
|
|
2
|
-
allowed-tools: [Read
|
|
3
|
-
description: "
|
|
2
|
+
allowed-tools: [Read]
|
|
3
|
+
description: "Progress metrics for period"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
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:progress - Progress Metrics
|
|
15
|
-
|
|
16
|
-
## Purpose
|
|
17
|
-
Display detailed progress metrics and trends for a specified time period.
|
|
6
|
+
# /p:progress
|
|
18
7
|
|
|
19
8
|
## Usage
|
|
20
9
|
```
|
|
21
|
-
/p:progress [day|week|month]
|
|
10
|
+
/p:progress [day|week|month] # Default: week
|
|
22
11
|
```
|
|
23
12
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
3. Calculate velocity and trends across layers
|
|
30
|
-
4. Cross-reference with planning and analysis layers
|
|
31
|
-
5. Display comprehensive progress indicators
|
|
32
|
-
|
|
33
|
-
## Implementation
|
|
34
|
-
|
|
35
|
-
1. **Parse timeframe**:
|
|
36
|
-
- day: last 24 hours
|
|
37
|
-
- week: current ISO week
|
|
38
|
-
- month: current calendar month
|
|
13
|
+
## Flow
|
|
14
|
+
1. Parse: timeframe (day/week/month)
|
|
15
|
+
2. Read: `progress/shipped.md` + `progress/metrics.md`
|
|
16
|
+
3. Calculate: velocity, trends, quality
|
|
17
|
+
4. Display: detailed metrics
|
|
39
18
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
- **Memory Layer**: Decision impact, learning velocity
|
|
45
|
-
|
|
46
|
-
3. **Enhanced response format**:
|
|
47
|
-
```
|
|
48
|
-
📈 PROGRESS - This Week
|
|
49
|
-
━━━━━━━━━━━━━━━━━━━━━━━
|
|
50
|
-
|
|
51
|
-
🚀 SHIPPED FEATURES
|
|
52
|
-
Count: 7 features (↗ +40% vs last week)
|
|
53
|
-
Velocity: 1.4 features/day
|
|
54
|
-
Quality: 95% passed validation
|
|
55
|
-
|
|
56
|
-
⚡ CORE PRODUCTIVITY
|
|
57
|
-
Tasks completed: 12 (avg 1.7/day)
|
|
58
|
-
Focus time: 28h (70% efficiency)
|
|
59
|
-
Context switches: 3 (↘ -50%)
|
|
60
|
-
|
|
61
|
-
💡 PLANNING EXECUTION
|
|
62
|
-
Roadmap progress: 23% complete
|
|
63
|
-
Ideas converted: 4/8 (50% rate)
|
|
64
|
-
Strategic alignment: High
|
|
19
|
+
## Response
|
|
20
|
+
```
|
|
21
|
+
📈 PROGRESS - This {period}
|
|
22
|
+
━━━━━━━━━━━━━━━━━━━━━
|
|
65
23
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
Knowledge growth: +15% complexity
|
|
24
|
+
🚀 SHIPPED: {N} features
|
|
25
|
+
⚡ VELOCITY: {X.X} features/day
|
|
26
|
+
📊 TREND: {↗ +X%}
|
|
70
27
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
• ✅ API optimization (2d ago)
|
|
28
|
+
Recent ships:
|
|
29
|
+
• ✅ {feature} ({time_ago})
|
|
30
|
+
• ✅ {feature} ({time_ago})
|
|
75
31
|
|
|
76
|
-
|
|
77
|
-
|
|
32
|
+
🏆 Best day: {day} ({N} features)
|
|
33
|
+
🔥 Streak: {N} days
|
|
78
34
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
- Shipped: .prjct/progress/shipped.md
|
|
82
|
-
```
|
|
35
|
+
/p:ship | /p:status
|
|
36
|
+
```
|
|
83
37
|
|
|
84
|
-
4. **Visual indicators**:
|
|
85
|
-
- 📈 Improving
|
|
86
|
-
- ➡️ Steady
|
|
87
|
-
- 📉 Declining
|
|
88
|
-
|
|
89
|
-
5. **Motivational insights**:
|
|
90
|
-
- "You're 40% more productive than last week!"
|
|
91
|
-
- "On track to ship 10 features this week!"
|
|
92
|
-
- "Your best week yet!"
|