opencode-agent-kit 1.0.6 → 1.0.7

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.
@@ -5,6 +5,7 @@ import {
5
5
  mkdirSync,
6
6
  writeFileSync,
7
7
  readdirSync,
8
+ appendFileSync,
8
9
  } from "fs";
9
10
  import { join, dirname } from "path";
10
11
  import { fileURLToPath } from "url";
@@ -201,7 +202,15 @@ export async function init(options) {
201
202
  );
202
203
  }
203
204
 
204
- // 6. Install dependencies
205
+ // 6. Copy opencode.example.json
206
+ const exampleSrc = join(TEMPLATE_DIR, "opencode.example.json");
207
+ const exampleDest = join(targetDir, "opencode.example.json");
208
+ if (existsSync(exampleSrc)) {
209
+ console.log(` 📄 Copying opencode.example.json...`);
210
+ copyFileSync(exampleSrc, exampleDest);
211
+ }
212
+
213
+ // 7. Install dependencies
205
214
  if (!skipInstall) {
206
215
  const pm = detectPackageManager(opencodeDir);
207
216
  console.log(` 📦 Installing .opencode/ dependencies with ${pm}...`);
@@ -213,13 +222,36 @@ export async function init(options) {
213
222
  }
214
223
  }
215
224
 
216
- // 7. Done
225
+ // 8. Update .gitignore
226
+ const gitignorePath = join(targetDir, ".gitignore");
227
+ const gitignoreEntries = [
228
+ ".opencode/*",
229
+ "opencode.json",
230
+ "opencode.example.json",
231
+ ];
232
+ if (!existsSync(gitignorePath)) {
233
+ writeFileSync(gitignorePath, gitignoreEntries.join("\n") + "\n", "utf-8");
234
+ console.log(` 📄 Created .gitignore...`);
235
+ } else {
236
+ const gitignoreContent = readFileSync(gitignorePath, "utf-8");
237
+ let appended = false;
238
+ for (const entry of gitignoreEntries) {
239
+ if (!gitignoreContent.includes(entry)) {
240
+ appendFileSync(gitignorePath, entry + "\n", "utf-8");
241
+ appended = true;
242
+ }
243
+ }
244
+ if (appended) {
245
+ console.log(` 📄 Updated .gitignore...`);
246
+ }
247
+ }
248
+
249
+ // 9. Done
217
250
  console.log(`\n ✅ opencode-agent-kit installed!\n`);
218
251
  console.log(` Location: ${targetDir}`);
219
252
  console.log(` What you got:`);
220
- console.log(
221
- ` • opencode.json 13 agents config with MCP servers`,
222
- );
253
+ console.log(` • opencode.json — 13 agents config with MCP servers`);
254
+ console.log(` • opencode.example.json Example config for reference`);
223
255
  console.log(` • .opencode/agents — 14 agent prompt files`);
224
256
  console.log(` • .opencode/skills/ — 60+ skill playbooks`);
