opencodekit 0.0.1

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 (123) hide show
  1. package/README.md +258 -0
  2. package/dist/index.js +3391 -0
  3. package/dist/template/.opencode/.env.example +193 -0
  4. package/dist/template/.opencode/AGENTS.md +214 -0
  5. package/dist/template/.opencode/README.md +269 -0
  6. package/dist/template/.opencode/agent/build.md +75 -0
  7. package/dist/template/.opencode/agent/explore.md +66 -0
  8. package/dist/template/.opencode/agent/planner.md +83 -0
  9. package/dist/template/.opencode/agent/review.md +90 -0
  10. package/dist/template/.opencode/agent/rush.md +85 -0
  11. package/dist/template/.opencode/agent/scout.md +93 -0
  12. package/dist/template/.opencode/command/analyze-project.md +39 -0
  13. package/dist/template/.opencode/command/brainstorm.md +11 -0
  14. package/dist/template/.opencode/command/commit.md +11 -0
  15. package/dist/template/.opencode/command/create.md +118 -0
  16. package/dist/template/.opencode/command/design.md +15 -0
  17. package/dist/template/.opencode/command/finish.md +233 -0
  18. package/dist/template/.opencode/command/fix-ci.md +20 -0
  19. package/dist/template/.opencode/command/fix-types.md +10 -0
  20. package/dist/template/.opencode/command/fix-ui.md +22 -0
  21. package/dist/template/.opencode/command/fix.md +22 -0
  22. package/dist/template/.opencode/command/handoff.md +146 -0
  23. package/dist/template/.opencode/command/implement.md +167 -0
  24. package/dist/template/.opencode/command/import-plan.md +188 -0
  25. package/dist/template/.opencode/command/integration-test.md +36 -0
  26. package/dist/template/.opencode/command/issue.md +41 -0
  27. package/dist/template/.opencode/command/plan.md +158 -0
  28. package/dist/template/.opencode/command/pr.md +36 -0
  29. package/dist/template/.opencode/command/quick-build.md +13 -0
  30. package/dist/template/.opencode/command/research-and-implement.md +21 -0
  31. package/dist/template/.opencode/command/research-ui.md +32 -0
  32. package/dist/template/.opencode/command/research.md +153 -0
  33. package/dist/template/.opencode/command/resume.md +127 -0
  34. package/dist/template/.opencode/command/review-codebase.md +13 -0
  35. package/dist/template/.opencode/command/skill-create.md +29 -0
  36. package/dist/template/.opencode/command/skill-optimize.md +28 -0
  37. package/dist/template/.opencode/command/status.md +109 -0
  38. package/dist/template/.opencode/command/ui-review.md +28 -0
  39. package/dist/template/.opencode/dcp.jsonc +34 -0
  40. package/dist/template/.opencode/memory/README.md +128 -0
  41. package/dist/template/.opencode/memory/_templates/handoff.md +33 -0
  42. package/dist/template/.opencode/memory/_templates/research.md +29 -0
  43. package/dist/template/.opencode/memory/_templates/task-prd.md +43 -0
  44. package/dist/template/.opencode/memory/_templates/task-review.md +73 -0
  45. package/dist/template/.opencode/memory/_templates/task-spec.md +71 -0
  46. package/dist/template/.opencode/memory/design-guidelines.md +281 -0
  47. package/dist/template/.opencode/memory/handoffs/README.md +83 -0
  48. package/dist/template/.opencode/opencode.json +469 -0
  49. package/dist/template/.opencode/package.json +23 -0
  50. package/dist/template/.opencode/pickle-thinker.jsonc +11 -0
  51. package/dist/template/.opencode/plugin/README.md +162 -0
  52. package/dist/template/.opencode/plugin/notification.ts +88 -0
  53. package/dist/template/.opencode/plugin/sessions.ts +434 -0
  54. package/dist/template/.opencode/plugin/superpowers.ts +332 -0
  55. package/dist/template/.opencode/plugin/tsconfig.json +15 -0
  56. package/dist/template/.opencode/superpowers/.claude/settings.local.json +141 -0
  57. package/dist/template/.opencode/superpowers/.claude-plugin/marketplace.json +20 -0
  58. package/dist/template/.opencode/superpowers/.claude-plugin/plugin.json +13 -0
  59. package/dist/template/.opencode/superpowers/.codex/INSTALL.md +35 -0
  60. package/dist/template/.opencode/superpowers/.codex/superpowers-bootstrap.md +33 -0
  61. package/dist/template/.opencode/superpowers/.codex/superpowers-codex +267 -0
  62. package/dist/template/.opencode/superpowers/.github/FUNDING.yml +3 -0
  63. package/dist/template/.opencode/superpowers/.opencode/INSTALL.md +135 -0
  64. package/dist/template/.opencode/superpowers/.opencode/plugin/superpowers.js +215 -0
  65. package/dist/template/.opencode/superpowers/LICENSE +21 -0
  66. package/dist/template/.opencode/superpowers/README.md +165 -0
  67. package/dist/template/.opencode/superpowers/RELEASE-NOTES.md +493 -0
  68. package/dist/template/.opencode/superpowers/agents/code-reviewer.md +48 -0
  69. package/dist/template/.opencode/superpowers/commands/brainstorm.md +5 -0
  70. package/dist/template/.opencode/superpowers/commands/execute-plan.md +5 -0
  71. package/dist/template/.opencode/superpowers/commands/write-plan.md +5 -0
  72. package/dist/template/.opencode/superpowers/docs/README.codex.md +153 -0
  73. package/dist/template/.opencode/superpowers/docs/README.opencode.md +234 -0
  74. package/dist/template/.opencode/superpowers/docs/plans/2025-11-22-opencode-support-design.md +294 -0
  75. package/dist/template/.opencode/superpowers/docs/plans/2025-11-22-opencode-support-implementation.md +1095 -0
  76. package/dist/template/.opencode/superpowers/hooks/hooks.json +15 -0
  77. package/dist/template/.opencode/superpowers/hooks/session-start.sh +34 -0
  78. package/dist/template/.opencode/superpowers/lib/skills-core.js +208 -0
  79. package/dist/template/.opencode/superpowers/skills/brainstorming/SKILL.md +54 -0
  80. package/dist/template/.opencode/superpowers/skills/condition-based-waiting/SKILL.md +120 -0
  81. package/dist/template/.opencode/superpowers/skills/condition-based-waiting/example.ts +158 -0
  82. package/dist/template/.opencode/superpowers/skills/defense-in-depth/SKILL.md +127 -0
  83. package/dist/template/.opencode/superpowers/skills/dispatching-parallel-agents/SKILL.md +180 -0
  84. package/dist/template/.opencode/superpowers/skills/executing-plans/SKILL.md +76 -0
  85. package/dist/template/.opencode/superpowers/skills/finishing-a-development-branch/SKILL.md +200 -0
  86. package/dist/template/.opencode/superpowers/skills/frontend-aesthetics/SKILL.md +137 -0
  87. package/dist/template/.opencode/superpowers/skills/gemini-large-context/SKILL.md +205 -0
  88. package/dist/template/.opencode/superpowers/skills/receiving-code-review/SKILL.md +209 -0
  89. package/dist/template/.opencode/superpowers/skills/requesting-code-review/SKILL.md +105 -0
  90. package/dist/template/.opencode/superpowers/skills/requesting-code-review/code-reviewer.md +146 -0
  91. package/dist/template/.opencode/superpowers/skills/root-cause-tracing/SKILL.md +174 -0
  92. package/dist/template/.opencode/superpowers/skills/root-cause-tracing/find-polluter.sh +63 -0
  93. package/dist/template/.opencode/superpowers/skills/sharing-skills/SKILL.md +194 -0
  94. package/dist/template/.opencode/superpowers/skills/subagent-driven-development/SKILL.md +189 -0
  95. package/dist/template/.opencode/superpowers/skills/systematic-debugging/CREATION-LOG.md +119 -0
  96. package/dist/template/.opencode/superpowers/skills/systematic-debugging/SKILL.md +295 -0
  97. package/dist/template/.opencode/superpowers/skills/systematic-debugging/test-academic.md +14 -0
  98. package/dist/template/.opencode/superpowers/skills/systematic-debugging/test-pressure-1.md +58 -0
  99. package/dist/template/.opencode/superpowers/skills/systematic-debugging/test-pressure-2.md +68 -0
  100. package/dist/template/.opencode/superpowers/skills/systematic-debugging/test-pressure-3.md +69 -0
  101. package/dist/template/.opencode/superpowers/skills/test-driven-development/SKILL.md +364 -0
  102. package/dist/template/.opencode/superpowers/skills/testing-anti-patterns/SKILL.md +302 -0
  103. package/dist/template/.opencode/superpowers/skills/testing-skills-with-subagents/SKILL.md +387 -0
  104. package/dist/template/.opencode/superpowers/skills/testing-skills-with-subagents/examples/CLAUDE_MD_TESTING.md +189 -0
  105. package/dist/template/.opencode/superpowers/skills/ui-ux-research/SKILL.md +191 -0
  106. package/dist/template/.opencode/superpowers/skills/using-git-worktrees/SKILL.md +213 -0
  107. package/dist/template/.opencode/superpowers/skills/using-superpowers/SKILL.md +101 -0
  108. package/dist/template/.opencode/superpowers/skills/verification-before-completion/SKILL.md +139 -0
  109. package/dist/template/.opencode/superpowers/skills/writing-plans/SKILL.md +116 -0
  110. package/dist/template/.opencode/superpowers/skills/writing-skills/SKILL.md +622 -0
  111. package/dist/template/.opencode/superpowers/skills/writing-skills/anthropic-best-practices.md +1150 -0
  112. package/dist/template/.opencode/superpowers/skills/writing-skills/graphviz-conventions.dot +172 -0
  113. package/dist/template/.opencode/superpowers/skills/writing-skills/persuasion-principles.md +187 -0
  114. package/dist/template/.opencode/superpowers/tests/opencode/run-tests.sh +165 -0
  115. package/dist/template/.opencode/superpowers/tests/opencode/setup.sh +73 -0
  116. package/dist/template/.opencode/superpowers/tests/opencode/test-plugin-loading.sh +81 -0
  117. package/dist/template/.opencode/superpowers/tests/opencode/test-priority.sh +198 -0
  118. package/dist/template/.opencode/superpowers/tests/opencode/test-skills-core.sh +440 -0
  119. package/dist/template/.opencode/superpowers/tests/opencode/test-tools.sh +104 -0
  120. package/dist/template/.opencode/tool/memory-read.ts +66 -0
  121. package/dist/template/.opencode/tool/memory-update.ts +61 -0
  122. package/dist/template/.opencode/tsconfig.json +21 -0
  123. package/package.json +52 -0
