Panduan ini menjelaskan cara menggunakan agent di repo ini, termasuk skill yang perlu diinstall agar agent berjalan optimal.
Repo ini berisi konfigurasi OpenCode untuk tim IT lengkap dengan arsitektur Leader → Subagent:
-
Active config:
.opencode/config.json -
Example config (dengan model berbeda per agent):
.opencode/config.example.json -
Agent prompts:
.opencode/agents/ -
Instructions:
.opencode/instructions/INSTRUCTIONS.md(rules yang dipakai semua agent) -
Agent examples:
.opencode/agents/ -
Agent config:
.opencode/config.json -
Agent prompts:
.opencode/agents/it-leader.md— IT Leader & Technical Project Manager (primary)nuxt-frontend-developer.md— Frontend Developer (Nuxt)node-backend-developer.md— Backend Developer (Node.js)ui-ux-designer.md— UI/UX Designercode-reviewer.md— Code Reviewer / QAdatabase-specialist.md— Database Specialistdevops-specialist.md— DevOps / Infrastructureseo-specialist.md— SEO Specialistnuxt-frontend-developer-mentor.md— Nuxt mentor (standalone)
-
Dokumentasi internal:
.opencode/agent-docs/- Frontend Nuxt:
.opencode/agent-docs/frontend/nuxt/ - Backend Node:
.opencode/agent-docs/backend/node/
- Frontend Nuxt:
-
Skill lokal:
.opencode/skills/(33 skill tersinkron) -
Contexts:
.opencode/contexts/(dev, research, review)
Tim didesain untuk:
- Nuxt 4 + Nuxt UI + Vue 3 Composition API + TypeScript (frontend)
- Node.js + Express 5 + Prisma + PostgreSQL (backend)
- Workflow operasional tim (scope-safe, verification status, commit/PR policy)
- Mentoring terstruktur 30 hari untuk transisi ke stack Nuxt modern
- OpenCode CLI sudah terpasang
- Akses ke repository ini
- Node.js + npm/pnpm/yarn/bun sesuai kebutuhan proyek
OpenCode memiliki built-in agents yang sudah tersedia secara global. Project ini tidak mendefinisikan ulang agent yang sudah ada — melainkan fokus pada specialized agents untuk stack Nuxt/Node.js.
| Built-in Agent | Model | Fungsi | Usage |
|---|---|---|---|
planner |
opus-4.5 | Detailed planning, architectural decisions | /plan atau @planner |
architect |
opus-4.5 | System design, scalability analysis | @architect |
code-reviewer |
opus-4.5 | Quality, security, maintainability review | /code-review atau @code-reviewer |
security-reviewer |
opus-4.5 | Vulnerability detection | /security atau @security-reviewer |
tdd-guide |
opus-4.5 | TDD workflow, 80%+ coverage enforcement | /tdd atau @tdd-guide |
build-error-resolver |
opus-4.5 | Fix TypeScript/build errors | /build-fix atau @build-error-resolver |
e2e-runner |
opus-4.5 | Playwright E2E test generation & execution | /e2e atau @e2e-runner |
refactor-cleaner |
opus-4.5 | Dead code removal, consolidation | /refactor-clean atau @refactor-cleaner |
database-reviewer |
opus-4.5 | PostgreSQL query optimization, Supabase best practices | @database-reviewer |
Dibawah adalah specialized agents yang TIDAK tersedia di built-in OpenCode:
| Agent | File | Fungsi | Ketika Dipakai |
|---|---|---|---|
| IT Leader | it-leader.md |
Orchestration, task decomposition, integration | Semua request besar |
| Frontend | nuxt-frontend-developer.md |
Nuxt/Vue implementation + MCP integration | Implementasi frontend |
| Backend | node-backend-developer.md |
Node/Express/Prisma implementation | Implementasi backend |
| Designer | ui-ux-designer.md |
Design system, Stitch, Figma, accessibility | Design tasks |
| DevOps | devops-specialist.md |
CI/CD, Docker, monitoring, infrastructure | Deployment tasks |
| SEO | seo-specialist.md |
Meta tags, structured data, Core Web Vitals | SEO optimization |
User Request
│
▼
┌─────────────────┐
│ IT Leader │ ← Custom (orchestration)
│ (Primary) │
└────────┬────────┘
│
┌────┴────┬────────┬────────┬────────┐
▼ ▼ ▼ ▼ ▼
┌────────┐ ┌──────┐ ┌──────┐ ┌───────┐ ┌──────┐
│Frontend│ │Backend│ │Desigr │ │Devops │ │ SEO │
│Custom │ │Custom │ │Custom │ │Custom │ │Custom│
└────┬───┘ └───┬──┘ └───┬──┘ └───┬───┘ └───┬──┘
│ │ │ │ │
▼ │ │ │ │
┌─────────┐ │ │ │ │
│Built-in │ │ │ │ │
│e2e-runner│ │ │ │ │
└─────────┘ │ │ │ │
│ │ │ │
▼ │ │ │
┌────────┐ │ │ │
│Built-in│ │ │ │
│code-reviewer│ │ │
└────────┘ │ │ │
│ │ │ │
▼ ▼ ▼ ▼
┌─────────────────────────────────┐
│ Integration Report │
│ (IT Leader combines) │
└─────────────────────────────────┘
Setelah copy .opencode/ ke project, command berikut tersedia:
# Planning & Architecture
/plan [feature description] # Detailed implementation plan
/orchestrate [complex task] # Multi-agent orchestration
# Review & Quality
/code-review [files] # Code quality review
/security [files] # Security audit
/refactor-clean [scope] # Dead code cleanup
# Testing
/tdd [feature] # TDD workflow
/e2e [user flow] # Generate & run E2E tests
/test-coverage [scope] # Analyze coverage
# Build & Errors
/build-fix [error message] # Fix TypeScript/build errors
# Documentation
/update-docs [files] # Update documentation
/update-codemaps # Update code references
# Database
# (built-in database-reviewer bisa dipakai untuk query optimization)Copy seluruh folder .opencode/ ke project yang sedang dikerjakan:
cp -R .opencode/ /path/to/your-project/Atau jika ingin hanya config:
cp .opencode/config.json /path/to/your-project/.opencode/config.json| File/Folder | Apa yang Dicopy | Mandatory |
|---|---|---|
config.json |
Agent definitions, MCP settings | Ya |
agents/ |
Custom agent prompts | Ya |
instructions/INSTRUCTIONS.md |
Global rules untuk semua agent | Ya |
skills/ |
Domain-specific skills | Direkomendasikan |
contexts/ |
Project context | Opsional |
commands/ |
Custom slash commands | Opsional |
rules/ |
Coding rules | Opsional |
hooks/ |
Automation hooks | Opsional |
User Session
│
▼
Project-level config (.opencode/config.json)
│
▼
Global config (~/.opencode/opencode.json)
│
▼
OpenCode defaults
- Project-level override global
- Global override defaults
- Instructions digabungkan dari semua level
Project config ini tidak perlu memodifikasi konfigurasi global Anda. Cukup copy .opencode/ ke project dan semua agent + commands akan tersedia.
Jika ingin tetap menggunakan agent dari konfigurasi global (bukan yang di project), cukup rename file di project:
mv .opencode/agents/code-reviewer.md .opencode/agents/code-reviewer-custom.mdJika ingin customize built-in agent untuk project ini, bisa dibuat agent dengan nama yang sama di .opencode/agents/. Priority: project-level agents override built-in.
Contoh override code-reviewer untuk fokus Nuxt:
# .opencode/agents/code-reviewer.md
# Override built-in code-reviewer untuk Nuxt-specific reviewRepo ini menyediakan 8 agent dengan arsitektur Leader → Subagent:
| Agent | File | Mode | Tujuan |
|---|---|---|---|
| IT Leader | it-leader.md |
primary | Analisis requirement, arsitektur, pembagian tugas, delegasi, integrasi |
| Frontend Developer | nuxt-frontend-developer.md |
subagent | Implementasi frontend (komponen, halaman, composable, E2E) |
| Backend Developer | node-backend-developer.md |
subagent | Implementasi backend (API, DTO, controller, database, auth) |
| UI/UX Designer | ui-ux-designer.md |
subagent | Design system, Figma integration, accessibility, design-to-code handoff |
| Code Reviewer / QA | code-reviewer.md |
subagent | Code quality review, security audit, testing strategy, verification |
| Database Specialist | database-specialist.md |
subagent | PostgreSQL schema, query optimization, Prisma, migrations |
| DevOps / Infrastructure | devops-specialist.md |
subagent | CI/CD, deployment, Docker, monitoring, infrastructure |
| SEO Specialist | seo-specialist.md |
subagent | Meta tags, structured data, Core Web Vitals, content optimization |
- User memberikan requirement ke IT Leader (primary agent, otomatis aktif)
- IT Leader menganalisis, merancang arsitektur, dan memecah menjadi task
- IT Leader mendelegasikan task ke subagent yang sesuai
- IT Leader mengintegrasikan hasil dari subagent dan melaporkan ke user
Untuk task kecil yang langsung tahu subagent-nya, bisa langsung mention subagent:
@frontend Tambahkan UButton "Simpan" di ProfileHeader.vue.
@backend Add endpoint POST /api/markets dengan DTO validation.
@designer Review UX flow halaman checkout.
@reviewer Audit security untuk authentication module.
@database Optimasi query untuk listing markets dengan pagination.
@devops Setup CI/CD pipeline untuk deployment ke Vercel.
@seo Implementasi meta tags dan structured data untuk halaman produk.
Setiap agent bisa pakai model berbeda berdasarkan kompleksitas tugas. Subagent akan inherit model dari primary jika tidak diset. Berikut rekomendasi per agent:
| Agent | Tugas | Model Recommended | Model Alternatif | Alasan |
|---|---|---|---|---|
| IT Leader | Orchestration, arsitektur, planning | opencode/claude-opus-4.7 |
opencode/claude-opus-4.5 |
Butuh reasoning dalam, analisis kompleks, koordinasi multi-subagent |
| Frontend | Implementasi komponen, halaman, logic | opencode/claude-sonnet-4.5 |
opencode/claude-sonnet-4.6 |
Keseimbangan reasoning & efisiensi untuk coding |
| Backend | API, DTO, controller, database ops | opencode/claude-sonnet-4.5 |
opencode/claude-sonnet-4.6 |
Keseimbangan reasoning & efisiensi untuk coding |
| Designer | Design system, eksplorasi visual, handoff | opencode/claude-sonnet-4 |
openai/gpt-5 |
Kreativitas dengan reasoning cukup |
| Reviewer | Security audit, code review detail | opencode/claude-opus-4.5 |
openai/o3 |
Analisis mendalam, deteksi pattern halus |
| Database | Schema design, query optimization | opencode/claude-sonnet-4.5 |
opencode/claude-sonnet-4 |
Kebutuhan reasoning cukup, fokus precision |
| DevOps | CI/CD config, scripts, monitoring | opencode/claude-haiku-4.5 |
openai/gpt-4.1-mini |
Task lebih straightforward, efisiensi tinggi |
| SEO | Research, meta tags, structured data | openai/gpt-5.1-codex-mini |
openai/gpt-5-nano |
Task lebih research-focused, tidak perlu deep coding |
| Tier | Model | Use Case |
|---|---|---|
| Tier 1 (Premium) | claude-opus-4.7, claude-opus-4.5 |
Orchestration, deep analysis, security audit |
| Tier 2 (Balanced) | claude-sonnet-4.5/4.6, claude-sonnet-4 |
Implementasi kompleks, design, database |
| Tier 3 (Efficient) | claude-haiku-4.5, gpt-4.1-mini |
Task langsung, scripts, config files |
| Tier 4 (Fast) | gpt-5-nano, gpt-5.1-codex-mini |
Research, content, optimasi costs |
- Untuk semua agent — set
modeldi level primary agent (IT Leader) - Per agent — set
modeldi config agent masing-masing - Quick override — pakai flag
--modelsaat run opencode
Lihat .opencode/config.example.json untuk contoh konfigurasi lengkap per model.
Skill tersimpan di .opencode/skills/ (lokal dalam repo), jadi developer lain tidak perlu mencari skill satu per satu.
| Agent | Skill Utama |
|---|---|
| IT Leader | coding-standards, backend-patterns, frontend-patterns |
| Frontend Developer | coding-standards, frontend-patterns, frontend-design, web-design-guidelines, nuxt-ui, tdd-workflow |
| Backend Developer | coding-standards, backend-patterns, postgres-patterns, security-review |
| UI/UX Designer | frontend-design, web-design-guidelines, building-components, nuxt-ui |
| Code Reviewer / QA | coding-standards, security-review, tdd-workflow, web-design-guidelines |
| Database Specialist | postgres-patterns, backend-patterns |
| DevOps / Infrastructure | backend-patterns, coding-standards |
| SEO Specialist | frontend-patterns, web-design-guidelines, nuxt-ui |
Skill backend/lintas bahasa di bawah tidak diperlukan untuk stack Nuxt + Node.js:
springboot-*,java-*,jpa-patternsdjango-*golang-*python-*clickhouse-io
Catatan: skill tersebut boleh tetap disimpan jika tim memang butuh multi-stack, tapi tidak wajib untuk tim ini.
configure-ecc— installer untuk Everything Claude Codecontinuous-learning/continuous-learning-v2— pattern learning dari sessioneval-harness— formal evaluation frameworkiterative-retrieval— context retrieval patternstrategic-compact— manual context compactionverification-loop— verification cycle untuk agentnutrient-document-processing— document processing APIproject-guidelines-example— contoh panduan proyek
OpenCode membaca skill dari:
~/.opencode/skills/~/.agents/skills/.opencode/skills/(lokal di repo ini)
Verifikasi cepat:
ls ~/.opencode/skills
ls ~/.agents/skills
ls .opencode/skillsPastikan semua skill wajib tersedia.
Jika skill belum ada di mesin developer, copy dari repo ini ke direktori skill lokal:
mkdir -p ~/.opencode/skills
cp -R ./.opencode/skills/coding-standards ~/.opencode/skills/
cp -R ./.opencode/skills/frontend-patterns ~/.opencode/skills/
cp -R ./.opencode/skills/frontend-design ~/.opencode/skills/
cp -R ./.opencode/skills/web-design-guidelines ~/.opencode/skills/
cp -R ./.opencode/skills/nuxt-ui ~/.opencode/skills/
cp -R ./.opencode/skills/security-review ~/.opencode/skills/
cp -R ./.opencode/skills/tdd-workflow ~/.opencode/skills/Opsional:
cp -R ./.opencode/skills/building-components ~/.opencode/skills/
cp -R ./.opencode/skills/vercel-composition-patterns ~/.opencode/skills/Dari .opencode/config.json, agent memakai MCP berikut:
| MCP | Type | Status | Deskripsi |
|---|---|---|---|
nuxt |
remote | enabled | Dokumentasi Nuxt, blog, deployment guide |
nuxt-ui |
remote | enabled | Dokumentasi & contoh komponen Nuxt UI |
playwright |
stdio | enabled | Browser automation & E2E testing |
figma |
stdio | disabled | Akses Figma design file (opsional) |
stitch |
remote | disabled | Google Stitch AI design generation (opsional) |
Jika ingin pakai Figma MCP:
export FIGMA_ACCESS_TOKEN="your-token"Jika ingin pakai Google Stitch MCP:
# Get API key from https://stitch.withgoogle.com/settings/api-keys
export STITCH_API_KEY="your-api-key"Berisi konteks reusable proyek:
dev.md— konteks developmentresearch.md— konteks risetreview.md— konteks code review
Rujuk konteks ini saat membuat prompt supaya agent tidak keluar jalur. Update saat ada perubahan requirement produk/arsitektur.
Instal ke lokal jika ingin reuse context lintas repo:
mkdir -p ~/.opencode/contexts
cp -R ./.opencode/contexts/* ~/.opencode/contexts/Folder-folder ini ada di dalam .opencode/ dan berisi:
commands/— Command/prompt siap pakai (slash command internal tim)rules/— Aturan operasional/coding yang harus dipatuhihooks/— Automasi lifecycle (pre-task/post-task, validasi)
Folder-folder ini bukan otomatis aktif. Developer perlu copy/sinkron ke environment lokal masing-masing jika diperlukan.
Instal commands:
mkdir -p ~/.opencode/commands
cp -R ./.opencode/commands/* ~/.opencode/commands/Instal rules (ikuti README di rules/ — copy per direktori, jangan di-flatten).
Hooks: aktifkan hanya jika environment lokal mendukung hook dependencies-nya. File hooks/hooks.json memanggil script via CLAUDE_PLUGIN_ROOT.
- Gunakan
commands/untuk pekerjaan rutin. - Gunakan
rules/sebagai standar wajib saat implementasi dan review. - Gunakan
contexts/untuk prompt yang lebih presisi. - Perlakukan
hooks/sebagai konfigurasi bersama tim (perubahan perlu sinkronisasi).
IT Leader adalah primary agent — otomatis aktif saat session dimulai. Berikan requirement ke IT Leader:
Buat fitur marketplace dengan halaman listing, detail, dan form create.
Backend API untuk CRUD markets dengan pagination dan filter.
Setup CI/CD pipeline dan optimasi SEO.
IT Leader akan:
- Analisis requirement dan definisikan scope
- Rancang arsitektur (data flow, API contract, component structure)
- Pecah menjadi task dan delegasikan ke subagent yang sesuai
- Integrasikan hasil dan laporkan status
Untuk task kecil yang sudah jelas subagent-nya, bisa langsung mention:
@frontend Tambahkan UButton "Simpan" di app/components/profile/ProfileHeader.vue.
Task tiny, minimal diff, jangan ubah file lain.
@frontend Implementasikan filter status di halaman markets.
Gunakan pola useApi yang sudah ada dan laporkan verification status.
@backend Add endpoint POST /api/markets dengan DTO validation.
@designer Buat design system untuk halaman produk dengan Nuxt UI.
@reviewer Audit security untuk authentication module.
@database Optimasi query untuk listing markets dengan pagination.
@devops Setup CI/CD pipeline untuk deployment ke Vercel.
@seo Implementasi meta tags dan structured data untuk halaman produk.
Agent ini dikonfigurasi untuk selalu melaporkan:
- perubahan yang dibuat
- file yang disentuh
- status verifikasi:
verified/partially_verified/not_verified - command manual jika verifikasi penuh tidak bisa dijalankan
- Tidak commit kecuali diminta user
- Tidak buat PR kecuali diminta user
- Tidak push kecuali diminta user
- Tidak menyentuh file di luar scope request
Detail SOP tim ada di: .opencode/agent-docs/frontend/nuxt/TEAM_OPERATING_GUIDE.md
Dokumentasi agent tersedia di .opencode/agent-docs/frontend/nuxt/:
| Dokumen | Isi |
|---|---|
INDEX.md |
Navigasi lengkap semua dokumentasi |
README.md |
User guide lengkap |
QUICK_START.md |
Mulai dalam 5 menit |
EXAMPLES.md |
50+ contoh praktis |
API_PATTERNS.md |
Panduan useApi composable |
WORKFLOWS.md |
8 workflow detail |
CHEATSHEET.md |
Quick reference |
MCP_GUIDE.md |
Panduan integrasi MCP |
TESTING_GUIDE.md |
Testing & validasi |
TEAM_OPERATING_GUIDE.md |
SOP tim |
SUMMARY.md |
Ringkasan instalasi |
COMPLETION_REPORT.md |
Laporan penyelesaian |
README_AGENTS.md |
Overview agent |
README_DOCS.md |
Overview dokumentasi |
| Dokumen | Isi |
|---|---|
MENTOR_CURRICULUM_30_DAYS.md |
Roadmap belajar 30 hari |
MENTOR_CURRICULUM_CHECKLIST.md |
Checklist harian |
MENTOR_WEEKLY_ASSIGNMENTS.md |
Tugas mingguan + rubrik |
| Dokumen | Isi |
|---|---|
backend/README.md |
Overview backend |
backend/node/BACKEND_QUICK_START.md |
Quick start backend |
backend/node/BACKEND_PATTERNS.md |
Pola backend |
- Config aktif:
.opencode/config.json - Config contoh (model per agent):
.opencode/config.example.json - Prompt IT Leader (primary):
.opencode/agents/it-leader.md - Prompt frontend subagent:
.opencode/agents/nuxt-frontend-developer.md - Prompt backend subagent:
.opencode/agents/node-backend-developer.md - Prompt designer subagent:
.opencode/agents/ui-ux-designer.md - Prompt reviewer subagent:
.opencode/agents/code-reviewer.md - Prompt database subagent:
.opencode/agents/database-specialist.md - Prompt devops subagent:
.opencode/agents/devops-specialist.md - Prompt seo subagent:
.opencode/agents/seo-specialist.md - Dokumentasi utama:
.opencode/agent-docs/frontend/nuxt/README.md - Quick start:
.opencode/agent-docs/frontend/nuxt/QUICK_START.md - Index dokumentasi:
.opencode/agent-docs/frontend/nuxt/INDEX.md
Gejala: nama skill tidak terlihat saat ls ~/.opencode/skills atau ls ~/.agents/skills.
Langkah perbaikan:
- Pastikan path home benar:
echo $HOME- Cek direktori skill:
ls ~/.opencode/skills
ls ~/.agents/skills
ls .opencode/skills- Jika belum ada, install/copy skill ke salah satu direktori tersebut.
Gejala: agent tidak memuat skill yang seharusnya dipakai.
Langkah perbaikan:
- Panggil skill secara eksplisit di prompt:
@frontend Load skill `nuxt-ui` lalu implementasikan form ini.
- Mulai session baru OpenCode setelah update skill/konfigurasi.
- Pastikan nama skill persis sama dengan folder skill.
Gejala: agent tidak bisa menjalankan command tertentu (test/build/lint).
Langkah perbaikan:
- Cek policy di
.opencode/config.jsonpada bagianagent.frontend.permission. - Izinkan command yang dibutuhkan (mis.
pnpm *,npm *, atau command spesifik). - Jalankan ulang task; agent akan melaporkan
verification statussesuai izin yang tersedia.
Gejala: lookup Nuxt/Nuxt UI docs tidak berjalan.
Langkah perbaikan:
- Cek
mcpdi.opencode/config.jsonpastikanenabled: trueuntuknuxtdannuxt-ui. - Pastikan koneksi internet aktif (karena MCP Nuxt/Nuxt UI remote).
- Untuk Figma MCP, pastikan token terpasang:
export FIGMA_ACCESS_TOKEN="your-token"Gejala: perubahan melebar atau penjelasan terlalu panjang.
Langkah perbaikan:
Gunakan batasan langsung di prompt:
Task tiny. Minimal diff. Ubah 1 file ini saja. Jawaban ringkas.
Gejala: style/pattern yang dipakai tidak sesuai kode existing.
Langkah perbaikan:
- Sebutkan konvensi secara eksplisit di prompt (mis. "gunakan useApi", "jangan ubah naming").
- Referensikan file contoh yang harus diikuti.
- Minta agent melakukan revisi dengan scope sempit pada file terkait.