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.
@@ -0,0 +1,80 @@
1
+ # pa:ai-add - Add AI Platform
2
+
3
+ Add a new AI platform configuration to this project.
4
+
5
+ ## Steps
6
+
7
+ ### 1. Read Available Platforms
8
+
9
+ **IMPORTANT:** Always read the authoritative list first - do not hallucinate platforms.
10
+
11
+ ```bash
12
+ cat .proagents/platforms.yaml
13
+ ```
14
+
15
+ ### 2. Show Options to User
16
+
17
+ Display platforms grouped by category:
18
+
19
+ ```
20
+ IDE-based AI Assistants:
21
+ 1. claude - Claude Code (CLAUDE.md)
22
+ 2. cursor - Cursor (.cursorrules)
23
+ 3. windsurf - Windsurf (.windsurfrules)
24
+ 4. copilot - GitHub Copilot (.github/copilot-instructions.md)
25
+ 5. kiro - AWS Kiro (KIRO.md)
26
+ 6. gemini - Gemini (GEMINI.md)
27
+
28
+ Web-based AI Platforms:
29
+ 7. replit - Replit AI (REPLIT.md)
30
+ 8. bolt - Bolt.new (BOLT.md)
31
+ 9. lovable - Lovable (LOVABLE.md)
32
+
33
+ Auto-handled (use AGENTS.md):
34
+ - ChatGPT, Groq, Antigravity, Codex CLI, OpenAI API
35
+
36
+ Which platform to add?
37
+ ```
38
+
39
+ ### 3. Create the File
40
+
41
+ After user selects platform:
42
+
43
+ 1. **Read source template** from `.proagents/{file}`
44
+ 2. **Check if target file exists** in project root:
45
+ - If exists: Merge using markers (append ProAgents section)
46
+ - If not exists: Create new file with markers
47
+
48
+ 3. **Wrap content with markers:**
49
+ ```
50
+ <!-- PROAGENTS_START -->
51
+ {content from template}
52
+ <!-- PROAGENTS_END -->
53
+ ```
54
+
55
+ ### 4. Update Config
56
+
57
+ Add platform to `ai_platforms` array in `./proagents.config.yaml`:
58
+
59
+ ```yaml
60
+ ai_platforms:
61
+ - claude
62
+ - cursor
63
+ - {new_platform} # Add this
64
+ ```
65
+
66
+ ### 5. Confirm
67
+
68
+ ```
69
+ Added {platform_name}!
70
+ File: {file_path}
71
+ Config updated: ./proagents.config.yaml
72
+ ```
73
+
74
+ ## Merge Rules
75
+
76
+ When target file already exists:
77
+
78
+ 1. **Has PROAGENTS markers:** Update content between markers only
79
+ 2. **No markers:** Append ProAgents section at end with markers
80
+ 3. **Never overwrite** user's existing configuration
@@ -0,0 +1,41 @@
1
+ # pa:ai-list - List AI Platforms
2
+
3
+ Show which AI platforms are configured for this project.
4
+
5
+ ## Steps
6
+
7
+ 1. **Read config file:**
8
+ ```bash
9
+ cat ./proagents.config.yaml
10
+ ```
11
+
12
+ 2. **Extract `ai_platforms` array** from the config
13
+
14
+ 3. **Display installed platforms:**
15
+ ```
16
+ Installed AI Platforms:
17
+ - Claude Code (CLAUDE.md)
18
+ - Cursor (.cursorrules)
19
+ - ...
20
+ ```
21
+
22
+ 4. **Show available platforms** (not yet installed):
23
+ - Read `.proagents/platforms.yaml` for full list
24
+ - Compare with installed list
25
+ - Show what can be added
26
+
27
+ ## Output Format
28
+
29
+ ```
30
+ Installed AI Platforms:
31
+ [x] claude - Claude Code
32
+ [x] cursor - Cursor
33
+
34
+ Available to Add:
35
+ [ ] windsurf - Windsurf
36
+ [ ] copilot - GitHub Copilot
37
+ [ ] gemini - Gemini
38
+ ...
39
+
40
+ Use pa:ai-add to add more platforms.
41
+ ```
@@ -0,0 +1,112 @@
1
+ # pa:ai-remove - Remove AI Platform
2
+
3
+ Remove an AI platform configuration from this project.
4
+
5
+ ## Steps
6
+
7
+ ### 1. Show Installed Platforms
8
+
9
+ Read config and show what's installed:
10
+
11
+ ```bash
12
+ cat ./proagents.config.yaml
13
+ ```
14
+
15
+ Display:
16
+ ```
17
+ Installed AI Platforms:
18
+ 1. claude - Claude Code (CLAUDE.md)
19
+ 2. cursor - Cursor (.cursorrules)
20
+
21
+ Which platform to remove?
22
+ ```
23
+
24
+ ### 2. Locate the File
25
+
26
+ Get file path from `.proagents/platforms.yaml`:
27
+ - claude → `CLAUDE.md`
28
+ - cursor → `.cursorrules`
29
+ - copilot → `.github/copilot-instructions.md`
30
+ - etc.
31
+
32
+ ### 3. Remove ProAgents Content
33
+
34
+ **CRITICAL: Follow these rules carefully to avoid deleting user's config.**
35
+
36
+ #### Step 3a: Check for Markers
37
+
38
+ Look for these markers in the file:
39
+ ```
40
+ <!-- PROAGENTS_START -->
41
+ ...content...
42
+ <!-- PROAGENTS_END -->
43
+ ```
44
+
45
+ #### Step 3b: If Markers Found
46
+
47
+ 1. Remove ONLY the content between markers (including the markers)
48
+ 2. Keep ALL other content in the file
49
+ 3. Clean up extra blank lines
50
+ 4. If file is empty after removal → delete the file
51
+ 5. If file has remaining content → keep the file
52
+
53
+ **Example:**
54
+ ```
55
+ # My Custom Rules ← KEEP
56
+ Some user config ← KEEP
57
+
58
+ <!-- PROAGENTS_START --> ← REMOVE
59
+ ProAgents content... ← REMOVE
60
+ <!-- PROAGENTS_END --> ← REMOVE
61
+
62
+ # More user config ← KEEP
63
+ ```
64
+
65
+ #### Step 3c: If NO Markers Found
66
+
67
+ **DO NOT DELETE THE FILE.**
68
+
69
+ The file may contain user's own configuration that predates ProAgents or was manually edited.
70
+
71
+ Action:
72
+ 1. Warn user: "No ProAgents markers found in {file}"
73
+ 2. Suggest: "Manual cleanup may be needed"
74
+ 3. Skip file removal
75
+ 4. Still update config (step 4)
76
+
77
+ ### 4. Update Config
78
+
79
+ Remove platform from `ai_platforms` in `./proagents.config.yaml`:
80
+
81
+ ```yaml
82
+ ai_platforms:
83
+ - claude
84
+ # - cursor ← removed
85
+ ```
86
+
87
+ ### 5. Confirm
88
+
89
+ Success cases:
90
+ ```
91
+ Removed {platform}:
92
+ - Deleted: {file} (file only had ProAgents content)
93
+ OR
94
+ - Cleaned: {file} (kept your custom config)
95
+ ```
96
+
97
+ Skip case:
98
+ ```
99
+ Skipped {platform}:
100
+ - No ProAgents markers in {file}
101
+ - Manual cleanup may be needed
102
+ - Config updated anyway
103
+ ```
104
+
105
+ ## Safety Summary
106
+
107
+ | Scenario | Action |
108
+ |----------|--------|
109
+ | File has markers, only ProAgents content | Delete file |
110
+ | File has markers + user content | Remove markers section, keep rest |
111
+ | File has no markers | **SKIP - don't delete** |
112
+ | File doesn't exist | Skip silently |
@@ -0,0 +1,96 @@
1
+ # pa:ai-sync - Sync AI Platform Config
2
+
3
+ Synchronize the config file with actual AI instruction files (fix mismatches).
4
+
5
+ ## When to Use
6
+
7
+ - After manually adding/removing AI files
8
+ - When config is out of sync with files
9
+ - To detect and fix inconsistencies
10
+
11
+ ## Steps
12
+
13
+ ### 1. Read Current Config
14
+
15
+ ```bash
16
+ cat ./proagents.config.yaml
17
+ ```
18
+
19
+ Extract `ai_platforms` array.
20
+
21
+ ### 2. Read Platform Definitions
22
+
23
+ ```bash
24
+ cat .proagents/platforms.yaml
25
+ ```
26
+
27
+ ### 3. Scan for Existing Files
28
+
29
+ Check project root for each platform's file:
30
+
31
+ | Platform | File to Check |
32
+ |----------|---------------|
33
+ | claude | `CLAUDE.md` |
34
+ | cursor | `.cursorrules` |
35
+ | windsurf | `.windsurfrules` |
36
+ | copilot | `.github/copilot-instructions.md` |
37
+ | kiro | `KIRO.md` |
38
+ | gemini | `GEMINI.md` |
39
+ | replit | `REPLIT.md` |
40
+ | bolt | `BOLT.md` |
41
+ | lovable | `LOVABLE.md` |
42
+
43
+ ### 4. Compare and Report
44
+
45
+ ```
46
+ AI Platform Sync Status:
47
+
48
+ In Config + File Exists:
49
+ [x] claude - CLAUDE.md
50
+ [x] cursor - .cursorrules
51
+
52
+ In Config but File Missing:
53
+ [!] windsurf - .windsurfrules NOT FOUND
54
+
55
+ File Exists but Not in Config:
56
+ [?] gemini - GEMINI.md exists
57
+
58
+ Actions needed:
59
+ 1. Add windsurf file OR remove from config
60
+ 2. Add gemini to config OR delete file
61
+ ```
62
+
63
+ ### 5. Ask User for Action
64
+
65
+ For each mismatch:
66
+
67
+ **File missing:**
68
+ ```
69
+ windsurf is in config but file doesn't exist.
70
+ 1. Create the file (copy from .proagents/)
71
+ 2. Remove from config
72
+ ```
73
+
74
+ **File exists but not in config:**
75
+ ```
76
+ GEMINI.md exists but gemini not in config.
77
+ 1. Add to config
78
+ 2. Delete the file
79
+ ```
80
+
81
+ ### 6. Apply Fixes
82
+
83
+ Based on user choice:
84
+ - Create missing files (use `pa:ai-add` logic)
85
+ - Remove orphaned entries from config
86
+ - Add discovered platforms to config
87
+ - Delete orphaned files (use `pa:ai-remove` logic)
88
+
89
+ ### 7. Confirm
90
+
91
+ ```
92
+ Sync complete!
93
+ - Added: gemini to config
94
+ - Created: .windsurfrules
95
+ - Removed: kiro from config (file was missing)
96
+ ```
@@ -55,6 +55,30 @@ The complete 10-phase development workflow for new features.
55
55
  └─────────────────────────────────────────────────────────────┘
