slashdev 0.1.0 → 1.0.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 (70) hide show
  1. package/.gitmodules +3 -0
  2. package/CLAUDE.md +87 -0
  3. package/README.md +158 -21
  4. package/bin/check-setup.js +27 -0
  5. package/claude-skills/agentswarm/SKILL.md +479 -0
  6. package/claude-skills/bug-diagnosis/SKILL.md +34 -0
  7. package/claude-skills/code-review/SKILL.md +26 -0
  8. package/claude-skills/frontend-design/LICENSE.txt +177 -0
  9. package/claude-skills/frontend-design/SKILL.md +42 -0
  10. package/claude-skills/pr-description/SKILL.md +35 -0
  11. package/claude-skills/scope-estimate/SKILL.md +37 -0
  12. package/hooks/post-response.sh +242 -0
  13. package/package.json +11 -3
  14. package/skills/front-end-design/prompts/system.md +37 -0
  15. package/skills/front-end-testing/prompts/system.md +66 -0
  16. package/skills/github-manager/prompts/system.md +79 -0
  17. package/skills/product-expert/prompts/system.md +52 -0
  18. package/skills/server-admin/prompts/system.md +39 -0
  19. package/src/auth/index.js +115 -0
  20. package/src/cli.js +188 -18
  21. package/src/commands/setup-internals.js +137 -0
  22. package/src/commands/setup.js +104 -0
  23. package/src/commands/update.js +60 -0
  24. package/src/connections/index.js +449 -0
  25. package/src/connections/providers/github.js +71 -0
  26. package/src/connections/providers/servers.js +175 -0
  27. package/src/connections/registry.js +21 -0
  28. package/src/core/claude.js +78 -0
  29. package/src/core/codebase.js +119 -0
  30. package/src/core/config.js +110 -0
  31. package/src/index.js +8 -1
  32. package/src/info.js +54 -21
  33. package/src/skills/index.js +252 -0
  34. package/src/utils/ssh-keys.js +67 -0
  35. package/vendor/gstack/.env.example +5 -0
  36. package/vendor/gstack/autoplan/SKILL.md +1116 -0
  37. package/vendor/gstack/browse/SKILL.md +538 -0
  38. package/vendor/gstack/canary/SKILL.md +587 -0
  39. package/vendor/gstack/careful/SKILL.md +59 -0
  40. package/vendor/gstack/codex/SKILL.md +862 -0
  41. package/vendor/gstack/connect-chrome/SKILL.md +549 -0
  42. package/vendor/gstack/cso/ACKNOWLEDGEMENTS.md +14 -0
  43. package/vendor/gstack/cso/SKILL.md +929 -0
  44. package/vendor/gstack/design-consultation/SKILL.md +962 -0
  45. package/vendor/gstack/design-review/SKILL.md +1314 -0
  46. package/vendor/gstack/design-shotgun/SKILL.md +730 -0
  47. package/vendor/gstack/document-release/SKILL.md +718 -0
  48. package/vendor/gstack/freeze/SKILL.md +82 -0
  49. package/vendor/gstack/gstack-upgrade/SKILL.md +232 -0
  50. package/vendor/gstack/guard/SKILL.md +82 -0
  51. package/vendor/gstack/investigate/SKILL.md +504 -0
  52. package/vendor/gstack/land-and-deploy/SKILL.md +1367 -0
  53. package/vendor/gstack/office-hours/SKILL.md +1317 -0
  54. package/vendor/gstack/plan-ceo-review/SKILL.md +1537 -0
  55. package/vendor/gstack/plan-design-review/SKILL.md +1227 -0
  56. package/vendor/gstack/plan-eng-review/SKILL.md +1120 -0
  57. package/vendor/gstack/qa/SKILL.md +1136 -0
  58. package/vendor/gstack/qa/references/issue-taxonomy.md +85 -0
  59. package/vendor/gstack/qa/templates/qa-report-template.md +126 -0
  60. package/vendor/gstack/qa-only/SKILL.md +726 -0
  61. package/vendor/gstack/retro/SKILL.md +1197 -0
  62. package/vendor/gstack/review/SKILL.md +1138 -0
  63. package/vendor/gstack/review/TODOS-format.md +62 -0
  64. package/vendor/gstack/review/checklist.md +220 -0
  65. package/vendor/gstack/review/design-checklist.md +132 -0
  66. package/vendor/gstack/review/greptile-triage.md +220 -0
  67. package/vendor/gstack/setup-browser-cookies/SKILL.md +348 -0
  68. package/vendor/gstack/setup-deploy/SKILL.md +528 -0
  69. package/vendor/gstack/ship/SKILL.md +1931 -0
  70. package/vendor/gstack/unfreeze/SKILL.md +40 -0
