opencode-agile-agent 1.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.
- package/README.md +71 -0
- package/bin/cli.js +434 -0
- package/bin/validate-templates.js +58 -0
- package/package.json +52 -0
- package/templates/.opencode/ARCHITECTURE.md +368 -0
- package/templates/.opencode/README.md +391 -0
- package/templates/.opencode/agents/api-designer.md +312 -0
- package/templates/.opencode/agents/backend-specialist.md +214 -0
- package/templates/.opencode/agents/code-archaeologist.md +260 -0
- package/templates/.opencode/agents/database-architect.md +212 -0
- package/templates/.opencode/agents/debugger.md +302 -0
- package/templates/.opencode/agents/developer.md +523 -0
- package/templates/.opencode/agents/devops-engineer.md +253 -0
- package/templates/.opencode/agents/documentation-writer.md +247 -0
- package/templates/.opencode/agents/explorer-agent.md +239 -0
- package/templates/.opencode/agents/feature-lead.md +302 -0
- package/templates/.opencode/agents/frontend-specialist.md +186 -0
- package/templates/.opencode/agents/game-developer.md +391 -0
- package/templates/.opencode/agents/mobile-developer.md +264 -0
- package/templates/.opencode/agents/orchestrator.md +463 -0
- package/templates/.opencode/agents/penetration-tester.md +256 -0
- package/templates/.opencode/agents/performance-optimizer.md +292 -0
- package/templates/.opencode/agents/pr-reviewer.md +468 -0
- package/templates/.opencode/agents/product-manager.md +225 -0
- package/templates/.opencode/agents/product-owner.md +264 -0
- package/templates/.opencode/agents/project-planner.md +248 -0
- package/templates/.opencode/agents/qa-automation-engineer.md +276 -0
- package/templates/.opencode/agents/security-auditor.md +260 -0
- package/templates/.opencode/agents/seo-specialist.md +266 -0
- package/templates/.opencode/agents/system-analyst.md +428 -0
- package/templates/.opencode/agents/test-engineer.md +229 -0
- package/templates/.opencode/config.template.json +129 -0
- package/templates/.opencode/rules/coding-standards.md +250 -0
- package/templates/.opencode/rules/git-conventions.md +149 -0
- package/templates/.opencode/skills/api-patterns/SKILL.md +162 -0
- package/templates/.opencode/skills/brainstorming/SKILL.md +255 -0
- package/templates/.opencode/skills/clean-code/SKILL.md +351 -0
- package/templates/.opencode/skills/code-philosophy/SKILL.md +512 -0
- package/templates/.opencode/skills/frontend-design/SKILL.md +237 -0
- package/templates/.opencode/skills/intelligent-routing/SKILL.md +195 -0
- package/templates/.opencode/skills/parallel-agents/SKILL.md +274 -0
- package/templates/.opencode/skills/plan-writing/SKILL.md +251 -0
- package/templates/.opencode/skills/systematic-debugging/SKILL.md +210 -0
- package/templates/.opencode/skills/testing-patterns/SKILL.md +252 -0
- package/templates/.opencode/workflows/brainstorm.md +110 -0
- package/templates/.opencode/workflows/create.md +108 -0
- package/templates/.opencode/workflows/debug.md +128 -0
- package/templates/.opencode/workflows/deploy.md +160 -0
- package/templates/.opencode/workflows/enhance.md +253 -0
- package/templates/.opencode/workflows/orchestrate.md +130 -0
- package/templates/.opencode/workflows/plan.md +163 -0
- package/templates/.opencode/workflows/review.md +135 -0
- package/templates/.opencode/workflows/status.md +102 -0
- package/templates/.opencode/workflows/test.md +146 -0
- package/templates/AGENTS.template.md +426 -0
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
# OpenCode Agent Kit - Architecture
|
|
2
|
+
|
|
3
|
+
> **Comprehensive AI Agent Orchestration System for OpenCode**
|
|
4
|
+
>
|
|
5
|
+
> Inspired by Antigravity Kit, adapted for OpenCode's native agent system
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
OpenCode Agent Kit is a modular multi-agent system consisting of:
|
|
12
|
+
|
|
13
|
+
- **20 Specialist Agents** - Role-based AI personas for different domains
|
|
14
|
+
- **37 Skills** - Domain-specific knowledge modules
|
|
15
|
+
- **11 Workflows** - Slash command procedures
|
|
16
|
+
- **Intelligent Routing** - Automatic agent detection and invocation
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Directory Structure
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
.opencode/
|
|
24
|
+
├── ARCHITECTURE.md # This file
|
|
25
|
+
├── README.md # User guide
|
|
26
|
+
├── agents/ # 20 Specialist Agents
|
|
27
|
+
│ ├── orchestrator.md # Master coordinator
|
|
28
|
+
│ ├── project-planner.md # Discovery & planning
|
|
29
|
+
│ ├── frontend-specialist.md
|
|
30
|
+
│ ├── backend-specialist.md
|
|
31
|
+
│ ├── database-architect.md
|
|
32
|
+
│ ├── mobile-developer.md
|
|
33
|
+
│ ├── devops-engineer.md
|
|
34
|
+
│ ├── security-auditor.md
|
|
35
|
+
│ ├── penetration-tester.md
|
|
36
|
+
│ ├── test-engineer.md
|
|
37
|
+
│ ├── debugger.md
|
|
38
|
+
│ ├── performance-optimizer.md
|
|
39
|
+
│ ├── seo-specialist.md
|
|
40
|
+
│ ├── documentation-writer.md
|
|
41
|
+
│ ├── product-manager.md
|
|
42
|
+
│ ├── product-owner.md
|
|
43
|
+
│ ├── qa-automation-engineer.md
|
|
44
|
+
│ ├── code-archaeologist.md
|
|
45
|
+
│ ├── explorer-agent.md
|
|
46
|
+
│ ├── api-designer.md
|
|
47
|
+
│ └── game-developer.md
|
|
48
|
+
├── skills/ # 37 Domain Skills
|
|
49
|
+
│ ├── clean-code/
|
|
50
|
+
│ ├── frontend-design/
|
|
51
|
+
│ ├── backend-patterns/
|
|
52
|
+
│ ├── database-design/
|
|
53
|
+
│ ├── testing-patterns/
|
|
54
|
+
│ ├── security-auditing/
|
|
55
|
+
│ ├── devops-procedures/
|
|
56
|
+
│ ├── performance-profiling/
|
|
57
|
+
│ ├── brainstorming/
|
|
58
|
+
│ ├── plan-writing/
|
|
59
|
+
│ ├── architecture/
|
|
60
|
+
│ ├── parallel-agents/
|
|
61
|
+
│ ├── behavioral-modes/
|
|
62
|
+
│ ├── intelligent-routing/
|
|
63
|
+
│ └── ... (37 total)
|
|
64
|
+
├── workflows/ # 11 Slash Commands
|
|
65
|
+
│ ├── brainstorm.md
|
|
66
|
+
│ ├── create.md
|
|
67
|
+
│ ├── debug.md
|
|
68
|
+
│ ├── deploy.md
|
|
69
|
+
│ ├── enhance.md
|
|
70
|
+
│ ├── orchestrate.md
|
|
71
|
+
│ ├── plan.md
|
|
72
|
+
│ ├── preview.md
|
|
73
|
+
│ ├── status.md
|
|
74
|
+
│ ├── test.md
|
|
75
|
+
│ └── review.md
|
|
76
|
+
├── rules/ # Global Rules
|
|
77
|
+
│ ├── coding-standards.md
|
|
78
|
+
│ ├── git-conventions.md
|
|
79
|
+
│ └── security-rules.md
|
|
80
|
+
└── scripts/ # Validation Scripts
|
|
81
|
+
└── README.md
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Agents (20)
|
|
87
|
+
|
|
88
|
+
Specialist AI personas for different domains.
|
|
89
|
+
|
|
90
|
+
| Agent | Focus | Skills Used |
|
|
91
|
+
|-------|-------|-------------|
|
|
92
|
+
| `orchestrator` | Multi-agent coordination | parallel-agents, behavioral-modes |
|
|
93
|
+
| `project-planner` | Discovery, task planning | brainstorming, plan-writing, architecture |
|
|
94
|
+
| `frontend-specialist` | Web UI/UX | frontend-design, react-patterns, tailwind |
|
|
95
|
+
| `backend-specialist` | API, business logic | api-patterns, nodejs-patterns, database-design |
|
|
96
|
+
| `database-architect` | Schema, SQL | database-design, prisma-expert |
|
|
97
|
+
| `mobile-developer` | iOS, Android, RN | mobile-design |
|
|
98
|
+
| `devops-engineer` | CI/CD, Docker | deployment-procedures, docker-expert |
|
|
99
|
+
| `security-auditor` | Security compliance | vulnerability-scanner, security-rules |
|
|
100
|
+
| `penetration-tester` | Offensive security | red-team-tactics |
|
|
101
|
+
| `test-engineer` | Testing strategies | testing-patterns, tdd-workflow, e2e-testing |
|
|
102
|
+
| `debugger` | Root cause analysis | systematic-debugging |
|
|
103
|
+
| `performance-optimizer` | Speed, Web Vitals | performance-profiling |
|
|
104
|
+
| `seo-specialist` | Ranking, visibility | seo-fundamentals |
|
|
105
|
+
| `documentation-writer` | Manuals, docs | documentation-templates |
|
|
106
|
+
| `product-manager` | Requirements, user stories | plan-writing, brainstorming |
|
|
107
|
+
| `product-owner` | Strategy, backlog, MVP | plan-writing, brainstorming |
|
|
108
|
+
| `qa-automation-engineer` | E2E testing, CI pipelines | e2e-testing, testing-patterns |
|
|
109
|
+
| `code-archaeologist` | Legacy code, refactoring | clean-code, code-review |
|
|
110
|
+
| `explorer-agent` | Codebase analysis | - |
|
|
111
|
+
| `api-designer` | API architecture | api-patterns, openapi |
|
|
112
|
+
| `game-developer` | Game logic, mechanics | game-development |
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Skills (37)
|
|
117
|
+
|
|
118
|
+
Modular knowledge domains that agents load on-demand.
|
|
119
|
+
|
|
120
|
+
### Frontend & UI
|
|
121
|
+
|
|
122
|
+
| Skill | Description |
|
|
123
|
+
|-------|-------------|
|
|
124
|
+
| `react-patterns` | React & Next.js best practices |
|
|
125
|
+
| `vue-patterns` | Vue 3 composition API patterns |
|
|
126
|
+
| `tailwind-patterns` | Tailwind CSS v4 utilities |
|
|
127
|
+
| `frontend-design` | UI/UX patterns, design systems |
|
|
128
|
+
| `web-design-guidelines` | Web UI audit - accessibility, UX, performance |
|
|
129
|
+
| `responsive-design` | Mobile-first responsive patterns |
|
|
130
|
+
|
|
131
|
+
### Backend & API
|
|
132
|
+
|
|
133
|
+
| Skill | Description |
|
|
134
|
+
|-------|-------------|
|
|
135
|
+
| `api-patterns` | REST, GraphQL, tRPC patterns |
|
|
136
|
+
| `nodejs-patterns` | Node.js async, modules |
|
|
137
|
+
| `python-patterns` | Python standards, FastAPI |
|
|
138
|
+
| `nestjs-expert` | NestJS modules, DI, decorators |
|
|
139
|
+
|
|
140
|
+
### Database
|
|
141
|
+
|
|
142
|
+
| Skill | Description |
|
|
143
|
+
|-------|-------------|
|
|
144
|
+
| `database-design` | Schema design, optimization |
|
|
145
|
+
| `prisma-expert` | Prisma ORM, migrations |
|
|
146
|
+
| `sql-optimization` | Query optimization, indexing |
|
|
147
|
+
|
|
148
|
+
### TypeScript/JavaScript
|
|
149
|
+
|
|
150
|
+
| Skill | Description |
|
|
151
|
+
|-------|-------------|
|
|
152
|
+
| `typescript-expert` | Type-level programming, performance |
|
|
153
|
+
| `javascript-patterns` | Modern JS patterns |
|
|
154
|
+
|
|
155
|
+
### Cloud & Infrastructure
|
|
156
|
+
|
|
157
|
+
| Skill | Description |
|
|
158
|
+
|-------|-------------|
|
|
159
|
+
| `docker-expert` | Containerization, Compose |
|
|
160
|
+
| `deployment-procedures` | CI/CD, deploy workflows |
|
|
161
|
+
| `server-management` | Infrastructure management |
|
|
162
|
+
| `kubernetes-patterns` | K8s deployment patterns |
|
|
163
|
+
|
|
164
|
+
### Testing & Quality
|
|
165
|
+
|
|
166
|
+
| Skill | Description |
|
|
167
|
+
|-------|-------------|
|
|
168
|
+
| `testing-patterns` | Jest, Vitest, strategies |
|
|
169
|
+
| `e2e-testing` | Playwright, Cypress |
|
|
170
|
+
| `tdd-workflow` | Test-driven development |
|
|
171
|
+
| `code-review-checklist` | Code review standards |
|
|
172
|
+
| `lint-and-validate` | Linting, validation |
|
|
173
|
+
|
|
174
|
+
### Security
|
|
175
|
+
|
|
176
|
+
| Skill | Description |
|
|
177
|
+
|-------|-------------|
|
|
178
|
+
| `vulnerability-scanner` | Security auditing, OWASP |
|
|
179
|
+
| `red-team-tactics` | Offensive security |
|
|
180
|
+
| `security-rules` | Security best practices |
|
|
181
|
+
|
|
182
|
+
### Architecture & Planning
|
|
183
|
+
|
|
184
|
+
| Skill | Description |
|
|
185
|
+
|-------|-------------|
|
|
186
|
+
| `app-builder` | Full-stack app scaffolding |
|
|
187
|
+
| `architecture` | System design patterns |
|
|
188
|
+
| `plan-writing` | Task planning, breakdown |
|
|
189
|
+
| `brainstorming` | Socratic questioning |
|
|
190
|
+
|
|
191
|
+
### Other
|
|
192
|
+
|
|
193
|
+
| Skill | Description |
|
|
194
|
+
|-------|-------------|
|
|
195
|
+
| `clean-code` | Coding standards (Global) |
|
|
196
|
+
| `behavioral-modes` | Agent personas |
|
|
197
|
+
| `parallel-agents` | Multi-agent patterns |
|
|
198
|
+
| `intelligent-routing` | Automatic agent selection |
|
|
199
|
+
| `documentation-templates` | Doc formats |
|
|
200
|
+
| `i18n-localization` | Internationalization |
|
|
201
|
+
| `performance-profiling` | Web Vitals, optimization |
|
|
202
|
+
| `systematic-debugging` | Troubleshooting |
|
|
203
|
+
| `seo-fundamentals` | SEO, E-E-A-T, Core Web Vitals |
|
|
204
|
+
| `mobile-design` | Mobile UI/UX patterns |
|
|
205
|
+
| `game-development` | Game logic, mechanics |
|
|
206
|
+
| `bash-linux` | Linux commands, scripting |
|
|
207
|
+
| `powershell-windows` | Windows PowerShell |
|
|
208
|
+
| `git-conventions` | Git workflow patterns |
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## Workflows (11)
|
|
213
|
+
|
|
214
|
+
Slash command procedures. Invoke with `/command`.
|
|
215
|
+
|
|
216
|
+
| Command | Description |
|
|
217
|
+
|---------|-------------|
|
|
218
|
+
| `/brainstorm` | Socratic discovery |
|
|
219
|
+
| `/create` | Create new features |
|
|
220
|
+
| `/debug` | Debug issues |
|
|
221
|
+
| `/deploy` | Deploy application |
|
|
222
|
+
| `/enhance` | Improve existing code |
|
|
223
|
+
| `/orchestrate` | Multi-agent coordination |
|
|
224
|
+
| `/plan` | Task breakdown |
|
|
225
|
+
| `/preview` | Preview changes |
|
|
226
|
+
| `/status` | Check project status |
|
|
227
|
+
| `/test` | Run tests |
|
|
228
|
+
| `/review` | Code review workflow |
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
## Intelligent Agent Routing
|
|
233
|
+
|
|
234
|
+
The system automatically detects and applies the right specialist(s):
|
|
235
|
+
|
|
236
|
+
```
|
|
237
|
+
User: "Add JWT authentication"
|
|
238
|
+
AI: 🤖 Applying @security-auditor + @backend-specialist...
|
|
239
|
+
|
|
240
|
+
User: "Fix the dark mode button"
|
|
241
|
+
AI: 🤖 Using @frontend-specialist...
|
|
242
|
+
|
|
243
|
+
User: "Login returns 500 error"
|
|
244
|
+
AI: 🤖 Using @debugger for systematic analysis...
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
### How It Works:
|
|
248
|
+
|
|
249
|
+
1. Analyzes request silently
|
|
250
|
+
2. Detects domain(s) automatically (frontend, backend, security, etc.)
|
|
251
|
+
3. Selects the best specialist(s)
|
|
252
|
+
4. Informs you which expertise is being applied
|
|
253
|
+
5. You get specialist-level responses without needing to know the system architecture
|
|
254
|
+
|
|
255
|
+
---
|
|
256
|
+
|
|
257
|
+
## Request Flow
|
|
258
|
+
|
|
259
|
+
```
|
|
260
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
261
|
+
│ USER REQUEST │
|
|
262
|
+
└────────────────────────────┬────────────────────────────────────┘
|
|
263
|
+
│
|
|
264
|
+
▼
|
|
265
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
266
|
+
│ REQUEST CLASSIFICATION │
|
|
267
|
+
│ • Analyze intent (build, debug, test, deploy, etc.) │
|
|
268
|
+
│ • Identify domain (frontend, backend, mobile, etc.) │
|
|
269
|
+
│ • Detect complexity (simple, medium, complex) │
|
|
270
|
+
└────────────────────────────┬────────────────────────────────────┘
|
|
271
|
+
│
|
|
272
|
+
┌────────────┴────────────┐
|
|
273
|
+
│ │
|
|
274
|
+
▼ ▼
|
|
275
|
+
┌───────────────────┐ ┌──────────────────┐
|
|
276
|
+
│ WORKFLOW COMMAND │ │ DIRECT AGENT │
|
|
277
|
+
│ (Slash Command) │ │ ASSIGNMENT │
|
|
278
|
+
└─────────┬─────────┘ └────────┬─────────┘
|
|
279
|
+
│ │
|
|
280
|
+
└────────────┬────────────┘
|
|
281
|
+
│
|
|
282
|
+
▼
|
|
283
|
+
┌─────────────────────────────────────┐
|
|
284
|
+
│ AGENT INITIALIZATION │
|
|
285
|
+
│ • Load agent persona/role │
|
|
286
|
+
│ • Load required skills │
|
|
287
|
+
│ • Set behavioral mode │
|
|
288
|
+
└──────────────┬──────────────────────┘
|
|
289
|
+
│
|
|
290
|
+
▼
|
|
291
|
+
┌─────────────────────────────────────┐
|
|
292
|
+
│ TASK EXECUTION │
|
|
293
|
+
│ • Analyze codebase │
|
|
294
|
+
│ • Apply best practices │
|
|
295
|
+
│ • Generate/modify code │
|
|
296
|
+
│ • Run validations │
|
|
297
|
+
└──────────────┬──────────────────────┘
|
|
298
|
+
│
|
|
299
|
+
▼
|
|
300
|
+
┌─────────────────────────────────────┐
|
|
301
|
+
│ RESULT DELIVERY │
|
|
302
|
+
│ • Present changes to user │
|
|
303
|
+
│ • Provide explanations │
|
|
304
|
+
│ • Suggest next steps │
|
|
305
|
+
└─────────────────────────────────────┘
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
---
|
|
309
|
+
|
|
310
|
+
## Statistics
|
|
311
|
+
|
|
312
|
+
| Metric | Value |
|
|
313
|
+
|--------|-------|
|
|
314
|
+
| **Total Agents** | 20 |
|
|
315
|
+
| **Total Skills** | 37 |
|
|
316
|
+
| **Total Workflows** | 11 |
|
|
317
|
+
| **Coverage** | ~90% web/mobile development |
|
|
318
|
+
|
|
319
|
+
---
|
|
320
|
+
|
|
321
|
+
## Quick Reference
|
|
322
|
+
|
|
323
|
+
| Need | Agent | Skills |
|
|
324
|
+
|------|-------|--------|
|
|
325
|
+
| Web App | `frontend-specialist` | react-patterns, frontend-design |
|
|
326
|
+
| API | `backend-specialist` | api-patterns, nodejs-patterns |
|
|
327
|
+
| Mobile | `mobile-developer` | mobile-design |
|
|
328
|
+
| Database | `database-architect` | database-design, prisma-expert |
|
|
329
|
+
| Security | `security-auditor` | vulnerability-scanner |
|
|
330
|
+
| Testing | `test-engineer` | testing-patterns, e2e-testing |
|
|
331
|
+
| Debug | `debugger` | systematic-debugging |
|
|
332
|
+
| Plan | `project-planner` | brainstorming, plan-writing |
|
|
333
|
+
| Multi-agent | `orchestrator` | parallel-agents, behavioral-modes |
|
|
334
|
+
|
|
335
|
+
---
|
|
336
|
+
|
|
337
|
+
## Getting Started
|
|
338
|
+
|
|
339
|
+
### Quick Start
|
|
340
|
+
|
|
341
|
+
1. The orchestrator agent is your main entry point
|
|
342
|
+
2. Just describe what you need in natural language
|
|
343
|
+
3. The system will route to the right specialist(s)
|
|
344
|
+
4. Receive expert-level assistance automatically
|
|
345
|
+
|
|
346
|
+
### Manual Agent Selection
|
|
347
|
+
|
|
348
|
+
You can also explicitly invoke agents:
|
|
349
|
+
|
|
350
|
+
```
|
|
351
|
+
Use the security-auditor agent to review authentication
|
|
352
|
+
Use the frontend-specialist to build the dashboard
|
|
353
|
+
Use the test-engineer to add test coverage
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
### Using Workflows
|
|
357
|
+
|
|
358
|
+
```
|
|
359
|
+
/brainstorm authentication system
|
|
360
|
+
/create landing page with hero section
|
|
361
|
+
/debug why login fails
|
|
362
|
+
/plan feature breakdown
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
---
|
|
366
|
+
|
|
367
|
+
**Last Updated**: 2026-03-13
|
|
368
|
+
**Version**: 1.0.0
|