56
56
  ```
57
57
 
58
+ ### Flow Context Check
59
+
60
+ Before starting, check `.proagents/worklog/_context.md` for Flow Context:
61
+
62
+ ```
63
+ 📋 Checking for prior context...
64
+
65
+ If Flow Context exists:
66
+ ┌─────────────────────────────────────────────────────────┐
67
+ │ 📋 Continuing from previous workflow │
68
+ │ │
69
+ │ Last Command: pa:rnd-compare │
70
+ │ Decision: Zustand for state management │
71
+ │ Context: E-commerce cart state │
72
+ │ Research: docs/research/comparisons/state-mgmt.md │
73
+ │ │
74
+ │ Use this context? (yes/no/modify) │
75
+ └─────────────────────────────────────────────────────────┘
76
+
77
+ If "yes": Pre-populate feature with context data
78
+ If "no": Start fresh, clear Flow Context
79
+ If "modify": Allow user to adjust context
80
+ ```
81
+
58
82
  ### Starting Full Workflow
59
83
 
60
84
  ```bash
@@ -63,6 +87,9 @@ pa:feature start "User Profile Management"
63
87
 
64
88
  # With options
65
89
  pa:feature start "User Profile" --skip-ui --checkpoint=critical
90
+
91
+ # Continue from RND (auto-reads Flow Context)
92
+ pa:feature start "Cart State" --from-rnd
66
93
  ```
67
94
 
68
95
  ### Checkpoints
@@ -72,6 +72,53 @@ Failing: [Test names or "None"]
72
72
  | Open Issues | [N] |
73
73
  ```