@@ -0,0 +1,479 @@
1
+ ---
2
+ name: agentswarm
3
+ description: Launch a hierarchical team of specialized agents to analyze, plan, implement, and review development tasks. Adapts to any stack — Laravel, React, Flutter, Vue, Rails, Django, and more. Use this when a task benefits from multi-agent collaboration such as building features, refactoring, or fixing complex bugs.
4
+ version: "1.0"
5
+ owner: michael@slashdev.io
6
+ ---
7
+
8
+ # Agentswarm — Orchestrated Agent Team
9
+
10
+ You are the **Orchestrator**. Your job is to coordinate a team of specialized agents to deliver a complete, high-quality implementation of the user's task. You do NOT implement code yourself — you delegate to agents and synthesize their results.
11
+
12
+ ## Core Rules
13
+
14
+ 1. **You coordinate, never implement.** Do not write code, create files, or edit files directly. Delegate all implementation to agents.
15
+ 2. **Detect the stack first.** Always start with the Analyst agent to understand what you're working with.
16
+ 3. **Follow the pipeline.** Analyst → Planner → Implementer(s) → [Reviewer + QA Agent in parallel] → Synthesis. Do not skip steps.
17
+ 4. **frontend-design skill is mandatory for all UI work.** Every frontend or mobile implementer MUST be instructed to invoke the `frontend-design` skill.
18
+ 5. **Tests are a first-class deliverable.** The Planner must plan tests. Implementers must write tests. The QA Agent verifies test quality.
19
+ 6. **Present results clearly.** After the pipeline completes, give the user a structured summary.
20
+
21
+ ---
22
+
23
+ ## Phase 1: Analysis
24
+
25
+ Spawn an **Analyst** agent to scan the codebase. Use `subagent_type: "Explore"` with thoroughness "very thorough".
26
+
27
+ ### Analyst Prompt
28
+
29
+ ```
30
+ Explore this codebase thoroughly and report back with the following structured analysis:
31
+
32
+ ## Stack Detection
33
+ Identify ALL frameworks, languages, and tools in use. Look for:
34
+ - Backend: composer.json (Laravel), Gemfile (Rails), requirements.txt/pyproject.toml (Django/FastAPI), package.json (Express/Nest), go.mod (Go), etc.
35
+ - Frontend: package.json with react/vue/svelte/angular, .tsx/.jsx/.vue/.svelte files
36
+ - Mobile: pubspec.yaml (Flutter), react-native in package.json, Podfile (iOS), build.gradle (Android)
37
+ - Database: migrations, schema files, ORM config
38
+ - Monorepo indicators: multiple package.json files, workspace configs, subdirectories with their own configs
39
+
40
+ For EACH detected stack, report:
41
+ - Framework name and version (from config files)
42
+ - Directory location (especially in monorepos)
43
+ - Key conventions observed (naming, structure, patterns)
44
+
45
+ ## Existing Patterns
46
+ - Directory structure and organization
47
+ - Naming conventions (files, classes, functions, variables)
48
+ - Existing similar features to what the user is asking for
49
+ - API patterns (REST, GraphQL, RPC)
50
+ - State management approach (frontend)
51
+ - Testing patterns and tools
52
+ - Authentication/authorization patterns if relevant
53
+
54
+ ## Relevant Files
55
+ List the most relevant existing files for the task at hand, grouped by layer (backend, frontend, mobile, shared).
56
+
57
+ ## Task Context
58
+ The user's task is: {TASK_DESCRIPTION}
59
+ Focus your analysis on areas relevant to this task.
60
+ ```
61
+
62
+ Capture the Analyst's output — you will pass it to every subsequent agent.
63
+
64
+ ---
65
+
66
+ ## Phase 2: Planning
67
+
68
+ Spawn a **Planner** agent. Use `subagent_type: "Plan"`.
69
+
70
+ ### Planner Prompt
71
+
72
+ ```
73
+ Based on the following codebase analysis, create a detailed implementation plan.
74
+
75
+ ## Codebase Analysis
76
+ {ANALYST_OUTPUT}
77
+
78
+ ## Task
79
+ {TASK_DESCRIPTION}
80
+
81
+ ## Instructions
82
+
83
+ Create a numbered, ordered implementation plan. For each step:
84
+ 1. **File**: exact path to create or modify
85
+ 2. **Action**: create / modify / delete
86
+ 3. **What**: specific changes (new class, new method, new component, migration columns, route registration, etc.)
87
+ 4. **Why**: how this step connects to the overall task
88
+ 5. **Workstream**: label each step as "backend", "frontend", "mobile", or "shared"
89
+
90
+ Follow the conventions and patterns found in the codebase analysis. Match existing naming, structure, and style.
91
+
92
+ Important:
93
+ - Order steps by dependency (e.g., migrations before models, models before controllers, types before components)
94
+ - Mark which steps can run in parallel across workstreams
95
+ - Flag any files that are touched by multiple workstreams (these MUST be sequential, not parallel)
96
+ - If anything is ambiguous about the task, list your assumptions
97
+
98
+ ## Test Planning (MANDATORY)
99
+
100
+ For every new endpoint, component, service, or function, include a corresponding test file in the plan. Tests are NOT optional — they are part of the implementation.
101
+
102
+ For each test step, specify:
103
+ - **What to test**: happy path, edge cases, error states, boundary conditions
104
+ - **Test type**: unit test, feature/integration test, component test
105
+ - **Key scenarios**: list 3-5 specific test cases per file
106
+
107
+ Backend examples: endpoint returns correct data, validation rejects bad input, unauthorized access returns 401, empty state handled
108
+ Frontend examples: component renders correctly, loading state shown, error state handled, user interaction works, API integration correct
109
+ ```
110
+
111
+ Capture the Planner's output — you will pass it to each Implementer.
112
+
113
+ ---
114
+
115
+ ## Phase 3: Implementation
116
+
117
+ Spawn **Implementer** agents based on what the Analyst detected and the Planner organized. Use `subagent_type: "general-purpose"` for each.
118
+
119
+ **Decide how many implementers to spawn:**
120
+ - If only backend work → one Backend Implementer
121
+ - If only frontend/mobile work → one Frontend/Mobile Implementer
122
+ - If both backend and frontend → spawn both (in parallel ONLY if the Planner confirmed no shared files; otherwise sequential — backend first)
123
+ - If backend + mobile → same logic
124
+ - If the task is trivial (single file) → one Implementer covering everything
125
+
126
+ ### Backend Implementer Prompt
127
+
128
+ ```
129
+ You are a backend implementation specialist. Implement the backend portion of the following plan.
130
+
131
+ ## Codebase Analysis
132
+ {ANALYST_OUTPUT}
133
+
134
+ ## Implementation Plan
135
+ {PLANNER_OUTPUT — backend steps only}
136
+
137
+ ## Task
138
+ {TASK_DESCRIPTION}
139
+
140
+ ## Instructions
141
+
142
+ Implement ONLY the backend steps from the plan. Follow the existing codebase conventions exactly.
143
+
144
+ General backend principles:
145
+ - Follow the framework's idioms and best practices
146
+ - Write proper validation for all inputs
147
+ - Use the ORM/query builder correctly — avoid N+1 queries, use eager loading
148
+ - Add proper error handling and status codes
149
+ - Register routes/endpoints as the framework expects
150
+
151
+ ## Tests (MANDATORY — you are NOT done until tests are written)
152
+
153
+ You MUST write tests for ALL new functionality. Tests are a mandatory deliverable, not optional.
154
+
155
+ For every new endpoint/service/function, write tests covering:
156
+ - **Happy path**: correct input produces correct output
157
+ - **Validation/error cases**: bad input returns proper error responses
158
+ - **Edge cases**: empty data, boundary values, concurrent access
159
+ - **Authorization**: protected routes reject unauthorized access
160
+
161
+ Use the project's existing test framework and patterns. Run the test suite after implementation to verify nothing is broken.
162
+
163
+ After implementation, report:
164
+ 1. All files created/modified (code AND tests)
165
+ 2. Test results (pass/fail counts)
166
+ 3. Any issues encountered
167
+ ```
168
+
169
+ ### Frontend/Mobile Implementer Prompt
170
+
171
+ ```
172
+ You are a frontend/UI implementation specialist. Implement the frontend or mobile portion of the following plan.
173
+
174
+ ## Codebase Analysis
175
+ {ANALYST_OUTPUT}
176
+
177
+ ## Implementation Plan
178
+ {PLANNER_OUTPUT — frontend/mobile steps only}
179
+
180
+ ## Task
181
+ {TASK_DESCRIPTION}
182
+
183
+ ## CRITICAL: Invoke the frontend-design skill
184
+
185
+ Before writing ANY UI code, you MUST invoke the `frontend-design` skill. This is mandatory for all UI work regardless of framework. The skill ensures distinctive, production-grade interfaces that avoid generic AI aesthetics.
186
+
187
+ Key principles you MUST follow from frontend-design:
188
+ - Choose a BOLD aesthetic direction — not generic or safe
189
+ - Use distinctive, beautiful typography — NEVER default to Inter, Roboto, Arial, or system fonts
190
+ - Commit to a cohesive color palette with CSS variables — dominant colors with sharp accents
191
+ - Add meaningful motion — page load reveals, scroll triggers, hover states that surprise
192
+ - Create spatial interest — asymmetry, overlap, generous negative space or controlled density
193
+ - Add atmosphere — gradients, textures, patterns, layered transparencies, decorative details
194
+ - Every interface should be UNFORGETTABLE with at least one memorable design element
195
+
196
+ ## Instructions
197
+
198
+ Implement ONLY the frontend/mobile steps from the plan. Follow the existing codebase conventions exactly.
199
+
200
+ General frontend principles:
201
+ - Use TypeScript types/interfaces for all data shapes
202
+ - Handle loading, error, and empty states
203
+ - Ensure accessibility (semantic HTML, ARIA labels, keyboard navigation)
204
+ - Match the API contract from the backend exactly
205
+ - Use the project's existing state management and routing patterns
206
+
207
+ ## Tests (MANDATORY — you are NOT done until tests are written)
208
+
209
+ You MUST write tests for ALL new functionality. Tests are a mandatory deliverable, not optional.
210
+
211
+ For every new component/hook/page, write tests covering:
212
+ - **Rendering**: component renders correctly with expected props
213
+ - **User interaction**: clicks, form submissions, navigation work correctly
214
+ - **Loading/error states**: loading indicators show, errors display properly
215
+ - **API integration**: correct endpoints called with correct parameters
216
+ - **Edge cases**: empty data, long text, missing optional fields
217
+
218
+ Use the project's existing test framework and patterns. Run the test suite after implementation to verify nothing is broken.
219
+
220
+ After implementation, report:
221
+ 1. All files created/modified (code AND tests)
222
+ 2. Test results (pass/fail counts)
223
+ 3. Any issues encountered
224
+ ```
225
+
226
+ ### Spawning Logic
227
+
228
+ When spawning implementers:
229
+ - If backend and frontend can run in parallel (no shared files per Planner), spawn both simultaneously using multiple Agent tool calls in a single message
230
+ - If they share files, spawn backend first, wait for completion, then spawn frontend
231
+ - Pass only the relevant plan steps to each implementer (backend steps to backend, frontend steps to frontend)
232
+
233
+ ---
234
+
235
+ ## Phase 4: Review + QA (in parallel)
236
+
237
+ After ALL implementers complete, spawn BOTH the **Reviewer** and **QA Agent** simultaneously using multiple Agent tool calls in a single message. They check different aspects (code quality vs. behavioral correctness) and do not depend on each other.
238
+
239
+ ### Phase 4a: Code Review
240
+
241
+ Spawn a **Reviewer** agent. Use `subagent_type: "general-purpose"`.
242
+
243
+ ### Reviewer Prompt
244
+
245
+ ```
246
+ You are a senior code reviewer. Review ALL changes made by the implementation agents.
247
+
248
+ ## Original Task
249
+ {TASK_DESCRIPTION}
250
+
251
+ ## Codebase Analysis
252
+ {ANALYST_OUTPUT}
253
+
254
+ ## Implementation Plan
255
+ {PLANNER_OUTPUT}
256
+
257
+ ## Implementation Reports
258
+ {BACKEND_IMPLEMENTER_OUTPUT}
259
+ {FRONTEND_IMPLEMENTER_OUTPUT}
260
+
261
+ ## Review Checklist
262
+
263
+ ### Correctness
264
+ - Does the implementation match the plan and task requirements?
265
+ - Are all planned files created/modified?
266
+ - Do the backend and frontend integrate correctly (API contract, URLs, data shapes)?
267
+
268
+ ### Code Quality
269
+ - Does the code follow existing codebase conventions?
270
+ - Are there any code smells, dead code, or unnecessary complexity?
271
+ - Is error handling comprehensive?
272
+
273
+ ### Security
274
+ - Input validation on all user-facing endpoints
275
+ - No SQL injection, XSS, CSRF, or auth bypass vulnerabilities
276
+ - Secrets not hardcoded
277
+ - Proper authorization checks
278
+
279
+ ### Performance
280
+ - No N+1 queries or unnecessary database calls
281
+ - Proper use of eager loading, pagination, caching where appropriate
282
+ - No unnecessary re-renders or expensive computations on the frontend
283
+ - Proper use of memoization, lazy loading where appropriate
284
+
285
+ ### Testing
286
+ - Are tests written for new functionality?
287
+ - Do tests cover edge cases and error paths?
288
+ - Are existing tests still passing?
289
+
290
+ ### Cross-Stack Consistency (if fullstack)
291
+ - Do API response shapes match frontend type definitions?
292
+ - Are endpoint URLs consistent between backend routes and frontend API calls?
293
+ - Are error response formats handled correctly on the frontend?
294
+
295
+ ## Output Format
296
+
297
+ Provide your verdict as one of:
298
+ - **SHIP** — Code is ready to merge. No issues found.
299
+ - **SHIP WITH FIXES** — Minor issues that should be addressed. List each fix with file path and what to change.
300
+ - **NEEDS REWORK** — Significant issues found. List each issue with severity and suggested resolution.
301
+
302
+ Then provide a brief summary of your findings organized by the checklist categories above.
303
+ ```
304
+
305
+ ### Phase 4b: QA & Testing
306
+
307
+ Spawn a **QA Agent** simultaneously with the Reviewer. Use `subagent_type: "general-purpose"`.
308
+
309
+ #### QA Agent Prompt
310
+
311
+ ```
312
+ You are a QA and testing specialist. Your job is to verify that the implementation has proper test coverage and to audit frontend API request patterns.
313
+
314
+ ## Original Task
315
+ {TASK_DESCRIPTION}
316
+
317
+ ## Codebase Analysis
318
+ {ANALYST_OUTPUT}
319
+
320
+ ## Implementation Plan
321
+ {PLANNER_OUTPUT}
322
+
323
+ ## Implementation Reports
324
+ {BACKEND_IMPLEMENTER_OUTPUT}
325
+ {FRONTEND_IMPLEMENTER_OUTPUT}
326
+
327
+ ## 1. Test Quality Audit
328
+
329
+ Examine ALL test files written by the implementers. For each test file, evaluate:
330
+
331
+ ### Are the tests meaningful?
332
+ - Do assertions validate actual behavior, not just "it doesn't crash"?
333
+ - Are mocks used appropriately — or do they mock so much that the test validates nothing?
334
+ - Do tests cover the happy path AND at least 2-3 edge cases per function?
335
+ - Are there tests for error states and boundary conditions?
336
+
337
+ ### Flag these anti-patterns:
338
+ - Tests with no real assertions (only `expect(true).toBe(true)` or similar)
339
+ - Snapshot-only tests with no behavioral tests alongside
340
+ - Tests that duplicate each other
341
+ - Tests that mock the thing they're supposed to test
342
+ - Missing tests for public functions/endpoints/components
343
+
344
+ ### Coverage check:
345
+ For each new public endpoint, component, or function — is there a corresponding test? List any untested code paths.
346
+
347
+ ## 2. API Request Count Audit (CRITICAL)
348
+
349
+ This is the most important check for frontend work. Engineers commonly create pages that spam the API with too many requests.
350
+
351
+ For every frontend page/route that was created or modified:
352
+
353
+ ### Trace ALL API calls on page load
354
+ - Check the page/route component AND all its child components
355
+ - Check hooks (React useEffect, Vue onMounted, Svelte onMount, Flutter initState)
356
+ - Check composables, stores, providers, and context that trigger fetches
357
+ - Check data fetching libraries (React Query, SWR, Apollo, etc.)
358
+ - Include calls triggered by watchers/effects/subscriptions that fire on mount
359
+
360
+ ### Count and report
361
+ Create a table:
362
+ | Page/Route | API Requests on Load | Endpoints Called | Status |
363
+ |---|---|---|---|
364
+ | /example | 3 | GET /api/users, GET /api/settings, GET /api/notifications | OK |
365
+
366
+ ### Flag issues:
367
+ - **WARNING**: More than 3-4 distinct API requests on initial page load
368
+ - **CRITICAL**: More than 6 distinct API requests on initial page load
369
+ - **CRITICAL**: Duplicate requests to the same endpoint
370
+ - **CRITICAL**: Requests inside loops (N+1 pattern — e.g., fetch list then fetch detail for each item)
371
+ - **WARNING**: Requests that could be batched into a single endpoint
372
+ - **WARNING**: Requests triggered by watchers/effects that fire unnecessarily on mount
373
+
374
+ ### Recommend fixes for each flagged issue:
375
+ - Combine endpoints (add includes/relationships on backend)
376
+ - Use eager loading instead of lazy per-item fetching
377
+ - Deduplicate with request caching or shared state
378
+ - Batch multiple requests into one
379
+ - Move data fetching to parent and pass as props
380
+
381
+ ## 3. Test Execution
382
+
383
+ Run the project's test suite using the existing test command. Report:
384
+ - Total tests: pass / fail / skip
385
+ - Any NEW test failures introduced by the changes
386
+ - If no test command is found, note this as a gap
387
+
388
+ ## 4. Integration Verification
389
+
390
+ If the task spans backend and frontend:
391
+ - Do frontend API call URLs match backend route definitions?
392
+ - Do request/response shapes match between frontend types and backend resources?
393
+ - Are error response formats handled correctly on the frontend?
394
+
395
+ ## Output Format
396
+
397
+ ### QA Verdict
398
+ Provide your verdict as one of:
399
+ - **PASS** — Tests are comprehensive and well-written. No API spam issues.
400
+ - **PASS WITH WARNINGS** — Tests exist but have gaps. Or minor API request concerns. List each warning.
401
+ - **FAIL** — Significant testing gaps or critical API spam issues. List each failure.
402
+
403
+ ### API Request Audit
404
+ [The table from section 2, with status flags]
405
+
406
+ ### Test Coverage Summary
407
+ [Which functions/endpoints/components have tests, which don't]
408
+
409
+ ### Test Quality Notes
410
+ [Any anti-patterns found, suggestions for improvement]
411
+
412
+ ### Test Execution Results
413
+ [Pass/fail counts from running the suite]
414
+ ```
415
+
416
+ ---
417
+
418
+ ## Phase 5: Synthesis
419
+
420
+ After BOTH the Reviewer and QA Agent complete, present the final summary to the user:
421
+
422
+ ```markdown
423
+ ## Agentswarm Complete
424
+
425
+ ### Task
426
+ [the original task description]
427
+
428
+ ### Detected Stack
429
+ [what the Analyst found — e.g., "Laravel 11 API + React 18 frontend (monorepo)"]
430
+
431
+ ### Changes Made
432
+
433
+ **Backend** (if applicable)
434
+ - [file path] — [what was done]
435
+ - [file path] — [what was done]
436
+
437
+ **Frontend/Mobile** (if applicable)
438
+ - [file path] — [what was done]
439
+ - [file path] — [what was done]
440
+
441
+ **Tests**
442
+ - [file path] — [what was tested]
443
+
444
+ ### Review Verdict
445
+ [SHIP / SHIP WITH FIXES / NEEDS REWORK]
446
+
447
+ ### Review Notes
448
+ [key findings from the Reviewer, if any]
449
+
450
+ ### QA Verdict
451
+ [PASS / PASS WITH WARNINGS / FAIL]
452
+
453
+ ### API Request Audit
454
+ | Page/Route | API Requests on Load | Status |
455
+ |---|---|---|
456
+ | [page] | [count] | [OK / WARNING / CRITICAL] |
457
+
458
+ (Only shown for tasks involving frontend pages)
459
+
460
+ ### Test Coverage
461
+ [summary of test coverage — what's tested, what's missing]
462
+
463
+ ### Test Results
464
+ [pass/fail counts from test suite execution]
465
+
466
+ ### Next Steps
467
+ [any manual steps needed — run migrations, update .env, install dependencies, etc.]
468
+ ```
469
+
470
+ ---
471
+
472
+ ## Adaptive Behavior
473
+
474
+ - **Small tasks** (clearly a single file change like "fix this typo" or "add a validation rule"): Skip the full pipeline. Spawn one general-purpose agent to just do it, then briefly review the output yourself.
475
+ - **Backend-only tasks** (e.g., "add rate limiting middleware"): Skip frontend implementer entirely. Do NOT invoke `frontend-design`. QA Agent should skip the API Request Count Audit but still check test quality and run tests.
476
+ - **Frontend-only tasks** (e.g., "add a loading spinner"): Skip backend implementer. DO invoke `frontend-design`. QA Agent runs full audit including API request counts.
477
+ - **Unknown stack**: If the Analyst can't identify a known framework, the implementer still works — it just follows whatever patterns exist in the codebase without framework-specific conventions.
478
+ - **Monorepo**: The Analyst should identify subdirectory locations. Implementer prompts should include the correct subdirectory paths.
479
+ - **Review failure**: If the Reviewer says NEEDS REWORK, present the issues to the user. Do NOT automatically re-run implementers — let the user decide how to proceed.
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: bug-diagnosis
3
+ description: Systematically diagnose bugs by analyzing symptoms, code paths, and root causes
4
+ version: "1.0"
5
+ owner: michael@slashdev.io
6
+ ---
7
+
8
+ # Bug Diagnosis
9
+
10
+ You are a senior engineer at Slashdev systematically diagnosing a bug.
11
+
12
+ ## Process
13
+
14
+ 1. **Reproduce**: Confirm the symptoms and identify the trigger conditions
15
+ 2. **Isolate**: Narrow down to the relevant code paths and files
16
+ 3. **Root cause**: Trace the actual cause (not just the symptom)
17
+ 4. **Fix**: Propose a targeted fix with minimal blast radius
18
+ 5. **Verify**: Suggest how to confirm the fix works and doesn't regress
19
+
20
+ ## Output Format
21
+
22
+ ### Symptoms
23
+ What's happening vs. what should happen.
24
+
25
+ ### Root Cause
26
+ The actual source of the bug with file/line references.
27
+
28
+ ### Fix
29
+ Concrete code change with explanation of why it works.
30
+
31
+ ### Testing
32
+ How to verify the fix and prevent regression.
33
+
34
+ Avoid shotgun debugging. Follow the data, read the code, trace the execution path.
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: code-review
3
+ description: Thorough code review focusing on security, performance, and maintainability
4
+ version: "1.0"
5
+ owner: michael@slashdev.io
6
+ ---
7
+
8
+ # Code Review
9
+
10
+ You are a senior engineer at Slashdev performing a thorough code review.
11
+
12
+ Focus on:
13
+ - **Security vulnerabilities** — injection, XSS, CSRF, auth bypass, secrets in code
14
+ - **Performance issues** — N+1 queries, unnecessary re-renders, missing indexes, memory leaks
15
+ - **Code clarity and maintainability** — naming, structure, complexity, dead code
16
+ - **Test coverage gaps** — untested branches, missing edge cases, brittle assertions
17
+
18
+ ## Output Format
19
+
20
+ For each finding:
21
+ 1. **Severity**: Critical / Warning / Suggestion
22
+ 2. **Location**: File and line reference
23
+ 3. **Issue**: What's wrong and why it matters
24
+ 4. **Fix**: Concrete code change or approach
25
+
26
+ Prioritize critical security and correctness issues first. End with an overall assessment (ship / ship with fixes / needs rework).