@iamnishankhan/opencode-kit-grok 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 (198) hide show
  1. package/bin/cli.js +46 -0
  2. package/kit/.opencode/AGENTS.md +392 -0
  3. package/kit/.opencode/README.md +71 -0
  4. package/kit/.opencode/USAGE.md +405 -0
  5. package/kit/.opencode/agents/backend-specialist.md +278 -0
  6. package/kit/.opencode/agents/code-archaeologist.md +114 -0
  7. package/kit/.opencode/agents/database-architect.md +233 -0
  8. package/kit/.opencode/agents/debugger.md +234 -0
  9. package/kit/.opencode/agents/devops-engineer.md +252 -0
  10. package/kit/.opencode/agents/documentation-writer.md +111 -0
  11. package/kit/.opencode/agents/explorer-agent.md +83 -0
  12. package/kit/.opencode/agents/frontend-specialist.md +606 -0
  13. package/kit/.opencode/agents/game-developer.md +169 -0
  14. package/kit/.opencode/agents/mobile-developer.md +385 -0
  15. package/kit/.opencode/agents/orchestrator.md +213 -0
  16. package/kit/.opencode/agents/penetration-tester.md +197 -0
  17. package/kit/.opencode/agents/performance-optimizer.md +194 -0
  18. package/kit/.opencode/agents/product-manager.md +120 -0
  19. package/kit/.opencode/agents/product-owner.md +103 -0
  20. package/kit/.opencode/agents/project-planner.md +418 -0
  21. package/kit/.opencode/agents/qa-automation-engineer.md +113 -0
  22. package/kit/.opencode/agents/security-auditor.md +179 -0
  23. package/kit/.opencode/agents/seo-specialist.md +119 -0
  24. package/kit/.opencode/agents/test-engineer.md +169 -0
  25. package/kit/.opencode/commands/brainstorm.md +113 -0
  26. package/kit/.opencode/commands/coordinate.md +72 -0
  27. package/kit/.opencode/commands/create.md +63 -0
  28. package/kit/.opencode/commands/debug.md +102 -0
  29. package/kit/.opencode/commands/deploy.md +175 -0
  30. package/kit/.opencode/commands/enhance.md +62 -0
  31. package/kit/.opencode/commands/orchestrate.md +241 -0
  32. package/kit/.opencode/commands/plan.md +89 -0
  33. package/kit/.opencode/commands/preview.md +80 -0
  34. package/kit/.opencode/commands/remember.md +67 -0
  35. package/kit/.opencode/commands/status.md +86 -0
  36. package/kit/.opencode/commands/test.md +143 -0
  37. package/kit/.opencode/commands/verify.md +71 -0
  38. package/kit/.opencode/memory/MEMORY.md +6 -0
  39. package/kit/.opencode/memory/feedback-history.md +9 -0
  40. package/kit/.opencode/memory/project-conventions.md +16 -0
  41. package/kit/.opencode/memory/tech-decisions.md +10 -0
  42. package/kit/.opencode/memory/user-preferences.md +9 -0
  43. package/kit/.opencode/opencode.json +15 -0
  44. package/kit/.opencode/scripts/README.md +95 -0
  45. package/kit/.opencode/scripts/auto_preview.py +149 -0
  46. package/kit/.opencode/scripts/checklist.py +75 -0
  47. package/kit/.opencode/scripts/component_registry.py +238 -0
  48. package/kit/.opencode/scripts/dependency_graph.py +73 -0
  49. package/kit/.opencode/scripts/generate_manifest.py +44 -0
  50. package/kit/.opencode/scripts/session_manager.py +120 -0
  51. package/kit/.opencode/scripts/tests/test_toolkit.py +238 -0
  52. package/kit/.opencode/scripts/validate_kit.py +397 -0
  53. package/kit/.opencode/scripts/validation_runner.py +216 -0
  54. package/kit/.opencode/scripts/verify_all.py +85 -0
  55. package/kit/.opencode/skills/api-patterns/SKILL.md +83 -0
  56. package/kit/.opencode/skills/api-patterns/api-style.md +42 -0
  57. package/kit/.opencode/skills/api-patterns/auth.md +24 -0
  58. package/kit/.opencode/skills/api-patterns/documentation.md +26 -0
  59. package/kit/.opencode/skills/api-patterns/graphql.md +41 -0
  60. package/kit/.opencode/skills/api-patterns/rate-limiting.md +31 -0
  61. package/kit/.opencode/skills/api-patterns/response.md +37 -0
  62. package/kit/.opencode/skills/api-patterns/rest.md +40 -0
  63. package/kit/.opencode/skills/api-patterns/scripts/api_validator.py +211 -0
  64. package/kit/.opencode/skills/api-patterns/security-testing.md +122 -0
  65. package/kit/.opencode/skills/api-patterns/trpc.md +41 -0
  66. package/kit/.opencode/skills/api-patterns/versioning.md +22 -0
  67. package/kit/.opencode/skills/app-builder/SKILL.md +78 -0
  68. package/kit/.opencode/skills/app-builder/agent-coordination.md +71 -0
  69. package/kit/.opencode/skills/app-builder/feature-building.md +53 -0
  70. package/kit/.opencode/skills/app-builder/project-detection.md +45 -0
  71. package/kit/.opencode/skills/app-builder/scaffolding.md +110 -0
  72. package/kit/.opencode/skills/app-builder/tech-stack.md +41 -0
  73. package/kit/.opencode/skills/app-builder/templates/SKILL.md +39 -0
  74. package/kit/.opencode/skills/app-builder/templates/astro-static/TEMPLATE.md +78 -0
  75. package/kit/.opencode/skills/app-builder/templates/chrome-extension/TEMPLATE.md +96 -0
  76. package/kit/.opencode/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
  77. package/kit/.opencode/skills/app-builder/templates/electron-desktop/TEMPLATE.md +97 -0
  78. package/kit/.opencode/skills/app-builder/templates/express-api/TEMPLATE.md +89 -0
  79. package/kit/.opencode/skills/app-builder/templates/flutter-app/TEMPLATE.md +93 -0
  80. package/kit/.opencode/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +97 -0
  81. package/kit/.opencode/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +126 -0
  82. package/kit/.opencode/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +125 -0
  83. package/kit/.opencode/skills/app-builder/templates/nextjs-static/TEMPLATE.md +174 -0
  84. package/kit/.opencode/skills/app-builder/templates/nuxt-app/TEMPLATE.md +127 -0
  85. package/kit/.opencode/skills/app-builder/templates/python-fastapi/TEMPLATE.md +94 -0
  86. package/kit/.opencode/skills/app-builder/templates/react-native-app/TEMPLATE.md +121 -0
  87. package/kit/.opencode/skills/architecture/SKILL.md +57 -0
  88. package/kit/.opencode/skills/architecture/context-discovery.md +43 -0
  89. package/kit/.opencode/skills/architecture/examples.md +94 -0
  90. package/kit/.opencode/skills/architecture/pattern-selection.md +68 -0
  91. package/kit/.opencode/skills/architecture/patterns-reference.md +50 -0
  92. package/kit/.opencode/skills/architecture/trade-off-analysis.md +77 -0
  93. package/kit/.opencode/skills/bash-linux/SKILL.md +201 -0
  94. package/kit/.opencode/skills/batch-operations/SKILL.md +105 -0
  95. package/kit/.opencode/skills/behavioral-modes/SKILL.md +253 -0
  96. package/kit/.opencode/skills/brainstorming/SKILL.md +178 -0
  97. package/kit/.opencode/skills/brainstorming/dynamic-questioning.md +350 -0
  98. package/kit/.opencode/skills/clean-code/SKILL.md +201 -0
  99. package/kit/.opencode/skills/code-review-checklist/SKILL.md +111 -0
  100. package/kit/.opencode/skills/code-review-graph/SKILL.md +305 -0
  101. package/kit/.opencode/skills/context-compression/SKILL.md +145 -0
  102. package/kit/.opencode/skills/coordinator-mode/SKILL.md +208 -0
  103. package/kit/.opencode/skills/database-design/SKILL.md +54 -0
  104. package/kit/.opencode/skills/database-design/database-selection.md +43 -0
  105. package/kit/.opencode/skills/database-design/indexing.md +39 -0
  106. package/kit/.opencode/skills/database-design/migrations.md +48 -0
  107. package/kit/.opencode/skills/database-design/optimization.md +36 -0
  108. package/kit/.opencode/skills/database-design/orm-selection.md +30 -0
  109. package/kit/.opencode/skills/database-design/schema-design.md +56 -0
  110. package/kit/.opencode/skills/database-design/scripts/schema_validator.py +172 -0
  111. package/kit/.opencode/skills/deployment-procedures/SKILL.md +243 -0
  112. package/kit/.opencode/skills/design-spec/SKILL.md +185 -0
  113. package/kit/.opencode/skills/design-spec/collection.md +106 -0
  114. package/kit/.opencode/skills/documentation-templates/SKILL.md +196 -0
  115. package/kit/.opencode/skills/frontend-architecture/SKILL.md +245 -0
  116. package/kit/.opencode/skills/frontend-design/SKILL.md +1222 -0
  117. package/kit/.opencode/skills/frontend-design/redesign.md +178 -0
  118. package/kit/.opencode/skills/frontend-design/scripts/accessibility_checker.py +145 -0
  119. package/kit/.opencode/skills/frontend-design/scripts/ux_audit.py +722 -0
  120. package/kit/.opencode/skills/frontend-design/style-brutalist.md +92 -0
  121. package/kit/.opencode/skills/frontend-design/style-minimalist.md +85 -0
  122. package/kit/.opencode/skills/game-development/2d-games/SKILL.md +118 -0
  123. package/kit/.opencode/skills/game-development/3d-games/SKILL.md +134 -0
  124. package/kit/.opencode/skills/game-development/SKILL.md +169 -0
  125. package/kit/.opencode/skills/game-development/game-art/SKILL.md +184 -0
  126. package/kit/.opencode/skills/game-development/game-audio/SKILL.md +189 -0
  127. package/kit/.opencode/skills/game-development/game-design/SKILL.md +128 -0
  128. package/kit/.opencode/skills/game-development/mobile-games/SKILL.md +107 -0
  129. package/kit/.opencode/skills/game-development/multiplayer/SKILL.md +131 -0
  130. package/kit/.opencode/skills/game-development/pc-games/SKILL.md +143 -0
  131. package/kit/.opencode/skills/game-development/vr-ar/SKILL.md +122 -0
  132. package/kit/.opencode/skills/game-development/web-games/SKILL.md +149 -0
  133. package/kit/.opencode/skills/geo-fundamentals/SKILL.md +158 -0
  134. package/kit/.opencode/skills/geo-fundamentals/scripts/geo_checker.py +273 -0
  135. package/kit/.opencode/skills/i18n-localization/SKILL.md +156 -0
  136. package/kit/.opencode/skills/i18n-localization/scripts/i18n_checker.py +223 -0
  137. package/kit/.opencode/skills/intelligent-routing/SKILL.md +337 -0
  138. package/kit/.opencode/skills/lint-and-validate/SKILL.md +47 -0
  139. package/kit/.opencode/skills/lint-and-validate/scripts/lint_runner.py +184 -0
  140. package/kit/.opencode/skills/lint-and-validate/scripts/type_coverage.py +245 -0
  141. package/kit/.opencode/skills/mcp-builder/SKILL.md +205 -0
  142. package/kit/.opencode/skills/memory-system/SKILL.md +181 -0
  143. package/kit/.opencode/skills/mobile-design/SKILL.md +396 -0
  144. package/kit/.opencode/skills/mobile-design/decision-trees.md +516 -0
  145. package/kit/.opencode/skills/mobile-design/mobile-backend.md +491 -0
  146. package/kit/.opencode/skills/mobile-design/mobile-color-system.md +420 -0
  147. package/kit/.opencode/skills/mobile-design/mobile-debugging.md +122 -0
  148. package/kit/.opencode/skills/mobile-design/mobile-design-thinking.md +357 -0
  149. package/kit/.opencode/skills/mobile-design/mobile-navigation.md +458 -0
  150. package/kit/.opencode/skills/mobile-design/mobile-performance.md +767 -0
  151. package/kit/.opencode/skills/mobile-design/mobile-testing.md +356 -0
  152. package/kit/.opencode/skills/mobile-design/mobile-typography.md +433 -0
  153. package/kit/.opencode/skills/mobile-design/platform-android.md +666 -0
  154. package/kit/.opencode/skills/mobile-design/platform-ios.md +561 -0
  155. package/kit/.opencode/skills/mobile-design/scripts/mobile_audit.py +670 -0
  156. package/kit/.opencode/skills/mobile-design/touch-psychology.md +537 -0
  157. package/kit/.opencode/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +351 -0
  158. package/kit/.opencode/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +240 -0
  159. package/kit/.opencode/skills/nextjs-react-expert/3-server-server-side-performance.md +490 -0
  160. package/kit/.opencode/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +264 -0
  161. package/kit/.opencode/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
  162. package/kit/.opencode/skills/nextjs-react-expert/6-rendering-rendering-performance.md +432 -0
  163. package/kit/.opencode/skills/nextjs-react-expert/7-js-javascript-performance.md +684 -0
  164. package/kit/.opencode/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +150 -0
  165. package/kit/.opencode/skills/nextjs-react-expert/9-cache-components.md +103 -0
  166. package/kit/.opencode/skills/nextjs-react-expert/SKILL.md +293 -0
  167. package/kit/.opencode/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
  168. package/kit/.opencode/skills/nextjs-react-expert/scripts/react_performance_checker.py +281 -0
  169. package/kit/.opencode/skills/nodejs-best-practices/SKILL.md +336 -0
  170. package/kit/.opencode/skills/parallel-agents/SKILL.md +192 -0
  171. package/kit/.opencode/skills/performance-profiling/SKILL.md +145 -0
  172. package/kit/.opencode/skills/performance-profiling/scripts/bundle_analyzer.py +120 -0
  173. package/kit/.opencode/skills/performance-profiling/scripts/lighthouse_audit.py +108 -0
  174. package/kit/.opencode/skills/plan-writing/SKILL.md +153 -0
  175. package/kit/.opencode/skills/powershell-windows/SKILL.md +169 -0
  176. package/kit/.opencode/skills/python-patterns/SKILL.md +443 -0
  177. package/kit/.opencode/skills/red-team-tactics/SKILL.md +201 -0
  178. package/kit/.opencode/skills/rust-pro/SKILL.md +177 -0
  179. package/kit/.opencode/skills/seo-fundamentals/SKILL.md +131 -0
  180. package/kit/.opencode/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
  181. package/kit/.opencode/skills/server-management/SKILL.md +163 -0
  182. package/kit/.opencode/skills/simplify-code/SKILL.md +131 -0
  183. package/kit/.opencode/skills/skillify/SKILL.md +115 -0
  184. package/kit/.opencode/skills/systematic-debugging/SKILL.md +111 -0
  185. package/kit/.opencode/skills/tailwind-patterns/SKILL.md +271 -0
  186. package/kit/.opencode/skills/tdd-workflow/SKILL.md +151 -0
  187. package/kit/.opencode/skills/testing-patterns/SKILL.md +180 -0
  188. package/kit/.opencode/skills/testing-patterns/scripts/test_runner.py +219 -0
  189. package/kit/.opencode/skills/verify-changes/SKILL.md +127 -0
  190. package/kit/.opencode/skills/vulnerability-scanner/SKILL.md +278 -0
  191. package/kit/.opencode/skills/vulnerability-scanner/checklists.md +124 -0
  192. package/kit/.opencode/skills/vulnerability-scanner/scripts/dependency_analyzer.py +144 -0
  193. package/kit/.opencode/skills/vulnerability-scanner/scripts/security_scan.py +410 -0
  194. package/kit/.opencode/skills/web-design-guidelines/SKILL.md +56 -0
  195. package/kit/.opencode/skills/webapp-testing/SKILL.md +189 -0
  196. package/kit/.opencode/skills/webapp-testing/scripts/playwright_runner.py +123 -0
  197. package/lib/init.js +61 -0
  198. package/package.json +21 -0
