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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  **AI-Agnostic Development Workflow Framework**
4
4
 
5
- A portable, universal development workflow framework that automates the full software development lifecycle. Works with **any AI platform** (Claude, ChatGPT, Gemini, Copilot, etc.) and **any IDE**.
5
+ A portable, universal development workflow framework that works with **any AI platform** (Claude, ChatGPT, Gemini, Cursor, Copilot, etc.) and enables **multi-AI collaboration** on the same project.
6
6
 
7
7
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
8
8
  [![npm version](https://img.shields.io/npm/v/proagents.svg)](https://www.npmjs.com/package/proagents)
@@ -12,48 +12,43 @@ A portable, universal development workflow framework that automates the full sof
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- # Install globally
16
- npm install -g proagents
17
-
18
- # Or use directly with npx
15
+ # Initialize in your project
19
16
  npx proagents init
20
- ```
21
17
 
22
- ---
23
-
24
- ## Why ProAgents?
18
+ # Or with a template
19
+ npx proagents init --template nextjs-saas
25
20
 
26
- - **No vendor lock-in** - Switch AI platforms without changing your workflow
27
- - **Full lifecycle automation** - From requirements to deployment
28
- - **Self-learning** - Adapts to your coding patterns and preferences
29
- - **Flexible entry points** - Full workflow, bug fix mode, or quick changes
21
+ # Install globally (optional)
22
+ npm install -g proagents
23
+ ```
30
24
 
31
25
  ---
32
26
 
33
27
  ## Quick Start
34
28
 
35
- ### 1. Initialize ProAgents in your project
29
+ ### 1. Initialize ProAgents
36
30
 
37
31
  ```bash
38
32
  cd your-project
39
33
  npx proagents init
40
34
  ```
41
35
 
42
- ### 2. Start a feature
36
+ This creates a `./proagents/` folder with workflow files, and prompts for:
37
+ - Project name and type (auto-detected)
38
+ - Tech stack (API style, database, styling, auth, etc.)
39
+ - AI platforms to use (Claude, Cursor, Gemini, etc.)
43
40
 
44
- **Using CLI:**
45
- ```bash
46
- proagents feature start "Add user authentication"
47
- ```
41
+ ### 2. Use Commands in Any AI
42
+
43
+ Type `pa:` commands in your AI assistant:
48
44
 
49
- **Using AI assistant (Claude, ChatGPT, etc.):**
50
45
  ```
51
46
  pa:feature "Add user authentication"
47
+ pa:fix "Login button not working"
48
+ pa:status
52
49
  ```
53
50
 
54
- ### 3. Follow the guided workflow
55
-
56
- The AI guides you through 10 phases:
51
+ ### 3. AI Follows the Guided Workflow
57
52
 
58
53
  ```
59
54
  Init → Analysis → Requirements → Design → Planning →
@@ -62,84 +57,312 @@ Implementation → Testing → Review → Documentation → Deployment
62
57
 
63
58
  ---
64
59
 
60
+ ## Features
61
+
62
+ ### Multi-AI Collaboration
63
+
64
+ Multiple AIs can work on the same project without conflicts:
65
+
66
+ | Feature | Description |
67
+ |---------|-------------|
68
+ | **Activity Log** | Track what each AI does with model name |
69
+ | **Lock File** | Prevent conflicts during major work |
70
+ | **Handoff Notes** | Pass context between AI sessions |
71
+ | **Conflict Detection** | Warn before overwriting another AI's changes |
72
+ | **Session Summaries** | Auto-generate summary at session end |
73
+
74
+ ### Project Templates
75
+
76
+ Pre-configured settings for common stacks:
77
+
78
+ ```bash
79
+ npx proagents init --template nextjs-saas # Next.js SaaS
80
+ npx proagents init --template react-spa # React SPA
81
+ npx proagents init --template react-native-app # React Native
82
+ npx proagents init --template express-api # Express API
83
+ npx proagents init --template nestjs-api # NestJS API
84
+ npx proagents init --template vue-spa # Vue.js SPA
85
+ npx proagents init --template python-fastapi # Python FastAPI
86
+
87
+ npx proagents init --list-templates # Show all templates
88
+ ```
89
+
90
+ ### AI Learning & Feedback
91
+
92
+ - **Feedback Log** - AI learns from corrections, doesn't repeat mistakes
93
+ - **Error Tracker** - Log errors and solutions for future reference
94
+ - **Decision Log** - Track architectural decisions with reasoning
95
+ - **Context File** - Persistent project knowledge AI reads every session
96
+
97
+ ### File Protection
98
+
99
+ - **Watch List** - Critical files require confirmation before AI modifies
100
+ - Never auto-modify `.env`, config files, migrations, etc.
101
+
102
+ ---
103
+
65
104
  ## CLI Commands
66
105
 
67
106
  ```bash
68
- proagents init # Initialize in current project
69
- proagents feature start "name" # Start a new feature
70
- proagents feature status # Check feature status
71
- proagents fix "bug description" # Quick bug fix mode
72
- proagents status # Show ProAgents status
73
- proagents docs # Open documentation
74
- proagents commands # Show all commands
107
+ # Initialization
108
+ npx proagents init # Initialize in project
109
+ npx proagents init --template <name> # Use a project template
110
+ npx proagents init --list-templates # List available templates
111
+
112
+ # Features & Fixes
113
+ proagents feature start "name" # Start a new feature
114
+ proagents feature status # Check feature status
115
+ proagents fix "bug description" # Quick bug fix mode
116
+
117
+ # Maintenance
118
+ proagents doctor # Health check installation
119
+ proagents upgrade # Upgrade to latest version
120
+ proagents status # Show ProAgents status
121
+
122
+ # AI Platforms
123
+ proagents ai list # List installed AI platforms
124
+ proagents ai add # Add more platforms
125
+ proagents ai remove # Remove platforms
126
+
127
+ # Configuration
128
+ proagents config show # Show current config
129
+ proagents config setup # Interactive config wizard
130
+
131
+ # Other
132
+ proagents docs # Open documentation
133
+ proagents commands # Show all commands
134
+ proagents uninstall # Remove ProAgents
75
135
  ```
76
136
 
77
137
  ---
78
138
 
79
- ## Key Features
139
+ ## AI Commands (pa:)
140
+
141
+ Type these in any AI assistant (Claude, ChatGPT, Gemini, Cursor, etc.):
142
+
143
+ ### Quick Aliases
144
+ | Alias | Expands To |
145
+ |-------|------------|
146
+ | `pa:f` | `pa:feature` |
147
+ | `pa:s` | `pa:status` |
148
+ | `pa:h` | `pa:help` |
149
+ | `pa:d` | `pa:doc` |
150
+ | `pa:t` | `pa:test` |
151
+ | `pa:q` | `pa:qa` |
152
+ | `pa:a` | `pa:analyze` |
153
+ | `pa:r` | `pa:requirements` |
154
+ | `pa:p` | `pa:plan` |
155
+ | `pa:i` | `pa:implement` |
156
+
157
+ ### Core Commands
158
+ | Command | Description |
159
+ |---------|-------------|
160
+ | `pa:feature "name"` | Start new feature workflow (all phases) |
161
+ | `pa:fix "description"` | Quick bug fix mode |
162
+ | `pa:status` | Show current progress |
163
+ | `pa:help` | Show all commands |
164
+
165
+ ### Workflow Phase Commands
166
+ | Command | Phase | Description |
167
+ |---------|-------|-------------|
168
+ | `pa:analyze` | Analysis | Deep codebase analysis |
169
+ | `pa:requirements` | Requirements | Gather feature requirements |
170
+ | `pa:design` | Design | UI/Architecture design |
171
+ | `pa:plan` | Planning | Create implementation plan |
172
+ | `pa:implement` | Implementation | Execute code changes |
173
+ | `pa:test` | Testing | Create and run tests |
174
+ | `pa:review` | Review | Code review workflow |
175
+ | `pa:doc` | Documentation | Generate documentation |
176
+ | `pa:deploy` | Deployment | Deployment preparation |
177
+
178
+ ### Documentation
179
+ | Command | Description |
180
+ |---------|-------------|
181
+ | `pa:doc` | Generate documentation |
182
+ | `pa:changelog` | Update CHANGELOG.md |
183
+ | `pa:release` | Generate release notes |
80
184
 
81
- | Feature | Description |
185
+ ### Quality & Testing
186
+ | Command | Description |
82
187
  |---------|-------------|
83
- | **AI Agnostic** | Works with Claude, ChatGPT, Gemini, Copilot, and more |
84
- | **IDE Agnostic** | VS Code, JetBrains, Cursor, Neovim, any editor |
85
- | **10-Phase Workflow** | Complete SDLC from analysis to deployment |
86
- | **Self-Learning** | Learns your patterns, conventions, and preferences |
87
- | **Flexible Modes** | Full workflow, bug fix fast-track, or quick changes |
88
- | **Parallel Development** | Work on multiple features with conflict detection |
89
- | **Git Integration** | Branching, commits, PRs, and rollback strategies |
90
- | **PM Integration** | Jira, Linear, GitHub Issues, Notion, and more |
188
+ | `pa:qa` | Run quality assurance checks |
189
+ | `pa:rollback` | Rollback procedures |
91
190
 
92
- ---
191
+ ### Multi-AI Collaboration
192
+ | Command | Description |
193
+ |---------|-------------|
194
+ | `pa:activity` | Show recent AI activity |
195
+ | `pa:lock` | Show/check lock status |
196
+ | `pa:lock-release` | Release your lock |
197
+ | `pa:handoff` | Create handoff notes for next AI |
198
+ | `pa:handoff-read` | Read handoff notes |
199
+ | `pa:session-end` | Generate session summary |
200
+
201
+ ### Learning & Tracking
202
+ | Command | Description |
203
+ |---------|-------------|
204
+ | `pa:decision "title"` | Log architectural decision |
205
+ | `pa:decisions` | Show all decisions |
206
+ | `pa:error "description"` | Log error and solution |
207
+ | `pa:errors` | Search past errors |
208
+ | `pa:feedback "description"` | Log feedback for AI learning |
93
209
 
94
- ## Commands
210
+ ### AI Platform Management
211
+ | Command | Description |
212
+ |---------|-------------|
213
+ | `pa:ai-list` | List installed AI platforms |
214
+ | `pa:ai-add` | Add more AI platforms |
215
+ | `pa:ai-sync` | Sync config with files |
95
216
 
96
- Type `pa:` in your AI assistant to use ProAgents commands:
217
+ ### Navigation & Flow
218
+ | Command | Description |
219
+ |---------|-------------|
220
+ | `pa:next` | Show next step in workflow |
221
+ | `pa:resume` | Resume paused feature |
222
+ | `pa:skip` | Skip current phase |
223
+ | `pa:back` | Go to previous phase |
224
+ | `pa:progress` | Show visual progress bar |
97
225
 
226
+ ### Context & History
98
227
  | Command | Description |
99
228
  |---------|-------------|
100
- | `pa:init` | Initialize ProAgents in your project |
101
- | `pa:feature` | Start a new feature |
102
- | `pa:fix` | Quick bug fix mode |
103
- | `pa:doc` | Generate documentation |
104
- | `pa:qa` | Quality assurance checks |
105
- | `pa:test` | Run test workflows |
106
- | `pa:deploy` | Deployment preparation |
107
- | `pa:status` | Check current status |
108
- | `pa:help` | Show all commands |
229
+ | `pa:context` | View project context |
230
+ | `pa:diff` | Show changes since last session |
231
+ | `pa:history` | Show command history |
232
+ | `pa:checkpoint` | Create restore point |
233
+ | `pa:undo` | Undo last action |
234
+
235
+ ### Sprint & Estimation
236
+ | Command | Description |
237
+ |---------|-------------|
238
+ | `pa:sprint-start` | Start new sprint |
239
+ | `pa:sprint-end` | End sprint with summary |
240
+ | `pa:estimate` | Estimate task complexity |
241
+ | `pa:velocity` | Show velocity metrics |
242
+
243
+ ### Integration
244
+ | Command | Description |
245
+ |---------|-------------|
246
+ | `pa:github` | GitHub integration |
247
+ | `pa:github-pr` | Create pull request |
248
+ | `pa:jira` | Sync with Jira |
249
+ | `pa:notify` | Send notification |
250
+
251
+ ### Code Quality
252
+ | Command | Description |
253
+ |---------|-------------|
254
+ | `pa:metrics` | Code quality metrics |
255
+ | `pa:coverage` | Test coverage report |
256
+ | `pa:deps` | Analyze dependencies |
257
+ | `pa:deps-outdated` | Find outdated packages |
258
+ | `pa:deps-security` | Security scan |
259
+
260
+ ### Custom Commands
261
+ | Command | Description |
262
+ |---------|-------------|
263
+ | `pa:standup` | Generate daily standup |
264
+ | `pa:tech-debt` | Scan for technical debt |
265
+ | `pa:security-scan` | Run security checklist |
266
+
267
+ Define your own in `./proagents/custom-commands.yaml`
109
268
 
110
269
  ---
111
270
 
112
- ## Documentation
271
+ ## Key Files
113
272
 
114
- | Document | Description |
115
- |----------|-------------|
116
- | [Getting Started Story](./proagents/GETTING-STARTED-STORY.md) | Narrative walkthrough of a typical day |
117
- | [Complete Workflow Guide](./proagents/WORKFLOW.md) | Detailed 10-phase workflow documentation |
118
- | [Configuration Reference](./proagents/config/README.md) | Configuration options |
119
- | [Examples](./proagents/examples/) | Project-specific walkthroughs |
120
- | [Prompts](./proagents/prompts/) | AI prompts for each phase |
273
+ After initialization, these files help AI understand your project:
274
+
275
+ | File | Purpose | AI Should |
276
+ |------|---------|-----------|
277
+ | `proagents/context.md` | Persistent project knowledge | **Read first every session!** |
278
+ | `proagents/feedback.md` | Past corrections & preferences | Learn from mistakes |
279
+ | `proagents/watchlist.yaml` | Protected files list | Ask before modifying |
280
+ | `proagents/activity.log` | AI activity history | Check for conflicts |
281
+ | `proagents/decisions.md` | Architectural decisions | Understand why choices were made |
282
+ | `proagents/errors.md` | Past errors & solutions | Find solutions faster |
283
+ | `proagents/handoff.md` | Handoff notes | Continue where another AI left off |
121
284
 
122
285
  ---
123
286
 
124
287
  ## Project Structure
125
288
 
126
289
  ```
127
- proagents/
128
- ├── README.md # Quick start guide
129
- ├── WORKFLOW.md # Complete workflow documentation
130
- ├── proagents.config.yaml # Configuration template
131
- ├── prompts/ # AI prompts for each phase
132
- ├── templates/ # Output document templates
133
- ├── checklists/ # Quality checklists
134
- ├── standards/ # Customizable coding standards
135
- ├── examples/ # Project type walkthroughs
136
- ├── config/ # Integration configurations
137
- └── ... # Additional modules
290
+ your-project/
291
+ ├── proagents/
292
+ ├── proagents.config.yaml # Project configuration
293
+ ├── AI_INSTRUCTIONS.md # Instructions for all AIs
294
+ ├── PROAGENTS.md # Quick command reference
295
+ ├── context.md # Persistent project context
296
+ ├── feedback.md # AI learning from corrections
297
+ ├── watchlist.yaml # Protected files
298
+ ├── activity.log # AI activity log
299
+ ├── decisions.md # Decision log
300
+ │ ├── errors.md # Error tracker
301
+ │ ├── handoff.md # Handoff notes
302
+ │ ├── custom-commands.yaml # Custom pa: commands
303
+ │ ├── sessions/ # Session summaries
304
+ │ ├── active-features/ # Feature tracking
305
+ │ ├── prompts/ # Workflow prompts
306
+ │ ├── templates/ # Document templates
307
+ │ ├── checklists/ # Quality checklists
308
+ │ └── ...
309
+ ├── CLAUDE.md # Claude-specific instructions
310
+ ├── .cursorrules # Cursor-specific instructions
311
+ ├── GEMINI.md # Gemini-specific instructions
312
+ └── proagents.config.yaml # Main config (project root)
313
+ ```
314
+
315
+ ---
316
+
317
+ ## Configuration
318
+
319
+ `proagents.config.yaml` stores your project settings:
320
+
321
+ ```yaml
322
+ project:
323
+ name: my-app
324
+ type: nextjs
325
+
326
+ automation:
327
+ decisions:
328
+ architecture:
329
+ api_style: rest
330
+ state_management: zustand
331
+ styling: tailwind
332
+ database: postgresql
333
+ orm: prisma
334
+ auth_method: jwt
335
+ testing:
336
+ framework: vitest
337
+ coverage_target: 80
338
+
339
+ platforms:
340
+ - claude
341
+ - cursor
342
+ - copilot
138
343
  ```
139
344
 
140
345
  ---
141
346
 
142
- ## Supported Integrations
347
+ ## Supported AI Platforms
348
+
349
+ | Platform | Instruction File |
350
+ |----------|-----------------|
351
+ | Claude Code | `CLAUDE.md` |
352
+ | Cursor | `.cursorrules` |
353
+ | Windsurf | `.windsurfrules` |
354
+ | GitHub Copilot | `.github/copilot-instructions.md` |
355
+ | ChatGPT | `CHATGPT.md` |
356
+ | Gemini | `GEMINI.md` |
357
+ | Bolt | `BOLT.md` |
358
+ | Lovable | `LOVABLE.md` |
359
+ | Replit | `REPLIT.md` |
360
+ | Kiro | `KIRO.md` |
361
+ | Groq | `GROQ.md` |
362
+
363
+ ---
364
+
365
+ ## Integrations
143
366
 
144
367
  **Project Management:** Jira, Linear, GitHub Issues, GitLab Issues, Asana, Trello, Notion
145
368
 
@@ -151,6 +374,17 @@ proagents/
151
374
 
152
375
  ---
153
376
 
377
+ ## Documentation
378
+
379
+ | Document | Description |
380
+ |----------|-------------|
381
+ | [Getting Started Story](./proagents/GETTING-STARTED-STORY.md) | Narrative walkthrough |
382
+ | [Complete Workflow](./proagents/WORKFLOW.md) | 10-phase workflow guide |
383
+ | [AI Instructions](./proagents/AI_INSTRUCTIONS.md) | Full AI command reference |
384
+ | [Examples](./proagents/examples/) | Project-specific walkthroughs |
385
+
386
+ ---
387
+
154
388
  ## Contributing
155
389
 
156
390
  Contributions are welcome! Please feel free to submit a Pull Request.
@@ -159,12 +393,10 @@ Contributions are welcome! Please feel free to submit a Pull Request.
159
393
 
160
394
  ## License
161
395
 
162
- This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
396
+ MIT License - see [LICENSE](LICENSE) file.
163
397
 
164
398
  ---
165
399
 
166
- ## Acknowledgments
167
-
168
- Built for developers who want to automate their workflow without vendor lock-in.
400
+ **Built for developers who want AI collaboration without vendor lock-in.**
169
401
 
170
- **Co-authored with Claude (Anthropic)**
402
+ *Co-authored with Claude (Anthropic)*
package/bin/proagents.js CHANGED
@@ -9,6 +9,8 @@ import { helpCommand } from '../lib/commands/help.js';
9
9
  import { aiAddCommand, aiListCommand, aiRemoveCommand } from '../lib/commands/ai.js';
10
10
  import { uninstallCommand } from '../lib/commands/uninstall.js';
11
11
  import { configListCommand, configShowCommand, configEditCommand, configSetCommand, configGetCommand, configSetupCommand, configCustomizeCommand } from '../lib/commands/config.js';
12
+ import { doctorCommand } from '../lib/commands/doctor.js';
13
+ import { upgradeCommand } from '../lib/commands/upgrade.js';
12
14
  import { readFileSync } from 'fs';
13
15
  import { fileURLToPath } from 'url';
14
16
  import { dirname, join } from 'path';
@@ -32,6 +34,8 @@ program
32
34
  .description('Initialize ProAgents in the current project')
33
35
  .option('-f, --force', 'Overwrite existing proagents folder')
34
36
  .option('--skip-config', 'Skip creating config file')
37
+ .option('-t, --template <name>', 'Use a project template (e.g., nextjs-saas, react-spa)')
38
+ .option('--list-templates', 'List available project templates')
35
39
  .action(initCommand);
36
40
 
37
41
  // Feature commands
@@ -157,4 +161,17 @@ program
157
161
  .description('Show all available commands with examples')
158
162
  .action(helpCommand);
159
163
 
164
+ // Doctor command
165
+ program
166
+ .command('doctor')
167
+ .description('Check health of ProAgents installation')
168
+ .action(doctorCommand);
169
+
170
+ // Upgrade command
171
+ program
172
+ .command('upgrade')
173
+ .description('Upgrade proagents folder to latest version')
174
+ .option('-f, --force', 'Skip confirmation prompt')
175
+ .action(upgradeCommand);
176
+
160
177
  program.parse();