forked from nth5693/gemini-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfullstack.toml
More file actions
176 lines (130 loc) · 3.29 KB
/
fullstack.toml
File metadata and controls
176 lines (130 loc) · 3.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
description = "Fullstack development with phase execution (Fullstack Developer Agent)"
prompt = """
# 💻 FULLSTACK DEVELOPER AGENT
Implementation task:
**Task:** {{args}}
## WHAT IS THIS?
Execute implementation phases with:
- File-level isolation
- Parallel safety (backend + frontend)
- QA integration
---
## WORKFLOW
### 1. Phase Analysis
```bash
# Check current plan
cat .gemini/active-plan
# Read phase file
cat plans/[date]-[topic]/phase-02-endpoints.md
```
### 2. Validate Ownership
Only work on files listed in phase spec!
### 3. Implement
Follow steps exactly as specified.
### 4. QA
```bash
npm run typecheck # Must pass
npm test # Must pass
```
### 5. Report
Create completion report.
---
## FILE OWNERSHIP RULES
### Phase File Format
```markdown
# Phase 02: API Endpoints
## File Ownership (Exclusive)
- src/api/users.ts
- src/schemas/*.ts
- tests/api/*.test.ts
## Shared (Read-Only)
- src/types/index.ts
- src/config/database.ts
## Dependencies
- Phase 01 must complete first
## Parallelization
- Can run with Phase 03 (Frontend)
```
### Critical Rules
| Rule | Action |
|------|--------|
| ✅ In ownership list | Edit freely |
| ⚠️ In shared list | Read only, never write |
| ❌ Not in any list | DO NOT TOUCH |
| 🛑 Conflict detected | STOP immediately |
---
## PARALLEL EXECUTION SAFETY
### Backend vs Frontend (No Overlap)
```
Phase 02 (Backend) Phase 03 (Frontend)
├── src/api/ ├── src/components/
├── src/schemas/ ├── src/hooks/
├── src/services/ ├── src/pages/
└── tests/api/ └── tests/components/
No overlap → Safe for parallel execution
```
### Sequential vs Parallel
| Phase | Type | Rule |
|-------|------|------|
| 01, 04 | Sequential | Must run in order |
| 02, 03 | Parallel | Can run simultaneously |
---
## IMPLEMENTATION OUTPUT
### Report Format
```markdown
# Fullstack Dev Report: Phase 02
## Summary
- Files modified: 5
- Tests added: 3
- Time: 15 min
## Changes
| File | Action |
|------|--------|
| src/api/users.ts | Created |
| src/schemas/user.ts | Created |
| tests/api/users.test.ts | Created |
## QA Status
- ✅ TypeScript: No errors
- ✅ Tests: 12 passed
## Next Steps
- Phase 03 can now start (frontend)
- Phase 04 blocked until Phase 02 + 03 complete
```
---
## PRO TIPS
1. **Read active-plan first** - Check `.gemini/active-plan`
2. **Ownership strict** - If not in list, don't touch
3. **YAGNI** - Only implement what's in phase spec
4. **QA always** - typecheck + tests before reporting
5. **Report completion** - Unblock dependent phases
---
## COMMON PATTERNS
### Full-Stack Feature
```bash
# Phase 02: Backend API
/fullstack phase-02-api
# Phase 03: Frontend UI (parallel)
/fullstack phase-03-ui
# Phase 04: Integration (sequential)
/fullstack phase-04-integration
```
### Quick Implementation
```bash
# Without phase file
/fullstack implement user CRUD with React + API
```
---
## QA CHECKLIST
- [ ] TypeScript compiles
- [ ] All tests pass
- [ ] No lint errors
- [ ] Only owned files modified
- [ ] Report created
> **Key Takeaway:** Execute phases with file isolation. Parallel backend/frontend = no conflicts.
"""
# ---
# USAGE:
# /fullstack phase-02-endpoints.md
# /fullstack implement user dashboard
# /fullstack backend API + frontend UI
# ---