bps-kit 1.0.4 → 1.0.6
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/package.json +1 -1
- package/templates/VAULT_INDEX.md +2 -2
- package/templates/agents-template/agents/backend-specialist.md +263 -0
- package/templates/agents-template/agents/code-archaeologist.md +106 -0
- package/templates/agents-template/agents/database-architect.md +226 -0
- package/templates/agents-template/agents/debugger.md +225 -0
- package/templates/agents-template/agents/devops-engineer.md +242 -0
- package/templates/agents-template/agents/documentation-writer.md +104 -0
- package/templates/agents-template/agents/explorer-agent.md +73 -0
- package/templates/agents-template/agents/frontend-specialist.md +593 -0
- package/templates/agents-template/agents/game-developer.md +162 -0
- package/templates/agents-template/agents/mobile-developer.md +377 -0
- package/templates/agents-template/agents/orchestrator.md +416 -0
- package/templates/agents-template/agents/penetration-tester.md +188 -0
- package/templates/agents-template/agents/performance-optimizer.md +187 -0
- package/templates/agents-template/agents/product-manager.md +112 -0
- package/templates/agents-template/agents/product-owner.md +95 -0
- package/templates/agents-template/agents/project-planner.md +406 -0
- package/templates/agents-template/agents/qa-automation-engineer.md +103 -0
- package/templates/agents-template/agents/security-auditor.md +170 -0
- package/templates/agents-template/agents/seo-specialist.md +111 -0
- package/templates/agents-template/agents/test-engineer.md +158 -0
- package/templates/agents-template/rules/GEMINI.md +4 -4
- package/templates/agents-template/scripts/auto_preview.py +148 -0
- package/templates/agents-template/scripts/checklist.py +217 -0
- package/templates/agents-template/scripts/session_manager.py +120 -0
- package/templates/agents-template/scripts/verify_all.py +327 -0
- package/templates/agents-template/workflows/brainstorm.md +113 -0
- package/templates/agents-template/workflows/create.md +59 -0
- package/templates/agents-template/workflows/debug.md +103 -0
- package/templates/agents-template/workflows/deploy.md +176 -0
- package/templates/agents-template/workflows/enhance.md +63 -0
- package/templates/agents-template/workflows/orchestrate.md +237 -0
- package/templates/agents-template/workflows/plan.md +89 -0
- package/templates/agents-template/workflows/preview.md +81 -0
- package/templates/agents-template/workflows/status.md +86 -0
- package/templates/agents-template/workflows/test.md +144 -0
- package/templates/agents-template/workflows/ui-ux-pro-max.md +296 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Debugging command. Activates DEBUG mode for systematic problem investigation.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /debug - Systematic Problem Investigation
|
|
6
|
+
|
|
7
|
+
$ARGUMENTS
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Purpose
|
|
12
|
+
|
|
13
|
+
This command activates DEBUG mode for systematic investigation of issues, errors, or unexpected behavior.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Behavior
|
|
18
|
+
|
|
19
|
+
When `/debug` is triggered:
|
|
20
|
+
|
|
21
|
+
1. **Gather information**
|
|
22
|
+
- Error message
|
|
23
|
+
- Reproduction steps
|
|
24
|
+
- Expected vs actual behavior
|
|
25
|
+
- Recent changes
|
|
26
|
+
|
|
27
|
+
2. **Form hypotheses**
|
|
28
|
+
- List possible causes
|
|
29
|
+
- Order by likelihood
|
|
30
|
+
|
|
31
|
+
3. **Investigate systematically**
|
|
32
|
+
- Test each hypothesis
|
|
33
|
+
- Check logs, data flow
|
|
34
|
+
- Use elimination method
|
|
35
|
+
|
|
36
|
+
4. **Fix and prevent**
|
|
37
|
+
- Apply fix
|
|
38
|
+
- Explain root cause
|
|
39
|
+
- Add prevention measures
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Output Format
|
|
44
|
+
|
|
45
|
+
```markdown
|
|
46
|
+
## 🔍 Debug: [Issue]
|
|
47
|
+
|
|
48
|
+
### 1. Symptom
|
|
49
|
+
[What's happening]
|
|
50
|
+
|
|
51
|
+
### 2. Information Gathered
|
|
52
|
+
- Error: `[error message]`
|
|
53
|
+
- File: `[filepath]`
|
|
54
|
+
- Line: [line number]
|
|
55
|
+
|
|
56
|
+
### 3. Hypotheses
|
|
57
|
+
1. ❓ [Most likely cause]
|
|
58
|
+
2. ❓ [Second possibility]
|
|
59
|
+
3. ❓ [Less likely cause]
|
|
60
|
+
|
|
61
|
+
### 4. Investigation
|
|
62
|
+
|
|
63
|
+
**Testing hypothesis 1:**
|
|
64
|
+
[What I checked] → [Result]
|
|
65
|
+
|
|
66
|
+
**Testing hypothesis 2:**
|
|
67
|
+
[What I checked] → [Result]
|
|
68
|
+
|
|
69
|
+
### 5. Root Cause
|
|
70
|
+
🎯 **[Explanation of why this happened]**
|
|
71
|
+
|
|
72
|
+
### 6. Fix
|
|
73
|
+
```[language]
|
|
74
|
+
// Before
|
|
75
|
+
[broken code]
|
|
76
|
+
|
|
77
|
+
// After
|
|
78
|
+
[fixed code]
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### 7. Prevention
|
|
82
|
+
🛡️ [How to prevent this in the future]
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## Examples
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
/debug login not working
|
|
91
|
+
/debug API returns 500
|
|
92
|
+
/debug form doesn't submit
|
|
93
|
+
/debug data not saving
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Key Principles
|
|
99
|
+
|
|
100
|
+
- **Ask before assuming** - get full error context
|
|
101
|
+
- **Test hypotheses** - don't guess randomly
|
|
102
|
+
- **Explain why** - not just what to fix
|
|
103
|
+
- **Prevent recurrence** - add tests, validation
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Deployment command for production releases. Pre-flight checks and deployment execution.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /deploy - Production Deployment
|
|
6
|
+
|
|
7
|
+
$ARGUMENTS
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Purpose
|
|
12
|
+
|
|
13
|
+
This command handles production deployment with pre-flight checks, deployment execution, and verification.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Sub-commands
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
/deploy - Interactive deployment wizard
|
|
21
|
+
/deploy check - Run pre-deployment checks only
|
|
22
|
+
/deploy preview - Deploy to preview/staging
|
|
23
|
+
/deploy production - Deploy to production
|
|
24
|
+
/deploy rollback - Rollback to previous version
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Pre-Deployment Checklist
|
|
30
|
+
|
|
31
|
+
Before any deployment:
|
|
32
|
+
|
|
33
|
+
```markdown
|
|
34
|
+
## 🚀 Pre-Deploy Checklist
|
|
35
|
+
|
|
36
|
+
### Code Quality
|
|
37
|
+
- [ ] No TypeScript errors (`npx tsc --noEmit`)
|
|
38
|
+
- [ ] ESLint passing (`npx eslint .`)
|
|
39
|
+
- [ ] All tests passing (`npm test`)
|
|
40
|
+
|
|
41
|
+
### Security
|
|
42
|
+
- [ ] No hardcoded secrets
|
|
43
|
+
- [ ] Environment variables documented
|
|
44
|
+
- [ ] Dependencies audited (`npm audit`)
|
|
45
|
+
|
|
46
|
+
### Performance
|
|
47
|
+
- [ ] Bundle size acceptable
|
|
48
|
+
- [ ] No console.log statements
|
|
49
|
+
- [ ] Images optimized
|
|
50
|
+
|
|
51
|
+
### Documentation
|
|
52
|
+
- [ ] README updated
|
|
53
|
+
- [ ] CHANGELOG updated
|
|
54
|
+
- [ ] API docs current
|
|
55
|
+
|
|
56
|
+
### Ready to deploy? (y/n)
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## Deployment Flow
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
┌─────────────────┐
|
|
65
|
+
│ /deploy │
|
|
66
|
+
└────────┬────────┘
|
|
67
|
+
│
|
|
68
|
+
▼
|
|
69
|
+
┌─────────────────┐
|
|
70
|
+
│ Pre-flight │
|
|
71
|
+
│ checks │
|
|
72
|
+
└────────┬────────┘
|
|
73
|
+
│
|
|
74
|
+
Pass? ──No──► Fix issues
|
|
75
|
+
│
|
|
76
|
+
Yes
|
|
77
|
+
│
|
|
78
|
+
▼
|
|
79
|
+
┌─────────────────┐
|
|
80
|
+
│ Build │
|
|
81
|
+
│ application │
|
|
82
|
+
└────────┬────────┘
|
|
83
|
+
│
|
|
84
|
+
▼
|
|
85
|
+
┌─────────────────┐
|
|
86
|
+
│ Deploy to │
|
|
87
|
+
│ platform │
|
|
88
|
+
└────────┬────────┘
|
|
89
|
+
│
|
|
90
|
+
▼
|
|
91
|
+
┌─────────────────┐
|
|
92
|
+
│ Health check │
|
|
93
|
+
│ & verify │
|
|
94
|
+
└────────┬────────┘
|
|
95
|
+
│
|
|
96
|
+
▼
|
|
97
|
+
┌─────────────────┐
|
|
98
|
+
│ ✅ Complete │
|
|
99
|
+
└─────────────────┘
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Output Format
|
|
105
|
+
|
|
106
|
+
### Successful Deploy
|
|
107
|
+
|
|
108
|
+
```markdown
|
|
109
|
+
## 🚀 Deployment Complete
|
|
110
|
+
|
|
111
|
+
### Summary
|
|
112
|
+
- **Version:** v1.2.3
|
|
113
|
+
- **Environment:** production
|
|
114
|
+
- **Duration:** 47 seconds
|
|
115
|
+
- **Platform:** Vercel
|
|
116
|
+
|
|
117
|
+
### URLs
|
|
118
|
+
- 🌐 Production: https://app.example.com
|
|
119
|
+
- 📊 Dashboard: https://vercel.com/project
|
|
120
|
+
|
|
121
|
+
### What Changed
|
|
122
|
+
- Added user profile feature
|
|
123
|
+
- Fixed login bug
|
|
124
|
+
- Updated dependencies
|
|
125
|
+
|
|
126
|
+
### Health Check
|
|
127
|
+
✅ API responding (200 OK)
|
|
128
|
+
✅ Database connected
|
|
129
|
+
✅ All services healthy
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Failed Deploy
|
|
133
|
+
|
|
134
|
+
```markdown
|
|
135
|
+
## ❌ Deployment Failed
|
|
136
|
+
|
|
137
|
+
### Error
|
|
138
|
+
Build failed at step: TypeScript compilation
|
|
139
|
+
|
|
140
|
+
### Details
|
|
141
|
+
```
|
|
142
|
+
error TS2345: Argument of type 'string' is not assignable...
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Resolution
|
|
146
|
+
1. Fix TypeScript error in `src/services/user.ts:45`
|
|
147
|
+
2. Run `npm run build` locally to verify
|
|
148
|
+
3. Try `/deploy` again
|
|
149
|
+
|
|
150
|
+
### Rollback Available
|
|
151
|
+
Previous version (v1.2.2) is still active.
|
|
152
|
+
Run `/deploy rollback` if needed.
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## Platform Support
|
|
158
|
+
|
|
159
|
+
| Platform | Command | Notes |
|
|
160
|
+
|----------|---------|-------|
|
|
161
|
+
| Vercel | `vercel --prod` | Auto-detected for Next.js |
|
|
162
|
+
| Railway | `railway up` | Needs Railway CLI |
|
|
163
|
+
| Fly.io | `fly deploy` | Needs flyctl |
|
|
164
|
+
| Docker | `docker compose up -d` | For self-hosted |
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## Examples
|
|
169
|
+
|
|
170
|
+
```
|
|
171
|
+
/deploy
|
|
172
|
+
/deploy check
|
|
173
|
+
/deploy preview
|
|
174
|
+
/deploy production --skip-tests
|
|
175
|
+
/deploy rollback
|
|
176
|
+
```
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Add or update features in existing application. Used for iterative development.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /enhance - Update Application
|
|
6
|
+
|
|
7
|
+
$ARGUMENTS
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Task
|
|
12
|
+
|
|
13
|
+
This command adds features or makes updates to existing application.
|
|
14
|
+
|
|
15
|
+
### Steps:
|
|
16
|
+
|
|
17
|
+
1. **Understand Current State**
|
|
18
|
+
- Load project state with `python .agents/scripts/session_manager.py info`
|
|
19
|
+
- Understand existing features, tech stack
|
|
20
|
+
|
|
21
|
+
2. **Plan Changes**
|
|
22
|
+
- Determine what will be added/changed
|
|
23
|
+
- Detect affected files
|
|
24
|
+
- Check dependencies
|
|
25
|
+
|
|
26
|
+
3. **Present Plan to User** (for major changes)
|
|
27
|
+
```
|
|
28
|
+
"To add admin panel:
|
|
29
|
+
- I'll create 15 new files
|
|
30
|
+
- Update 8 files
|
|
31
|
+
- Takes ~10 minutes
|
|
32
|
+
|
|
33
|
+
Should I start?"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
4. **Apply**
|
|
37
|
+
- Call relevant agents
|
|
38
|
+
- Make changes
|
|
39
|
+
- Test
|
|
40
|
+
|
|
41
|
+
5. **Update Preview**
|
|
42
|
+
- Hot reload or restart
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Usage Examples
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
/enhance add dark mode
|
|
50
|
+
/enhance build admin panel
|
|
51
|
+
/enhance integrate payment system
|
|
52
|
+
/enhance add search feature
|
|
53
|
+
/enhance edit profile page
|
|
54
|
+
/enhance make responsive
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Caution
|
|
60
|
+
|
|
61
|
+
- Get approval for major changes
|
|
62
|
+
- Warn on conflicting requests (e.g., "use Firebase" when project uses PostgreSQL)
|
|
63
|
+
- Commit each change with git
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Coordinate multiple agents for complex tasks. Use for multi-perspective analysis, comprehensive reviews, or tasks requiring different domain expertise.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Multi-Agent Orchestration
|
|
6
|
+
|
|
7
|
+
You are now in **ORCHESTRATION MODE**. Your task: coordinate specialized agents to solve this complex problem.
|
|
8
|
+
|
|
9
|
+
## Task to Orchestrate
|
|
10
|
+
$ARGUMENTS
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 🔴 CRITICAL: Minimum Agent Requirement
|
|
15
|
+
|
|
16
|
+
> ⚠️ **ORCHESTRATION = MINIMUM 3 DIFFERENT AGENTS**
|
|
17
|
+
>
|
|
18
|
+
> If you use fewer than 3 agents, you are NOT orchestrating - you're just delegating.
|
|
19
|
+
>
|
|
20
|
+
> **Validation before completion:**
|
|
21
|
+
> - Count invoked agents
|
|
22
|
+
> - If `agent_count < 3` → STOP and invoke more agents
|
|
23
|
+
> - Single agent = FAILURE of orchestration
|
|
24
|
+
|
|
25
|
+
### Agent Selection Matrix
|
|
26
|
+
|
|
27
|
+
| Task Type | REQUIRED Agents (minimum) |
|
|
28
|
+
|-----------|---------------------------|
|
|
29
|
+
| **Web App** | frontend-specialist, backend-specialist, test-engineer |
|
|
30
|
+
| **API** | backend-specialist, security-auditor, test-engineer |
|
|
31
|
+
| **UI/Design** | frontend-specialist, seo-specialist, performance-optimizer |
|
|
32
|
+
| **Database** | database-architect, backend-specialist, security-auditor |
|
|
33
|
+
| **Full Stack** | project-planner, frontend-specialist, backend-specialist, devops-engineer |
|
|
34
|
+
| **Debug** | debugger, explorer-agent, test-engineer |
|
|
35
|
+
| **Security** | security-auditor, penetration-tester, devops-engineer |
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Pre-Flight: Mode Check
|
|
40
|
+
|
|
41
|
+
| Current Mode | Task Type | Action |
|
|
42
|
+
|--------------|-----------|--------|
|
|
43
|
+
| **plan** | Any | ✅ Proceed with planning-first approach |
|
|
44
|
+
| **edit** | Simple execution | ✅ Proceed directly |
|
|
45
|
+
| **edit** | Complex/multi-file | ⚠️ Ask: "This task requires planning. Switch to plan mode?" |
|
|
46
|
+
| **ask** | Any | ⚠️ Ask: "Ready to orchestrate. Switch to edit or plan mode?" |
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## 🔴 STRICT 2-PHASE ORCHESTRATION
|
|
51
|
+
|
|
52
|
+
### PHASE 1: PLANNING (Sequential - NO parallel agents)
|
|
53
|
+
|
|
54
|
+
| Step | Agent | Action |
|
|
55
|
+
|------|-------|--------|
|
|
56
|
+
| 1 | `project-planner` | Create docs/PLAN.md |
|
|
57
|
+
| 2 | (optional) `explorer-agent` | Codebase discovery if needed |
|
|
58
|
+
|
|
59
|
+
> 🔴 **NO OTHER AGENTS during planning!** Only project-planner and explorer-agent.
|
|
60
|
+
|
|
61
|
+
### ⏸️ CHECKPOINT: User Approval
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
After PLAN.md is complete, ASK:
|
|
65
|
+
|
|
66
|
+
"✅ Plan created: docs/PLAN.md
|
|
67
|
+
|
|
68
|
+
Do you approve? (Y/N)
|
|
69
|
+
- Y: Start implementation
|
|
70
|
+
- N: I'll revise the plan"
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
> 🔴 **DO NOT proceed to Phase 2 without explicit user approval!**
|
|
74
|
+
|
|
75
|
+
### PHASE 2: IMPLEMENTATION (Parallel agents after approval)
|
|
76
|
+
|
|
77
|
+
| Parallel Group | Agents |
|
|
78
|
+
|----------------|--------|
|
|
79
|
+
| Foundation | `database-architect`, `security-auditor` |
|
|
80
|
+
| Core | `backend-specialist`, `frontend-specialist` |
|
|
81
|
+
| Polish | `test-engineer`, `devops-engineer` |
|
|
82
|
+
|
|
83
|
+
> ✅ After user approval, invoke multiple agents in PARALLEL.
|
|
84
|
+
|
|
85
|
+
## Available Agents (17 total)
|
|
86
|
+
|
|
87
|
+
| Agent | Domain | Use When |
|
|
88
|
+
|-------|--------|----------|
|
|
89
|
+
| `project-planner` | Planning | Task breakdown, PLAN.md |
|
|
90
|
+
| `explorer-agent` | Discovery | Codebase mapping |
|
|
91
|
+
| `frontend-specialist` | UI/UX | React, Vue, CSS, HTML |
|
|
92
|
+
| `backend-specialist` | Server | API, Node.js, Python |
|
|
93
|
+
| `database-architect` | Data | SQL, NoSQL, Schema |
|
|
94
|
+
| `security-auditor` | Security | Vulnerabilities, Auth |
|
|
95
|
+
| `penetration-tester` | Security | Active testing |
|
|
96
|
+
| `test-engineer` | Testing | Unit, E2E, Coverage |
|
|
97
|
+
| `devops-engineer` | Ops | CI/CD, Docker, Deploy |
|
|
98
|
+
| `mobile-developer` | Mobile | React Native, Flutter |
|
|
99
|
+
| `performance-optimizer` | Speed | Lighthouse, Profiling |
|
|
100
|
+
| `seo-specialist` | SEO | Meta, Schema, Rankings |
|
|
101
|
+
| `documentation-writer` | Docs | README, API docs |
|
|
102
|
+
| `debugger` | Debug | Error analysis |
|
|
103
|
+
| `game-developer` | Games | Unity, Godot |
|
|
104
|
+
| `orchestrator` | Meta | Coordination |
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Orchestration Protocol
|
|
109
|
+
|
|
110
|
+
### Step 1: Analyze Task Domains
|
|
111
|
+
Identify ALL domains this task touches:
|
|
112
|
+
```
|
|
113
|
+
□ Security → security-auditor, penetration-tester
|
|
114
|
+
□ Backend/API → backend-specialist
|
|
115
|
+
□ Frontend/UI → frontend-specialist
|
|
116
|
+
□ Database → database-architect
|
|
117
|
+
□ Testing → test-engineer
|
|
118
|
+
□ DevOps → devops-engineer
|
|
119
|
+
□ Mobile → mobile-developer
|
|
120
|
+
□ Performance → performance-optimizer
|
|
121
|
+
□ SEO → seo-specialist
|
|
122
|
+
□ Planning → project-planner
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Step 2: Phase Detection
|
|
126
|
+
|
|
127
|
+
| If Plan Exists | Action |
|
|
128
|
+
|----------------|--------|
|
|
129
|
+
| NO `docs/PLAN.md` | → Go to PHASE 1 (planning only) |
|
|
130
|
+
| YES `docs/PLAN.md` + user approved | → Go to PHASE 2 (implementation) |
|
|
131
|
+
|
|
132
|
+
### Step 3: Execute Based on Phase
|
|
133
|
+
|
|
134
|
+
**PHASE 1 (Planning):**
|
|
135
|
+
```
|
|
136
|
+
Use the project-planner agent to create PLAN.md
|
|
137
|
+
→ STOP after plan is created
|
|
138
|
+
→ ASK user for approval
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
**PHASE 2 (Implementation - after approval):**
|
|
142
|
+
```
|
|
143
|
+
Invoke agents in PARALLEL:
|
|
144
|
+
Use the frontend-specialist agent to [task]
|
|
145
|
+
Use the backend-specialist agent to [task]
|
|
146
|
+
Use the test-engineer agent to [task]
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
**🔴 CRITICAL: Context Passing (MANDATORY)**
|
|
150
|
+
|
|
151
|
+
When invoking ANY subagent, you MUST include:
|
|
152
|
+
|
|
153
|
+
1. **Original User Request:** Full text of what user asked
|
|
154
|
+
2. **Decisions Made:** All user answers to Socratic questions
|
|
155
|
+
3. **Previous Agent Work:** Summary of what previous agents did
|
|
156
|
+
4. **Current Plan State:** If plan files exist in workspace, include them
|
|
157
|
+
|
|
158
|
+
**Example with FULL context:**
|
|
159
|
+
```
|
|
160
|
+
Use the project-planner agent to create PLAN.md:
|
|
161
|
+
|
|
162
|
+
**CONTEXT:**
|
|
163
|
+
- User Request: "A social platform for students, using mock data"
|
|
164
|
+
- Decisions: Tech=Vue 3, Layout=Grid Widgets, Auth=Mock, Design=Youthful & dynamic
|
|
165
|
+
- Previous Work: Orchestrator asked 6 questions, user chose all options
|
|
166
|
+
- Current Plan: playful-roaming-dream.md exists in workspace with initial structure
|
|
167
|
+
|
|
168
|
+
**TASK:** Create detailed PLAN.md based on ABOVE decisions. Do NOT infer from folder name.
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
> ⚠️ **VIOLATION:** Invoking subagent without full context = subagent will make wrong assumptions!
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
### Step 4: Verification (MANDATORY)
|
|
175
|
+
The LAST agent must run appropriate verification scripts:
|
|
176
|
+
```bash
|
|
177
|
+
python .agents/skills/vulnerability-scanner/scripts/security_scan.py .
|
|
178
|
+
python .agents/skills/lint-and-validate/scripts/lint_runner.py .
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### Step 5: Synthesize Results
|
|
182
|
+
Combine all agent outputs into unified report.
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## Output Format
|
|
187
|
+
|
|
188
|
+
```markdown
|
|
189
|
+
## 🎼 Orchestration Report
|
|
190
|
+
|
|
191
|
+
### Task
|
|
192
|
+
[Original task summary]
|
|
193
|
+
|
|
194
|
+
### Mode
|
|
195
|
+
[Current Antigravity Agent mode: plan/edit/ask]
|
|
196
|
+
|
|
197
|
+
### Agents Invoked (MINIMUM 3)
|
|
198
|
+
| # | Agent | Focus Area | Status |
|
|
199
|
+
|---|-------|------------|--------|
|
|
200
|
+
| 1 | project-planner | Task breakdown | ✅ |
|
|
201
|
+
| 2 | frontend-specialist | UI implementation | ✅ |
|
|
202
|
+
| 3 | test-engineer | Verification scripts | ✅ |
|
|
203
|
+
|
|
204
|
+
### Verification Scripts Executed
|
|
205
|
+
- [x] security_scan.py → Pass/Fail
|
|
206
|
+
- [x] lint_runner.py → Pass/Fail
|
|
207
|
+
|
|
208
|
+
### Key Findings
|
|
209
|
+
1. **[Agent 1]**: Finding
|
|
210
|
+
2. **[Agent 2]**: Finding
|
|
211
|
+
3. **[Agent 3]**: Finding
|
|
212
|
+
|
|
213
|
+
### Deliverables
|
|
214
|
+
- [ ] PLAN.md created
|
|
215
|
+
- [ ] Code implemented
|
|
216
|
+
- [ ] Tests passing
|
|
217
|
+
- [ ] Scripts verified
|
|
218
|
+
|
|
219
|
+
### Summary
|
|
220
|
+
[One paragraph synthesis of all agent work]
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## 🔴 EXIT GATE
|
|
226
|
+
|
|
227
|
+
Before completing orchestration, verify:
|
|
228
|
+
|
|
229
|
+
1. ✅ **Agent Count:** `invoked_agents >= 3`
|
|
230
|
+
2. ✅ **Scripts Executed:** At least `security_scan.py` ran
|
|
231
|
+
3. ✅ **Report Generated:** Orchestration Report with all agents listed
|
|
232
|
+
|
|
233
|
+
> **If any check fails → DO NOT mark orchestration complete. Invoke more agents or run scripts.**
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
**Begin orchestration now. Select 3+ agents, execute sequentially, run verification scripts, synthesize results.**
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Create project plan using project-planner agent. No code writing - only plan file generation.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /plan - Project Planning Mode
|
|
6
|
+
|
|
7
|
+
$ARGUMENTS
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 🔴 CRITICAL RULES
|
|
12
|
+
|
|
13
|
+
1. **NO CODE WRITING** - This command creates plan file only
|
|
14
|
+
2. **Use project-planner agent** - NOT Antigravity Agent's native Plan mode
|
|
15
|
+
3. **Socratic Gate** - Ask clarifying questions before planning
|
|
16
|
+
4. **Dynamic Naming** - Plan file named based on task
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Task
|
|
21
|
+
|
|
22
|
+
Use the `project-planner` agent with this context:
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
CONTEXT:
|
|
26
|
+
- User Request: $ARGUMENTS
|
|
27
|
+
- Mode: PLANNING ONLY (no code)
|
|
28
|
+
- Output: docs/PLAN-{task-slug}.md (dynamic naming)
|
|
29
|
+
|
|
30
|
+
NAMING RULES:
|
|
31
|
+
1. Extract 2-3 key words from request
|
|
32
|
+
2. Lowercase, hyphen-separated
|
|
33
|
+
3. Max 30 characters
|
|
34
|
+
4. Example: "e-commerce cart" → PLAN-ecommerce-cart.md
|
|
35
|
+
|
|
36
|
+
RULES:
|
|
37
|
+
1. Follow project-planner.md Phase -1 (Context Check)
|
|
38
|
+
2. Follow project-planner.md Phase 0 (Socratic Gate)
|
|
39
|
+
3. Create PLAN-{slug}.md with task breakdown
|
|
40
|
+
4. DO NOT write any code files
|
|
41
|
+
5. REPORT the exact file name created
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Expected Output
|
|
47
|
+
|
|
48
|
+
| Deliverable | Location |
|
|
49
|
+
|-------------|----------|
|
|
50
|
+
| Project Plan | `docs/PLAN-{task-slug}.md` |
|
|
51
|
+
| Task Breakdown | Inside plan file |
|
|
52
|
+
| Agent Assignments | Inside plan file |
|
|
53
|
+
| Verification Checklist | Phase X in plan file |
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## After Planning
|
|
58
|
+
|
|
59
|
+
Tell user:
|
|
60
|
+
```
|
|
61
|
+
[OK] Plan created: docs/PLAN-{slug}.md
|
|
62
|
+
|
|
63
|
+
Next steps:
|
|
64
|
+
- Review the plan
|
|
65
|
+
- Run `/create` to start implementation
|
|
66
|
+
- Or modify plan manually
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Naming Examples
|
|
72
|
+
|
|
73
|
+
| Request | Plan File |
|
|
74
|
+
|---------|-----------|
|
|
75
|
+
| `/plan e-commerce site with cart` | `docs/PLAN-ecommerce-cart.md` |
|
|
76
|
+
| `/plan mobile app for fitness` | `docs/PLAN-fitness-app.md` |
|
|
77
|
+
| `/plan add dark mode feature` | `docs/PLAN-dark-mode.md` |
|
|
78
|
+
| `/plan fix authentication bug` | `docs/PLAN-auth-fix.md` |
|
|
79
|
+
| `/plan SaaS dashboard` | `docs/PLAN-saas-dashboard.md` |
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Usage
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
/plan e-commerce site with cart
|
|
87
|
+
/plan mobile app for fitness tracking
|
|
88
|
+
/plan SaaS dashboard with analytics
|
|
89
|
+
```
|