proagents 1.6.18 → 1.6.20

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.
@@ -2,29 +2,44 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
- ## ⚠️ MANDATORY: Every pa: Command Flow
5
+ > **IMPORTANT:** `pa:` commands are **AI directives**, NOT shell/terminal commands.
6
+ > When user types ANY `pa:` command (e.g., `pa:feature`, `pa:fix`, `pa:status`),
7
+ > DO NOT try to run it in terminal. Instead, follow the instructions below.
6
8
 
7
- ### BEFORE Any pa: Command (Auto-Sync)
9
+ ## Auto-Sync Protocol
8
10
 
9
- **Read these files FIRST before doing anything:**
11
+ ### Rule: Sync for commands that WRITE, skip for commands that READ
10
12
 
13
+ ### Workflow Commands (Auto-Sync Required)
14
+
15
+ Commands that CREATE or MODIFY code/content need context:
16
+
17
+ **BEFORE these commands, read:**
11
18
  ```bash
12
19
  cat .proagents/worklog/_context.md # Current state
13
20
  cat .proagents/changelog/_recent.md # Recent changes
14
21
  tail -10 .proagents/activity.log # Recent activity
15
22
  ```
16
23
 
17
- **This applies to EVERY command:** `pa:fix`, `pa:feature`, `pa:test`, `pa:doc`, etc.
24
+ **Examples:** `pa:feature`, `pa:fix`, `pa:implement`, `pa:analyze`,
25
+ `pa:design`, `pa:plan`, `pa:test`, `pa:review`, `pa:doc`, `pa:deploy`,
26
+ `pa:rnd`, `pa:refactor`, `pa:debug`, `pa:qa`, `pa:changelog`, `pa:release`, `pa:resume`,
27
+ `pa:session-start`, `pa:session-end`
18
28
 
19
- ### AFTER Any pa: Command (Auto-Log)
29
+ ### Utility Commands (No Sync Required)
20
30
 
21
- **After EVERY file edit, IMMEDIATELY update these files:**
31
+ Commands that only READ, DISPLAY, or CONFIGURE:
32
+ - **Skip BEFORE step** - No context reading needed
33
+ - **Skip AFTER step** - No logging needed
22
34
 
23
- 1. `.proagents/changelog/_recent.md` - Prepend change summary
24
- 2. `.proagents/changelog/modules/[module].md` - Based on file path
25
- 3. `.proagents/worklog/_context.md` - Update current state
35
+ **Examples:** `pa:help`, `pa:status`, `pa:progress`, `pa:history`,
36
+ `pa:ai-*`, `pa:config-*`, `pa:sync`
26
37
 
27
- Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
38
+ ### AFTER Workflow Commands (Auto-Log)
39
+
40
+ **After commands that CHANGE files, update:**
41
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
42
+ 2. `.proagents/worklog/_context.md` - Update current state
28
43
 
29
44
  ## Essential Commands
30
45
 
@@ -32,6 +47,8 @@ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→u
32
47
  |---------|--------|
33
48
  | `pa:feature "name"` | Start new feature workflow |
34
49
  | `pa:fix "bug"` | Quick bug fix mode |
50
+ | `pa:project-setup` | Interactive project setup wizard |
51
+ | `pa:rnd` | Research & Development workflow |
35
52
  | `pa:doc` | Documentation options |
36
53
  | `pa:qa` | Quality assurance checks |
37
54
  | `pa:test` | Run test workflow |
@@ -2,29 +2,44 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
- ## ⚠️ MANDATORY: Every pa: Command Flow
5
+ > **IMPORTANT:** `pa:` commands are **AI directives**, NOT shell/terminal commands.
6
+ > When user types ANY `pa:` command (e.g., `pa:feature`, `pa:fix`, `pa:status`),
7
+ > DO NOT try to run it in terminal. Instead, follow the instructions below.
6
8
 
7
- ### BEFORE Any pa: Command (Auto-Sync)
9
+ ## Auto-Sync Protocol
8
10
 