74
74
 
75
+ ---
76
+
77
+ ## Flow Context
78
+ <!-- Tracks command chain for seamless transitions between pa: commands -->
79
+ ```
80
+ Current Flow: [command chain, e.g., "rnd → feature → plan"]
81
+ Last Command: [last pa: command run]
82
+ Decision: [key decision made, if any]
83
+ Context: [relevant context to carry forward]
84
+ Next Suggested: [suggested next command]
85
+ Data: [JSON data to pass to next command]
86
+ ```
87
+
88
+ ### Flow Context Rules
89
+
90
+ 1. **Write after completion** - Each command writes its output to Flow Context
91
+ 2. **Read on start** - Commands check Flow Context for relevant prior decisions
92
+ 3. **Offer continuation** - If Flow Context has Next Suggested, offer to run it
93
+ 4. **Clear on explicit start** - When user starts fresh workflow, clear Flow Context
94
+ 5. **Preserve data** - JSON data carries structured info (tech stack, decisions, etc.)
95
+
96
+ ### Example Flow
97
+
98
+ ```markdown
99
+ ## Flow Context
100
+ ```
101
+ Current Flow: rnd → feature
102
+ Last Command: pa:rnd-compare
103
+ Decision: Zustand for state management
104
+ Context: E-commerce cart with complex state
105
+ Next Suggested: pa:feature "cart state management"
106
+ Data: {"tech": "zustand", "use_case": "cart", "research_doc": "docs/research/comparisons/state-management-2024-03-17.md"}
107
+ ```
108
+ ```
109
+
110
+ When pa:feature starts, it reads this and says:
111
+ ```
112
+ 📋 Continuing from R&D...
113
+
114
+ You recently decided on Zustand for cart state management.
115
+ Research: docs/research/comparisons/state-management-2024-03-17.md
116
+
117
+ Start feature with this context? (yes/no/different)
118
+ ```
119
+
120
+ ---
121
+
75
122
  ## Auto-Update Rules
