superkit-mcp-server 1.1.3 → 1.2.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.
Files changed (82) hide show
  1. package/SUPERKIT.md +4 -4
  2. package/build/index.js +30 -19
  3. package/commands/README.md +122 -0
  4. package/commands/ask.toml +72 -0
  5. package/commands/brainstorm.toml +120 -0
  6. package/commands/chat.toml +73 -0
  7. package/commands/code-preview.toml +38 -0
  8. package/commands/code.toml +29 -0
  9. package/commands/content.toml +201 -0
  10. package/commands/cook.toml +78 -0
  11. package/commands/copywrite.toml +132 -0
  12. package/commands/db.toml +193 -0
  13. package/commands/debug.toml +167 -0
  14. package/commands/design.toml +159 -0
  15. package/commands/dev-rules.toml +14 -0
  16. package/commands/do.toml +117 -0
  17. package/commands/doc-rules.toml +14 -0
  18. package/commands/docs.toml +148 -0
  19. package/commands/fix.toml +440 -0
  20. package/commands/fullstack.toml +176 -0
  21. package/commands/git.toml +236 -0
  22. package/commands/help.toml +84 -0
  23. package/commands/integrate.toml +127 -0
  24. package/commands/journal.toml +137 -0
  25. package/commands/kit-setup.toml +41 -0
  26. package/commands/mcp.toml +183 -0
  27. package/commands/orchestration.toml +15 -0
  28. package/commands/plan.toml +172 -0
  29. package/commands/pm.toml +149 -0
  30. package/commands/pr.toml +51 -0
  31. package/commands/project.toml +33 -0
  32. package/commands/research.toml +118 -0
  33. package/commands/review-pr.toml +64 -0
  34. package/commands/review.toml +191 -0
  35. package/commands/scout-ext.toml +97 -0
  36. package/commands/scout.toml +80 -0
  37. package/commands/screenshot.toml +65 -0
  38. package/commands/session.toml +98 -0
  39. package/commands/skill.toml +385 -0
  40. package/commands/status.toml +23 -0
  41. package/commands/team.toml +56 -0
  42. package/commands/test.toml +165 -0
  43. package/commands/ticket.toml +71 -0
  44. package/commands/use.toml +106 -0
  45. package/commands/video.toml +84 -0
  46. package/commands/watzup.toml +71 -0
  47. package/commands/workflow.toml +14 -0
  48. package/package.json +4 -2
  49. package/{workflows → skills/workflows}/README.md +3 -3
  50. package/{workflows → skills/workflows}/development-rules.md +5 -0
  51. package/{workflows → skills/workflows}/documentation-management.md +5 -0
  52. package/{workflows → skills/workflows}/orchestration-protocol.md +5 -0
  53. package/{workflows → skills/workflows}/primary-workflow.md +5 -0
  54. /package/{workflows → skills/workflows}/adr.md +0 -0
  55. /package/{workflows → skills/workflows}/changelog.md +0 -0
  56. /package/{workflows → skills/workflows}/compound.md +0 -0
  57. /package/{workflows → skills/workflows}/compound_health.md +0 -0
  58. /package/{workflows → skills/workflows}/create-agent-skill.md +0 -0
  59. /package/{workflows → skills/workflows}/cycle.md +0 -0
  60. /package/{workflows → skills/workflows}/deploy-docs.md +0 -0
  61. /package/{workflows → skills/workflows}/doc.md +0 -0
  62. /package/{workflows → skills/workflows}/explore.md +0 -0
  63. /package/{workflows → skills/workflows}/generate_command.md +0 -0
  64. /package/{workflows → skills/workflows}/heal-skill.md +0 -0
  65. /package/{workflows → skills/workflows}/housekeeping.md +0 -0
  66. /package/{workflows → skills/workflows}/kit-setup.md +0 -0
  67. /package/{workflows → skills/workflows}/map-codebase.md +0 -0
  68. /package/{workflows → skills/workflows}/plan-compound.md +0 -0
  69. /package/{workflows → skills/workflows}/plan_review.md +0 -0
  70. /package/{workflows → skills/workflows}/promote_pattern.md +0 -0
  71. /package/{workflows → skills/workflows}/release-docs.md +0 -0
  72. /package/{workflows → skills/workflows}/report-bug.md +0 -0
  73. /package/{workflows → skills/workflows}/reproduce-bug.md +0 -0
  74. /package/{workflows → skills/workflows}/resolve_pr.md +0 -0
  75. /package/{workflows → skills/workflows}/resolve_todo.md +0 -0
  76. /package/{workflows → skills/workflows}/review-compound.md +0 -0
  77. /package/{workflows → skills/workflows}/skill-review.md +0 -0
  78. /package/{workflows → skills/workflows}/specs.md +0 -0
  79. /package/{workflows → skills/workflows}/triage-sprint.md +0 -0
  80. /package/{workflows → skills/workflows}/triage.md +0 -0
  81. /package/{workflows → skills/workflows}/work.md +0 -0
  82. /package/{workflows → skills/workflows}/xcode-test.md +0 -0
