Repository navigation
Expand file tree
/
Copy pathopencode.json
More file actions
147 lines (140 loc) · 4.24 KB
/
Copy pathopencode.json
File metadata and controls
147 lines (140 loc) · 4.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"$schema": "https://opencode.ai/config.json",
"plugin": [
"context-mode",
".opencode/plugins"
],
"instructions": [
"AGENTS.md",
"specs/state.yaml",
"specs/plans/TECH_STACK_LATEST.md",
"CONVENTIONS.md",
".opencode/docs/PRINCIPLES.md",
".opencode/skills/develop-tdd/SKILL.md",
".opencode/skills/security-review/SKILL.md",
".opencode/skills/coding-standards/SKILL.md",
".opencode/skills/backend-patterns/SKILL.md",
".opencode/skills/frontend-patterns/SKILL.md",
".opencode/skills/e2e-testing/SKILL.md",
".opencode/skills/verification-loop/SKILL.md",
".opencode/skills/api-design/SKILL.md",
".opencode/skills/strategic-compact/SKILL.md"
],
"mcp": {
"sqz": {
"type": "local",
"command": ["sqz-mcp"]
},
"ctxo": {
"type": "local",
"command": ["npx", "-y", "@ctxo/cli@0.11.4"]
},
"context7": {
"type": "local",
"command": ["npx", "-y", "@upstash/context7-mcp@4.0.2"]
}
},
"lsp": {
"gopls": { "command": ["gopls"] },
"typescript": { "command": ["npx", "--no-install", "typescript-language-server", "--stdio"] }
},
"agent": {
"planner": {
"description": "Implementation planning for complex features",
"mode": "subagent",
"prompt": "{file:.opencode/prompts/agents/planner.txt}",
"tools": { "read": true, "bash": true, "write": false, "edit": false }
},
"code-reviewer": {
"description": "Code quality and security review",
"mode": "subagent",
"prompt": "{file:.opencode/prompts/agents/code-reviewer.txt}",
"tools": { "read": true, "bash": true, "write": false, "edit": false }
},
"security-reviewer": {
"description": "Security vulnerability detection",
"mode": "subagent",
"prompt": "{file:.opencode/prompts/agents/security-reviewer.txt}",
"tools": { "read": true, "bash": true, "write": true, "edit": true }
},
"tdd-guide": {
"description": "Test-driven development with 80%+ coverage",
"mode": "subagent",
"prompt": "{file:.opencode/prompts/agents/tdd-guide.txt}",
"tools": { "read": true, "write": true, "edit": true, "bash": true }
},
"build-error-resolver": {
"description": "Fix build and type errors",
"mode": "subagent",
"prompt": "{file:.opencode/prompts/agents/build-error-resolver.txt}",
"tools": { "read": true, "write": true, "edit": true, "bash": true }
},
"e2e-runner": {
"description": "E2E testing with Playwright",
"mode": "subagent",
"prompt": "{file:.opencode/prompts/agents/e2e-runner.txt}",
"tools": { "read": true, "write": true, "edit": true, "bash": true }
}
},
"command": {
"plan": {
"description": "Create implementation plan",
"agent": "planner",
"template": "Create a detailed plan for: $ARGUMENTS",
"subtask": true
},
"tdd": {
"description": "TDD workflow",
"agent": "tdd-guide",
"template": "Apply TDD for: $ARGUMENTS",
"subtask": true
},
"code-review": {
"description": "Review recent changes",
"agent": "code-reviewer",
"template": "Review the code changes for: $ARGUMENTS",
"subtask": true
},
"security": {
"description": "Security review",
"agent": "security-reviewer",
"template": "Run security review for: $ARGUMENTS",
"subtask": true
},
"build-fix": {
"description": "Fix build errors",
"agent": "build-error-resolver",
"template": "Fix build errors: $ARGUMENTS",
"subtask": true
},
"e2e": {
"description": "Generate and run E2E tests",
"agent": "e2e-runner",
"template": "Create E2E tests for: $ARGUMENTS",
"subtask": true
}
},
"permission": {
"mcp_*": "ask",
"skill": {
"*": "allow"
},
"bash": {
"*": "ask",
"git status*": "allow",
"git diff*": "allow",
"git log*": "allow",
"git branch*": "allow",
"git commit*": "ask",
"git push*": "allow",
"gh pr create*": "allow",
"gh pr view*": "allow",
"gh pr checks*": "allow",
"gh pr merge*": "ask",
"npm run preflight*": "allow",
"npm ci*": "allow",
"npx opensrc *": "allow",
"npx *": "ask"
}
}
}