opencode-agent-kit 1.0.12 → 1.0.14
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.
- package/README.md +14 -10
- package/bin/commands/init.mjs +7 -2
- package/package.json +4 -4
- package/template/.opencode/agents/it-leader.md +19 -0
- package/template/.opencode/agents/node-backend-developer.md +6 -0
- package/template/.opencode/agents/nuxt-frontend-developer.md +8 -0
- package/template/.opencode/agents/react-frontend-developer.md +8 -0
- package/template/.opencode/instructions/INSTRUCTIONS.md +13 -0
- package/template/opencode.example.json +0 -49
- package/template/opencode.json +0 -42
package/README.md
CHANGED
|
@@ -2,21 +2,23 @@
|
|
|
2
2
|
<img src="https://raw.githubusercontent.com/defuj/software-developer-team-agent/main/assets/og-image-2.webp" alt="Opencode Agent KIT Banner" width="100%">
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
-
#
|
|
5
|
+
# Agent Kit — Setup Guide
|
|
6
6
|
|
|
7
|
-
Complete setup guide for the **
|
|
7
|
+
Complete setup guide for the **Agent Kit** — a portable multi-stack AI agent system for OpenCode. Includes 13 specialized agents, 62 skill playbooks, 36 slash commands, and 6 MCP servers.
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx opencode-agent-kit init # One command. Full team.
|
|
11
|
+
```
|
|
8
12
|
|
|
9
13
|
---
|
|
10
14
|
|
|
11
15
|
## Quick Install
|
|
12
16
|
|
|
13
|
-
**One command** — installs into any project:
|
|
14
|
-
|
|
15
17
|
```bash
|
|
16
18
|
npx opencode-agent-kit init
|
|
17
19
|
```
|
|
18
20
|
|
|
19
|
-
This copies the full agent configuration, skills, commands, and rules into your project.
|
|
21
|
+
This copies the full agent configuration, skills, commands, and rules into your project. Smart merging preserves your existing setup.
|
|
20
22
|
|
|
21
23
|
Global install:
|
|
22
24
|
|
|
@@ -30,6 +32,8 @@ opencode-agent-kit init
|
|
|
30
32
|
|
|
31
33
|
## Overview
|
|
32
34
|
|
|
35
|
+
Think of Agent Kit as an AI development team you install into any OpenCode project. An **IT Leader** orchestrates 12 specialized subagents — each one an expert in their stack. You describe what to build; the team handles the rest.
|
|
36
|
+
|
|
33
37
|
This repository contains a complete OpenCode agent configuration with **Leader → Subagent** architecture for software development teams.
|
|
34
38
|
|
|
35
39
|
### Agent Config
|
|
@@ -256,12 +260,12 @@ To **customize** a built-in agent, create an agent with the **same name** in `.o
|
|
|
256
260
|
|
|
257
261
|
### How It Works
|
|
258
262
|
|
|
259
|
-
1.
|
|
260
|
-
2. IT Leader analyzes, designs architecture, and breaks into tasks
|
|
261
|
-
3.
|
|
262
|
-
4. IT Leader integrates results and reports
|
|
263
|
+
1. You describe what you need — a feature, a bug fix, a full app
|
|
264
|
+
2. The **IT Leader** analyzes requirements, designs architecture, and breaks the work into tasks
|
|
265
|
+
3. Tasks are delegated to the right subagents — frontend, backend, mobile, designer, reviewer
|
|
266
|
+
4. The IT Leader integrates results and reports back with verification status
|
|
263
267
|
|
|
264
|
-
For small tasks, mention subagents directly
|
|
268
|
+
For small tasks, mention subagents directly with `@mention`:
|
|
265
269
|
|
|
266
270
|
```text
|
|
267
271
|
@frontend-nuxt Add a UButton "Save" in ProfileHeader.vue.
|
package/bin/commands/init.mjs
CHANGED
|
@@ -246,8 +246,13 @@ export async function init(options) {
|
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
-
// 9.
|
|
250
|
-
|
|
249
|
+
// 9. Write .kit-version for agent update checking
|
|
250
|
+
const pkgJson = JSON.parse(readFileSync(join(PKG_ROOT, 'package.json'), 'utf-8'));
|
|
251
|
+
const versionFile = join(opencodeDir, '.kit-version');
|
|
252
|
+
writeFileSync(versionFile, pkgJson.version + '\n', 'utf-8');
|
|
253
|
+
|
|
254
|
+
// 10. Done
|
|
255
|
+
console.log(`\n ✅ opencode-agent-kit v${pkgJson.version} installed!\n`);
|
|
251
256
|
console.log(` Location: ${targetDir}`);
|
|
252
257
|
console.log(` What you got:`);
|
|
253
258
|
console.log(` • opencode.json — 13 agents config with MCP servers`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-agent-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "Multi-stack OpenCode agent toolkit — 13 specialized AI agents (Nuxt, React, Node.js, Laravel, CI3, Android, Flutter, DevOps, SEO) with 62 skills, 36 commands, and 6 MCP servers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
},
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
|
-
"url": "git+https://github.com/defuj/
|
|
19
|
+
"url": "git+https://github.com/defuj/agent-kit.git"
|
|
20
20
|
},
|
|
21
|
-
"homepage": "https://defuj.github.io/
|
|
21
|
+
"homepage": "https://defuj.github.io/agent-kit",
|
|
22
22
|
"bugs": {
|
|
23
|
-
"url": "https://github.com/defuj/
|
|
23
|
+
"url": "https://github.com/defuj/agent-kit/issues"
|
|
24
24
|
},
|
|
25
25
|
"engines": {
|
|
26
26
|
"node": ">=18"
|
|
@@ -884,6 +884,25 @@ When `multiple: true`, the user can select several options at once. The result r
|
|
|
884
884
|
|
|
885
885
|
## Session Workflow
|
|
886
886
|
|
|
887
|
+
### Version Check (Session Start)
|
|
888
|
+
|
|
889
|
+
At the start of every session, check if `opencode-agent-kit` has an update:
|
|
890
|
+
|
|
891
|
+
1. Read `.opencode/.kit-version` — if found, this is the installed version
|
|
892
|
+
2. Run `npm view opencode-agent-kit version` to get the latest version on npm
|
|
893
|
+
3. Compare versions (skip check if `.opencode/.kit-version` does not exist)
|
|
894
|
+
4. If the latest version is greater than the installed version, notify the user:
|
|
895
|
+
```
|
|
896
|
+
╭─ Update Available ─────────────────────────────────────╮
|
|
897
|
+
│ │
|
|
898
|
+
│ A newer version of opencode-agent-kit is available: │
|
|
899
|
+
│ Installed: v{installed} Latest: v{latest} │
|
|
900
|
+
│ │
|
|
901
|
+
│ Run `npx opencode-agent-kit init` to update. │
|
|
902
|
+
│ │
|
|
903
|
+
╰───────────────────────────────────────────────────────╯
|
|
904
|
+
```
|
|
905
|
+
|
|
887
906
|
### Starting a Session
|
|
888
907
|
|
|
889
908
|
```markdown
|
|
@@ -326,6 +326,12 @@ Use these prompts across services with this stack.
|
|
|
326
326
|
|
|
327
327
|
## Session Workflow
|
|
328
328
|
|
|
329
|
+
### Version Check (Session Start)
|
|
330
|
+
Before starting work, check if `opencode-agent-kit` has an update:
|
|
331
|
+
1. Read `.opencode/.kit-version` if it exists
|
|
332
|
+
2. Run `npm view opencode-agent-kit version` to get the latest version
|
|
333
|
+
3. If the latest version > installed version, notify the user to run `npx opencode-agent-kit init`
|
|
334
|
+
|
|
329
335
|
### Starting a Session
|
|
330
336
|
- Analyze project structure and identify existing patterns
|
|
331
337
|
- Use question tool to ask the task type (first option marked "(Recommended)")
|
|
@@ -1471,6 +1471,14 @@ questions: [
|
|
|
1471
1471
|
|
|
1472
1472
|
## Session Workflow
|
|
1473
1473
|
|
|
1474
|
+
### Version Check (Session Start)
|
|
1475
|
+
|
|
1476
|
+
Before starting work, check if `opencode-agent-kit` has an update:
|
|
1477
|
+
|
|
1478
|
+
1. Read `.opencode/.kit-version` if it exists
|
|
1479
|
+
2. Run `npm view opencode-agent-kit version` to get the latest version
|
|
1480
|
+
3. If the latest version > installed version, notify the user to run `npx opencode-agent-kit init`
|
|
1481
|
+
|
|
1474
1482
|
### Starting a Session
|
|
1475
1483
|
|
|
1476
1484
|
```markdown
|
|
@@ -943,6 +943,14 @@ options: [
|
|
|
943
943
|
|
|
944
944
|
## Session Workflow
|
|
945
945
|
|
|
946
|
+
### Version Check (Session Start)
|
|
947
|
+
|
|
948
|
+
Before starting work, check if `opencode-agent-kit` has an update:
|
|
949
|
+
|
|
950
|
+
1. Read `.opencode/.kit-version` if it exists
|
|
951
|
+
2. Run `npm view opencode-agent-kit version` to get the latest version
|
|
952
|
+
3. If the latest version > installed version, notify the user to run `npx opencode-agent-kit init`
|
|
953
|
+
|
|
946
954
|
### Starting a Session
|
|
947
955
|
|
|
948
956
|
```
|
|
@@ -378,6 +378,19 @@ flutter analyze # Static analysis
|
|
|
378
378
|
3. Integration tests — Full user flows (integration_test package)
|
|
379
379
|
4. Golden tests — Visual regression (golden_toolkit, alchemist)
|
|
380
380
|
|
|
381
|
+
---
|
|
382
|
+
|
|
383
|
+
## opencode-agent-kit Version Check
|
|
384
|
+
|
|
385
|
+
If `.opencode/.kit-version` exists, your agent toolkit has a recorded installed version.
|
|
386
|
+
|
|
387
|
+
**At session start**, check for updates:
|
|
388
|
+
1. Read `.opencode/.kit-version` to get the installed version
|
|
389
|
+
2. Run `npm view opencode-agent-kit version` to get the latest
|
|
390
|
+
3. If latest > installed, notify the user with the update command
|
|
391
|
+
|
|
392
|
+
This applies to IT-Leader (primary) and frontend/backend subagents when called directly.
|
|
393
|
+
|
|
381
394
|
## Success Metrics
|
|
382
395
|
|
|
383
396
|
You are successful when:
|
|
@@ -26,55 +26,6 @@
|
|
|
26
26
|
".opencode/skills/security-review/SKILL.md",
|
|
27
27
|
".opencode/skills/frontend-design/SKILL.md"
|
|
28
28
|
],
|
|
29
|
-
"mcp": {
|
|
30
|
-
"nuxt": {
|
|
31
|
-
"type": "remote",
|
|
32
|
-
"url": "https://nuxt.com/mcp",
|
|
33
|
-
"enabled": true,
|
|
34
|
-
"description": "Nuxt documentation, blog posts, and deployment guides"
|
|
35
|
-
},
|
|
36
|
-
"nuxt-ui": {
|
|
37
|
-
"type": "remote",
|
|
38
|
-
"url": "https://ui.nuxt.com/mcp",
|
|
39
|
-
"enabled": true,
|
|
40
|
-
"description": "Nuxt UI component documentation and examples"
|
|
41
|
-
},
|
|
42
|
-
"figma": {
|
|
43
|
-
"type": "stdio",
|
|
44
|
-
"command": "npx",
|
|
45
|
-
"args": ["-y", "@modelcontextprotocol/server-figma"],
|
|
46
|
-
"env": {
|
|
47
|
-
"FIGMA_ACCESS_TOKEN": "${FIGMA_ACCESS_TOKEN}"
|
|
48
|
-
},
|
|
49
|
-
"enabled": false,
|
|
50
|
-
"description": "Figma design file access (requires FIGMA_ACCESS_TOKEN)"
|
|
51
|
-
},
|
|
52
|
-
"playwright": {
|
|
53
|
-
"type": "stdio",
|
|
54
|
-
"command": "npx",
|
|
55
|
-
"args": ["-y", "@modelcontextprotocol/server-playwright"],
|
|
56
|
-
"enabled": true,
|
|
57
|
-
"description": "Browser automation and E2E testing with Playwright"
|
|
58
|
-
},
|
|
59
|
-
"stitch": {
|
|
60
|
-
"type": "remote",
|
|
61
|
-
"url": "https://stitch.googleapis.com/mcp",
|
|
62
|
-
"headers": {
|
|
63
|
-
"X-Goog-Api-Key": "${STITCH_API_KEY}"
|
|
64
|
-
},
|
|
65
|
-
"enabled": false,
|
|
66
|
-
"description": "Google Stitch AI design generation (requires STITCH_API_KEY)"
|
|
67
|
-
},
|
|
68
|
-
"postman": {
|
|
69
|
-
"type": "remote",
|
|
70
|
-
"url": "https://mcp.postman.com/mcp",
|
|
71
|
-
"headers": {
|
|
72
|
-
"Authorization": "Bearer ${POSTMAN_API_KEY}"
|
|
73
|
-
},
|
|
74
|
-
"enabled": true,
|
|
75
|
-
"description": "Postman API management for collections, requests, and documentation"
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
29
|
"agent": {
|
|
79
30
|
"leader": {
|
|
80
31
|
"description": "IT Leader & Technical Project Manager — analyzes requirements, designs architecture, decomposes tasks, delegates to subagents, and unifies outputs",
|
package/template/opencode.json
CHANGED
|
@@ -23,48 +23,6 @@
|
|
|
23
23
|
".opencode/skills/security-review/SKILL.md",
|
|
24
24
|
".opencode/skills/frontend-design/SKILL.md"
|
|
25
25
|
],
|
|
26
|
-
"mcp": {
|
|
27
|
-
"nuxt": {
|
|
28
|
-
"type": "remote",
|
|
29
|
-
"url": "https://nuxt.com/mcp",
|
|
30
|
-
"enabled": true,
|
|
31
|
-
"description": "Nuxt documentation, blog posts, and deployment guides"
|
|
32
|
-
},
|
|
33
|
-
"nuxt-ui": {
|
|
34
|
-
"type": "remote",
|
|
35
|
-
"url": "https://ui.nuxt.com/mcp",
|
|
36
|
-
"enabled": true,
|
|
37
|
-
"description": "Nuxt UI component documentation and examples"
|
|
38
|
-
},
|
|
39
|
-
"figma": {
|
|
40
|
-
"type": "remote",
|
|
41
|
-
"url": "https://mcp.figma.com/mcp"
|
|
42
|
-
},
|
|
43
|
-
"playwright": {
|
|
44
|
-
"type": "stdio",
|
|
45
|
-
"command": "npx",
|
|
46
|
-
"args": ["-y", "@modelcontextprotocol/server-playwright"],
|
|
47
|
-
"enabled": true,
|
|
48
|
-
"description": "Browser automation and E2E testing with Playwright"
|
|
49
|
-
},
|
|
50
|
-
"stitch": {
|
|
51
|
-
"type": "remote",
|
|
52
|
-
"url": "https://stitch.googleapis.com/mcp",
|
|
53
|
-
"headers": {
|
|
54
|
-
"X-Goog-Api-Key": "${STITCH_API_KEY}"
|
|
55
|
-
},
|
|
56
|
-
"description": "Google Stitch AI design generation (requires STITCH_API_KEY)"
|
|
57
|
-
},
|
|
58
|
-
"postman": {
|
|
59
|
-
"type": "remote",
|
|
60
|
-
"url": "https://mcp.postman.com/mcp",
|
|
61
|
-
"headers": {
|
|
62
|
-
"Authorization": "Bearer ${POSTMAN_API_KEY}"
|
|
63
|
-
},
|
|
64
|
-
"enabled": true,
|
|
65
|
-
"description": "Postman API management for collections, requests, and documentation"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
26
|
"agent": {
|
|
69
27
|
"leader": {
|
|
70
28
|
"description": "IT Leader & Technical Project Manager — analyzes requirements, designs architecture, decomposes tasks, delegates to subagents, and unifies outputs",
|