@@ -0,0 +1,440 @@
1
+ # Fix - Smart Fix Commands
2
+ # Usage: /fix [mode] [issue]
3
+ # Intelligent fix for various issues
4
+
5
+ description = "Smart fix for bugs, types, tests, UI, CI"
6
+
7
+
8
+
9
+ prompt = """
10
+ {{#if args}}
11
+ # 🔧 Smart Fix
12
+
13
+ **Input:** {{args}}
14
+
15
+ ## Parse Mode:
16
+
17
+ Check the first word of "{{args}}":
18
+
19
+ ### If "fast":
20
+ Quick fix mode - minimal analysis, direct action:
21
+
22
+ **Step 1: Quick Analysis**
23
+ - Read issue description
24
+ - Identify location from context
25
+ - Minimal codebase scan
26
+
27
+ **Step 2: Direct Fix**
28
+ - ESLint with `--fix` flag
29
+ - Prettier formatting
30
+ - Apply obvious fixes
31
+
32
+ **Step 3: Testing**
33
+ - Run relevant tests
34
+ - Validate fix works
35
+ - Check for regressions
36
+
37
+ **Step 4: Summary Report**
38
+ ```
39
+ ✓ Files fixed: 3
40
+ ✓ Tests: Passing
41
+ ✓ Lint: Clean
42
+ Confidence: High
43
+ ```
44
+
45
+ ### If "types":
46
+ Fix TypeScript/Dart type errors with full workflow:
47
+
48
+ **Step 1: Type Check Execution**
49
+ - Detect project type (TypeScript or Dart)
50
+ - Run type checker:
51
+ ```bash
52
+ # TypeScript
53
+ tsc --noEmit
54
+ npm run typecheck
55
+
56
+ # Dart/Flutter
57
+ dart analyze
58
+ flutter analyze
59
+ ```
60
+
61
+ **Step 2: Error Analysis**
62
+ - Categorize errors by type/severity
63
+ - Identify patterns across errors
64
+ - Prioritize by dependency order
65
+
66
+ **Step 3: Fix Implementation**
67
+ - Add proper type annotations
68
+ - Fix type mismatches
69
+ - Update function signatures
70
+ - Resolve generic constraints
71
+
72
+ **Step 4: Verification Loop**
73
+ - Re-run type checker after fixes
74
+ - Continue until clean type check
75
+ - Ensure no regressions
76
+
77
+ **Common Fix Patterns:**
78
+
79
+ | Pattern | Before | After |
80
+ |---------|--------|-------|
81
+ | Null Safety | `user.profile.name` | `user.profile?.name ?? 'Unknown'` |
82
+ | Type Annotation | `function(items)` | `function(items: Item[]): number` |
83
+ | Generic Constraint | `<T>` | `<T extends {id: string}>` |
84
+ | Union Type | direct access | `typeof value === 'string' ? ...` |
85
+
86
+ **Quick Fixes:**
87
+ ```typescript
88
+ // Null safety
89
+ user.profile?.name ?? 'Unknown'
90
+
91
+ // Type annotation
92
+ function calc(items: CartItem[]): number { }
93
+
94
+ // Generic constraint
95
+ function findById<T extends {id: string}>(items: T[], id: string): T | undefined
96
+
97
+ // Type guard
98
+ if (typeof value === 'string') { value.toUpperCase() }
99
+ ```
100
+
101
+ ### If "hard":
102
+ Complex fix mode for difficult bugs (10-15 min):
103
+
104
+ **Stage 1: Discovery (2-3 min)**
105
+ - Scan entire codebase for related code
106
+ - Identify all files involved
107
+ - Map dependencies and relationships
108
+ ```
109
+ Files scanned: 1,247
110
+ Files identified: 15
111
+ Dependencies mapped: 43
112
+ ```
113
+
114
+ **Stage 2: Root Cause Analysis (1-2 min)**
115
+ - Analyze logs and error traces
116
+ - Identify underlying causes
117
+ - Distinguish symptoms from root causes
118
+ ```
119
+ Root cause identified: [description]
120
+ ```
121
+
122
+ **Stage 3: Research (1-2 min)**
123
+ - Search for best practices
124
+ - Review similar issues
125
+ - Check for known solutions
126
+
127
+ **Stage 4: Planning (1 min)**
128
+ - Create detailed fix strategy
129
+ - Plan implementation steps
130
+ - Identify test scenarios
131
+ ```
132
+ Strategy created: plans/fix-[issue].md
133
+ Files to modify: 8
134
+ Tests to add: 15
135
+ ```
136
+
137
+ **Stage 5: Implementation (3-5 min)**
138
+ - Implement fix following plan
139
+ - Handle edge cases
140
+ - Add error handling
141
+
142
+ **Stage 6: Validation (1-2 min)**
143
+ - Run full test suite
144
+ - Validate edge cases
145
+ - Check for regressions
146
+ ```
147
+ ✓ Unit tests: 45/45
148
+ ✓ Integration tests: 23/23
149
+ ✓ Regression tests: 67/67
150
+ Coverage: 96%
151
+ ```
152
+
153
+ **Use for:**
154
+ - Complex authentication bugs
155
+ - Memory leak investigation
156
+ - Multi-file architecture issues
157
+ - Race conditions
158
+
159
+ ### If "test":
160
+ Fix failing tests with full pipeline:
161
+
162
+ **Phase 1: Compile**
163
+ - Run `tsc --noEmit` for TypeScript
164
+ - Fix any syntax errors first
165
+
166
+ **Phase 2: Run Tests**
167
+ - Execute test suite (jest/vitest/pytest/go test)
168
+ - Capture failures and errors
169
+
170
+ **Phase 3: Debug**
171
+ - Analyze failure stack traces
172
+ - Find root cause of each failure
173
+
174
+ **Phase 4: Plan**
175
+ - Create fix plan for each failure
176
+ - Prioritize by complexity
177
+
178
+ **Phase 5: Implement**
179
+ - Apply fixes to source code
180
+ - Handle edge cases
181
+
182
+ **Phase 6: Re-test**
183
+ - Run tests again to verify
184
+ - If still failing → loop back to Phase 3
185
+
186
+ **Phase 7: Review**
187
+ - Validate changes don't break other code
188
+ - Check for side effects
189
+
190
+ **Output:**
191
+ ```
192
+ ✗ 3 tests failed
193
+ - auth/login.test.js: Expected 200, got 401
194
+
195
+ Debugging...
196
+ Root cause: JWT secret not loaded in test env
197
+
198
+ Planning fix...
199
+ Implementing...
200
+
201
+ ✓ All tests passing (48/48)
202
+ ```
203
+
204
+ ### If "ui":
205
+ Fix UI/styling issues with visual analysis:
206
+
207
+ **Step 1: Visual Analysis**
208
+ - Analyze screenshot (if provided)
209
+ - Extract layout, colors, spacing
210
+ - Identify visual inconsistencies
211
+
212
+ **Step 2: Code Location**
213
+ - Find relevant component files
214
+ - Identify CSS/styling files
215
+ - Locate responsive breakpoints
216
+
217
+ **Step 3: Root Cause Identification**
218
+ - Analyze CSS rules
219
+ - Check responsive design
220
+ - Identify conflicts
221
+
222
+ **Step 4: Fix Implementation**
223
+ - Update styles
224
+ - Adjust layouts
225
+ - Fix responsive issues
226
+
227
+ **Step 5: Visual Validation**
228
+ - Suggest manual testing steps
229
+ - Recommend browser testing
230
+
231
+ **Common UI Issues:**
232
+
233
+ | Type | Examples |
234
+ |------|----------|
235
+ | Layout | Misalignment, overflow, spacing |
236
+ | Responsive | Mobile breaks, tablet overlap |
237
+ | Visual | Z-index, colors, animations |
238
+ | Interaction | Click/touch, hover, focus |
239
+
240
+ **Quick Fixes:**
241
+ ```css
242
+ /* Flexbox alignment */
243
+ display: flex;
244
+ align-items: center;
245
+ justify-content: center;
246
+
247
+ /* Responsive width */
248
+ width: 100%;
249
+ max-width: 1200px;
250
+
251
+ /* Z-index stacking */
252
+ position: relative;
253
+ z-index: 10;
254
+
255
+ /* Text overflow */
256
+ overflow: hidden;
257
+ text-overflow: ellipsis;
258
+ white-space: nowrap;
259
+ ```
260
+
261
+ ### If "ci":
262
+ Fix CI/CD failures with full analysis:
263
+
264
+ **Step 1: Log Retrieval**
265
+ - Use `gh run view --log-failed` to fetch logs
266
+ - Parse error messages and stack traces
267
+ - Identify failed steps
268
+ ```bash
269
+ gh run view <run-id> --log-failed
270
+ ```
271
+
272
+ **Step 2: Error Analysis**
273
+ - Categorize failures (tests, build, lint, deploy)
274
+ - Identify root causes
275
+ - Distinguish flaky vs real failures
276
+ - Map errors to files/lines
277
+
278
+ **Step 3: Solution Research**
279
+ - Search for similar CI issues
280
+ - Review GitHub Actions docs
281
+ - Check for known action issues
282
+
283
+ **Step 4: Implementation**
284
+ - Fix code issues (if code problem)
285
+ - Update workflow config (if CI config)
286
+ - Add missing dependencies
287
+ - Adjust environment settings
288
+
289
+ **Step 5: Verification**
290
+ - Run tests locally
291
+ - Validate workflow syntax: `actionlint`
292
+ - Suggest manual verification
293
+
294
+ **Common CI Failures:**
295
+ | Issue | Solution |
296
+ |-------|----------|
297
+ | Dependency lock | `npm ci` instead of `npm install` |
298
+ | Node version | Specify in `.nvmrc` |
299
+ | Test timeout | Increase timeout limit |
300
+ | Missing secrets | Check repo secrets |
301
+
302
+ ### If "logs":
303
+ Analyze log files with full diagnostic workflow:
304
+
305
+ **Step 1: Log Collection**
306
+ - Read log file (./logs.txt or specified)
307
+ - Identify all errors and warnings
308
+ - Capture stack traces
309
+ - Collect contextual info
310
+
311
+ **Step 2: Root Cause Analysis**
312
+ - Correlate events across entries
313
+ - Identify patterns and anomalies
314
+ - Trace execution paths
315
+ - Determine underlying causes
316
+
317
+ **Step 3: Solution Development**
318
+ - Create diagnostic report
319
+ - Design targeted fixes
320
+ - Implement fixes systematically
321
+
322
+ **Step 4: Verification**
323
+ - Re-analyze logs after fixes
324
+ - Ensure issues are resolved
325
+ - Confirm no new issues
326
+ - Provide final status report
327
+
328
+ **Supported Log Formats:**
329
+ ```
330
+ # Standard logs
331
+ 2025-10-29T14:23:45.123Z [ERROR] Database connection failed
332
+
333
+ # JSON logs
334
+ {"timestamp":"...","level":"error","message":"Request failed"}
335
+
336
+ # Stack traces
337
+ Error: Cannot read property 'id' of null
338
+ at UserController.getProfile (src/user.ts:89:15)
339
+ ```
340
+
341
+ **Log Collection Commands:**
342
+ ```bash
343
+ docker logs <container> > logs.txt # Docker
344
+ kubectl logs <pod> > logs.txt # Kubernetes
345
+ gh run view <id> --log > logs.txt # GitHub Actions
346
+ ```
347
+
348
+ ### If "parallel":
349
+ Fix multiple independent issues in parallel:
350
+
351
+ **Step 1: Parse Issues**
352
+ Extract from numbered/bulleted list:
353
+ ```
354
+ Input: "1. Button bug 2. API error 3. Typo"
355
+ Parsed: 3 independent issues
356
+ ```
357
+
358
+ **Step 2: Validate Independence**
359
+ Check files don't overlap:
360
+ ```
361
+ Issue 1: src/components/Button.tsx
362
+ Issue 2: src/api/endpoints.ts
363
+ Issue 3: src/components/Footer.tsx
364
+ ✓ No overlap - safe to parallelize
365
+ ```
366
+
367
+ **Step 3: Fix Each Issue**
368
+ Process all issues (conceptually parallel):
369
+ - Analyze each issue
370
+ - Find root cause
371
+ - Implement fix
372
+ - Verify fix
373
+
374
+ **Step 4: Aggregate Results**
375
+ ```
376
+ Results:
377
+ ✓ Issue 1: Fixed - Button.tsx
378
+ ✓ Issue 2: Fixed - endpoints.ts
379
+ ✓ Issue 3: Fixed - Footer.tsx
380
+ Total: 3 files changed
381
+ ```
382
+
383
+ **Usage:**
384
+ ```bash
385
+ /fix parallel
386
+ 1. Button not clickable
387
+ 2. API returns 500
388
+ 3. Typo in footer
389
+ ```
390
+
391
+ **Limits:**
392
+ - Max 5 issues per batch
393
+ - Issues must be independent
394
+ - 10 min timeout per issue
395
+
396
+ ### Otherwise (specific issue):
397
+ Debug the specific issue:
398
+ 1. Analyze the issue description
399
+ 2. Search for related code
400
+ 3. Provide step-by-step fix
401
+
402
+ ---
403
+
404
+ Now process: "{{args}}"
405
+ {{else}}
406
+ # 🔧 Smart Fix Commands
407
+
408
+ Intelligent fix for various issues.
409
+
410
+ ## Usage:
411
+ ```
412
+ /fix <mode> [details]
413
+ ```
414
+
415
+ ## Available Modes:
416
+
417
+ | Mode | Description |
418
+ |------|-------------|
419
+ | `/fix fast` | Quick lint + format |
420
+ | `/fix types` | Fix TypeScript errors |
421
+ | `/fix test` | Fix failing tests |
422
+ | `/fix ui <component>` | Fix UI/CSS issues |
423
+ | `/fix ci` | Fix CI/CD config |
424
+ | `/fix logs [file]` | Analyze error logs |
425
+ | `/fix <issue>` | Debug specific issue |
426
+
427
+ ## Examples:
428
+ ```
429
+ /fix fast
430
+ /fix types
431
+ /fix test
432
+ /fix ui Button component not responsive
433
+ /fix ci GitHub Actions failing
434
+ /fix logs npm-debug.log
435
+ /fix The login form is not submitting
436
+ ```
437
+
438
+ Choose a mode!
439
+ {{/if}}
440
+ """
@@ -0,0 +1,176 @@
1
+ description = "Fullstack development with phase execution (Fullstack Developer Agent)"
2
+
3
+ prompt = """
4
+ # 💻 FULLSTACK DEVELOPER AGENT
5
+
6
+ Implementation task:
7
+
8
+ **Task:** {{args}}
9
+
10
+ ## WHAT IS THIS?
11
+ Execute implementation phases with:
12
+ - File-level isolation
13
+ - Parallel safety (backend + frontend)
14
+ - QA integration
15
+
16
+ ---
17
+
18
+ ## WORKFLOW
19
+
20
+ ### 1. Phase Analysis
21
+ ```bash
22
+ # Check current plan
23
+ cat .gemini/active-plan
24
+
25
+ # Read phase file
26
+ cat plans/[date]-[topic]/phase-02-endpoints.md
27
+ ```
28
+
29
+ ### 2. Validate Ownership
30
+ Only work on files listed in phase spec!
31
+
32
+ ### 3. Implement
33
+ Follow steps exactly as specified.
34
+
35
+ ### 4. QA
36
+ ```bash
37
+ npm run typecheck # Must pass
38
+ npm test # Must pass
39
+ ```
40
+
41
+ ### 5. Report
42
+ Create completion report.
43
+
44
+ ---
45
+
46
+ ## FILE OWNERSHIP RULES
47
+
48
+ ### Phase File Format
49
+ ```markdown
50
+ # Phase 02: API Endpoints
51
+
52
+ ## File Ownership (Exclusive)
53
+ - src/api/users.ts
54
+ - src/schemas/*.ts
55
+ - tests/api/*.test.ts
56
+
57
+ ## Shared (Read-Only)
58
+ - src/types/index.ts
59
+ - src/config/database.ts
60
+
61
+ ## Dependencies
62
+ - Phase 01 must complete first
63
+
64
+ ## Parallelization
65
+ - Can run with Phase 03 (Frontend)
66
+ ```
67
+
68
+ ### Critical Rules
69
+ | Rule | Action |
70
+ |------|--------|
71
+ | ✅ In ownership list | Edit freely |
72
+ | ⚠️ In shared list | Read only, never write |
73
+ | ❌ Not in any list | DO NOT TOUCH |
74
+ | 🛑 Conflict detected | STOP immediately |
75
+
76
+ ---
77
+
78
+ ## PARALLEL EXECUTION SAFETY
79
+
80
+ ### Backend vs Frontend (No Overlap)
81
+ ```
82
+ Phase 02 (Backend) Phase 03 (Frontend)
83
+ ├── src/api/ ├── src/components/
84
+ ├── src/schemas/ ├── src/hooks/
85
+ ├── src/services/ ├── src/pages/
86
+ └── tests/api/ └── tests/components/
87
+
88
+ No overlap → Safe for parallel execution
89
+ ```
90
+
91
+ ### Sequential vs Parallel
92
+ | Phase | Type | Rule |
93
+ |-------|------|------|
94
+ | 01, 04 | Sequential | Must run in order |
95
+ | 02, 03 | Parallel | Can run simultaneously |
96
+
97
+ ---
98
+
99
+ ## IMPLEMENTATION OUTPUT
100
+
101
+ ### Report Format
102
+ ```markdown
103
+ # Fullstack Dev Report: Phase 02
104
+
105
+ ## Summary
106
+ - Files modified: 5
107
+ - Tests added: 3
108
+ - Time: 15 min
109
+
110
+ ## Changes
111
+ | File | Action |
112
+ |------|--------|
113
+ | src/api/users.ts | Created |
114
+ | src/schemas/user.ts | Created |
115
+ | tests/api/users.test.ts | Created |
116
+
117
+ ## QA Status
118
+ - ✅ TypeScript: No errors
119
+ - ✅ Tests: 12 passed
120
+
121
+ ## Next Steps
122
+ - Phase 03 can now start (frontend)
123
+ - Phase 04 blocked until Phase 02 + 03 complete
124
+ ```
125
+
126
+ ---
127
+
128
+ ## PRO TIPS
129
+
130
+ 1. **Read active-plan first** - Check `.gemini/active-plan`
131
+ 2. **Ownership strict** - If not in list, don't touch
132
+ 3. **YAGNI** - Only implement what's in phase spec
133
+ 4. **QA always** - typecheck + tests before reporting
134
+ 5. **Report completion** - Unblock dependent phases
135
+
136
+ ---
137
+
138
+ ## COMMON PATTERNS
139
+
140
+ ### Full-Stack Feature
141
+ ```bash
142
+ # Phase 02: Backend API
143
+ /fullstack phase-02-api
144
+
145
+ # Phase 03: Frontend UI (parallel)
146
+ /fullstack phase-03-ui
147
+
148
+ # Phase 04: Integration (sequential)
149
+ /fullstack phase-04-integration
150
+ ```
151
+
152
+ ### Quick Implementation
153
+ ```bash
154
+ # Without phase file
155
+ /fullstack implement user CRUD with React + API
156
+ ```
157
+
158
+ ---
159
+
160
+ ## QA CHECKLIST
161
+
162
+ - [ ] TypeScript compiles
163
+ - [ ] All tests pass
164
+ - [ ] No lint errors
165
+ - [ ] Only owned files modified
166
+ - [ ] Report created
167
+
168
+ > **Key Takeaway:** Execute phases with file isolation. Parallel backend/frontend = no conflicts.
169
+ """
170
+
171
+ # ---
172
+ # USAGE:
173
+ # /fullstack phase-02-endpoints.md
174
+ # /fullstack implement user dashboard
175
+ # /fullstack backend API + frontend UI
176
+ # ---