9
- **Read these files FIRST before doing anything:**
11
+ ### Rule: Sync for commands that WRITE, skip for commands that READ
10
12
 
13
+ ### Workflow Commands (Auto-Sync Required)
14
+
15
+ Commands that CREATE or MODIFY code/content need context:
16
+
17
+ **BEFORE these commands, read:**
11
18
  ```bash
12
19
  cat .proagents/worklog/_context.md # Current state
13
20
  cat .proagents/changelog/_recent.md # Recent changes
14
21
  tail -10 .proagents/activity.log # Recent activity
15
22
  ```
16
23
 
17
- **This applies to EVERY command:** `pa:fix`, `pa:feature`, `pa:test`, `pa:doc`, etc.
24
+ **Examples:** `pa:feature`, `pa:fix`, `pa:implement`, `pa:analyze`,
25
+ `pa:design`, `pa:plan`, `pa:test`, `pa:review`, `pa:doc`, `pa:deploy`,
26
+ `pa:rnd`, `pa:refactor`, `pa:debug`, `pa:qa`, `pa:changelog`, `pa:release`, `pa:resume`,
27
+ `pa:session-start`, `pa:session-end`
18
28
 
19
- ### AFTER Any pa: Command (Auto-Log)
29
+ ### Utility Commands (No Sync Required)
20
30
 
21
- **After EVERY file edit, IMMEDIATELY update these files:**
31
+ Commands that only READ, DISPLAY, or CONFIGURE:
32
+ - **Skip BEFORE step** - No context reading needed
33
+ - **Skip AFTER step** - No logging needed
22
34
 
23
- 1. `.proagents/changelog/_recent.md` - Prepend change summary
24
- 2. `.proagents/changelog/modules/[module].md` - Based on file path
25
- 3. `.proagents/worklog/_context.md` - Update current state
35
+ **Examples:** `pa:help`, `pa:status`, `pa:progress`, `pa:history`,
36
+ `pa:ai-*`, `pa:config-*`, `pa:sync`
26
37
 
27
- Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
38
+ ### AFTER Workflow Commands (Auto-Log)
39
+
40
+ **After commands that CHANGE files, update:**
41
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
42
+ 2. `.proagents/worklog/_context.md` - Update current state
28
43
 
29
44
  ## Essential Commands
30
45
 
@@ -32,6 +47,8 @@ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→u
32
47
  |---------|--------|
33
48
  | `pa:feature "name"` | Start new feature workflow |
34
49
  | `pa:fix "bug"` | Quick bug fix mode |
50
+ | `pa:project-setup` | Interactive project setup wizard |
51
+ | `pa:rnd` | Research & Development workflow |
35
52
  | `pa:doc` | Documentation options |
36
53
  | `pa:qa` | Quality assurance checks |
37
54
  | `pa:test` | Run test workflow |
@@ -1,371 +1,126 @@
1
1
  # ProAgents Commands
2
2
 
3
- Execute these commands when user types them (prefix: `pa:`):
3
+ Quick reference for all `pa:` commands.
4
4
 
5
5
  ## Quick Aliases
6
- `pa:f` → feature | `pa:s` → status | `pa:h` → help | `pa:d` → doc | `pa:t` → test | `pa:q` → qa | `pa:a` → analyze | `pa:r` → requirements | `pa:p` → plan | `pa:i` → implement
7
-
8
- > **Multi-AI Note:** Multiple AIs may work on this project. Context loading and logging is AUTOMATIC.
9
-
10
- ---
11
-
12
- ## ⚠️ MANDATORY: Every pa: Command Flow
13
-
14
- ### BEFORE Any pa: Command (Auto-Sync)
15
-
16
- **AI MUST read these files FIRST before doing anything:**
17
-
18
- ```bash
19
- cat .proagents/worklog/_context.md # Current state
20
- cat .proagents/changelog/_recent.md # Recent changes
21
- tail -10 .proagents/activity.log # Recent activity
22
- ```
23
-
24
- **This applies to EVERY command:** `pa:fix`, `pa:feature`, `pa:test`, `pa:doc`, etc.
25
6
 
