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,113 +1,35 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
description: Design
|
|
2
|
+
allowed-tools: [Read, Write]
|
|
3
|
+
description: "Design architecture and APIs"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# /p:design
|
|
7
|
-
|
|
8
|
-
Create technical designs with visual diagrams and implementation guides for system architecture, APIs, components, databases, and user flows.
|
|
6
|
+
# /p:design
|
|
9
7
|
|
|
10
8
|
## Usage
|
|
11
|
-
|
|
12
|
-
```
|
|
13
|
-
/p:design [target] [--type architecture|api|component|database|flow] [--format diagram|spec|code|all]
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Global Architecture
|
|
17
|
-
|
|
18
|
-
This command operates on global data stored in `~/.prjct-cli/projects/{project-id}/`.
|
|
19
|
-
|
|
20
|
-
### Steps
|
|
21
|
-
|
|
22
|
-
1. Parse design target and type (architecture, api, component, database, flow)
|
|
23
|
-
2. Generate appropriate ASCII diagrams and visual representations
|
|
24
|
-
3. Create technical specifications with technology stack and patterns
|
|
25
|
-
4. Generate implementation templates and interfaces
|
|
26
|
-
5. Save designs to `~/.prjct-cli/projects/{id}/designs/` directory
|
|
27
|
-
6. Display formatted design with overview, specs, and implementation guide
|
|
28
|
-
7. Link designs to tasks and track implementation progress
|
|
29
|
-
|
|
30
|
-
## Response Format
|
|
31
|
-
|
|
32
9
|
```
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
π Design: [Target Name]
|
|
36
|
-
βββββββββββββββββββββββββββββ
|
|
37
|
-
|
|
38
|
-
ποΈ Architecture Overview:
|
|
39
|
-
[ASCII diagram or description]
|
|
40
|
-
|
|
41
|
-
π Technical Specifications:
|
|
42
|
-
β’ Technology Stack: [stack details]
|
|
43
|
-
β’ Design Patterns: [patterns used]
|
|
44
|
-
β’ Key Components: [component list]
|
|
45
|
-
|
|
46
|
-
π¦ Implementation Guide:
|
|
47
|
-
1. Set up project structure
|
|
48
|
-
2. Implement core models
|
|
49
|
-
3. Build API endpoints
|
|
50
|
-
4. Create UI components
|
|
51
|
-
|
|
52
|
-
π Files Created:
|
|
53
|
-
β’ ~/.prjct-cli/projects/{id}/designs/[target]-architecture.md
|
|
54
|
-
|
|
55
|
-
βββββββββββββββββββββββββββββ
|
|
56
|
-
β
Design ready for implementation!
|
|
57
|
-
|
|
58
|
-
π‘ Next: /p:now "Implement [target]"
|
|
10
|
+
/p:design [target] [--type architecture|api|component|database|flow]
|
|
59
11
|
```
|
|
60
12
|
|
|
61
|
-
##
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
- Data flow and communication patterns
|
|
67
|
-
- Scalability considerations
|
|
68
|
-
|
|
69
|
-
### API
|
|
70
|
-
- Endpoint specifications
|
|
71
|
-
- Request/response schemas
|
|
72
|
-
- Authentication and authorization
|
|
73
|
-
- Rate limiting and caching
|
|
74
|
-
|
|
75
|
-
### Component
|
|
76
|
-
- Component interfaces
|
|
77
|
-
- Props and state management
|
|
78
|
-
- Lifecycle and hooks
|
|
79
|
-
- Styling and theming
|
|
80
|
-
|
|
81
|
-
### Database
|
|
82
|
-
- Schema design
|
|
83
|
-
- Entity relationships
|
|
84
|
-
- Indexing strategy
|
|
85
|
-
- Migration plans
|
|
13
|
+
## Flow
|
|
14
|
+
1. Parse: target + type
|
|
15
|
+
2. Generate: ASCII diagrams
|
|
16
|
+
3. Create: specifications
|
|
17
|
+
4. Save: `designs/{target}-{type}.md`
|
|
86
18
|
|
|
87
|
-
|
|
88
|
-
-
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
-
|
|
19
|
+
## Types
|
|
20
|
+
- **architecture**: System design, components, data flow
|
|
21
|
+
- **api**: Endpoint specs, schemas, auth
|
|
22
|
+
- **component**: Interfaces, props, state
|
|
23
|
+
- **database**: Schema, relationships, indexes
|
|
24
|
+
- **flow**: User journeys, workflows
|
|
92
25
|
|
|
93
|
-
##
|
|
94
|
-
|
|
95
|
-
Design system architecture:
|
|
96
|
-
```
|
|
97
|
-
/p:design authentication --type architecture
|
|
26
|
+
## Response
|
|
98
27
|
```
|
|
28
|
+
π¨ Design complete!
|
|
99
29
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
/p:design user-management --type api --format spec
|
|
103
|
-
```
|
|
30
|
+
π {target} - {type}
|
|
31
|
+
π Saved: designs/{target}-{type}.md
|
|
104
32
|
|
|
105
|
-
|
|
106
|
-
```
|
|
107
|
-
/p:design products --type database --format diagram
|
|
33
|
+
/p:now "Implement {target}"
|
|
108
34
|
```
|
|
109
35
|
|
|
110
|
-
Complete design with all formats:
|
|
111
|
-
```
|
|
112
|
-
/p:design payment-system --type architecture --format all
|
|
113
|
-
```
|
|
@@ -1,193 +1,28 @@
|
|
|
1
1
|
---
|
|
2
|
-
allowed-tools: [Read, Write
|
|
2
|
+
allowed-tools: [Read, Write]
|
|
3
3
|
description: "Complete task, clear focus"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# /p:done
|
|
7
7
|
|
|
8
|
-
##
|
|
8
|
+
## Validation
|
|
9
|
+
- Requires: `.prjct/prjct.config.json` exists
|
|
10
|
+
- Requires: `core/now.md` has content
|
|
11
|
+
- Else: "Not working on anything. Use /p:now or /p:next"
|
|
9
12
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
## Flow
|
|
14
|
+
1. Read: `core/now.md` β calculate duration
|
|
15
|
+
2. Clear: `core/now.md`
|
|
16
|
+
3. Update: `progress/metrics.md`, `core/context.md`
|
|
17
|
+
4. Log: `memory/context.jsonl`
|
|
13
18
|
|
|
14
|
-
|
|
19
|
+
## Response
|
|
15
20
|
```
|
|
16
|
-
|
|
21
|
+
β
{task} ({duration})
|
|
17
22
|
|
|
18
|
-
|
|
19
|
-
β’
|
|
20
|
-
β’
|
|
21
|
-
β’
|
|
22
|
-
|
|
23
|
-
Let's ship something!
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
**Validation happens automatically through CLAUDE.md instructions - Claude checks context before executing!**
|
|
27
|
-
|
|
28
|
-
## Usage
|
|
29
|
-
```
|
|
30
|
-
/p:done
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Execution
|
|
34
|
-
|
|
35
|
-
**Only runs if context validation passes β
**
|
|
36
|
-
|
|
37
|
-
1. Read task from `~/.prjct-cli/projects/{id}/core/now.md`, calculate duration
|
|
38
|
-
2. Clear `core/now.md`
|
|
39
|
-
3. **Trigger Scribe Agent** (Documentation):
|
|
40
|
-
- Get git changes since task started: `git diff --name-only`
|
|
41
|
-
- Invoke Scribe agent to document changes
|
|
42
|
-
- Show documentation draft to user
|
|
43
|
-
- **Request confirmation** before saving
|
|
44
|
-
- Save to `analysis/task-docs/[task-id].md` if confirmed
|
|
45
|
-
4. Update `progress/metrics.md`, `core/context.md`
|
|
46
|
-
5. Log to `memory/context.jsonl`:
|
|
47
|
-
```json
|
|
48
|
-
{"action":"done","task":"[task]","started":"[t1]","completed":"[t2]","duration":"[min]","documented":true,"layer":"core"}
|
|
49
|
-
```
|
|
50
|
-
6. Response:
|
|
51
|
-
```
|
|
52
|
-
β
[task description] ([duration])
|
|
53
|
-
|
|
54
|
-
What's next?
|
|
55
|
-
β’ "start [next task]" β Begin working
|
|
56
|
-
β’ "ship this feature" β Track & celebrate
|
|
57
|
-
β’ "add new idea" β Brainstorm
|
|
58
|
-
|
|
59
|
-
Or use: /p:now | /p:ship | /p:idea
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
Or if queue empty:
|
|
63
|
-
```
|
|
64
|
-
β
[task description] ([duration])
|
|
65
|
-
|
|
66
|
-
Queue is empty! What now?
|
|
67
|
-
β’ "add a task" β Plan next work
|
|
68
|
-
β’ "brainstorm ideas" β Creative mode
|
|
69
|
-
β’ "see my progress" β View achievements
|
|
70
|
-
|
|
71
|
-
Or: /p:idea | /p:next | /p:recap
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
## Scribe Agent Workflow
|
|
75
|
-
|
|
76
|
-
When a task is completed, the Scribe agent is automatically invoked to document changes:
|
|
77
|
-
|
|
78
|
-
### Step 1: Detect Changes
|
|
79
|
-
```javascript
|
|
80
|
-
const gitIntegration = require('../core/git-integration')
|
|
81
|
-
const taskStartTime = readTaskStartTime()
|
|
82
|
-
|
|
83
|
-
// Get files changed since task started
|
|
84
|
-
const changes = await gitIntegration.getChangesSince(taskStartTime)
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
### Step 2: Generate Documentation
|
|
88
|
-
Invoke Scribe agent with prompt:
|
|
89
|
-
```
|
|
90
|
-
Document the following task completion:
|
|
91
|
-
|
|
92
|
-
Task: "[task description]"
|
|
93
|
-
Duration: [duration]
|
|
94
|
-
Files changed:
|
|
95
|
-
${changes.files.join('\n')}
|
|
96
|
-
|
|
97
|
-
Generate documentation including:
|
|
98
|
-
1. Brief summary of what was implemented
|
|
99
|
-
2. Key technical decisions
|
|
100
|
-
3. Files affected and their purpose
|
|
101
|
-
4. Any breaking changes or important notes
|
|
102
|
-
|
|
103
|
-
Keep it concise (< 200 words).
|
|
23
|
+
Next?
|
|
24
|
+
β’ "start {task}" β work
|
|
25
|
+
β’ "ship {feature}" β celebrate
|
|
26
|
+
β’ /p:now | /p:ship
|
|
104
27
|
```
|
|
105
28
|
|
|
106
|
-
### Step 3: Show Draft & Request Confirmation
|
|
107
|
-
```
|
|
108
|
-
π Scribe Agent Documentation Draft
|
|
109
|
-
|
|
110
|
-
## Task: [task description]
|
|
111
|
-
|
|
112
|
-
**Implemented**: [date]
|
|
113
|
-
**Duration**: [duration]
|
|
114
|
-
|
|
115
|
-
**Summary**:
|
|
116
|
-
[AI-generated summary]
|
|
117
|
-
|
|
118
|
-
**Technical Details**:
|
|
119
|
-
- [Key decisions]
|
|
120
|
-
- [Files modified]
|
|
121
|
-
|
|
122
|
-
**Usage**:
|
|
123
|
-
[Examples if applicable]
|
|
124
|
-
|
|
125
|
-
βββββββββββββββββββββββββββββββββββββ
|
|
126
|
-
|
|
127
|
-
Save this documentation? (y/n): _
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
### Step 4: Save if Confirmed
|
|
131
|
-
```javascript
|
|
132
|
-
if (userConfirms) {
|
|
133
|
-
const docPath = `~/.prjct-cli/projects/{id}/analysis/task-docs/${taskId}.md`
|
|
134
|
-
await saveDocumentation(docPath, documentation)
|
|
135
|
-
console.log('β
Documentation saved!')
|
|
136
|
-
} else {
|
|
137
|
-
console.log('βΉοΈ Documentation discarded')
|
|
138
|
-
}
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
## Example with Scribe
|
|
142
|
-
|
|
143
|
-
```
|
|
144
|
-
/p:done
|
|
145
|
-
|
|
146
|
-
β
implement login authentication (2h 15m)
|
|
147
|
-
|
|
148
|
-
π Scribe Agent is documenting your changes...
|
|
149
|
-
|
|
150
|
-
βββββββββββββββββββββββββββββββββββββββββββββ
|
|
151
|
-
|
|
152
|
-
## Task: implement login authentication
|
|
153
|
-
|
|
154
|
-
**Implemented**: 2025-10-02
|
|
155
|
-
**Duration**: 2h 15m
|
|
156
|
-
|
|
157
|
-
**Summary**:
|
|
158
|
-
Implemented JWT-based authentication system with login and registration endpoints. Added middleware for protected routes and session management.
|
|
159
|
-
|
|
160
|
-
**Technical Details**:
|
|
161
|
-
- Added auth service with bcrypt password hashing
|
|
162
|
-
- Created login/register API endpoints in auth.controller.ts
|
|
163
|
-
- Implemented JWT middleware for route protection
|
|
164
|
-
- Added user session management with Redis
|
|
165
|
-
|
|
166
|
-
**Files Modified**:
|
|
167
|
-
- src/features/auth/auth.service.ts (new)
|
|
168
|
-
- src/features/auth/auth.controller.ts (new)
|
|
169
|
-
- src/middleware/jwt.middleware.ts (new)
|
|
170
|
-
- src/config/redis.config.ts (modified)
|
|
171
|
-
|
|
172
|
-
**Breaking Changes**: None
|
|
173
|
-
|
|
174
|
-
βββββββββββββββββββββββββββββββββββββββββββββ
|
|
175
|
-
|
|
176
|
-
Save this documentation? (y/n): y
|
|
177
|
-
|
|
178
|
-
β
Documentation saved to task-docs!
|
|
179
|
-
|
|
180
|
-
What's next?
|
|
181
|
-
β’ "start next task" β Begin working
|
|
182
|
-
β’ "ship authentication" β Track & celebrate
|
|
183
|
-
|
|
184
|
-
Or use: /p:now | /p:ship
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
## Notes
|
|
188
|
-
|
|
189
|
-
- Scribe agent uses git history to understand changes
|
|
190
|
-
- Documentation is saved per-task for reference
|
|
191
|
-
- User confirmation prevents unwanted docs
|
|
192
|
-
- Can skip documentation by saying "no"
|
|
193
|
-
- Documentation helps with onboarding and code reviews
|
|
@@ -1,87 +1,48 @@
|
|
|
1
1
|
---
|
|
2
|
-
allowed-tools: [Read,
|
|
3
|
-
description: "Quick troubleshooting and
|
|
2
|
+
allowed-tools: [Read, Bash, Edit]
|
|
3
|
+
description: "Quick troubleshooting and fixes"
|
|
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:fix - Quick Fix & Troubleshooting
|
|
15
|
-
|
|
16
|
-
## Purpose
|
|
17
|
-
Instantly diagnose and fix common issues. Get unstuck in seconds, not minutes.
|
|
6
|
+
# /p:fix
|
|
18
7
|
|
|
19
8
|
## Usage
|
|
20
9
|
```
|
|
21
|
-
/p:fix
|
|
10
|
+
/p:fix # Diagnose current issue
|
|
11
|
+
/p:fix [error] # Fix specific error
|
|
22
12
|
```
|
|
23
13
|
|
|
24
|
-
##
|
|
25
|
-
1.
|
|
26
|
-
2.
|
|
27
|
-
3.
|
|
28
|
-
4.
|
|
29
|
-
5.
|
|
14
|
+
## Flow
|
|
15
|
+
1. Read: `core/now.md` β get context
|
|
16
|
+
2. Parse: error message OR diagnose current state
|
|
17
|
+
3. Detect: common patterns (deps, config, syntax, tests)
|
|
18
|
+
4. Apply: automatic fix OR suggest solution
|
|
19
|
+
5. Verify: test fix works
|
|
20
|
+
6. Log: `memory/context.jsonl`
|
|
30
21
|
|
|
31
22
|
## Common Fixes
|
|
23
|
+
- **Dependencies**: `npm install` missing packages
|
|
24
|
+
- **Config**: Fix malformed JSON/YAML
|
|
25
|
+
- **Syntax**: ESLint/Prettier auto-fix
|
|
26
|
+
- **Tests**: Update snapshots, fix imports
|
|
27
|
+
- **Git**: Resolve merge conflicts
|
|
32
28
|
|
|
33
|
-
|
|
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
|
|
29
|
+
## Response (auto-fixed)
|
|
55
30
|
```
|
|
31
|
+
β
Fixed: {error_type}
|
|
56
32
|
|
|
57
|
-
|
|
58
|
-
```
|
|
59
|
-
π§ Fixed automatically!
|
|
33
|
+
{fix_details}
|
|
60
34
|
|
|
61
|
-
|
|
62
|
-
Solution: Added import from 'react'
|
|
63
|
-
File: components/UserForm.tsx:1
|
|
64
|
-
|
|
65
|
-
β
Error resolved - continue working!
|
|
35
|
+
Verify: {command_to_test}
|
|
66
36
|
```
|
|
67
37
|
|
|
68
|
-
|
|
38
|
+
## Response (manual)
|
|
69
39
|
```
|
|
70
|
-
π
|
|
71
|
-
|
|
72
|
-
π Location: services/auth.js:45
|
|
73
|
-
π Cause: user might be null
|
|
40
|
+
π Diagnosed: {issue}
|
|
74
41
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
42
|
+
Suggested fixes:
|
|
43
|
+
1. {fix_option_1}
|
|
44
|
+
2. {fix_option_2}
|
|
79
45
|
|
|
80
|
-
|
|
46
|
+
/p:done after fixing
|
|
81
47
|
```
|
|
82
48
|
|
|
83
|
-
## Smart Features
|
|
84
|
-
- Learns from previous fixes
|
|
85
|
-
- Suggests preventive measures
|
|
86
|
-
- Links to relevant documentation
|
|
87
|
-
- Tracks fix patterns in memory
|
|
@@ -1,79 +1,52 @@
|
|
|
1
1
|
---
|
|
2
|
-
allowed-tools: [Bash, Read,
|
|
3
|
-
description: "Smart git operations with
|
|
2
|
+
allowed-tools: [Bash, Read, Write]
|
|
3
|
+
description: "Smart git operations with context"
|
|
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:git - Smart Git Operations
|
|
15
|
-
|
|
16
|
-
## Purpose
|
|
17
|
-
Execute git operations with intelligent commit messages and automatic best practices. No thinking required.
|
|
6
|
+
# /p:git
|
|
18
7
|
|
|
19
8
|
## Usage
|
|
20
9
|
```
|
|
21
|
-
/p:git
|
|
10
|
+
/p:git commit # Smart commit with metadata
|
|
11
|
+
/p:git push # Push with verification
|
|
12
|
+
/p:git sync # Pull, rebase, push
|
|
13
|
+
/p:git undo # Undo last commit
|
|
22
14
|
```
|
|
23
15
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
## Flow: commit
|
|
17
|
+
1. Read: `core/now.md` β get task context
|
|
18
|
+
2. Git: `add .` β stage changes
|
|
19
|
+
3. Create: commit message with prjct metadata
|
|
20
|
+
4. Commit: with message
|
|
21
|
+
5. Log: `memory/context.jsonl`
|
|
27
22
|
|
|
28
|
-
|
|
29
|
-
1.
|
|
30
|
-
2.
|
|
31
|
-
3.
|
|
32
|
-
4. Commit with generated message
|
|
33
|
-
5. Log to `.prjct/memory/context.jsonl`
|
|
23
|
+
## Flow: push
|
|
24
|
+
1. Git: `status` β verify clean
|
|
25
|
+
2. Git: `push` with branch tracking
|
|
26
|
+
3. Handle: errors (upstream, conflicts)
|
|
34
27
|
|
|
35
|
-
|
|
36
|
-
1.
|
|
37
|
-
2.
|
|
38
|
-
3.
|
|
28
|
+
## Flow: sync
|
|
29
|
+
1. Git: `pull --rebase`
|
|
30
|
+
2. Resolve: conflicts if any
|
|
31
|
+
3. Git: `push`
|
|
39
32
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
|
33
|
+
## Commit Message Format
|
|
34
|
+
```
|
|
35
|
+
{type}: {description}
|
|
51
36
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
- Extract meaningful description from changes
|
|
55
|
-
- Add emoji for visual clarity
|
|
56
|
-
- Include file scope when relevant
|
|
37
|
+
Agent: {agent}
|
|
38
|
+
Dev: @{github_dev}
|
|
57
39
|
|
|
58
|
-
|
|
59
|
-
-
|
|
60
|
-
|
|
61
|
-
- "π docs: Update API documentation"
|
|
62
|
-
- "β»οΈ refactor: Simplify database connection logic"
|
|
40
|
+
Generated-by: prjct/cli
|
|
41
|
+
Co-Authored-By: @{github_dev}
|
|
42
|
+
```
|
|
63
43
|
|
|
64
|
-
|
|
44
|
+
## Response
|
|
65
45
|
```
|
|
66
|
-
β
|
|
46
|
+
β
Git {operation}
|
|
67
47
|
|
|
68
|
-
|
|
69
|
-
π Files: 3 changed, +150 lines
|
|
70
|
-
π Branch: main
|
|
48
|
+
{operation_details}
|
|
71
49
|
|
|
72
|
-
|
|
50
|
+
/p:ship | /p:status
|
|
73
51
|
```
|
|
74
52
|
|
|
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
|
|
@@ -1,72 +1,38 @@
|
|
|
1
1
|
---
|
|
2
|
-
allowed-tools: [
|
|
3
|
-
description: "Interactive guide
|
|
2
|
+
allowed-tools: []
|
|
3
|
+
description: "Interactive guide"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# /p:help
|
|
7
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
8
|
## Response
|
|
17
|
-
|
|
18
9
|
```
|
|
19
10
|
π― What do you want to do?
|
|
20
11
|
|
|
21
|
-
|
|
12
|
+
βββββββββββββββββββββββββββ
|
|
22
13
|
|
|
23
|
-
1. π Start working
|
|
24
|
-
Say: "I want to start
|
|
25
|
-
Or: /p:now "task
|
|
14
|
+
1. π Start working
|
|
15
|
+
Say: "I want to start {task}"
|
|
16
|
+
Or: /p:now "{task}"
|
|
26
17
|
|
|
27
|
-
2. β
|
|
28
|
-
Say: "I'm done"
|
|
18
|
+
2. β
Finish task
|
|
19
|
+
Say: "I'm done"
|
|
29
20
|
Or: /p:done
|
|
30
21
|
|
|
31
|
-
3. π Ship
|
|
32
|
-
Say: "ship
|
|
33
|
-
Or: /p:ship "feature"
|
|
22
|
+
3. π Ship feature
|
|
23
|
+
Say: "ship {feature}"
|
|
24
|
+
Or: /p:ship "{feature}"
|
|
34
25
|
|
|
35
|
-
4. π‘ Capture
|
|
36
|
-
Say: "
|
|
37
|
-
Or: /p:idea "idea
|
|
26
|
+
4. π‘ Capture idea
|
|
27
|
+
Say: "idea about {thing}"
|
|
28
|
+
Or: /p:idea "{idea}"
|
|
38
29
|
|
|
39
|
-
5. π See
|
|
40
|
-
Say: "show
|
|
30
|
+
5. π See progress
|
|
31
|
+
Say: "show progress"
|
|
41
32
|
Or: /p:recap
|
|
42
33
|
|
|
43
|
-
|
|
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
|
-
βββββββββββββββββββββββββββββββββββββββββ
|
|
34
|
+
βββββββββββββββββββββββββββ
|
|
64
35
|
|
|
65
|
-
|
|
36
|
+
π¬ Talk naturally - I understand both!
|
|
66
37
|
```
|
|
67
38
|
|
|
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
|