prjct-cli 0.6.0 → 0.7.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 +67 -6
- package/CLAUDE.md +442 -36
- package/README.md +47 -54
- package/bin/prjct +170 -240
- package/core/agentic/command-executor.js +113 -0
- package/core/agentic/context-builder.js +85 -0
- package/core/agentic/prompt-builder.js +86 -0
- package/core/agentic/template-loader.js +104 -0
- package/core/agentic/tool-registry.js +117 -0
- package/core/command-registry.js +106 -62
- package/core/commands.js +2030 -2211
- package/core/domain/agent-generator.js +118 -0
- package/core/domain/analyzer.js +211 -0
- package/core/domain/architect-session.js +300 -0
- package/core/{agents → infrastructure/agents}/claude-agent.js +16 -13
- package/core/{author-detector.js → infrastructure/author-detector.js} +3 -1
- package/core/{capability-installer.js → infrastructure/capability-installer.js} +3 -6
- package/core/{command-installer.js → infrastructure/command-installer.js} +4 -2
- package/core/{config-manager.js → infrastructure/config-manager.js} +4 -4
- package/core/{editors-config.js → infrastructure/editors-config.js} +2 -10
- package/core/{migrator.js → infrastructure/migrator.js} +34 -19
- package/core/{path-manager.js → infrastructure/path-manager.js} +20 -44
- package/core/{session-manager.js → infrastructure/session-manager.js} +45 -105
- package/core/{update-checker.js → infrastructure/update-checker.js} +67 -67
- package/core/{animations-simple.js → utils/animations.js} +3 -23
- package/core/utils/date-helper.js +238 -0
- package/core/utils/file-helper.js +327 -0
- package/core/utils/jsonl-helper.js +206 -0
- package/core/{project-capabilities.js → utils/project-capabilities.js} +21 -22
- package/core/utils/session-helper.js +277 -0
- package/core/{version.js → utils/version.js} +1 -1
- package/package.json +4 -12
- package/templates/agents/AGENTS.md +101 -27
- package/templates/analysis/analyze.md +84 -0
- package/templates/commands/analyze.md +9 -2
- package/templates/commands/bug.md +79 -0
- package/templates/commands/build.md +5 -2
- package/templates/commands/cleanup.md +5 -2
- package/templates/commands/design.md +5 -2
- package/templates/commands/done.md +4 -2
- package/templates/commands/feature.md +113 -0
- package/templates/commands/fix.md +41 -10
- package/templates/commands/git.md +7 -2
- package/templates/commands/help.md +2 -2
- package/templates/commands/idea.md +14 -5
- package/templates/commands/init.md +62 -7
- package/templates/commands/next.md +4 -2
- package/templates/commands/now.md +4 -2
- package/templates/commands/progress.md +27 -5
- package/templates/commands/recap.md +39 -10
- package/templates/commands/roadmap.md +19 -5
- package/templates/commands/ship.md +118 -16
- package/templates/commands/status.md +4 -2
- package/templates/commands/sync.md +19 -15
- package/templates/commands/task.md +4 -2
- package/templates/commands/test.md +5 -2
- package/templates/commands/workflow.md +4 -2
- package/core/agent-generator.js +0 -525
- package/core/analyzer.js +0 -600
- package/core/animations.js +0 -277
- package/core/ascii-graphics.js +0 -433
- package/core/git-integration.js +0 -401
- package/core/task-schema.js +0 -342
- package/core/workflow-engine.js +0 -213
- package/core/workflow-prompts.js +0 -192
- package/core/workflow-rules.js +0 -147
- package/scripts/post-install.js +0 -121
- package/scripts/preuninstall.js +0 -94
- package/scripts/verify-installation.sh +0 -158
- package/templates/agents/be.template.md +0 -27
- package/templates/agents/coordinator.template.md +0 -34
- package/templates/agents/data.template.md +0 -27
- package/templates/agents/devops.template.md +0 -27
- package/templates/agents/fe.template.md +0 -27
- package/templates/agents/mobile.template.md +0 -27
- package/templates/agents/qa.template.md +0 -27
- package/templates/agents/scribe.template.md +0 -29
- package/templates/agents/security.template.md +0 -27
- package/templates/agents/ux.template.md +0 -27
- package/templates/commands/context.md +0 -36
- package/templates/commands/stuck.md +0 -36
- package/templates/examples/natural-language-examples.md +0 -532
- /package/core/{agent-detector.js → infrastructure/agent-detector.js} +0 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Read, Write]
|
|
3
|
+
description: 'Report and track bugs with auto-prioritization'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /p:bug
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
/p:bug "<description>"
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## What It Does
|
|
15
|
+
|
|
16
|
+
1. **Severity detection**: Analyzes bug description for severity indicators
|
|
17
|
+
2. **Priority placement**: Adds to `core/next.md` based on severity
|
|
18
|
+
3. **Memory tracking**: Logs bug report to `memory/context.jsonl`
|
|
19
|
+
4. **Quick resolution**: Suggests immediate actions
|
|
20
|
+
|
|
21
|
+
## Severity Detection
|
|
22
|
+
|
|
23
|
+
Auto-detects severity from keywords:
|
|
24
|
+
|
|
25
|
+
- **Critical**: crash, down, broken, not working, production, urgent
|
|
26
|
+
- **High**: error, fail, issue, problem, major
|
|
27
|
+
- **Medium**: bug, incorrect, wrong, should
|
|
28
|
+
- **Low**: minor, small, cosmetic, typo
|
|
29
|
+
|
|
30
|
+
## Flow
|
|
31
|
+
|
|
32
|
+
1. Detect severity from description
|
|
33
|
+
2. Read `core/next.md`
|
|
34
|
+
3. Format bug entry: `🐛 [SEVERITY] description`
|
|
35
|
+
4. Insert at top if critical/high, bottom if medium/low
|
|
36
|
+
5. Write to `core/next.md`
|
|
37
|
+
6. Log to `memory/context.jsonl`
|
|
38
|
+
|
|
39
|
+
## Response Format
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
🐛 Bug reported: {severity}
|
|
43
|
+
|
|
44
|
+
{description}
|
|
45
|
+
|
|
46
|
+
Priority: {critical/high/medium/low}
|
|
47
|
+
Added to: core/next.md (position {top/bottom})
|
|
48
|
+
|
|
49
|
+
Quick actions:
|
|
50
|
+
• "start fixing" → /p:now "{description}"
|
|
51
|
+
• "show queue" → /p:next
|
|
52
|
+
|
|
53
|
+
/p:now | /p:next
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Example
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
User: p. bug "login button crashes on mobile"
|
|
60
|
+
|
|
61
|
+
Claude detects:
|
|
62
|
+
- Keywords: "crashes" → CRITICAL severity
|
|
63
|
+
- Action: Add to top of next.md
|
|
64
|
+
- Format: 🐛 [CRITICAL] login button crashes on mobile
|
|
65
|
+
|
|
66
|
+
Response:
|
|
67
|
+
🐛 Bug reported: CRITICAL
|
|
68
|
+
|
|
69
|
+
login button crashes on mobile
|
|
70
|
+
|
|
71
|
+
Priority: critical
|
|
72
|
+
Added to: core/next.md (top priority)
|
|
73
|
+
|
|
74
|
+
Quick actions:
|
|
75
|
+
• "start fixing" → /p:now "login button crashes on mobile"
|
|
76
|
+
• "show queue" → /p:next
|
|
77
|
+
|
|
78
|
+
/p:now | /p:next
|
|
79
|
+
```
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
allowed-tools: [Read, Write]
|
|
3
|
-
description:
|
|
3
|
+
description: 'Start task with agent assignment'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# /p:build
|
|
7
7
|
|
|
8
8
|
## Validation
|
|
9
|
+
|
|
9
10
|
- Blocks if: `core/now.md` has active task
|
|
10
11
|
- Error: "Complete current task first. Use /p:done"
|
|
11
12
|
|
|
12
13
|
## Flow
|
|
14
|
+
|
|
13
15
|
1. Parse: task desc OR queue # (1-5)
|
|
14
16
|
2. Detect: `TaskSchema.detectAgent(task)` + complexity
|
|
15
17
|
3. Get: GitHub dev from `git config user.name` + remote
|
|
@@ -17,6 +19,7 @@ description: "Start task with agent assignment"
|
|
|
17
19
|
5. Write: `core/now.md` with frontmatter
|
|
18
20
|
|
|
19
21
|
## Frontmatter
|
|
22
|
+
|
|
20
23
|
```yaml
|
|
21
24
|
---
|
|
22
25
|
id: task-{timestamp}
|
|
@@ -30,6 +33,7 @@ started: {iso_timestamp}
|
|
|
30
33
|
```
|
|
31
34
|
|
|
32
35
|
## Response
|
|
36
|
+
|
|
33
37
|
```
|
|
34
38
|
🎯 {task}
|
|
35
39
|
{agent_icon} {agent_name}
|
|
@@ -38,4 +42,3 @@ Complexity: {level}
|
|
|
38
42
|
|
|
39
43
|
/p:done when finished
|
|
40
44
|
```
|
|
41
|
-
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
allowed-tools: [Read, Edit, Bash]
|
|
3
|
-
description:
|
|
3
|
+
description: 'Code cleanup and optimization'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# /p:cleanup
|
|
7
7
|
|
|
8
8
|
## Usage
|
|
9
|
+
|
|
9
10
|
```
|
|
10
11
|
/p:cleanup [--type code|imports|files|deps|all] [--dry-run]
|
|
11
12
|
```
|
|
12
13
|
|
|
13
14
|
## Flow
|
|
15
|
+
|
|
14
16
|
1. Parse: type + mode
|
|
15
17
|
2. Backup: create if needed
|
|
16
18
|
3. Execute: cleanup by type
|
|
@@ -18,6 +20,7 @@ description: "Code cleanup and optimization"
|
|
|
18
20
|
5. Log: `memory/cleanup-log.jsonl`
|
|
19
21
|
|
|
20
22
|
## Types
|
|
23
|
+
|
|
21
24
|
- **code**: Remove console.logs, commented code, dead code
|
|
22
25
|
- **imports**: Remove unused, organize imports
|
|
23
26
|
- **files**: Remove temp files, empty files
|
|
@@ -25,6 +28,7 @@ description: "Code cleanup and optimization"
|
|
|
25
28
|
- **all**: All cleanup types
|
|
26
29
|
|
|
27
30
|
## Response
|
|
31
|
+
|
|
28
32
|
```
|
|
29
33
|
🧹 Cleanup complete!
|
|
30
34
|
|
|
@@ -36,4 +40,3 @@ description: "Code cleanup and optimization"
|
|
|
36
40
|
|
|
37
41
|
/p:test | /p:ship
|
|
38
42
|
```
|
|
39
|
-
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
---
|
|
2
2
|
allowed-tools: [Read, Write]
|
|
3
|
-
description:
|
|
3
|
+
description: 'Design architecture and APIs'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# /p:design
|
|
7
7
|
|
|
8
8
|
## Usage
|
|
9
|
+
|
|
9
10
|
```
|
|
10
11
|
/p:design [target] [--type architecture|api|component|database|flow]
|
|
11
12
|
```
|
|
12
13
|
|
|
13
14
|
## Flow
|
|
15
|
+
|
|
14
16
|
1. Parse: target + type
|
|
15
17
|
2. Generate: ASCII diagrams
|
|
16
18
|
3. Create: specifications
|
|
17
19
|
4. Save: `designs/{target}-{type}.md`
|
|
18
20
|
|
|
19
21
|
## Types
|
|
22
|
+
|
|
20
23
|
- **architecture**: System design, components, data flow
|
|
21
24
|
- **api**: Endpoint specs, schemas, auth
|
|
22
25
|
- **component**: Interfaces, props, state
|
|
@@ -24,6 +27,7 @@ description: "Design architecture and APIs"
|
|
|
24
27
|
- **flow**: User journeys, workflows
|
|
25
28
|
|
|
26
29
|
## Response
|
|
30
|
+
|
|
27
31
|
```
|
|
28
32
|
🎨 Design complete!
|
|
29
33
|
|
|
@@ -32,4 +36,3 @@ description: "Design architecture and APIs"
|
|
|
32
36
|
|
|
33
37
|
/p:now "Implement {target}"
|
|
34
38
|
```
|
|
35
|
-
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
---
|
|
2
2
|
allowed-tools: [Read, Write]
|
|
3
|
-
description:
|
|
3
|
+
description: 'Complete task, clear focus'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# /p:done
|
|
7
7
|
|
|
8
8
|
## Validation
|
|
9
|
+
|
|
9
10
|
- Requires: `.prjct/prjct.config.json` exists
|
|
10
11
|
- Requires: `core/now.md` has content
|
|
11
12
|
- Else: "Not working on anything. Use /p:now or /p:next"
|
|
12
13
|
|
|
13
14
|
## Flow
|
|
15
|
+
|
|
14
16
|
1. Read: `core/now.md` → calculate duration
|
|
15
17
|
2. Clear: `core/now.md`
|
|
16
18
|
3. Update: `progress/metrics.md`, `core/context.md`
|
|
17
19
|
4. Log: `memory/context.jsonl`
|
|
18
20
|
|
|
19
21
|
## Response
|
|
22
|
+
|
|
20
23
|
```
|
|
21
24
|
✅ {task} ({duration})
|
|
22
25
|
|
|
@@ -25,4 +28,3 @@ Next?
|
|
|
25
28
|
• "ship {feature}" → celebrate
|
|
26
29
|
• /p:now | /p:ship
|
|
27
30
|
```
|
|
28
|
-
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: [Read, Write, Bash]
|
|
3
|
+
description: 'Value analysis + roadmap + task breakdown + auto-start'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /p:feature
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
/p:feature "<description>"
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## What It Does
|
|
15
|
+
|
|
16
|
+
1. **Value analysis**: Impact/effort/timing analysis
|
|
17
|
+
2. **Roadmap**: Positioning in project roadmap
|
|
18
|
+
3. **Task breakdown**: Smart breakdown into logical tasks
|
|
19
|
+
4. **Auto-start**: First task starts automatically
|
|
20
|
+
|
|
21
|
+
## Flow
|
|
22
|
+
|
|
23
|
+
1. Analyze value (impact/effort/timing)
|
|
24
|
+
2. Position in roadmap
|
|
25
|
+
3. Break down into logical tasks (as many as needed)
|
|
26
|
+
4. **Write to session**: Append to `planning/sessions/{YYYY-MM}/{YYYY-MM-DD}.jsonl`
|
|
27
|
+
5. **Update index**: Add to `planning/roadmap.md` (lightweight, last 30 days only)
|
|
28
|
+
6. **Queue tasks**: Write to `core/next.md`
|
|
29
|
+
7. Auto-start first task
|
|
30
|
+
|
|
31
|
+
## Session Log Format
|
|
32
|
+
|
|
33
|
+
Append to `planning/sessions/{YYYY-MM}/{YYYY-MM-DD}.jsonl`:
|
|
34
|
+
|
|
35
|
+
```jsonl
|
|
36
|
+
{"ts":"2025-10-04T14:30:00Z","type":"feature_add","name":"{feature}","tasks":{N},"impact":"{high/med/low}","effort":"{Xh}","status":"queued"}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Index Update
|
|
40
|
+
|
|
41
|
+
Append to `planning/roadmap.md` (keep only last 30 days):
|
|
42
|
+
|
|
43
|
+
```markdown
|
|
44
|
+
## Queued
|
|
45
|
+
- [ ] {feature_name} ({N} tasks, {Xh} estimated) - Added 2025-10-04
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
If roadmap.md > 30 days old entries, archive them to `planning/archive/roadmap-{YYYY-MM}.md`
|
|
49
|
+
|
|
50
|
+
## Value Analysis
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
Feature: {description}
|
|
54
|
+
|
|
55
|
+
Value Analysis:
|
|
56
|
+
• Impact: {high/medium/low}
|
|
57
|
+
• Effort: {hours estimation}
|
|
58
|
+
• Timing: {now/later/blocked_by}
|
|
59
|
+
• Recommendation: {do_now/defer/needs_X_first}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Task Breakdown
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
Roadmap: {feature_name}
|
|
66
|
+
|
|
67
|
+
Tasks:
|
|
68
|
+
1. [ ] {task_1}
|
|
69
|
+
2. [ ] {task_2}
|
|
70
|
+
3. [ ] {task_3}
|
|
71
|
+
... (as many as needed)
|
|
72
|
+
|
|
73
|
+
Estimated: {total_hours}h
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Response
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
✅ Feature roadmap created!
|
|
80
|
+
|
|
81
|
+
{feature_name}
|
|
82
|
+
📊 Value: {impact} | Effort: {hours}h
|
|
83
|
+
⏰ Recommendation: {timing_advice}
|
|
84
|
+
|
|
85
|
+
Tasks:
|
|
86
|
+
1. {task_1}
|
|
87
|
+
2. {task_2}
|
|
88
|
+
...
|
|
89
|
+
|
|
90
|
+
¿Empezamos con tarea 1?
|
|
91
|
+
|
|
92
|
+
/p:done (when task complete) | /p:ship (when feature complete)
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Example
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
User: p. feature "agregar unit testing"
|
|
99
|
+
|
|
100
|
+
Claude analyzes:
|
|
101
|
+
- Impact: HIGH (quality improvement)
|
|
102
|
+
- Effort: 8h
|
|
103
|
+
- Timing: NOW (before shipping more features)
|
|
104
|
+
|
|
105
|
+
Tasks created:
|
|
106
|
+
1. Setup Jest/Vitest configuration
|
|
107
|
+
2. Write tests for core utilities
|
|
108
|
+
3. Write tests for components
|
|
109
|
+
4. Add CI/CD test runner
|
|
110
|
+
5. Update docs with testing guide
|
|
111
|
+
|
|
112
|
+
"¿Empezamos con tarea 1: Setup Jest/Vitest?"
|
|
113
|
+
```
|
|
@@ -1,48 +1,79 @@
|
|
|
1
1
|
---
|
|
2
2
|
allowed-tools: [Read, Bash, Edit]
|
|
3
|
-
description:
|
|
3
|
+
description: 'Troubleshooting, guidance, and fixes'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# /p:fix
|
|
7
7
|
|
|
8
8
|
## Usage
|
|
9
|
+
|
|
9
10
|
```
|
|
10
|
-
/p:fix # Diagnose current issue
|
|
11
|
+
/p:fix # Diagnose current issue or get unstuck
|
|
11
12
|
/p:fix [error] # Fix specific error
|
|
13
|
+
/p:stuck [issue] # Alias for fix (guidance mode)
|
|
12
14
|
```
|
|
13
15
|
|
|
14
16
|
## Flow
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
|
|
18
|
+
1. Read: `core/now.md` + `analysis/` → get context
|
|
19
|
+
2. Parse: error message OR issue description
|
|
20
|
+
3. Detect: issue type (error/bug/design/perf/feature/blocked)
|
|
21
|
+
4. Apply: automatic fix OR provide guidance
|
|
22
|
+
5. Verify: test fix works (if auto-fix)
|
|
20
23
|
6. Log: `memory/context.jsonl`
|
|
21
24
|
|
|
22
|
-
##
|
|
25
|
+
## Auto-Fix (Technical Errors)
|
|
26
|
+
|
|
23
27
|
- **Dependencies**: `npm install` missing packages
|
|
24
28
|
- **Config**: Fix malformed JSON/YAML
|
|
25
29
|
- **Syntax**: ESLint/Prettier auto-fix
|
|
26
30
|
- **Tests**: Update snapshots, fix imports
|
|
27
31
|
- **Git**: Resolve merge conflicts
|
|
28
32
|
|
|
33
|
+
## Guidance (When Stuck)
|
|
34
|
+
|
|
35
|
+
- **Bug**: 🔍 Check logs → Isolate → Search error → Test fix
|
|
36
|
+
- **Design**: 🎨 Define requirements → Start simple → Ship MVP → Iterate
|
|
37
|
+
- **Performance**: ⚡ Profile first → Fix slowest → Cache ops → Measure
|
|
38
|
+
- **Blocked**: 💡 Break into tasks → Start smallest → Ship incrementally
|
|
39
|
+
- **Default**: Break down → Prioritize → Start → Ship
|
|
40
|
+
|
|
29
41
|
## Response (auto-fixed)
|
|
42
|
+
|
|
30
43
|
```
|
|
31
44
|
✅ Fixed: {error_type}
|
|
32
45
|
|
|
33
46
|
{fix_details}
|
|
34
47
|
|
|
35
48
|
Verify: {command_to_test}
|
|
49
|
+
|
|
50
|
+
/p:test | /p:done
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Response (guidance)
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
💡 {type_guidance}
|
|
57
|
+
|
|
58
|
+
Let's break it down:
|
|
59
|
+
1. {subtask} (~{time})
|
|
60
|
+
2. {subtask} (~{time})
|
|
61
|
+
3. {subtask} (~{time})
|
|
62
|
+
|
|
63
|
+
Start with: /p:now "{first_subtask}"
|
|
64
|
+
|
|
65
|
+
/p:now | /p:task
|
|
36
66
|
```
|
|
37
67
|
|
|
38
|
-
## Response (manual)
|
|
68
|
+
## Response (manual diagnosis)
|
|
69
|
+
|
|
39
70
|
```
|
|
40
71
|
🔍 Diagnosed: {issue}
|
|
41
72
|
|
|
42
73
|
Suggested fixes:
|
|
43
74
|
1. {fix_option_1}
|
|
44
75
|
2. {fix_option_2}
|
|
76
|
+
3. {fix_option_3}
|
|
45
77
|
|
|
46
78
|
/p:done after fixing
|
|
47
79
|
```
|
|
48
|
-
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
allowed-tools: [Bash, Read, Write]
|
|
3
|
-
description:
|
|
3
|
+
description: 'Smart git operations with context'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# /p:git
|
|
7
7
|
|
|
8
8
|
## Usage
|
|
9
|
+
|
|
9
10
|
```
|
|
10
11
|
/p:git commit # Smart commit with metadata
|
|
11
12
|
/p:git push # Push with verification
|
|
@@ -14,6 +15,7 @@ description: "Smart git operations with context"
|
|
|
14
15
|
```
|
|
15
16
|
|
|
16
17
|
## Flow: commit
|
|
18
|
+
|
|
17
19
|
1. Read: `core/now.md` → get task context
|
|
18
20
|
2. Git: `add .` → stage changes
|
|
19
21
|
3. Create: commit message with prjct metadata
|
|
@@ -21,16 +23,19 @@ description: "Smart git operations with context"
|
|
|
21
23
|
5. Log: `memory/context.jsonl`
|
|
22
24
|
|
|
23
25
|
## Flow: push
|
|
26
|
+
|
|
24
27
|
1. Git: `status` → verify clean
|
|
25
28
|
2. Git: `push` with branch tracking
|
|
26
29
|
3. Handle: errors (upstream, conflicts)
|
|
27
30
|
|
|
28
31
|
## Flow: sync
|
|
32
|
+
|
|
29
33
|
1. Git: `pull --rebase`
|
|
30
34
|
2. Resolve: conflicts if any
|
|
31
35
|
3. Git: `push`
|
|
32
36
|
|
|
33
37
|
## Commit Message Format
|
|
38
|
+
|
|
34
39
|
```
|
|
35
40
|
{type}: {description}
|
|
36
41
|
|
|
@@ -42,6 +47,7 @@ Co-Authored-By: @{github_dev}
|
|
|
42
47
|
```
|
|
43
48
|
|
|
44
49
|
## Response
|
|
50
|
+
|
|
45
51
|
```
|
|
46
52
|
✅ Git {operation}
|
|
47
53
|
|
|
@@ -49,4 +55,3 @@ Co-Authored-By: @{github_dev}
|
|
|
49
55
|
|
|
50
56
|
/p:ship | /p:status
|
|
51
57
|
```
|
|
52
|
-
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
allowed-tools: []
|
|
3
|
-
description:
|
|
3
|
+
description: 'Interactive guide'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# /p:help
|
|
7
7
|
|
|
8
8
|
## Response
|
|
9
|
+
|
|
9
10
|
```
|
|
10
11
|
🎯 What do you want to do?
|
|
11
12
|
|
|
@@ -35,4 +36,3 @@ description: "Interactive guide"
|
|
|
35
36
|
|
|
36
37
|
💬 Talk naturally - I understand both!
|
|
37
38
|
```
|
|
38
|
-
|
|
@@ -1,25 +1,34 @@
|
|
|
1
1
|
---
|
|
2
2
|
allowed-tools: [Write]
|
|
3
|
-
description:
|
|
3
|
+
description: 'Quick idea capture'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# /p:idea
|
|
7
7
|
|
|
8
8
|
## Usage
|
|
9
|
+
|
|
9
10
|
```
|
|
10
11
|
/p:idea <text>
|
|
11
12
|
```
|
|
12
13
|
|
|
13
14
|
## Flow
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
|
|
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)
|
|
18
|
+
3. If actionable → add to `core/next.md`
|
|
19
|
+
4. **Archive old**: If ideas.md > 30 days, move to `planning/archive/ideas-{YYYY-MM}.md`
|
|
20
|
+
|
|
21
|
+
## Session Log Format
|
|
22
|
+
|
|
23
|
+
```jsonl
|
|
24
|
+
{"ts":"2025-10-04T16:00:00Z","type":"idea_add","idea":"{text}","actionable":{true/false},"priority":"{high/med/low}"}
|
|
25
|
+
```
|
|
17
26
|
|
|
18
27
|
## Response
|
|
28
|
+
|
|
19
29
|
```
|
|
20
30
|
💡 {idea}
|
|
21
31
|
{✅ Added to queue | 📝 Saved to backlog}
|
|
22
32
|
|
|
23
33
|
/p:now "{idea}" | /p:next
|
|
24
34
|
```
|
|
25
|
-
|
|
@@ -1,28 +1,52 @@
|
|
|
1
1
|
---
|
|
2
2
|
allowed-tools: [Read, Write, Bash]
|
|
3
|
-
description:
|
|
3
|
+
description: 'Initialize prjct project (with architect mode for blank projects)'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# /p:init
|
|
7
7
|
|
|
8
|
-
##
|
|
8
|
+
## Usage
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
/p:init # Existing project
|
|
12
|
+
/p:init "[idea]" # New blank project (architect mode)
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Flow: Existing Project
|
|
16
|
+
|
|
9
17
|
1. Generate: project ID from path hash
|
|
10
|
-
2. Create: `~/.prjct-cli/projects/{id}/` structure
|
|
18
|
+
2. Create: `~/.prjct-cli/projects/{id}/` structure (including `agents/`)
|
|
11
19
|
3. Write: `.prjct/prjct.config.json`
|
|
12
|
-
4.
|
|
13
|
-
5.
|
|
20
|
+
4. Run: `/p:analyze` to understand stack
|
|
21
|
+
5. Generate: agents based on stack
|
|
22
|
+
6. Log: `memory/context.jsonl`
|
|
23
|
+
|
|
24
|
+
## Flow: Blank Project (Architect Mode)
|
|
25
|
+
|
|
26
|
+
1. Generate: project ID
|
|
27
|
+
2. Activate: ARCHITECT role
|
|
28
|
+
3. Analyze: idea/requirements
|
|
29
|
+
4. Recommend: tech stack options (Next.js, React, Vue, etc.)
|
|
30
|
+
5. User confirms: choice
|
|
31
|
+
6. Create: directory structure + base files
|
|
32
|
+
7. Generate: initial roadmap
|
|
33
|
+
8. Generate: agents
|
|
34
|
+
9. Ask: "¿Empezamos con la primera feature?"
|
|
14
35
|
|
|
15
36
|
## Directory Structure
|
|
37
|
+
|
|
16
38
|
```
|
|
17
39
|
~/.prjct-cli/projects/{id}/
|
|
18
40
|
├── core/ # now.md, next.md, context.md
|
|
19
41
|
├── progress/ # shipped.md, metrics.md
|
|
20
42
|
├── planning/ # ideas.md, roadmap.md
|
|
21
43
|
├── analysis/ # repo-summary.md
|
|
44
|
+
├── agents/ # AI agent definitions
|
|
22
45
|
└── memory/ # context.jsonl
|
|
23
46
|
```
|
|
24
47
|
|
|
25
48
|
## Config Format
|
|
49
|
+
|
|
26
50
|
```json
|
|
27
51
|
{
|
|
28
52
|
"version": "0.6.0",
|
|
@@ -36,13 +60,44 @@ description: "Initialize prjct project"
|
|
|
36
60
|
}
|
|
37
61
|
```
|
|
38
62
|
|
|
39
|
-
## Response
|
|
63
|
+
## Response: Existing Project
|
|
64
|
+
|
|
40
65
|
```
|
|
41
66
|
✅ prjct initialized!
|
|
42
67
|
|
|
43
68
|
📁 Data: ~/.prjct-cli/projects/{id}
|
|
44
69
|
📝 Config: .prjct/prjct.config.json
|
|
70
|
+
📊 Analysis: {stack_summary}
|
|
71
|
+
🤖 Agents: {N} agents generated
|
|
72
|
+
|
|
73
|
+
Listo para trabajar! ¿Qué feature agregamos?
|
|
45
74
|
|
|
46
|
-
/p:
|
|
75
|
+
/p:feature | /p:analyze
|
|
47
76
|
```
|
|
48
77
|
|
|
78
|
+
## Response: Blank Project
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
✅ prjct initialized!
|
|
82
|
+
|
|
83
|
+
📐 ARCHITECT MODE
|
|
84
|
+
|
|
85
|
+
Your idea: "{idea}"
|
|
86
|
+
|
|
87
|
+
Recommended stack:
|
|
88
|
+
Option 1: Next.js + TypeScript + Tailwind (⭐ Recommended)
|
|
89
|
+
Option 2: React + Vite + shadcn/ui
|
|
90
|
+
Option 3: Vue 3 + Nuxt
|
|
91
|
+
|
|
92
|
+
Which option? (or describe your preference)
|
|
93
|
+
|
|
94
|
+
[After user confirms:]
|
|
95
|
+
|
|
96
|
+
✅ Structure created!
|
|
97
|
+
📋 Initial roadmap: {N} features
|
|
98
|
+
🤖 Agents: generated
|
|
99
|
+
|
|
100
|
+
¿Empezamos con la primera feature?
|
|
101
|
+
|
|
102
|
+
/p:feature | /p:ship
|
|
103
|
+
```
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
allowed-tools: [Read]
|
|
3
|
-
description:
|
|
3
|
+
description: 'Show priority queue (top 5 non-blocking)'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# /p:next
|
|
7
7
|
|
|
8
8
|
## Flow
|
|
9
|
+
|
|
9
10
|
1. Check: `core/now.md` → if active task, show warning
|
|
10
11
|
2. Read: `core/next.md` → filter blocked tasks
|
|
11
12
|
3. Return: top 5 actionable
|
|
12
13
|
|
|
13
14
|
## Response (active task)
|
|
15
|
+
|
|
14
16
|
```
|
|
15
17
|
⚠️ Active: {current_task}
|
|
16
18
|
Started: {time_ago}
|
|
@@ -22,6 +24,7 @@ Complete first: /p:done
|
|
|
22
24
|
```
|
|
23
25
|
|
|
24
26
|
## Response (no active)
|
|
27
|
+
|
|
25
28
|
```
|
|
26
29
|
📋 Priority Queue
|
|
27
30
|
|
|
@@ -29,4 +32,3 @@ Complete first: /p:done
|
|
|
29
32
|
|
|
30
33
|
/p:build {1-5} | /p:build "{task}"
|
|
31
34
|
```
|
|
32
|
-
|