26
- ### AFTER Any pa: Command That Changes Files
27
-
28
- **AI MUST update these files IMMEDIATELY after any code change:**
29
-
30
- ```
31
- 1. .proagents/changelog/_recent.md ← Prepend change summary
32
- 2. .proagents/worklog/_context.md ← Update Quick Summary
33
- 3. .proagents/changelog/modules/X.md ← Based on file path
34
- 4. .proagents/activity.log ← Log the command
35
- ```
36
-
37
- ### Example: pa:fix "login bug"
38
-
39
- ```
40
- STEP 1: Read _context.md, _recent.md, activity.log ← SYNC FIRST
41
- STEP 2: Find and fix the bug ← DO THE WORK
42
- STEP 3: Prepend fix to _recent.md ← LOG CHANGE
43
- STEP 4: Update _context.md Quick Summary ← UPDATE CONTEXT
44
- STEP 5: Append to activity.log ← LOG ACTIVITY
45
- ```
46
-
47
- **Module detection:** `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui, `src/services/*`→services
7
+ `pa:f` feature | `pa:s` status | `pa:h` → help | `pa:d` → doc | `pa:t` → test | `pa:q` → qa | `pa:a` → analyze | `pa:r` → requirements | `pa:p` → plan | `pa:i` → implement
48
8
 
49
9
  ---
50
10
 
51
- ## Commands
52
-
53
- | Command | What to Do |
54
- |---------|------------|
55
- | `pa:help` | Comprehensive help with examples, categories, workflows |
56
- | `pa:feature "name"` | Create `./.proagents/active-features/feature-[name]/`, analyze codebase, implement feature |
57
- | `pa:fix "description"` | Find bug, fix it, update `./CHANGELOG.md` |
58
- | `pa:analyze` | Deep codebase analysis → `./.proagents/cache/` |
59
- | `pa:requirements` | Gather requirements `./.proagents/active-features/` |
60
- | `pa:design` | UI/Architecture design phase |
61
- | `pa:plan` | Create implementation plan |
62
- | `pa:implement` | Execute implementation phase |
63
- | `pa:status` | Enhanced status: tasks, time, files, tests, git branch, contributors |
64
- | `pa:qa` | Quality dashboard: security, lint, coverage, bundle, docs, complexity |
65
- | `pa:test` | Run tests with coverage visualization, module breakdown, slow tests |
66
- | `pa:review` | Code review checklist: quality, security, testing, documentation |
67
- | `pa:fix "desc"` | Bug fix with before/after diff, affected tests, auto-verify |
68
- | `pa:doc` | Generate documentation |
69
- | `pa:deploy` | Interactive deployment checklist with real-time status, health checks |
70
- | `pa:release` | Generate release notes → `./RELEASE_NOTES.md` |
71
- | `pa:changelog` | Update `./CHANGELOG.md` |
72
- | `pa:ai-list` | Read config, show installed AI platforms |
73
- | `pa:ai-add` | Show platform options, create AI instruction files |
74
- | `pa:ai-remove` | Show installed platforms, remove selected files |
75
- | `pa:ai-sync` | Sync config with existing files (fix mismatches) |
76
- | `pa:activity` | Show ALL AI activity with icons, time groups, files changed |
77
- | `pa:lock` | Show lock status, check if another AI is working |
78
- | `pa:lock-release` | Release your lock after completing work |
79
- | `pa:handoff` | Create handoff notes → `./.proagents/handoff.md` |
80
- | `pa:handoff-read` | Read handoff notes before starting work |
81
- | `pa:session-end` | Generate session summary → `./.proagents/sessions/` |
82
- | `pa:decision "title"` | Log architectural decision → `./.proagents/decisions.md` |
83
- | `pa:error "desc"` | Log error & solution → `./.proagents/errors.md` |
84
- | `pa:feedback "desc"` | Log feedback for AI learning → `./.proagents/feedback.md` |
85
- | `pa:standup` | Daily standup: yesterday, today, blockers, team activity, stats |
86
- | `pa:tech-debt` | Scan for technical debt |
87
-
88
- ## Navigation & Flow
89
-
90
- | Command | What to Do |
91
- |---------|------------|
92
- | `pa:next` | Show next step in current workflow |
93
- | `pa:resume` | Compact resume: last session, what was done, next action, hot files |
94
- | `pa:skip` | Skip current phase, move to next |
95
- | `pa:back` | Go back to previous phase |
96
- | `pa:progress` | Show enhanced progress: tasks, duration, AI, phase timeline |
97
-
98
- ## Context & History
99
-
100
- | Command | What to Do |
101
- |---------|------------|
102
- | `pa:context` | View project context |
103
- | `pa:diff` | Show changes since last session |
104
- | `pa:history` | Command history with filters: --today, --ai, --command, --stats |
105
- | `pa:checkpoint` | Create snapshot/restore point |
106
- | `pa:undo` | Undo last AI action (git revert) |
107
- | `pa:undo-last` | Undo last AI's entire session (all changes) |
108
- | `pa:undo-file "path"` | Undo changes to specific file |
109
- | `pa:conflict-check` | Check if files modified by other AI |
110
- | `pa:changelog --from-git` | Auto-populate changelog from git commits | |
111
-
112
- ## Sprint & Estimation
113
-
114
- | Command | What to Do |
115
- |---------|------------|
116
- | `pa:sprint-start` | Start new sprint → `./.proagents/sprints/` |
117
- | `pa:sprint-end` | End sprint with summary |
118
- | `pa:estimate` | Estimate task complexity (S/M/L/XL) |
119
- | `pa:velocity` | Show velocity metrics |
120
-
121
- ## Integration
122
-
123
- | Command | What to Do |
124
- |---------|------------|
125
- | `pa:github` | GitHub commands (issue, PR) |
126
- | `pa:github-pr` | Create pull request |
127
- | `pa:jira` | Sync with Jira ticket |
128
- | `pa:notify` | Send notification (Slack/email) |
129
-
130
- ## Code Quality
131
-
132
- | Command | What to Do |
133
- |---------|------------|
134
- | `pa:metrics` | Show code quality metrics |
135
- | `pa:coverage` | Show test coverage report |
136
- | `pa:deps` | Analyze dependencies |
137
- | `pa:deps-outdated` | Find outdated packages |
138
- | `pa:deps-security` | Security scan dependencies |
11
+ ## Core Commands
12
+
13
+ | Command | Description |
14
+ |---------|-------------|
15
+ | `pa:help` | Show all commands with examples |
16
+ | `pa:feature "name"` | Start new feature workflow |
17
+ | `pa:fix "description"` | Quick bug fix |
18
+ | `pa:status` | Show current progress |
19
+ | `pa:project-setup` | Interactive project setup |
20
+
21
+ ## Workflow Phases
22
+
23
+ | Command | Description |
24
+ |---------|-------------|
25
+ | `pa:analyze` | Code analysis |
26
+ | `pa:requirements` | Gather requirements |
27
+ | `pa:design` | UI/Architecture design |
28
+ | `pa:plan` | Implementation plan |
29
+ | `pa:implement` | Write code |
30
+ | `pa:test` | Run tests |
31
+ | `pa:review` | Code review |
32
+ | `pa:doc` | Documentation |
33
+ | `pa:deploy` | Deployment checklist |
34
+
35
+ ## AI Platform Management
36
+
37
+ | Command | Prompt File |
38
+ |---------|-------------|
39
+ | `pa:ai-list` | `./prompts/ai-list.md` |
40
+ | `pa:ai-add` | `./prompts/ai-add.md` |
41
+ | `pa:ai-remove` | `./prompts/ai-remove.md` |
42
+ | `pa:ai-sync` | `./prompts/ai-sync.md` |
43
+
44
+ ## Navigation
45
+
46
+ | Command | Description |
47
+ |---------|-------------|
48
+ | `pa:next` | Next step in workflow |
49
+ | `pa:resume` | Resume last session |
50
+ | `pa:skip` | Skip current phase |
51
+ | `pa:back` | Go to previous phase |
52
+ | `pa:progress` | Show progress |
53
+
54
+ ## Multi-AI Collaboration
55
+
56
+ | Command | Description |
57
+ |---------|-------------|
58
+ | `pa:activity` | Show all AI activity |
59
+ | `pa:lock` | Check lock status |
60
+ | `pa:lock-release` | Release lock |
61
+ | `pa:handoff` | Create handoff notes |
62
+ | `pa:session-end` | End session with summary |
63
+
64
+ ## Quality & Testing
65
+
66
+ | Command | Description |
67
+ |---------|-------------|
68
+ | `pa:qa` | Quality dashboard |
69
+ | `pa:metrics` | Code metrics |
70
+ | `pa:coverage` | Test coverage |
71
+ | `pa:a11y` | Accessibility audit |
72
+ | `pa:perf` | Performance analysis |
139
73
 
140
74
  ## Code Generation
141
75
 
142
- | Command | What to Do |
143
- |---------|------------|
144
- | `pa:generate` | Show generation options |
145
- | `pa:generate-component "name"` | Generate component from template |
76
+ | Command | Description |
77
+ |---------|-------------|
78
+ | `pa:generate-component "name"` | Generate component |
146
79
  | `pa:generate-api "name"` | Generate API endpoint |
147
80
  | `pa:generate-test "file"` | Generate test file |
148
81
 
149
82
  ## Refactoring
150
83
 
151
- | Command | What to Do |
152
- |---------|------------|
153
- | `pa:refactor` | Suggest refactoring opportunities |
84
+ | Command | Description |
85
+ |---------|-------------|
86
+ | `pa:refactor` | Suggest refactoring |
154
87
  | `pa:rename "old" "new"` | Rename across codebase |
155
- | `pa:extract "name"` | Extract function/component |
156
- | `pa:cleanup` | Remove dead code, unused imports |
157
-
158
- ## Time Tracking
159
-
160
- | Command | What to Do |
161
- |---------|------------|
162
- | `pa:time-start` | Start tracking → `./.proagents/time-tracking.json` |
163
- | `pa:time-stop` | Stop tracking, save duration |
164
- | `pa:time-report` | Show time report by feature |
165
-
166
- ## Environment & Setup
167
-
168
- | Command | What to Do |
169
- |---------|------------|
170
- | `pa:env-check` | Verify environment setup |
171
- | `pa:env-setup` | Setup dev environment |
172
- | `pa:secrets-scan` | Scan for exposed secrets |
88
+ | `pa:cleanup` | Remove dead code |
173
89
 
174
- ## Database
175
-
176
- | Command | What to Do |
177
- |---------|------------|
178
- | `pa:db-migrate` | Run database migrations |
179
- | `pa:db-seed` | Seed with test data |
180
- | `pa:db-reset` | Reset database (caution!) |
181
-
182
- ## Accessibility & Performance
183
-
184
- | Command | What to Do |
185
- |---------|------------|
186
- | `pa:a11y` | Run accessibility audit |
187
- | `pa:lighthouse` | Run Lighthouse audit |
188
- | `pa:perf` | Performance analysis |
90
+ ## Git & Release
189
91
 
190
- ## Export & Backup
191
-
192
- | Command | What to Do |
193
- |---------|------------|
194
- | `pa:export` | Export config/data → JSON file |
195
- | `pa:import` | Import from export file |
196
- | `pa:backup` | Backup proagents folder |
197
-
198
- ## Learning & AI
199
-
200
- | Command | What to Do |
201
- |---------|------------|
202
- | `pa:learn "pattern"` | Teach AI a pattern → saves to `.proagents/.learning/` |
203
- | `pa:forget "pattern"` | Remove learned pattern from learning data |
204
- | `pa:learning` | Show learning report: patterns, corrections, preferences |
205
- | `pa:suggestions` | Show AI suggestions based on learned patterns |
206
-
207
- ## API & Documentation
208
-
209
- | Command | What to Do |
210
- |---------|------------|
211
- | `pa:api-docs` | Generate OpenAPI/Swagger documentation |
212
- | `pa:storybook` | Generate Storybook stories |
213
- | `pa:readme` | Auto-generate/update README.md |
214
- | `pa:types` | Generate TypeScript types/interfaces |
215
-
216
- ## Git Advanced
217
-
218
- | Command | What to Do |
219
- |---------|------------|
220
- | `pa:branch` | Branch management (list, create, clean) |
221
- | `pa:merge` | Smart merge with conflict preview |
222
- | `pa:conflict` | Resolve merge conflicts with AI |
223
- | `pa:changelog-gen` | Auto-generate changelog from commits |
224
-
225
- ## Search & Navigation
226
-
227
- | Command | What to Do |
228
- |---------|------------|
229
- | `pa:find "pattern"` | Find code patterns/usage |
230
- | `pa:todo` | Find and list all TODOs in code |
231
- | `pa:fixme` | Find FIXMEs and critical issues |
232
- | `pa:unused` | Find unused code/exports |
233
- | `pa:unused-deps` | Find unused dependencies |
234
-
235
- ## Code Analysis
236
-
237
- | Command | What to Do |
238
- |---------|------------|
239
- | `pa:complexity` | Cyclomatic complexity analysis |
240
- | `pa:duplication` | Find duplicate code blocks |
241
- | `pa:hotspots` | Find frequently changed files |
242
-
243
- ## Testing Advanced
244
-
245
- | Command | What to Do |
246
- |---------|------------|
247
- | `pa:test-e2e` | Create/run E2E tests |
248
- | `pa:test-unit` | Generate unit tests |
249
- | `pa:mock` | Generate mocks/stubs |
250
- | `pa:snapshot` | Snapshot testing management |
251
-
252
- ## DevOps & Infrastructure
253
-
254
- | Command | What to Do |
255
- |---------|------------|
256
- | `pa:docker` | Docker commands (build, compose) |
257
- | `pa:ci` | CI/CD pipeline status/management |
258
- | `pa:deploy-preview` | Deploy to preview environment |
259
-
260
- ## Release Management
261
-
262
- | Command | What to Do |
263
- |---------|------------|
92
+ | Command | Description |
93
+ |---------|-------------|
94
+ | `pa:changelog` | Update CHANGELOG.md |
95
+ | `pa:release` | Generate release notes |
264
96
  | `pa:version` | Show/bump version |
265
- | `pa:tag` | Create git tag for release |
266
- | `pa:publish` | Publish package to registry |
267
-
268
- ## Code Review & PR
269
-
270
- | Command | What to Do |
271
- |---------|------------|
272
- | `pa:review-request` | Request code review from team |
273
- | `pa:review-comments` | Show PR review comments |
274
- | `pa:review-approve` | Approve current PR |
275
-
276
- ## Architecture
277
-
278
- | Command | What to Do |
279
- |---------|------------|
280
- | `pa:architecture` | Show architecture overview |
281
- | `pa:architecture-diagram` | Generate architecture diagram (Mermaid) |
282
- | `pa:architecture-export` | Export diagram (SVG/PNG) |
283
-
284
- ## API Testing
285
-
286
- | Command | What to Do |
287
- |---------|------------|
288
- | `pa:api-test` | Test API endpoints |
289
- | `pa:curl` | Generate curl commands for endpoints |
290
- | `pa:postman` | Generate Postman collection |
97
+ | `pa:github-pr` | Create pull request |
291
98
 
292
- ## Health & Monitoring
99
+ ## Research & Development
293
100
 
294
- | Command | What to Do |
295
- |---------|------------|
296
- | `pa:health` | Project health check |
297
- | `pa:monitor` | Show monitoring status |
298
- | `pa:uptime` | Service uptime check |
101
+ | Command | Description |
102
+ |---------|-------------|
103
+ | `pa:rnd` | R&D workflow |
104
+ | `pa:rnd-compare` | Compare solutions |
105
+ | `pa:rnd-poc` | Build prototype |
299
106
 
300
- ## Quick Actions
107
+ ## Learning & Feedback
301
108
 
302
- | Command | What to Do |
303
- |---------|------------|
304
- | `pa:quick` | Show quick actions menu |
305
- | `pa:alias` | Manage command aliases |
306
- | `pa:alias-add` | Add custom alias |
307
- | `pa:alias-remove` | Remove custom alias |
109
+ | Command | Description |
110
+ |---------|-------------|
111
+ | `pa:learn "pattern"` | Teach AI a pattern |
112
+ | `pa:feedback "desc"` | Log feedback |
113
+ | `pa:decision "title"` | Log decision |
114
+ | `pa:error "desc"` | Log error & solution |
308
115
 
309
- ## Mobile Test Suite (React Native)
116
+ ---
310
117
 
311
- | Command | What to Do |
312
- |---------|------------|
313
- | `pa:test-mobile` | Run full mobile test suite (unit, component, E2E, visual) |
314
- | `pa:test-mobile "feature"` | Test specific feature only |
315
- | `pa:test-visual` | Visual/design comparison testing |
316
- | `pa:test-auto-fix` | Auto-fix failing tests |
317
- | `pa:test-loop` | Test → Fix → Retest loop until all pass |
318
- | `pa:compare-figma` | Compare UI against Figma design |
319
- | `pa:compare-image "path"` | Compare UI against image/sketch |
320
- | `pa:screenshot` | Take app screenshots for comparison |
118
+ ## Full Documentation
321
119
 
322
- ## Key Files to Read
120
+ For complete instructions, auto-sync protocol, and workflows:
323
121
 
324
122
  | File | Purpose |
325
123
  |------|---------|
326
- | `./.proagents/context.md` | Persistent project context (READ FIRST!) |
327
- | `./.proagents/feedback.md` | Past corrections - don't repeat mistakes |
328
- | `./.proagents/watchlist.yaml` | Files requiring confirmation before changes |
329
- | `./.proagents/errors.md` | Past errors and solutions |
330
- | `./.proagents/decisions.md` | Architectural decisions and reasoning |
331
-
332
- ## Feature Workflow
333
-
334
- `pa:feature` runs all phases, or run individually:
335
-
336
- | Phase | Command | Action |
337
- |-------|---------|--------|
338
- | 1. Init | `pa:feature "name"` | Create tracking files |
339
- | 2. Analysis | `pa:analyze` | Understand existing code |
340
- | 3. Requirements | `pa:requirements` | Define what to build |
341
- | 4. Design | `pa:design` | Plan UI/architecture |
342
- | 5. Planning | `pa:plan` | Create implementation plan |
343
- | 6. Implementation | `pa:implement` | Write code |
344
- | 7. Testing | `pa:test` | Create/run tests |
345
- | 8. Review | `pa:review` | Quality check |
346
- | 9. Documentation | `pa:doc` | Update docs |
347
- | 10. Deployment | `pa:deploy` | Interactive deployment checklist |
348
-
349
- ## Save Locations
350
-
351
- | Document | Location |
352
- |----------|----------|
353
- | Changelog | `./CHANGELOG.md` |
354
- | Release Notes | `./RELEASE_NOTES.md` |
355
- | Feature Status | `./.proagents/active-features/` |
356
-
357
- ## Examples
358
-
359
- ```
360
- User: pa:feature "add user login"
361
- → Create feature, analyze codebase, guide implementation
362
-
363
- User: pa:fix "submit button not working"
364
- → Find issue, fix it, update changelog
365
-
366
- User: pa:status
367
- → Show active features and progress
368
-
369
- User: pa:help
370
- → Show all available commands
371
- ```
124
+ | `.proagents/AI_INSTRUCTIONS.md` | Complete AI instructions |
125
+ | `.proagents/WORKFLOW.md` | Full 10-phase workflow |
126
+ | `.proagents/prompts/` | Phase-specific prompts |
@@ -2,29 +2,44 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
- ## ⚠️ MANDATORY: Every pa: Command Flow
5
+ > **IMPORTANT:** `pa:` commands are **AI directives**, NOT shell/terminal commands.
6
+ > When user types ANY `pa:` command (e.g., `pa:feature`, `pa:fix`, `pa:status`),
7
+ > DO NOT try to run it in terminal. Instead, follow the instructions below.
6
8
 
7
- ### BEFORE Any pa: Command (Auto-Sync)
9
+ ## Auto-Sync Protocol
8
10
 
9
- **Read these files FIRST before doing anything:**
11
+ ### Rule: Sync for commands that WRITE, skip for commands that READ
10
12
 
13
+ ### Workflow Commands (Auto-Sync Required)
14
+
15
+ Commands that CREATE or MODIFY code/content need context:
16
+
17
+ **BEFORE these commands, read:**
11
18
  ```bash
12
19
  cat .proagents/worklog/_context.md # Current state
13
20
  cat .proagents/changelog/_recent.md # Recent changes
14
21
  tail -10 .proagents/activity.log # Recent activity
15
22
  ```
16
23
 
17
- **This applies to EVERY command:** `pa:fix`, `pa:feature`, `pa:test`, `pa:doc`, etc.
24
+ **Examples:** `pa:feature`, `pa:fix`, `pa:implement`, `pa:analyze`,
25
+ `pa:design`, `pa:plan`, `pa:test`, `pa:review`, `pa:doc`, `pa:deploy`,
26
+ `pa:rnd`, `pa:refactor`, `pa:debug`, `pa:qa`, `pa:changelog`, `pa:release`, `pa:resume`,
27
+ `pa:session-start`, `pa:session-end`
18
28
 
19
- ### AFTER Any pa: Command (Auto-Log)
29
+ ### Utility Commands (No Sync Required)
20
30
 
21
- **After EVERY file edit, IMMEDIATELY update these files:**
31
+ Commands that only READ, DISPLAY, or CONFIGURE:
32
+ - **Skip BEFORE step** - No context reading needed
33
+ - **Skip AFTER step** - No logging needed
22
34
 
23
- 1. `.proagents/changelog/_recent.md` - Prepend change summary
24
- 2. `.proagents/changelog/modules/[module].md` - Based on file path
25
- 3. `.proagents/worklog/_context.md` - Update current state
35
+ **Examples:** `pa:help`, `pa:status`, `pa:progress`, `pa:history`,
36
+ `pa:ai-*`, `pa:config-*`, `pa:sync`
26
37
 
27
- Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
38
+ ### AFTER Workflow Commands (Auto-Log)
39
+
40
+ **After commands that CHANGE files, update:**
41
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
42
+ 2. `.proagents/worklog/_context.md` - Update current state
28
43
 
29
44
  ## Essential Commands
30
45
 
@@ -32,6 +47,8 @@ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→u
32
47
  |---------|--------|
33
48
  | `pa:feature "name"` | Start new feature workflow |
34
49
  | `pa:fix "bug"` | Quick bug fix mode |
50
+ | `pa:project-setup` | Interactive project setup wizard |
51
+ | `pa:rnd` | Research & Development workflow |
35
52
  | `pa:doc` | Documentation options |
36
53
  | `pa:qa` | Quality assurance checks |
37
54
  | `pa:test` | Run test workflow |
@@ -9,3 +9,4 @@
9
9
  #
10
10
  # --- Activity Log Start ---
11
11
 
12
+