@@ -0,0 +1,72 @@
1
+ ---
2
+ description: Advanced multi-agent coordination with parallel dispatch and synthesis. Use for complex tasks requiring multiple specialist perspectives.
3
+ agent: orchestrator
4
+ ---
5
+ # /coordinate — Advanced Multi-Agent Coordination
6
+
7
+ $ARGUMENTS
8
+
9
+ ---
10
+
11
+ ## 🔴 CRITICAL RULES
12
+
13
+ 1. **Load coordinator-mode skill** — Read `.opencode/skills/coordinator-mode/SKILL.md` first
14
+ 2. **Phase-based execution** — Research → Synthesis → Implementation → Verification
15
+ 3. **Never delegate understanding** — Write specific prompts, not vague instructions
16
+ 4. **Parallel reads, sequential writes** — Read-only tasks can run in parallel
17
+
18
+ ---
19
+
20
+ ## Task
21
+
22
+ Delegate to the `@orchestrator` subagent (or switch agent) with this context:
23
+
24
+ ```
25
+ CONTEXT:
26
+ - User Request: $ARGUMENTS
27
+ - Mode: COORDINATOR (advanced orchestration)
28
+ - Skill: Load coordinator-mode skill for patterns
29
+
30
+ WORKFLOW:
31
+ 1. DECOMPOSE the request into worker subtasks
32
+ 2. CLASSIFY each subtask: Research | Implementation | Verification
33
+ 3. DISPATCH workers (parallel for reads, sequential for writes)
34
+ 4. SYNTHESIZE results — don't copy-paste, add insight
35
+ 5. VERIFY completeness before reporting to user
36
+
37
+ RULES:
38
+ 1. Follow coordinator-mode/SKILL.md protocol
39
+ 2. Brief workers like smart colleagues — full context, specific scope
40
+ 3. Never write "based on your findings, fix it" — prove YOU understood
41
+ 4. Start with 2-3 workers, add more after synthesis if needed
42
+ 5. Research before implementation — ALWAYS
43
+ ```
44
+
45
+ ---
46
+
47
+ ## Expected Output
48
+
49
+ | Deliverable | Description |
50
+ |-------------|-------------|
51
+ | Worker Dispatch | List of agents invoked with task descriptions |
52
+ | Synthesis Report | Consolidated findings with YOUR analysis |
53
+ | Action Items | Specific next steps with file paths |
54
+
55
+ ---
56
+
57
+ ## After Coordination
58
+
59
+ ```
60
+ [OK] Coordination complete
61
+
62
+ Agents dispatched: [count]
63
+ Phases completed: Research → Synthesis → [Implementation] → [Verification]
64
+
65
+ Key findings:
66
+ - [Finding 1]
67
+ - [Finding 2]
68
+
69
+ Next steps:
70
+ - [ ] [Action item 1]
71
+ - [ ] [Action item 2]
72
+ ```
@@ -0,0 +1,63 @@
1
+ ---
2
+ description: Create new application command. Triggers App Builder skill and starts interactive dialogue with user.
3
+ agent: orchestrator
4
+ ---
5
+ # /create - Create Application
6
+
7
+ $ARGUMENTS
8
+
9
+ ---
10
+
11
+ ## Task
12
+
13
+ This command starts a new application creation process.
14
+
15
+ ### Steps:
16
+
17
+ 1. **Request Analysis**
18
+ - Understand what the user wants
19
+ - If information is missing, use the `brainstorming` skill to ask clarifying questions
20
+
21
+ 2. **Project Planning**
22
+ - Use `project-planner` agent for task breakdown
23
+ - Determine tech stack
24
+ - Plan file structure
25
+ - Create the `{task-slug}.md` plan file in the project root, then proceed to building
26
+
27
+ 3. **Design Source-of-Truth (UI projects only)**
28
+ - If the app has a UI, create `DESIGN.md` at the project root BEFORE building UI — follow the `design-spec` skill (read `collection.md` for real-world references first).
29
+ - Skip only for headless/CLI/API-only projects.
30
+
31
+ 4. **Application Building (After Approval)**
32
+ - Orchestrate with `app-builder` skill
33
+ - Coordinate expert agents:
34
+ - `database-architect` → Schema
35
+ - `backend-specialist` → API
36
+ - `frontend-specialist` → UI (builds against `DESIGN.md` tokens)
37
+
38
+ 5. **Preview**
39
+ - Start with `auto_preview.py` when complete
40
+ - Present URL to user
41
+
42
+ ---
43
+
44
+ ## Usage Examples
45
+
46
+ ```
47
+ /create blog site
48
+ /create e-commerce app with product listing and cart
49
+ /create todo app
50
+ /create Instagram clone
51
+ /create crm system with customer management
52
+ ```
53
+
54
+ ---
55
+
56
+ ## Before Starting
57
+
58
+ If request is unclear, ask these questions:
59
+ - What type of application?
60
+ - What are the basic features?
61
+ - Who will use it?
62
+
63
+ Use defaults, add details later.
@@ -0,0 +1,102 @@
1
+ ---
2
+ description: Debugging command. Activates DEBUG mode for systematic problem investigation.
3
+ ---
4
+ # /debug - Systematic Problem Investigation
5
+
6
+ $ARGUMENTS
7
+
8
+ ---
9
+
10
+ ## Purpose
11
+
12
+ This command activates DEBUG mode for systematic investigation of issues, errors, or unexpected behavior.
13
+
14
+ ---
15
+
16
+ ## Behavior
17
+
18
+ When `/debug` is triggered:
19
+
20
+ 1. **Gather information**
21
+ - Error message
22
+ - Reproduction steps
23
+ - Expected vs actual behavior
24
+ - Recent changes
25
+
26
+ 2. **Form hypotheses**
27
+ - List possible causes
28
+ - Order by likelihood
29
+
30
+ 3. **Investigate systematically**
31
+ - Test each hypothesis
32
+ - Check logs, data flow
33
+ - Use elimination method
34
+
35
+ 4. **Fix and prevent**
36
+ - Apply fix
37
+ - Explain root cause
38
+ - Add prevention measures
39
+
40
+ ---
41
+
42
+ ## Output Format
43
+
44
+ ```markdown
45
+ ## 🔍 Debug: [Issue]
46
+
47
+ ### 1. Symptom
48
+ [What's happening]
49
+
50
+ ### 2. Information Gathered
51
+ - Error: `[error message]`
52
+ - File: `[filepath]`
53
+ - Line: [line number]
54
+
55
+ ### 3. Hypotheses
56
+ 1. ❓ [Most likely cause]
57
+ 2. ❓ [Second possibility]
58
+ 3. ❓ [Less likely cause]
59
+
60
+ ### 4. Investigation
61
+
62
+ **Testing hypothesis 1:**
63
+ [What I checked] → [Result]
64
+
65
+ **Testing hypothesis 2:**
66
+ [What I checked] → [Result]
67
+
68
+ ### 5. Root Cause
69
+ 🎯 **[Explanation of why this happened]**
70
+
71
+ ### 6. Fix
72
+ ```[language]
73
+ // Before
74
+ [broken code]
75
+
76
+ // After
77
+ [fixed code]
78
+ ```
79
+
80
+ ### 7. Prevention
81
+ 🛡️ [How to prevent this in the future]
82
+ ```
83
+
84
+ ---
85
+
86
+ ## Examples
87
+
88
+ ```
89
+ /debug login not working
90
+ /debug API returns 500
91
+ /debug form doesn't submit
92
+ /debug data not saving
93
+ ```
94
+
95
+ ---
96
+
97
+ ## Key Principles
98
+
99
+ - **Ask before assuming** - get full error context
100
+ - **Test hypotheses** - don't guess randomly
101
+ - **Explain why** - not just what to fix
102
+ - **Prevent recurrence** - add tests, validation
@@ -0,0 +1,175 @@
1
+ ---
2
+ description: Deployment command for production releases. Pre-flight checks and deployment execution.
3
+ ---
4
+ # /deploy - Production Deployment
5
+
6
+ $ARGUMENTS
7
+
8
+ ---
9
+
10
+ ## Purpose
11
+
12
+ This command handles production deployment with pre-flight checks, deployment execution, and verification.
13
+
14
+ ---
15
+
16
+ ## Sub-commands
17
+
18
+ ```
19
+ /deploy - Interactive deployment wizard
20
+ /deploy check - Run pre-deployment checks only
21
+ /deploy preview - Deploy to preview/staging
22
+ /deploy production - Deploy to production
23
+ /deploy rollback - Rollback to previous version
24
+ ```
25
+
26
+ ---
27
+
28
+ ## Pre-Deployment Checklist
29
+
30
+ Before any deployment:
31
+
32
+ ```markdown
33
+ ## 🚀 Pre-Deploy Checklist
34
+
35
+ ### Code Quality
36
+ - [ ] No TypeScript errors (`npx tsc --noEmit`)
37
+ - [ ] ESLint passing (`npx eslint .`)
38
+ - [ ] All tests passing (`npm test`)
39
+
40
+ ### Security
41
+ - [ ] No hardcoded secrets
42
+ - [ ] Environment variables documented
43
+ - [ ] Dependencies audited (`npm audit`)
44
+
45
+ ### Performance
46
+ - [ ] Bundle size acceptable
47
+ - [ ] No console.log statements
48
+ - [ ] Images optimized
49
+
50
+ ### Documentation
51
+ - [ ] README updated
52
+ - [ ] CHANGELOG updated
53
+ - [ ] API docs current
54
+
55
+ ### Ready to deploy? (y/n)
56
+ ```
57
+
58
+ ---
59
+
60
+ ## Deployment Flow
61
+
62
+ ```
63
+ ┌─────────────────┐
64
+ │ /deploy │
65
+ └────────┬────────┘
66
+
67
+
68
+ ┌─────────────────┐
69
+ │ Pre-flight │
70
+ │ checks │
71
+ └────────┬────────┘
72
+
73
+ Pass? ──No──► Fix issues
74
+
75
+ Yes
76
+
77
+
78
+ ┌─────────────────┐
79
+ │ Build │
80
+ │ application │
81
+ └────────┬────────┘
82
+
83
+
84
+ ┌─────────────────┐
85
+ │ Deploy to │
86
+ │ platform │
87
+ └────────┬────────┘
88
+
89
+
90
+ ┌─────────────────┐
91
+ │ Health check │
92
+ │ & verify │
93
+ └────────┬────────┘
94
+
95
+
96
+ ┌─────────────────┐
97
+ │ ✅ Complete │
98
+ └─────────────────┘
99
+ ```
100
+
101
+ ---
102
+
103
+ ## Output Format
104
+
105
+ ### Successful Deploy
106
+
107
+ ```markdown
108
+ ## 🚀 Deployment Complete
109
+
110
+ ### Summary
111
+ - **Version:** v1.2.3
112
+ - **Environment:** production
113
+ - **Duration:** [build + deploy time]
114
+ - **Platform:** Vercel
115
+
116
+ ### URLs
117
+ - 🌐 Production: https://app.example.com
118
+ - 📊 Dashboard: https://vercel.com/project
119
+
120
+ ### What Changed
121
+ - Added user profile feature
122
+ - Fixed login bug
123
+ - Updated dependencies
124
+
125
+ ### Health Check
126
+ ✅ API responding (200 OK)
127
+ ✅ Database connected
128
+ ✅ All services healthy
129
+ ```
130
+
131
+ ### Failed Deploy
132
+
133
+ ```markdown
134
+ ## ❌ Deployment Failed
135
+
136
+ ### Error
137
+ Build failed at step: TypeScript compilation
138
+
139
+ ### Details
140
+ ```
141
+ error TS2345: Argument of type 'string' is not assignable...
142
+ ```
143
+
144
+ ### Resolution
145
+ 1. Fix TypeScript error in `src/services/user.ts:45`
146
+ 2. Run `npm run build` locally to verify
147
+ 3. Try `/deploy` again
148
+
149
+ ### Rollback Available
150
+ Previous version (v1.2.2) is still active.
151
+ Run `/deploy rollback` if needed.
152
+ ```
153
+
154
+ ---
155
+
156
+ ## Platform Support
157
+
158
+ | Platform | Command | Notes |
159
+ |----------|---------|-------|
160
+ | Vercel | `vercel --prod` | Auto-detected for Next.js |
161
+ | Railway | `railway up` | Needs Railway CLI |
162
+ | Fly.io | `fly deploy` | Needs flyctl |
163
+ | Docker | `docker compose up -d` | For self-hosted |
164
+
165
+ ---
166
+
167
+ ## Examples
168
+
169
+ ```
170
+ /deploy
171
+ /deploy check
172
+ /deploy preview
173
+ /deploy production
174
+ /deploy rollback
175
+ ```
@@ -0,0 +1,62 @@
1
+ ---
2
+ description: Add or update features in existing application. Used for iterative development.
3
+ ---
4
+ # /enhance - Update Application
5
+
6
+ $ARGUMENTS
7
+
8
+ ---
9
+
10
+ ## Task
11
+
12
+ This command adds features or makes updates to existing application.
13
+
14
+ ### Steps:
15
+
16
+ 1. **Understand Current State**
17
+ - Load project state with `python .opencode/scripts/session_manager.py info`
18
+ - Understand existing features, tech stack
19
+
20
+ 2. **Plan Changes**
21
+ - Determine what will be added/changed
22
+ - Detect affected files
23
+ - Check dependencies
24
+
25
+ 3. **Present Plan to User** (for major changes)
26
+ ```
27
+ "To add admin panel:
28
+ - New files: admin routes, components, and access control
29
+ - Updates: navigation, auth middleware
30
+ - Scope: moderate (touches auth + routing)
31
+
32
+ Should I start?"
33
+ ```
34
+
35
+ 4. **Apply**
36
+ - Call relevant agents
37
+ - Make changes
38
+ - Test
39
+
40
+ 5. **Update Preview**
41
+ - Hot reload or restart
42
+
43
+ ---
44
+
45
+ ## Usage Examples
46
+
47
+ ```
48
+ /enhance add dark mode
49
+ /enhance build admin panel
50
+ /enhance integrate payment system
51
+ /enhance add search feature
52
+ /enhance edit profile page
53
+ /enhance make responsive
54
+ ```
55
+
56
+ ---
57
+
58
+ ## Caution
59
+
60
+ - Get approval for major changes
61
+ - Warn on conflicting requests (e.g., "use Firebase" when project uses PostgreSQL)
62
+ - Commit each change with git
@@ -0,0 +1,241 @@
1
+ ---
2
+ description: Coordinate multiple agents for complex tasks. Use for multi-perspective analysis, comprehensive reviews, or tasks requiring different domain expertise.
3
+ agent: orchestrator
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 {task-slug}.md in project root |
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 {task-slug}.md is complete, ASK:
65
+
66
+ "✅ Plan created: {task-slug}.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 (20 total)
86
+
87
+ | Agent | Domain | Use When |
88
+ |-------|--------|----------|
89
+ | `project-planner` | Planning | Task breakdown, {task-slug}.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
+ | `qa-automation-engineer` | QA | E2E pipelines, test automation |
98
+ | `devops-engineer` | Ops | CI/CD, Docker, Deploy |
99
+ | `mobile-developer` | Mobile | React Native, Flutter |
100
+ | `performance-optimizer` | Speed | Lighthouse, Profiling |
101
+ | `seo-specialist` | SEO | Meta, Schema, Rankings |
102
+ | `documentation-writer` | Docs | README, API docs |
103
+ | `debugger` | Debug | Error analysis |
104
+ | `game-developer` | Games | Unity, Godot |
105
+ | `code-archaeologist` | Legacy | Refactoring, legacy code |
106
+ | `product-manager` | Product | Requirements, user stories |
107
+ | `product-owner` | Product | Backlog, MVP, strategy |
108
+ | `orchestrator` | Meta | Coordination |
109
+
110
+ ---
111
+
112
+ ## Orchestration Protocol
113
+
114
+ ### Step 1: Analyze Task Domains
115
+ Identify ALL domains this task touches:
116
+ ```
117
+ □ Security → security-auditor, penetration-tester
118
+ □ Backend/API → backend-specialist
119
+ □ Frontend/UI → frontend-specialist
120
+ □ Database → database-architect
121
+ □ Testing → test-engineer
122
+ □ DevOps → devops-engineer
123
+ □ Mobile → mobile-developer
124
+ □ Performance → performance-optimizer
125
+ □ SEO → seo-specialist
126
+ □ Planning → project-planner
127
+ ```
128
+
129
+ ### Step 2: Phase Detection
130
+
131
+ | If Plan Exists | Action |
132
+ |----------------|--------|
133
+ | NO `{task-slug}.md` | → Go to PHASE 1 (planning only) |
134
+ | YES `{task-slug}.md` + user approved | → Go to PHASE 2 (implementation) |
135
+
136
+ ### Step 3: Execute Based on Phase
137
+
138
+ **PHASE 1 (Planning):**
139
+ ```
140
+ Use the project-planner agent to create {task-slug}.md
141
+ → STOP after plan is created
142
+ → ASK user for approval
143
+ ```
144
+
145
+ **PHASE 2 (Implementation - after approval):**
146
+ ```
147
+ Invoke agents in PARALLEL:
148
+ Use the frontend-specialist agent to [task]
149
+ Use the backend-specialist agent to [task]
150
+ Use the test-engineer agent to [task]
151
+ ```
152
+
153
+ **🔴 CRITICAL: Context Passing (MANDATORY)**
154
+
155
+ When invoking ANY subagent, you MUST include:
156
+
157
+ 1. **Original User Request:** Full text of what user asked
158
+ 2. **Decisions Made:** All user answers to Socratic questions
159
+ 3. **Previous Agent Work:** Summary of what previous agents did
160
+ 4. **Current Plan State:** If plan files exist in workspace, include them
161
+
162
+ **Example with FULL context:**
163
+ ```
164
+ Use the project-planner agent to create {task-slug}.md:
165
+
166
+ **CONTEXT:**
167
+ - User Request: "A social platform for students, using mock data"
168
+ - Decisions: Tech=Vue 3, Layout=Grid Widgets, Auth=Mock, Design=Youthful & dynamic
169
+ - Previous Work: Orchestrator asked 6 questions, user chose all options
170
+ - Current Plan: playful-roaming-dream.md exists in workspace with initial structure
171
+
172
+ **TASK:** Create detailed {task-slug}.md based on ABOVE decisions. Do NOT infer from folder name.
173
+ ```
174
+
175
+ > ⚠️ **VIOLATION:** Invoking subagent without full context = subagent will make wrong assumptions!
176
+
177
+
178
+ ### Step 4: Verification (MANDATORY)
179
+ The LAST agent must run appropriate verification scripts:
180
+ ```bash
181
+ python .opencode/skills/vulnerability-scanner/scripts/security_scan.py .
182
+ python .opencode/skills/lint-and-validate/scripts/lint_runner.py .
183
+ ```
184
+
185
+ ### Step 5: Synthesize Results
186
+ Combine all agent outputs into unified report.
187
+
188
+ ---
189
+
190
+ ## Output Format
191
+
192
+ ```markdown
193
+ ## 🎼 Orchestration Report
194
+
195
+ ### Task
196
+ [Original task summary]
197
+
198
+ ### Mode
199
+ [Current OpenCode kit Agent mode: plan/edit/ask]
200
+
201
+ ### Agents Invoked (MINIMUM 3)
202
+ | # | Agent | Focus Area | Status |
203
+ |---|-------|------------|--------|
204
+ | 1 | project-planner | Task breakdown | ✅ |
205
+ | 2 | frontend-specialist | UI implementation | ✅ |
206
+ | 3 | test-engineer | Verification scripts | ✅ |
207
+
208
+ ### Verification Scripts Executed
209
+ - [x] security_scan.py → Pass/Fail
210
+ - [x] lint_runner.py → Pass/Fail
211
+
212
+ ### Key Findings
213
+ 1. **[Agent 1]**: Finding
214
+ 2. **[Agent 2]**: Finding
215
+ 3. **[Agent 3]**: Finding
216
+
217
+ ### Deliverables
218
+ - [ ] {task-slug}.md created
219
+ - [ ] Code implemented
220
+ - [ ] Tests passing
221
+ - [ ] Scripts verified
222
+
223
+ ### Summary
224
+ [One paragraph synthesis of all agent work]
225
+ ```
226
+
227
+ ---
228
+
229
+ ## 🔴 EXIT GATE
230
+
231
+ Before completing orchestration, verify:
232
+
233
+ 1. ✅ **Agent Count:** `invoked_agents >= 3`
234
+ 2. ✅ **Scripts Executed:** At least `security_scan.py` ran
235
+ 3. ✅ **Report Generated:** Orchestration Report with all agents listed
236
+
237
+ > **If any check fails → DO NOT mark orchestration complete. Invoke more agents or run scripts.**
238
+
239
+ ---
240
+
241
+ **Begin orchestration now. Select 3+ agents, execute sequentially, run verification scripts, synthesize results.**