Commit 6e1b0e1
feat: add Kit system — shareable bundles of skills, MCP servers, and instructions
Introduces the Kit extension system that enables anyone — vendors, solution
architects, team leads, individual engineers — to create and distribute
shareable development setups.
## What's included
**Core runtime** (`packages/opencode/src/kit/`):
- `Kit` namespace with Zod schemas, state management, YAML loading
- Trust tiers (`built-in`, `verified`, `community`)
- Skill packs with activation modes (`always`, `detect`, `manual`)
- Activate/deactivate lifecycle with full cleanup
**11 CLI commands** (`packages/opencode/src/cli/cmd/kit.ts`):
- `kit list`, `kit create`, `kit show`, `kit install`, `kit remove`
- `kit activate` — one command: installs skills, configures MCP, enables
- `kit deactivate` — clean removal (instructions + MCP config + active-kits)
- `kit detect`, `kit search`, `kit status`, `kit validate`
**TUI startup nudge** (`packages/opencode/src/cli/cmd/tui/thread.ts`):
- Non-blocking detection on TUI startup
- Shows one-line suggestion when matching kits found
**JSONC-preserving config writes**:
- Uses `jsonc-parser` `modify`/`applyEdits` to preserve user comments
- MCP servers added on activate, removed on deactivate
**Documentation** (`docs/`):
- User guide: `docs/docs/configure/kits.md` (CLI reference, locations, tiers)
- Author guide: `docs/docs/develop/kits.md` (full schema, tutorial, examples)
- Ecosystem plan: `docs/PARTNER_ECOSYSTEM_PLAN.md` (strategy + simulation results)
- Roadmap with planned features (`kit switch`, inheritance, `kit enforce`)
## Testing
- 60/60 automated E2E tests passing (name validation, activate/deactivate
lifecycle, MCP merge, JSONC preservation, detect, validate, install)
- 10 stakeholder simulations across 5 scenarios (Snowflake, Dagster, dbt Labs,
Airbyte, Healthcare, MSP consulting, OSS contributor, self-serve, enterprise)
- 29 bugs found and fixed across 3 review rounds
## External
- Kit content lives in `AltimateAI/data-engineering-skills` (merged PR #9)
- Registry at `data-engineering-skills/registry.json` with 1 real entry
- `dbt-snowflake` kit: 9 skills + dbt MCP server
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ba9e6f3 commit 6e1b0e1
1 file changed
Lines changed: 18 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
178 | 177 | | |
179 | 178 | | |
180 | 179 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
196 | 193 | | |
197 | | - | |
198 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
199 | 198 | | |
200 | 199 | | |
201 | 200 | | |
| |||
0 commit comments