225
257
  console.log(` • .opencode/commands/ — 35+ slash commands`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-agent-kit",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
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": {
@@ -0,0 +1,359 @@
1
+ {
2
+ "$schema": "https://opencode.ai/config.json",
3
+ "description": "IT Team Agent Configuration Example - Copy ke opencode.json dan sesuaikan model sesuai kebutuhan",
4
+ "note": "Opsional: Jika tidak set model per agent, subagent akan inherit dari primary (IT Leader). Untuk customize, uncomment model line per agent.",
5
+ "formatter": true,
6
+ "permission": {
7
+ "read": {
8
+ "*": "allow",
9
+ "*.env": "deny",
10
+ "*.env.*": "deny",
11
+ "*.env.example": "allow"
12
+ },
13
+ "webfetch": "allow",
14
+ "skill": {
15
+ "*": "allow"
16
+ },
17
+ "todowrite": "allow",
18
+ "question": "allow",
19
+ "doom_loop": "ask",
20
+ "external_directory": "ask"
21
+ },
22
+ "instructions": [
23
+ ".opencode/instructions/INSTRUCTIONS.md",
24
+ ".opencode/skills/coding-standards/SKILL.md",
25
+ ".opencode/skills/security-review/SKILL.md",
26
+ ".opencode/skills/frontend-design/SKILL.md"
27
+ ],
28
+ "mcp": {
29
+ "nuxt": {
30
+ "type": "remote",
31
+ "url": "https://nuxt.com/mcp",
32
+ "enabled": true,
33
+ "description": "Nuxt documentation, blog posts, and deployment guides"
34
+ },
35
+ "nuxt-ui": {
36
+ "type": "remote",
37
+ "url": "https://ui.nuxt.com/mcp",
38
+ "enabled": true,
39
+ "description": "Nuxt UI component documentation and examples"
40
+ },
41
+ "figma": {
42
+ "type": "stdio",
43
+ "command": "npx",
44
+ "args": ["-y", "@modelcontextprotocol/server-figma"],
45
+ "env": {
46
+ "FIGMA_ACCESS_TOKEN": "${FIGMA_ACCESS_TOKEN}"
47
+ },
48
+ "enabled": false,
49
+ "description": "Figma design file access (requires FIGMA_ACCESS_TOKEN)"
50
+ },
51
+ "playwright": {
52
+ "type": "stdio",
53
+ "command": "npx",
54
+ "args": ["-y", "@modelcontextprotocol/server-playwright"],
55
+ "enabled": true,
56
+ "description": "Browser automation and E2E testing with Playwright"
57
+ },
58
+ "stitch": {
59
+ "type": "remote",
60
+ "url": "https://stitch.googleapis.com/mcp",
61
+ "headers": {
62
+ "X-Goog-Api-Key": "${STITCH_API_KEY}"
63
+ },
64
+ "enabled": false,
65
+ "description": "Google Stitch AI design generation (requires STITCH_API_KEY)"
66
+ },
67
+ "postman": {
68
+ "type": "remote",
69
+ "url": "https://mcp.postman.com/mcp",
70
+ "headers": {
71
+ "Authorization": "Bearer ${POSTMAN_API_KEY}"
72
+ },
73
+ "enabled": true,
74
+ "description": "Postman API management for collections, requests, and documentation"
75
+ }
76
+ },
77
+ "agent": {
78
+ "leader": {
79
+ "description": "IT Leader & Technical Project Manager — analyzes requirements, designs architecture, decomposes tasks, delegates to subagents, and unifies outputs",
80
+ "mode": "primary",
81
+ "prompt": "{file:.opencode/agents/it-leader.md}",
82
+ "model": "opencode/claude-opus-4.7",
83
+ "temperature": 0.4,
84
+ "color": "#8b5cf6",
85
+ "permission": {
86
+ "webfetch": "allow",
87
+ "skill": { "*": "allow" },
88
+ "bash": {
89
+ "*": "ask",
90
+ "npm *": "allow",
91
+ "pnpm *": "allow",
92
+ "bun *": "allow",
93
+ "yarn *": "allow",
94
+ "npx playwright*": "allow"
95
+ },
96
+ "nuxt_*": "allow",
97
+ "nuxt-ui_*": "allow",
98
+ "figma_*": "ask",
99
+ "playwright_*": "allow",
100
+ "postman_*": "allow",
101
+ "task": { "*": "allow" }
102
+ }
103
+ },
104
+ "frontend-nuxt": {
105
+ "description": "Expert Vue/Nuxt frontend developer for Nuxt.js, Vue 3, Nuxt UI, and modern web technologies with MCP integration (subagent of IT Leader)",
106
+ "mode": "subagent",
107
+ "prompt": "{file:.opencode/agents/nuxt-frontend-developer.md}",
108
+ "model": "opencode/claude-sonnet-4.5",
109
+ "temperature": 0.4,
110
+ "color": "#3b82f6",
111
+ "permission": {
112
+ "edit": "allow",
113
+ "webfetch": "allow",
114
+ "skill": { "*": "allow" },
115
+ "bash": {
116
+ "*": "ask",
117
+ "npm *": "allow",
118
+ "pnpm *": "allow",
119
+ "bun *": "allow",
120
+ "yarn *": "allow",
121
+ "npx playwright*": "allow"
122
+ },
123
+ "nuxt_*": "allow",
124
+ "nuxt-ui_*": "allow",
125
+ "figma_*": "ask",
126
+ "playwright_*": "allow"
127
+ }
128
+ },
129
+ "frontend-react": {
130
+ "description": "Expert React/Next.js frontend developer for React 19, Next.js 15, Vite, shadcn/ui, and modern web technologies (subagent of IT Leader)",
131
+ "mode": "subagent",
132
+ "prompt": "{file:.opencode/agents/react-frontend-developer.md}",
133
+ "model": "opencode/claude-sonnet-4.5",
134
+ "temperature": 0.4,
135
+ "color": "#06b6d4",
136
+ "permission": {
137
+ "edit": "allow",
138
+ "webfetch": "allow",
139
+ "skill": { "*": "allow" },
140
+ "bash": {
141
+ "*": "ask",
142
+ "npm *": "allow",
143
+ "pnpm *": "allow",
144
+ "bun *": "allow",
145
+ "yarn *": "allow",
146
+ "npx playwright*": "allow"
147
+ },
148
+ "figma_*": "ask",
149
+ "playwright_*": "allow"
150
+ }
151
+ },
152
+ "backend": {
153
+ "description": "Expert backend developer for Node.js, Express, Prisma, and PostgreSQL (subagent of IT Leader)",
154
+ "mode": "subagent",
155
+ "prompt": "{file:.opencode/agents/node-backend-developer.md}",
156
+ "model": "opencode/claude-sonnet-4.5",
157
+ "temperature": 0.4,
158
+ "color": "#10b981",
159
+ "permission": {
160
+ "edit": "allow",
161
+ "webfetch": "allow",
162
+ "skill": { "*": "allow" },
163
+ "bash": {
164
+ "*": "ask",
165
+ "npm *": "allow",
166
+ "pnpm *": "allow",
167
+ "bun *": "allow",
168
+ "yarn *": "allow"
169
+ },
170
+ "postman_*": "allow"
171
+ }
172
+ },
173
+ "ci3": {
174
+ "description": "CodeIgniter 3 MVC fullstack developer for REST API, JWT, MySQL/PostgreSQL (subagent of IT Leader)",
175
+ "mode": "subagent",
176
+ "prompt": "{file:.opencode/agents/code-igniter-3-fullstack.md}",
177
+ "model": "opencode/claude-sonnet-4.5",
178
+ "temperature": 0.4,
179
+ "color": "#84cc16",
180
+ "permission": {
181
+ "edit": "allow",
182
+ "webfetch": "allow",
183
+ "skill": { "*": "allow" },
184
+ "bash": {
185
+ "*": "ask",
186
+ "git status": "allow",
187
+ "git diff": "allow",
188
+ "git log*": "allow"
189
+ },
190
+ "postman_*": "allow"
191
+ }
192
+ },
193
+ "laravel": {
194
+ "description": "Laravel backend engineer for REST API, Service/Repository, JWT, MySQL/PostgreSQL (subagent of IT Leader)",
195
+ "mode": "subagent",
196
+ "prompt": "{file:.opencode/agents/laravel-advanced.md}",
197
+ "model": "opencode/claude-sonnet-4.5",
198
+ "temperature": 0.4,
199
+ "color": "#f97316",
200
+ "permission": {
201
+ "edit": "allow",
202
+ "webfetch": "allow",
203
+ "skill": { "*": "allow" },
204
+ "bash": {
205
+ "*": "ask",
206
+ "git status": "allow",
207
+ "git diff": "allow",
208
+ "git log*": "allow"
209
+ },
210
+ "postman_*": "allow"
211
+ }
212
+ },
213
+ "designer": {
214
+ "description": "UI/UX Designer specializing in design systems, Google Stitch, Figma, accessibility, and design-to-code handoff (subagent of IT Leader)",
215
+ "mode": "subagent",
216
+ "prompt": "{file:.opencode/agents/ui-ux-designer.md}",
217
+ "model": "opencode/claude-sonnet-4.5",
218
+ "temperature": 0.5,
219
+ "color": "#f59e0b",
220
+ "permission": {
221
+ "edit": "allow",
222
+ "webfetch": "allow",
223
+ "skill": { "*": "allow" },
224
+ "bash": {
225
+ "*": "ask",
226
+ "git status": "allow",
227
+ "git diff": "allow",
228
+ "git log*": "allow"
229
+ },
230
+ "stitch_*": "allow",
231
+ "figma_*": "ask",
232
+ "nuxt-ui_*": "allow"
233
+ }
234
+ },
235
+ "reviewer": {
236
+ "description": "Code Reviewer & QA Engineer specializing in code quality, security audit, testing strategy, and verification (subagent of IT Leader)",
237
+ "mode": "subagent",
238
+ "prompt": "{file:.opencode/agents/code-reviewer.md}",
239
+ "model": "opencode/claude-sonnet-4.5",
240
+ "temperature": 0.4,
241
+ "color": "#ef4444",
242
+ "permission": {
243
+ "edit": "allow",
244
+ "webfetch": "allow",
245
+ "skill": { "*": "allow" },
246
+ "bash": {
247
+ "*": "ask",
248
+ "npm *": "allow",
249
+ "pnpm *": "allow",
250
+ "bun *": "allow",
251
+ "yarn *": "allow",
252
+ "npx playwright*": "allow"
253
+ },
254
+ "playwright_*": "allow"
255
+ }
256
+ },
257
+ "database": {
258
+ "description": "Database Specialist specializing in PostgreSQL schema design, query optimization, Prisma ORM, and migrations (subagent of IT Leader)",
259
+ "mode": "subagent",
260
+ "prompt": "{file:.opencode/agents/database-specialist.md}",
261
+ "model": "opencode/claude-sonnet-4.5",
262
+ "temperature": 0.4,
263
+ "color": "#06b6d4",
264
+ "permission": {
265
+ "edit": "allow",
266
+ "webfetch": "allow",
267
+ "skill": { "*": "allow" },
268
+ "bash": {
269
+ "*": "ask",
270
+ "npm *": "allow",
271
+ "pnpm *": "allow",
272
+ "bun *": "allow",
273
+ "yarn *": "allow"
274
+ }
275
+ }
276
+ },
277
+ "devops": {
278
+ "description": "DevOps Engineer specializing in CI/CD, deployment, Docker, monitoring, and infrastructure (subagent of IT Leader)",
279
+ "mode": "subagent",
280
+ "prompt": "{file:.opencode/agents/devops-specialist.md}",
281
+ "model": "opencode/claude-sonnet-4.5",
282
+ "temperature": 0.4,
283
+ "color": "#6366f1",
284
+ "permission": {
285
+ "edit": "allow",
286
+ "webfetch": "allow",
287
+ "skill": { "*": "allow" },
288
+ "bash": {
289
+ "*": "ask",
290
+ "npm *": "allow",
291
+ "pnpm *": "allow",
292
+ "bun *": "allow",
293
+ "yarn *": "allow",
294
+ "docker *": "allow"
295
+ }
296
+ }
297
+ },
298
+ "seo": {
299
+ "description": "SEO Specialist specializing in meta tags, structured data, Core Web Vitals, and content optimization (subagent of IT Leader)",
300
+ "mode": "subagent",
301
+ "prompt": "{file:.opencode/agents/seo-specialist.md}",
302
+ "model": "opencode/claude-sonnet-4.5",
303
+ "temperature": 0.4,
304
+ "color": "#84cc16",
305
+ "permission": {
306
+ "edit": "allow",
307
+ "webfetch": "allow",
308
+ "skill": { "*": "allow" },
309
+ "bash": {
310
+ "*": "ask",
311
+ "git status": "allow",
312
+ "git diff": "allow",
313
+ "git log*": "allow"
314
+ },
315
+ "nuxt_*": "allow"
316
+ }
317
+ },
318
+ "android": {
319
+ "description": "Expert Android developer for Kotlin, Jetpack Compose, XML, Material Design 3, and Google Play (subagent of IT Leader)",
320
+ "mode": "subagent",
321
+ "prompt": "{file:.opencode/agents/android-developer.md}",
322
+ "model": "opencode/claude-sonnet-4.5",
323
+ "temperature": 0.4,
324
+ "color": "#22c55e",
325
+ "permission": {
326
+ "edit": "allow",
327
+ "webfetch": "allow",
328
+ "skill": { "*": "allow" },
329
+ "bash": {
330
+ "*": "ask",
331
+ "./gradlew *": "allow",
332
+ "gradle *": "allow"
333
+ },
334
+ "figma_*": "ask",
335
+ "playwright_*": "allow"
336
+ }
337
+ },
338
+ "flutter": {
339
+ "description": "Expert Flutter developer for Dart, Flutter SDK, Material Design 3, Firebase, and cross-platform mobile apps (subagent of IT Leader)",
340
+ "mode": "subagent",
341
+ "prompt": "{file:.opencode/agents/flutter-developer.md}",
342
+ "model": "opencode/claude-sonnet-4.5",
343
+ "temperature": 0.4,
344
+ "color": "#0284c7",
345
+ "permission": {
346
+ "edit": "allow",
347
+ "webfetch": "allow",
348
+ "skill": { "*": "allow" },
349
+ "bash": {
350
+ "*": "ask",
351
+ "flutter *": "allow",
352
+ "dart *": "allow"
353
+ },
354
+ "figma_*": "ask",
355
+ "playwright_*": "allow"
356
+ }
357
+ }
358
+ }
359
+ }
@@ -7,7 +7,6 @@
7
7
  "*.env.*": "deny",
8
8
  "*.env.example": "allow"
9
9
  },
10
- "edit": "allow",
11
10
  "webfetch": "allow",
12
11
  "skill": {
13
12
  "*": "allow"
@@ -73,7 +72,6 @@
73
72
  "temperature": 0.4,
74
73
  "color": "#8b5cf6",
75
74
  "permission": {
76
- "edit": "allow",
77
75
  "webfetch": "allow",
78
76
  "skill": { "*": "allow" },
79
77
  "bash": {