76
123
 
77
124
  1. **Update `Last Updated`** with current timestamp
package/COMMANDS.md CHANGED
@@ -212,6 +212,65 @@ Type these in any AI assistant (Claude, ChatGPT, Gemini, Cursor, etc.)
212
212
 
213
213
  ---
214
214
 
215
+ ## Project Setup
216
+
217
+ | Command | Description |
218
+ |---------|-------------|
219
+ | `pa:project-setup` | Interactive setup wizard (new or existing projects) |
220
+ | `pa:setup` | Alias for pa:project-setup |
221
+ | `pa:setup --preset [name]` | Use quick preset (mobile-mvp, saas, etc.) |
222
+ | `pa:setup --analyze` | Analyze existing project only |
223
+ | `pa:setup --resume` | Resume interrupted setup |
224
+ | `pa:setup --clear-progress` | Clear saved progress and start fresh |
225
+
226
+ **Features:**
227
+ - Quick Presets - Instant setup for common stacks (Mobile MVP, SaaS, E-commerce, etc.)
228
+ - Idea-First Mode - Describe your idea, AI suggests tech stack with comparison table
229
+ - Full Automation - Installs packages, creates folders, generates docs
230
+ - Resume Support - Auto-saves progress, resume if interrupted
231
+ - Merge Strategy - Updates existing docs without overwriting custom content
232
+ - Works for both new projects and existing codebases
233
+
234
+ ---
235
+
236
+ ## Research & Development
237
+
238
+ | Command | Description |
239
+ |---------|-------------|
240
+ | `pa:rnd` | Interactive R&D workflow (compare, prototype, explore) |
241
+ | `pa:research` | Alias for pa:rnd |
242
+ | `pa:rnd-compare` | Direct to comparison mode |
243
+ | `pa:rnd-poc` | Direct to prototype mode |
244
+ | `pa:rnd-explore` | Direct to exploration mode |
245
+ | `pa:rnd --quick` | Quick 5-minute research |
246
+ | `pa:rnd --resume` | Resume interrupted session |
247
+ | `pa:rnd --clear` | Clear saved progress |
248
+
249
+ **Features:**
250
+ - Compare Options - Side-by-side library/framework comparisons with weighted scoring
251
+ - Build POC - Quick proof-of-concept in isolated `./poc/` folder
252
+ - Explore Solutions - Research and document findings
253
+ - Web Search - Verify latest package stats (stars, downloads, releases)
254
+ - Cost Estimator - Monthly costs at different user scales
255
+ - Deprecation Alerts - Warn about deprecated/insecure packages
256
+ - Comparison Tables - Visual side-by-side with recommendations
257
+ - Past Decision Recall - Surface previous decisions on similar topics
258
+ - Scope Guard - Alert when research drifts off-topic
259
+ - Resume Support - Auto-saves progress
260
+ - Tags & Categories - Organize research by topic
261
+ - Archive System - Auto-archive old research after 6 months
262
+ - Review Reminders - Set reminder to revisit decisions
263
+ - Next Phase Integration - After RND, trigger pa:feature or pa:plan
264
+
265
+ **Outputs:**
266
+ - Comparison docs: `docs/research/comparisons/`
267
+ - Research findings: `docs/research/findings/`
268
+ - Research index: `docs/research/INDEX.md`
269
+ - Bookmarks: `docs/research/BOOKMARKS.md`
270
+ - POC code: `./poc/[name]/`
271
+
272
+ ---
273
+
215
274
  ## Workflow Phase Commands