package/README.md ADDED
@@ -0,0 +1,258 @@
1
+ # OpenCodeKit - 10-Agent Multi-Agent Observability
2
+
3
+ **Architecture**: Multi-Agent Observability Pattern
4
+ **Inspiration**: [disler/opencode-hooks-multi-agent-observability](https://github.com/disler/opencode-hooks-multi-agent-observability)
5
+
6
+ ---
7
+
8
+ ## 🎯 What is OpenCodeKit?
9
+
10
+ A pre-configured OpenCode distribution featuring:
11
+
12
+ - **10 core agents** with clear delegation
13
+ - **24 skills** (domain expertise loaded via commands)
14
+ - **45+ workflow commands** (including `/handoff`)
15
+ - **Multi-agent observability** (all work visible in build session)
16
+ - **Manual handoffs** for clean phase transitions
17
+
18
+ **For**: Solo developers who want low maintenance + high productivity
19
+
20
+ ---
21
+
22
+ ## 🚀 Quick Start (5 minutes)
23
+
24
+ ### Option 1: Using CLI (Recommended)
25
+
26
+ ```bash
27
+ # 1. Install CLI
28
+ bun install -g opencodekit-cli
29
+ # or use local version
30
+ bun install
31
+ bun run dev init
32
+
33
+ # 2. Create new project
34
+ ock init
35
+ cd my-opencode-project
36
+
37
+ # 3. Configure OpenCodeKit
38
+ ock setup
39
+
40
+ # 4. Explore
41
+ ock agent list
42
+ ock skill list
43
+ ```
44
+
45
+ **See [CLI.md](./CLI.md) for complete CLI documentation**
46
+
47
+ ### Option 2: Manual Setup
48
+
49
+ ```bash
50
+ # 1. Verify setup
51
+ ls -1 ~/.config/opencode/agent/*.md | wc -l # Should be: 10
52
+
53
+ # 2. Start OpenCode
54
+ opencode
55
+
56
+ # 3. Try simple task (build handles)
57
+ create test.txt with "Hello OpenCodeKit"
58
+
59
+ # 4. Try command
60
+ /commit
61
+
62
+ # 5. Try delegation
63
+ @plan Build auth system with 4 phases
64
+
65
+ # 6. Try handoff workflow
66
+ /handoff "implement phase 1 of the plan"
67
+ # Creates portable handoff bundle in .opencode/memory/handoffs/
68
+ ```
69
+
70
+ ---
71
+
72
+ ## 🏗️ Architecture
73
+
74
+ ```
75
+ build (Primary Orchestrator - 70% of work)
76
+ ├→ @plan (Complex planning ≥3 phases)
77
+ ├→ @code-auditor (Review + security + testing)
78
+ ├→ @oracle (Deep analysis, debugging, architecture review)
79
+ ├→ @librarian (Cross-repo GitHub search, framework internals)
80
+ ├→ @docs (Quick API documentation)
81
+ ├→ @finder (Fast codebase search)
82
+ ├→ @orchestrator (Multi-agent coordination)
83
+ └→ @general (Fallback)
84
+
85
+ Supporting:
86
+ • 24 Skills (loaded via commands: 8 core, 7 stack, 9 specialized)
87
+ • 45+ Commands (workflow shortcuts, includes /handoff)
88
+ • 5 MCP Services (context7, exa, gkg, gh_grep, figma*) + augment-context-engine
89
+ • Beads task tracking (`bd` CLI for multi-session workflows)
90
+ • Manual Handoffs (clean phase transitions)
91
+ ```
92
+
93
+ ### Manual Handoffs (Recommended)
94
+
95
+ **We use manual `/handoff` command for clean phase transitions** - no automatic session plugin needed.
96
+
97
+ ### Custom `/handoff` Command
98
+
99
+ Creates portable handoff bundles for phase transitions:
100
+
101
+ ```bash
102
+ # Create handoff bundle
103
+ /handoff "design the rate limiting system based on research"
104
+
105
+ # Creates: .opencode/memory/handoffs/2025-11-18-rate-limiting-design.md
106
+ # Contains: summary, @file-mentions, key decisions, next-phase prompt
107
+ ```
108
+
109
+ **Use handoff bundle:**
110
+
111
+ ```bash
112
+ # Option 1: Manual reference
113
+ @.opencode/memory/handoffs/2025-11-18-planning.md
114
+
115
+ # Option 2: With sessions plugin
116
+ session({
117
+ mode: "new",
118
+ agent: "plan",
119
+ text: "@.opencode/memory/handoffs/2025-11-18-planning.md"
120
+ })
121
+ ```
122
+
123
+ **Complete Workflow Example:**
124
+
125
+ ```bash
126
+ # Phase 1: Research
127
+ /research "API rate limiting patterns"
128
+ # ... research happens ...
129
+
130
+ # Create handoff → Planning
131
+ /handoff "design system based on research"
132
+ # Creates: .opencode/memory/handoffs/2025-11-20-planning.md
133
+
134
+ # Phase 2: Planning (new thread with @plan)
135
+ @plan @.opencode/memory/handoffs/2025-11-20-planning.md
136
+ # ... planning happens ...
137
+
138
+ # Create handoff → Implementation
139
+ /handoff "implement phase 1 of the plan"
140
+ # Creates: .opencode/memory/handoffs/2025-11-20-implementation.md
141
+
142
+ # Phase 3: Implementation (new thread)
143
+ @.opencode/memory/handoffs/2025-11-20-implementation.md
144
+ # ... implementation happens ...
145
+
146
+ # Create handoff → Review
147
+ /handoff "review the completed feature for security"
148
+ # Creates: .opencode/memory/handoffs/2025-11-20-review.md
149
+
150
+ # Phase 4: Review (new thread with @code-auditor)
151
+ @code-auditor @.opencode/memory/handoffs/2025-11-20-review.md
152
+ ```
153
+
154
+ **Key Benefits:**
155
+
156
+ - ✅ Clean context per phase (no conversation pollution)
157
+ - ✅ Portable bundles (share across workspaces)
158
+ - ✅ Git-tracked handoffs (audit trail)
159
+ - ✅ Simple workflow (just /handoff + new thread)
160
+
161
+ ---
162
+
163
+ ## 🎓 Learning Path
164
+
165
+ **Week 1**: Use daily, document patterns
166
+ **Week 2**: Refine, create custom commands if needed
167
+
168
+ ---
169
+
170
+ ## 🔍 Decision Tree
171
+
172
+ **"Which agent should I use?"**
173
+
174
+ ```
175
+ Is it a simple task?
176
+ ✓ → Use build directly (70% of work)
177
+
178
+ Complex task (≥3 phases)?
179
+ ✓ → @plan (creates task ledger)
180
+
181
+ Need research?
182
+ ✓ → @oracle (complex debugging/architecture)
183
+ ✓ → @librarian (cross-repo GitHub search)
184
+ ✓ → @docs (quick API reference)
185
+ ✓ → @finder (codebase search)
186
+
187
+ Quality gate before deployment?
188
+ ✓ → @code-auditor (security + review + test)
189
+
190
+ 5+ phases + 3+ agents?
191
+ ✓ → @orchestrator (progress tracking)
192
+
193
+ Everything else?
194
+ ✓ → @general (fallback)
195
+ ```
196
+
197
+ ---
198
+
199
+ ## 🛠️ Troubleshooting
200
+
201
+ **"Skills not loading"**
202
+ → Skills load via commands, NOT file types
203
+ → Use `/design/good` to load frontend-design skill
204
+ → Use `/fix/hard` to load debugging skills
205
+ → Check: `ls .opencode/skills/` for all available skills
206
+
207
+ **"/handoff command not available"**
208
+ → Verify: `ls .opencode/command/handoff.md`
209
+ → Check frontmatter has: `description`, `agent: build`
210
+ → Restart OpenCode if just added
211
+
212
+ **"MCP services not working"**
213
+ → Check `.opencode/.env` for API keys (CONTEXT7_API_KEY, EXA_API_KEY)
214
+ → Verify enabled in `.opencode/opencode.json`
215
+ → See `.opencode/README.md` for complete setup guide
216
+
217
+ ---
218
+
219
+ ## 🎉 Success Criteria
220
+
221
+ You've successfully set up OpenCodeKit when:
222
+
223
+ - ✅ 10 agent files (.opencode/agent/\*.md)
224
+ - ✅ Build handles 70%+ directly
225
+ - ✅ Commands work (45+ total, including `/handoff`)
226
+ - ✅ Skills load via commands (24 skills: 8 core, 7 stack, 9 specialized)
227
+ - ✅ Delegation is clear (build → specialized subagents)
228
+ - ✅ `/handoff` creates portable bundles (.opencode/memory/handoffs/)
229
+ - ✅ MCP services configured (6 total: 5 enabled, 1 optional)
230
+ - ✅ Environment variables set (.opencode/.env with API keys)
231
+
232
+ ---
233
+
234
+ ## 🔗 Resources
235
+
236
+ - [OpenCode Docs](https://opencode.ai/docs/)
237
+ - [Multi-Agent Pattern](https://github.com/disler/opencode-hooks-multi-agent-observability)
238
+ - [Handoff Workflow Guide](.opencode/INTEGRATION_OVERVIEW.md)
239
+ - [MCP Services Setup](.opencode/README.md)
240
+
241
+ ## 📚 Documentation
242
+
243
+ - **CLI Tool**: [CLI.md](./CLI.md) - `ock` command reference (init, setup, agent, skill)
244
+ - **Architecture Guide**: `.opencode/INTEGRATION_OVERVIEW.md` - Two-layer system (Memory + Backlog + Git)
245
+ - **MCP Services Setup**: `.opencode/README.md` - Complete environment setup
246
+ - **Handoff Bundles**: `.opencode/command/handoff.md` - Clean phase transitions
247
+ - **Custom Commands**: `.opencode/command/` - All 45+ workflow commands
248
+ - **Skills System**: `.opencode/skills/` - 24 skills (8 core, 7 stack, 9 specialized)
249
+ - **Memory System**: `.opencode/memory/` - Persistent cross-session knowledge
250
+
251
+ ---
252
+
253
+ **OpenCodeKit v2.0**
254
+ **Architecture**: Two-layer (Memory + Backlog + Git)
255
+ **New**: Manual handoff workflow + 6 MCP services + 24 skills system + semantic memory search
256
+ **Ready for**: Daily production use
257
+
258
+ Enjoy your streamlined agent system with clean phase transitions! 🚀