proagents 1.0.17 → 1.1.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/README.md +309 -77
- package/bin/proagents.js +17 -0
- package/lib/commands/doctor.js +305 -0
- package/lib/commands/init.js +180 -6
- package/lib/commands/upgrade.js +180 -0
- package/package.json +1 -1
- package/proagents/AI_INSTRUCTIONS.md +543 -9
- package/proagents/PROAGENTS.md +92 -11
- package/proagents/activity.log +11 -0
- package/proagents/checkpoints.json +13 -0
- package/proagents/context.md +39 -0
- package/proagents/custom-commands.yaml +59 -0
- package/proagents/decisions.md +43 -0
- package/proagents/errors.md +36 -0
- package/proagents/feedback.md +49 -0
- package/proagents/handoff.md +33 -0
- package/proagents/history.log +12 -0
- package/proagents/metrics/README.md +57 -162
- package/proagents/sessions/README.md +5 -0
- package/proagents/sprints/README.md +58 -0
- package/proagents/watchlist.yaml +39 -0
package/package.json
CHANGED
|
@@ -6,24 +6,241 @@ This project uses ProAgents - an AI-agnostic development workflow framework.
|
|
|
6
6
|
|
|
7
7
|
**Multiple AI tools may work on this project simultaneously (Claude, Cursor, Gemini, Copilot, etc.). They do NOT share context.**
|
|
8
8
|
|
|
9
|
-
Before executing ANY `pa:` command:
|
|
9
|
+
### Before executing ANY `pa:` command:
|
|
10
10
|
|
|
11
|
-
1. **
|
|
12
|
-
2. **
|
|
11
|
+
1. **Read fresh state from files** - Never rely on previous knowledge
|
|
12
|
+
2. **Read project context** - Read `./proagents/context.md` for persistent project knowledge
|
|
13
|
+
3. **Check the activity log** - Read `./proagents/activity.log` to see recent AI actions
|
|
14
|
+
4. **Key files to check:**
|
|
15
|
+
- `./proagents/context.md` - Persistent project context (READ FIRST!)
|
|
16
|
+
- `./proagents/activity.log` - Recent AI activity
|
|
17
|
+
- `./proagents/watchlist.yaml` - Files requiring confirmation before changes
|
|
13
18
|
- `./proagents/proagents.config.yaml` - Project and platform config
|
|
14
19
|
- `./proagents/active-features/` - Active feature status
|
|
15
20
|
- `./CHANGELOG.md` - Recent changes
|
|
16
|
-
- `./
|
|
17
|
-
|
|
21
|
+
- `./proagents/feedback.md` - Past corrections and preferences (LEARN FROM THESE!)
|
|
22
|
+
|
|
23
|
+
### AI Feedback & Learning
|
|
24
|
+
|
|
25
|
+
Before starting work, check `./proagents/feedback.md` for:
|
|
26
|
+
- **Corrections**: Mistakes other AIs made - don't repeat them!
|
|
27
|
+
- **Preferences**: How the user/team prefers things done
|
|
28
|
+
- **Patterns**: What worked well in this project
|
|
29
|
+
|
|
30
|
+
When you receive feedback or correction from the user:
|
|
31
|
+
1. Log it in `./proagents/feedback.md` using `pa:feedback`
|
|
32
|
+
2. Apply the learning to your current work
|
|
33
|
+
3. Avoid making the same mistake again
|
|
34
|
+
|
|
35
|
+
### File Watch List
|
|
36
|
+
|
|
37
|
+
Before modifying ANY file, check `./proagents/watchlist.yaml`:
|
|
38
|
+
|
|
39
|
+
- **critical**: Ask user for confirmation before modifying
|
|
40
|
+
- **review_required**: Warn user and explain changes before modifying
|
|
41
|
+
- **never_modify**: NEVER modify these files/patterns
|
|
42
|
+
|
|
43
|
+
If a file matches a pattern, inform the user:
|
|
44
|
+
> "This file is on the watch list (critical). Do you want me to proceed with the changes?"
|
|
45
|
+
4. **If you detect conflicts or outdated state:**
|
|
18
46
|
- Inform the user: "I notice [X] may have changed since my last context. Let me refresh..."
|
|
19
47
|
- Re-read the relevant files before proceeding
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
48
|
+
|
|
49
|
+
### After completing ANY `pa:` command:
|
|
50
|
+
|
|
51
|
+
**ALWAYS log your activity** to `./proagents/activity.log`:
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
[TIMESTAMP] [AI_PLATFORM:MODEL] [COMMAND] Description
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Example entries:
|
|
58
|
+
```
|
|
59
|
+
2024-03-06 15:10 [Claude:opus-4] [pa:feature] Started feature "user-auth"
|
|
60
|
+
2024-03-06 15:12 [Cursor:gpt-4o] [pa:fix] Fixed login button bug in src/auth/login.ts
|
|
61
|
+
2024-03-06 15:15 [Gemini:1.5-pro] [pa:doc] Updated API documentation
|
|
62
|
+
2024-03-06 15:20 [Claude:sonnet-4] [pa:feature] Completed feature "user-auth"
|
|
63
|
+
2024-03-06 15:25 [Copilot:gpt-4o] [pa:test] Added unit tests for auth module
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**Include your model name** (e.g., opus-4, sonnet-4, gpt-4o, gemini-1.5-pro).
|
|
67
|
+
Keep log entries concise (one line). Other AIs will read this to understand recent changes.
|
|
68
|
+
|
|
69
|
+
### Command History
|
|
70
|
+
|
|
71
|
+
Also log commands to `./proagents/history.log` with their results:
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
[TIMESTAMP] [AI:MODEL] COMMAND → RESULT
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Example:
|
|
78
|
+
```
|
|
79
|
+
2024-03-06 15:10 [Claude:opus-4] pa:feature "user-auth" → Started
|
|
80
|
+
2024-03-06 15:30 [Claude:opus-4] pa:feature "user-auth" → Completed
|
|
81
|
+
2024-03-06 15:35 [Cursor:gpt-4o] pa:test → 15 passed, 2 failed
|
|
82
|
+
2024-03-06 15:40 [Claude:sonnet-4] pa:fix "login bug" → Fixed
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
This helps track what commands were run and their outcomes.
|
|
86
|
+
|
|
87
|
+
### Lock File for Active Work
|
|
88
|
+
|
|
89
|
+
When starting a major task (feature, large fix, refactoring), create a lock file at `./proagents/.lock`:
|
|
90
|
+
|
|
91
|
+
```yaml
|
|
92
|
+
locked_by: Claude # Your AI platform
|
|
93
|
+
model: opus-4 # Your model name
|
|
94
|
+
started: 2024-03-06T15:10:00
|
|
95
|
+
task: "pa:feature user-auth"
|
|
96
|
+
description: "Implementing user authentication with JWT"
|
|
97
|
+
files:
|
|
98
|
+
- src/auth/*
|
|
99
|
+
- src/api/auth.ts
|
|
100
|
+
expires: 2024-03-06T17:10:00 # Auto-expires after 2 hours
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
**Before starting major work:**
|
|
104
|
+
1. Check if `./proagents/.lock` exists
|
|
105
|
+
2. If locked by another AI, inform user: "Project is locked by [AI] working on [task]. Wait or ask user to override."
|
|
106
|
+
3. If lock is expired (past `expires` time), you may delete it and proceed
|
|
107
|
+
|
|
108
|
+
**After completing work:**
|
|
109
|
+
1. Delete the `./proagents/.lock` file
|
|
110
|
+
2. Log completion in activity.log
|
|
111
|
+
|
|
112
|
+
### Conflict Detection
|
|
113
|
+
|
|
114
|
+
Before modifying any file, check for potential conflicts:
|
|
115
|
+
|
|
116
|
+
1. **Read activity.log** - See if another AI recently modified the same file
|
|
117
|
+
2. **Check lock file** - See if another AI is working on related files
|
|
118
|
+
3. **Look for patterns** like:
|
|
119
|
+
```
|
|
120
|
+
2024-03-06 15:10 [Cursor:gpt-4o] Modified src/auth/login.ts
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
**If you detect a potential conflict:**
|
|
124
|
+
|
|
125
|
+
Warn the user:
|
|
126
|
+
> "I notice [Other AI] modified `src/auth/login.ts` 10 minutes ago.
|
|
127
|
+
> There may be uncommitted changes. Should I:
|
|
128
|
+
> 1. Proceed anyway (may overwrite their changes)
|
|
129
|
+
> 2. Wait and check with them first
|
|
130
|
+
> 3. Show me the recent changes to this file"
|
|
131
|
+
|
|
132
|
+
**After modifying files, always log:**
|
|
133
|
+
```
|
|
134
|
+
[TIMESTAMP] [AI:MODEL] [MODIFIED] file1.ts, file2.ts
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
This helps other AIs detect conflicts.
|
|
138
|
+
|
|
139
|
+
**Lock commands:**
|
|
140
|
+
| Command | Action |
|
|
141
|
+
|---------|--------|
|
|
142
|
+
| `pa:lock` | Show current lock status |
|
|
143
|
+
| `pa:lock-release` | Release lock (if you hold it) |
|
|
144
|
+
| `pa:lock-override` | Force release lock (requires user confirmation) |
|
|
145
|
+
|
|
146
|
+
### Handoff Notes
|
|
147
|
+
|
|
148
|
+
When ending a session or switching to another AI, create handoff notes at `./proagents/handoff.md`:
|
|
149
|
+
|
|
150
|
+
**For `pa:handoff`** - Create/update handoff notes:
|
|
151
|
+
```markdown
|
|
152
|
+
# AI Handoff Notes
|
|
153
|
+
Updated: 2024-03-06 15:30 by Claude (opus-4)
|
|
154
|
+
|
|
155
|
+
## Current Status
|
|
156
|
+
- **Working on:** User authentication feature
|
|
157
|
+
- **Phase:** Implementation (5 of 9)
|
|
158
|
+
- **Branch:** feature/user-auth
|
|
159
|
+
|
|
160
|
+
## Completed
|
|
161
|
+
- [x] Login UI component
|
|
162
|
+
- [x] JWT token generation
|
|
163
|
+
- [x] Password hashing setup
|
|
164
|
+
|
|
165
|
+
## In Progress
|
|
166
|
+
- [ ] Password reset flow (50% done)
|
|
167
|
+
- [ ] Email verification endpoint
|
|
168
|
+
|
|
169
|
+
## Blocked / Needs Attention
|
|
170
|
+
- Need API endpoint for sending emails (waiting on backend team)
|
|
171
|
+
- Rate limiting not yet implemented
|
|
172
|
+
|
|
173
|
+
## Files Modified
|
|
174
|
+
- src/auth/login.tsx
|
|
175
|
+
- src/auth/jwt.ts
|
|
176
|
+
- src/api/auth.ts
|
|
177
|
+
|
|
178
|
+
## Next Steps
|
|
179
|
+
1. Complete password reset flow
|
|
180
|
+
2. Add email verification
|
|
181
|
+
3. Write tests for auth module
|
|
182
|
+
|
|
183
|
+
## Notes for Next AI
|
|
184
|
+
- Using bcrypt for password hashing (see src/auth/hash.ts)
|
|
185
|
+
- JWT secret is in .env.local
|
|
186
|
+
- Test user: test@example.com / password123
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
**For `pa:handoff-read`** - Read and summarize current handoff notes before starting work.
|
|
190
|
+
|
|
191
|
+
### Session Summary
|
|
192
|
+
|
|
193
|
+
**For `pa:session-end`** - Generate and save a session summary to `./proagents/sessions/`:
|
|
194
|
+
|
|
195
|
+
```markdown
|
|
196
|
+
# Session Summary
|
|
197
|
+
Date: 2024-03-06 15:00-17:30
|
|
198
|
+
AI: Claude (opus-4)
|
|
199
|
+
|
|
200
|
+
## What Was Done
|
|
201
|
+
- Implemented user authentication feature
|
|
202
|
+
- Fixed 3 bugs in login flow
|
|
203
|
+
- Added unit tests for auth module
|
|
204
|
+
|
|
205
|
+
## Files Modified
|
|
206
|
+
- src/auth/login.tsx (created)
|
|
207
|
+
- src/auth/jwt.ts (created)
|
|
208
|
+
- src/api/auth.ts (modified)
|
|
209
|
+
- tests/auth.test.ts (created)
|
|
210
|
+
|
|
211
|
+
## Commands Executed
|
|
212
|
+
- pa:feature "user-auth" → Completed
|
|
213
|
+
- pa:test → 15 passed, 0 failed
|
|
214
|
+
- pa:doc → Updated API docs
|
|
215
|
+
|
|
216
|
+
## Issues Encountered
|
|
217
|
+
- Rate limiting not yet implemented (deferred)
|
|
218
|
+
|
|
219
|
+
## Next Session Should
|
|
220
|
+
1. Implement rate limiting
|
|
221
|
+
2. Add password reset flow
|
|
222
|
+
3. Write integration tests
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
Save to: `./proagents/sessions/YYYY-MM-DD-HHMMSS.md`
|
|
23
226
|
|
|
24
227
|
## Command Recognition
|
|
25
228
|
|
|
26
|
-
When the user types commands starting with `pa:`, recognize and execute them
|
|
229
|
+
When the user types commands starting with `pa:`, recognize and execute them.
|
|
230
|
+
|
|
231
|
+
### Quick Aliases
|
|
232
|
+
| Alias | Expands To |
|
|
233
|
+
|-------|------------|
|
|
234
|
+
| `pa:f` | `pa:feature` |
|
|
235
|
+
| `pa:s` | `pa:status` |
|
|
236
|
+
| `pa:h` | `pa:help` |
|
|
237
|
+
| `pa:d` | `pa:doc` |
|
|
238
|
+
| `pa:t` | `pa:test` |
|
|
239
|
+
| `pa:q` | `pa:qa` |
|
|
240
|
+
| `pa:a` | `pa:analyze` |
|
|
241
|
+
| `pa:r` | `pa:requirements` |
|
|
242
|
+
| `pa:p` | `pa:plan` |
|
|
243
|
+
| `pa:i` | `pa:implement` |
|
|
27
244
|
|
|
28
245
|
### Initialization
|
|
29
246
|
| Command | Action |
|
|
@@ -42,6 +259,56 @@ When the user types commands starting with `pa:`, recognize and execute them:
|
|
|
42
259
|
| `pa:feature-complete` | Mark feature complete |
|
|
43
260
|
| `pa:fix "description"` | Quick bug fix mode |
|
|
44
261
|
|
|
262
|
+
### Workflow Phase Commands
|
|
263
|
+
Run individual phases of the development workflow:
|
|
264
|
+
|
|
265
|
+
| Command | Phase | Action |
|
|
266
|
+
|---------|-------|--------|
|
|
267
|
+
| `pa:analyze` | Analysis | Deep codebase analysis - structure, patterns, dependencies |
|
|
268
|
+
| `pa:analyze-full` | Analysis | Comprehensive analysis with full depth |
|
|
269
|
+
| `pa:analyze-quick` | Analysis | Quick overview analysis |
|
|
270
|
+
| `pa:requirements` | Requirements | Gather and document feature requirements |
|
|
271
|
+
| `pa:requirements "feature"` | Requirements | Requirements for specific feature |
|
|
272
|
+
| `pa:design` | Design | UI/UX and architecture design |
|
|
273
|
+
| `pa:design-ui` | Design | Focus on UI/UX design |
|
|
274
|
+
| `pa:design-arch` | Design | Focus on architecture design |
|
|
275
|
+
| `pa:plan` | Planning | Create implementation plan |
|
|
276
|
+
| `pa:plan "feature"` | Planning | Plan specific feature implementation |
|
|
277
|
+
| `pa:implement` | Implementation | Execute implementation phase |
|
|
278
|
+
| `pa:implement-continue` | Implementation | Continue paused implementation |
|
|
279
|
+
|
|
280
|
+
**How to execute Workflow Phase commands:**
|
|
281
|
+
|
|
282
|
+
For `pa:analyze`:
|
|
283
|
+
1. Read `./proagents/prompts/01-analysis.md` for analysis workflow
|
|
284
|
+
2. Scan project structure, dependencies, patterns
|
|
285
|
+
3. Cache results in `./proagents/cache/`
|
|
286
|
+
4. Output analysis report
|
|
287
|
+
|
|
288
|
+
For `pa:requirements`:
|
|
289
|
+
1. Read `./proagents/prompts/02-requirements.md`
|
|
290
|
+
2. If feature name provided, create `./proagents/active-features/feature-{name}/requirements.md`
|
|
291
|
+
3. Gather user stories, acceptance criteria, constraints
|
|
292
|
+
4. Output requirements document
|
|
293
|
+
|
|
294
|
+
For `pa:design`:
|
|
295
|
+
1. Read `./proagents/prompts/03-ui-design.md`
|
|
296
|
+
2. Check for design inputs (Figma, sketches, exports)
|
|
297
|
+
3. Create component specifications
|
|
298
|
+
4. Output design document
|
|
299
|
+
|
|
300
|
+
For `pa:plan`:
|
|
301
|
+
1. Read `./proagents/prompts/04-planning.md`
|
|
302
|
+
2. Create implementation plan with task breakdown
|
|
303
|
+
3. Identify dependencies and risks
|
|
304
|
+
4. Save to `./proagents/active-features/feature-{name}/implementation-plan.md`
|
|
305
|
+
|
|
306
|
+
For `pa:implement`:
|
|
307
|
+
1. Read `./proagents/prompts/05-implementation.md`
|
|
308
|
+
2. Follow existing project patterns
|
|
309
|
+
3. Implement code changes
|
|
310
|
+
4. Log progress to activity.log
|
|
311
|
+
|
|
45
312
|
### Documentation Commands
|
|
46
313
|
| Command | Action |
|
|
47
314
|
|---------|--------|
|
|
@@ -70,6 +337,241 @@ When the user types commands starting with `pa:`, recognize and execute them:
|
|
|
70
337
|
| `pa:deploy` | Deployment preparation |
|
|
71
338
|
| `pa:rollback` | Rollback procedures |
|
|
72
339
|
|
|
340
|
+
### Navigation & Flow
|
|
341
|
+
| Command | Action |
|
|
342
|
+
|---------|--------|
|
|
343
|
+
| `pa:next` | Show next step in current workflow |
|
|
344
|
+
| `pa:resume` | Resume paused feature from where left off |
|
|
345
|
+
| `pa:skip` | Skip current phase, move to next |
|
|
346
|
+
| `pa:back` | Go back to previous phase |
|
|
347
|
+
| `pa:progress` | Show visual progress bar for current feature |
|
|
348
|
+
|
|
349
|
+
**How to execute Navigation commands:**
|
|
350
|
+
|
|
351
|
+
For `pa:next`:
|
|
352
|
+
1. Read `./proagents/active-features/*/status.json` to find current feature
|
|
353
|
+
2. Identify current phase from status
|
|
354
|
+
3. Show what the next step/phase is
|
|
355
|
+
4. Provide guidance for the next action
|
|
356
|
+
|
|
357
|
+
For `pa:resume`:
|
|
358
|
+
1. Read `./proagents/active-features/` to find paused features
|
|
359
|
+
2. Read feature's `status.json` for last phase and progress
|
|
360
|
+
3. Read `./proagents/handoff.md` for context
|
|
361
|
+
4. Continue from where it was left off
|
|
362
|
+
|
|
363
|
+
For `pa:skip`:
|
|
364
|
+
1. Read current feature status
|
|
365
|
+
2. Mark current phase as "skipped" in status.json
|
|
366
|
+
3. Move to next phase
|
|
367
|
+
4. Log skip reason to activity.log
|
|
368
|
+
5. Warn if skipping critical phase (testing, review)
|
|
369
|
+
|
|
370
|
+
For `pa:back`:
|
|
371
|
+
1. Read current feature status
|
|
372
|
+
2. Move to previous phase
|
|
373
|
+
3. Update status.json
|
|
374
|
+
4. Reload context from previous phase
|
|
375
|
+
|
|
376
|
+
For `pa:progress`:
|
|
377
|
+
1. Read `./proagents/active-features/*/status.json`
|
|
378
|
+
2. Calculate percentage complete (current_phase / total_phases)
|
|
379
|
+
3. Display visual progress bar:
|
|
380
|
+
```
|
|
381
|
+
Feature: user-auth
|
|
382
|
+
Phase: 5/10 (Implementation)
|
|
383
|
+
Progress: [████████░░░░░░░░░░░░] 50%
|
|
384
|
+
|
|
385
|
+
✓ Init → ✓ Analysis → ✓ Requirements → ✓ Design → ● Implementation → ○ Testing → ○ Review → ○ Docs → ○ Deploy
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
### Context & History
|
|
389
|
+
| Command | Action |
|
|
390
|
+
|---------|--------|
|
|
391
|
+
| `pa:context` | Quick view/edit project context |
|
|
392
|
+
| `pa:context-edit` | Edit project context interactively |
|
|
393
|
+
| `pa:diff` | Show what changed since last session |
|
|
394
|
+
| `pa:history` | Show command history with results |
|
|
395
|
+
| `pa:checkpoint` | Create a snapshot/restore point |
|
|
396
|
+
| `pa:checkpoint-restore` | Restore from a checkpoint |
|
|
397
|
+
| `pa:undo` | Undo last AI action using git |
|
|
398
|
+
|
|
399
|
+
**How to execute Context & History commands:**
|
|
400
|
+
|
|
401
|
+
For `pa:context`:
|
|
402
|
+
1. Read `./proagents/context.md`
|
|
403
|
+
2. Display current project context summary
|
|
404
|
+
3. Show last updated timestamp
|
|
405
|
+
|
|
406
|
+
For `pa:diff`:
|
|
407
|
+
1. Read `./proagents/activity.log` for last session timestamp
|
|
408
|
+
2. Run `git diff` from that point
|
|
409
|
+
3. Summarize changes by file/module
|
|
410
|
+
4. Highlight significant changes
|
|
411
|
+
|
|
412
|
+
For `pa:history`:
|
|
413
|
+
1. Read `./proagents/history.log`
|
|
414
|
+
2. Show recent commands with their results
|
|
415
|
+
3. Format: `[timestamp] command → result`
|
|
416
|
+
|
|
417
|
+
For `pa:checkpoint`:
|
|
418
|
+
1. Create git commit with message "checkpoint: [description]"
|
|
419
|
+
2. Save checkpoint info to `./proagents/checkpoints.json`:
|
|
420
|
+
```json
|
|
421
|
+
{
|
|
422
|
+
"checkpoints": [
|
|
423
|
+
{
|
|
424
|
+
"id": "cp-001",
|
|
425
|
+
"timestamp": "2024-03-06T15:00:00Z",
|
|
426
|
+
"commit": "abc123",
|
|
427
|
+
"description": "Before auth refactor",
|
|
428
|
+
"feature": "user-auth",
|
|
429
|
+
"phase": "implementation"
|
|
430
|
+
}
|
|
431
|
+
]
|
|
432
|
+
}
|
|
433
|
+
```
|
|
434
|
+
3. Log to activity.log
|
|
435
|
+
|
|
436
|
+
For `pa:undo`:
|
|
437
|
+
1. Read last action from `./proagents/activity.log`
|
|
438
|
+
2. If file changes, run `git checkout` to revert
|
|
439
|
+
3. If multiple files, offer selective undo
|
|
440
|
+
4. Update activity.log with undo entry
|
|
441
|
+
|
|
442
|
+
### Sprint & Project Management
|
|
443
|
+
| Command | Action |
|
|
444
|
+
|---------|--------|
|
|
445
|
+
| `pa:sprint-start` | Start a new sprint |
|
|
446
|
+
| `pa:sprint-end` | End sprint with summary |
|
|
447
|
+
| `pa:sprint-status` | Show current sprint status |
|
|
448
|
+
| `pa:estimate` | Estimate task complexity |
|
|
449
|
+
| `pa:estimate "task"` | Estimate specific task |
|
|
450
|
+
| `pa:velocity` | Show team velocity metrics |
|
|
451
|
+
|
|
452
|
+
**How to execute Sprint commands:**
|
|
453
|
+
|
|
454
|
+
For `pa:sprint-start`:
|
|
455
|
+
1. Create `./proagents/sprints/sprint-{number}.json`:
|
|
456
|
+
```json
|
|
457
|
+
{
|
|
458
|
+
"sprint_number": 1,
|
|
459
|
+
"start_date": "2024-03-06",
|
|
460
|
+
"end_date": "2024-03-20",
|
|
461
|
+
"goals": [],
|
|
462
|
+
"features": [],
|
|
463
|
+
"status": "active"
|
|
464
|
+
}
|
|
465
|
+
```
|
|
466
|
+
2. Ask for sprint goals
|
|
467
|
+
3. Link active features to sprint
|
|
468
|
+
|
|
469
|
+
For `pa:sprint-end`:
|
|
470
|
+
1. Read current sprint file
|
|
471
|
+
2. Calculate metrics (completed features, velocity)
|
|
472
|
+
3. Generate sprint summary → `./proagents/sprints/sprint-{n}-summary.md`
|
|
473
|
+
4. Archive sprint
|
|
474
|
+
|
|
475
|
+
For `pa:estimate`:
|
|
476
|
+
1. Analyze task/feature complexity
|
|
477
|
+
2. Consider: code changes, files affected, dependencies, testing needs
|
|
478
|
+
3. Provide estimate in story points or T-shirt sizes (S/M/L/XL)
|
|
479
|
+
4. Save estimate to feature status.json
|
|
480
|
+
|
|
481
|
+
For `pa:velocity`:
|
|
482
|
+
1. Read completed sprints from `./proagents/sprints/`
|
|
483
|
+
2. Calculate average story points per sprint
|
|
484
|
+
3. Show velocity chart/trend
|
|
485
|
+
|
|
486
|
+
### Integration Commands
|
|
487
|
+
| Command | Action |
|
|
488
|
+
|---------|--------|
|
|
489
|
+
| `pa:github` | GitHub integration commands |
|
|
490
|
+
| `pa:github-issue` | Create GitHub issue from current work |
|
|
491
|
+
| `pa:github-pr` | Create pull request |
|
|
492
|
+
| `pa:jira` | Jira integration commands |
|
|
493
|
+
| `pa:jira-sync` | Sync with Jira ticket |
|
|
494
|
+
| `pa:notify` | Send notification |
|
|
495
|
+
| `pa:notify-slack` | Send Slack notification |
|
|
496
|
+
| `pa:notify-email` | Send email notification |
|
|
497
|
+
|
|
498
|
+
**How to execute Integration commands:**
|
|
499
|
+
|
|
500
|
+
For `pa:github-issue`:
|
|
501
|
+
1. Read current feature/bug context
|
|
502
|
+
2. Generate issue title and body
|
|
503
|
+
3. Show preview and ask for confirmation
|
|
504
|
+
4. Provide `gh issue create` command or API call
|
|
505
|
+
|
|
506
|
+
For `pa:github-pr`:
|
|
507
|
+
1. Read current feature context
|
|
508
|
+
2. Generate PR title and description
|
|
509
|
+
3. Include: summary, changes, test plan
|
|
510
|
+
4. Provide `gh pr create` command
|
|
511
|
+
|
|
512
|
+
For `pa:jira-sync`:
|
|
513
|
+
1. Read Jira config from `proagents.config.yaml`
|
|
514
|
+
2. Find linked ticket (from feature name or config)
|
|
515
|
+
3. Update ticket status based on feature phase
|
|
516
|
+
4. Add comment with progress
|
|
517
|
+
|
|
518
|
+
For `pa:notify`:
|
|
519
|
+
1. Read notification config from `proagents.config.yaml`
|
|
520
|
+
2. Generate notification message based on context
|
|
521
|
+
3. Send via configured channel (Slack webhook, email, etc.)
|
|
522
|
+
|
|
523
|
+
### Code Quality Commands
|
|
524
|
+
| Command | Action |
|
|
525
|
+
|---------|--------|
|
|
526
|
+
| `pa:metrics` | Show code quality metrics |
|
|
527
|
+
| `pa:metrics-history` | Show metrics over time |
|
|
528
|
+
| `pa:coverage` | Show test coverage report |
|
|
529
|
+
| `pa:coverage-diff` | Show coverage changes |
|
|
530
|
+
| `pa:deps` | Analyze dependencies |
|
|
531
|
+
| `pa:deps-outdated` | Find outdated dependencies |
|
|
532
|
+
| `pa:deps-security` | Security scan dependencies |
|
|
533
|
+
|
|
534
|
+
**How to execute Code Quality commands:**
|
|
535
|
+
|
|
536
|
+
For `pa:metrics`:
|
|
537
|
+
1. Analyze codebase for:
|
|
538
|
+
- Lines of code (by language)
|
|
539
|
+
- Cyclomatic complexity
|
|
540
|
+
- Code duplication
|
|
541
|
+
- Function/file sizes
|
|
542
|
+
2. Save to `./proagents/metrics/latest.json`
|
|
543
|
+
3. Display summary with warnings for issues
|
|
544
|
+
|
|
545
|
+
For `pa:coverage`:
|
|
546
|
+
1. Check for coverage reports (coverage/, .nyc_output/, etc.)
|
|
547
|
+
2. Parse coverage data
|
|
548
|
+
3. Display summary:
|
|
549
|
+
```
|
|
550
|
+
Test Coverage Report
|
|
551
|
+
═══════════════════
|
|
552
|
+
Overall: 82% ✓
|
|
553
|
+
|
|
554
|
+
By Module:
|
|
555
|
+
• src/auth/ 95% ████████████████████ ✓
|
|
556
|
+
• src/api/ 78% ███████████████░░░░░
|
|
557
|
+
• src/utils/ 65% █████████████░░░░░░░ ⚠
|
|
558
|
+
```
|
|
559
|
+
|
|
560
|
+
For `pa:deps`:
|
|
561
|
+
1. Read package.json / requirements.txt
|
|
562
|
+
2. Analyze dependency tree
|
|
563
|
+
3. Identify:
|
|
564
|
+
- Direct vs transitive deps
|
|
565
|
+
- Duplicate packages
|
|
566
|
+
- Large dependencies
|
|
567
|
+
- Outdated versions
|
|
568
|
+
|
|
569
|
+
For `pa:deps-security`:
|
|
570
|
+
1. Run `npm audit` or equivalent
|
|
571
|
+
2. Parse security advisories
|
|
572
|
+
3. Categorize by severity
|
|
573
|
+
4. Suggest fixes
|
|
574
|
+
|
|
73
575
|
### AI Platform Management
|
|
74
576
|
| Command | Action |
|
|
75
577
|
|---------|--------|
|
|
@@ -156,11 +658,43 @@ For `pa:ai-sync`:
|
|
|
156
658
|
| `pa:config-setup` | Interactive config wizard |
|
|
157
659
|
| `pa:config-customize` | Copy templates to customize |
|
|
158
660
|
|
|
661
|
+
### Custom Commands
|
|
662
|
+
|
|
663
|
+
Check `./proagents/custom-commands.yaml` for project-specific commands.
|
|
664
|
+
|
|
665
|
+
Built-in custom commands:
|
|
666
|
+
| Command | Action |
|
|
667
|
+
|---------|--------|
|
|
668
|
+
| `pa:standup` | Generate daily standup summary |
|
|
669
|
+
| `pa:sprint-review` | Generate sprint review |
|
|
670
|
+
| `pa:tech-debt` | Scan and document technical debt |
|
|
671
|
+
| `pa:security-scan` | Run security checklist |
|
|
672
|
+
|
|
673
|
+
Users can add their own commands in `custom-commands.yaml`.
|
|
674
|
+
|
|
159
675
|
### Utilities
|
|
160
676
|
| Command | Action |
|
|
161
677
|
|---------|--------|
|
|
162
678
|
| `pa:uninstall` | Remove ProAgents from project |
|
|
163
679
|
|
|
680
|
+
### Collaboration (Multi-AI)
|
|
681
|
+
| Command | Action |
|
|
682
|
+
|---------|--------|
|
|
683
|
+
| `pa:activity` | Show recent AI activity log |
|
|
684
|
+
| `pa:lock` | Show current lock status |
|
|
685
|
+
| `pa:lock-release` | Release lock (if you hold it) |
|
|
686
|
+
| `pa:lock-override` | Force release lock (requires user confirmation) |
|
|
687
|
+
| `pa:handoff` | Create handoff notes for other AIs |
|
|
688
|
+
| `pa:handoff-read` | Read latest handoff notes |
|
|
689
|
+
| `pa:session-end` | Generate session summary before ending |
|
|
690
|
+
| `pa:session-history` | Show recent session summaries |
|
|
691
|
+
| `pa:decision "title"` | Log an architectural/technical decision |
|
|
692
|
+
| `pa:decisions` | Show all logged decisions |
|
|
693
|
+
| `pa:error "description"` | Log an error and its solution |
|
|
694
|
+
| `pa:errors` | Show logged errors (search for solutions) |
|
|
695
|
+
| `pa:feedback "description"` | Log feedback/correction for AI learning |
|
|
696
|
+
| `pa:feedback-list` | Show all feedback (learn from past corrections) |
|
|
697
|
+
|
|
164
698
|
## How to Execute Commands
|
|
165
699
|
|
|
166
700
|
When user types a `pa:` command:
|