216
275
 
217
276
  | Command | Phase | Description |
package/README.md CHANGED
@@ -164,6 +164,8 @@ Type these in any AI assistant (Claude, ChatGPT, Gemini, Cursor, etc.):
164
164
  |---------|-------------|
165
165
  | `pa:feature "name"` | Start new feature workflow (all phases) |
166
166
  | `pa:fix "description"` | Quick bug fix mode |
167
+ | `pa:project-setup` | Interactive project setup wizard |
168
+ | `pa:rnd` | Research & Development workflow |
167
169
  | `pa:status` | Show current progress |
168
170
  | `pa:sync` | Load project context (usually auto) |
169
171
  | `pa:test` | Run tests |
@@ -173,7 +175,7 @@ Type these in any AI assistant (Claude, ChatGPT, Gemini, Cursor, etc.):
173
175
  | `pa:undo-last` | Revert last AI's changes |
174
176
  | `pa:handoff` | Create notes for another AI |
175
177
 
176
- **Quick aliases:** `pa:f` (feature), `pa:s` (status), `pa:t` (test), `pa:h` (help)
178
+ **Quick aliases:** `pa:f` (feature), `pa:s` (status), `pa:t` (test), `pa:h` (help), `pa:setup` (project-setup), `pa:research` (rnd)
177
179
 
178
180
  📖 **Want more?** See [COMMANDS.md](COMMANDS.md) for 100+ AI commands (debugging, testing, refactoring, code generation, sprints...)
179
181