my-opencode 1.3.4 → 3.0.0
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/LICENSE +21 -21
- package/README.md +309 -271
- package/agents/architect.md +30 -30
- package/agents/backend-dev.md +29 -0
- package/agents/business-analyst.md +30 -0
- package/agents/code-reviewer.md +29 -29
- package/agents/design-evidence.md +29 -0
- package/agents/frontend-dev.md +29 -0
- package/agents/system-designer.md +30 -0
- package/agents/team-lead.md +65 -60
- package/agents/tech-writer.md +30 -30
- package/agents/test-engineer.md +30 -30
- package/agents/verifier.md +38 -33
- package/bin/cli.js +366 -364
- package/bin/moc +206 -198
- package/bin/moc.js +9 -3
- package/opencode.json +240 -170
- package/package.json +53 -51
- package/plugins/README.md +74 -67
- package/plugins/provider-profile.mjs +238 -194
- package/scripts/postinstall.js +202 -202
- package/scripts/validate-role-flow.mjs +90 -0
- package/skills/adr/SKILL.md +91 -91
- package/skills/adr/references/templates.md +100 -100
- package/skills/adr/scripts/README.md +5 -5
- package/skills/design-evidence/SKILL.md +56 -0
- package/skills/dev-flow/SKILL.md +126 -188
- package/skills/dev-flow/references/code-phase.md +35 -72
- package/skills/dev-flow/references/contract-phase.md +66 -81
- package/skills/dev-flow/references/verify-phase.md +70 -129
- package/skills/dev-flow/scripts/README.md +3 -3
- package/skills/docs-gen/SKILL.md +162 -162
- package/skills/docs-gen/references/doc-styles.md +216 -216
- package/skills/docs-gen/scripts/README.md +5 -5
- package/skills/orchestrate/SKILL.md +63 -112
- package/skills/orchestrate/references/orchestration-patterns.md +49 -56
- package/skills/pr-review/SKILL.md +110 -110
- package/skills/pr-review/references/review-dimensions.md +117 -117
- package/skills/pr-review/references/security-checklist.md +122 -122
- package/skills/pr-review/scripts/README.md +5 -5
- package/skills/test-gen/SKILL.md +143 -143
- package/skills/test-gen/references/framework-detection.md +105 -105
- package/skills/test-gen/references/test-patterns.md +260 -260
- package/skills/test-gen/scripts/README.md +5 -5
- package/agents/executor.md +0 -30
- package/agents/fullstack-dev.md +0 -57
- package/agents/spec-writer.md +0 -37
package/opencode.json
CHANGED
|
@@ -1,170 +1,240 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opencode.ai/config.json",
|
|
3
|
-
"model": "opencode-go/deepseek-v4-
|
|
4
|
-
"small_model": "opencode-go/deepseek-v4-flash",
|
|
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
|
-
"tools": {
|
|
49
|
-
"read": true,
|
|
50
|
-
"write": true,
|
|
51
|
-
"edit": true,
|
|
52
|
-
"bash": true
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"
|
|
56
|
-
"description": "
|
|
57
|
-
"mode": "subagent",
|
|
58
|
-
"model": "opencode-go/deepseek-v4-flash",
|
|
59
|
-
"prompt": "{file:agents/
|
|
60
|
-
"tools": {
|
|
61
|
-
"read": true,
|
|
62
|
-
"bash": true,
|
|
63
|
-
"write":
|
|
64
|
-
"edit":
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
"
|
|
68
|
-
"description": "
|
|
69
|
-
"mode": "subagent",
|
|
70
|
-
"model": "opencode-go/deepseek-v4-
|
|
71
|
-
"prompt": "{file:agents/
|
|
72
|
-
"tools": {
|
|
73
|
-
"read": true,
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
"
|
|
80
|
-
"description": "
|
|
81
|
-
"mode": "subagent",
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"prompt": "{file:agents/
|
|
106
|
-
"tools": {
|
|
107
|
-
"read": true,
|
|
108
|
-
"write": true,
|
|
109
|
-
"edit": true,
|
|
110
|
-
"bash": true
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
"
|
|
114
|
-
"description": "
|
|
115
|
-
"mode": "subagent",
|
|
116
|
-
"model": "opencode-go/deepseek-v4-
|
|
117
|
-
"prompt": "{file:agents/
|
|
118
|
-
"tools": {
|
|
119
|
-
"read": true,
|
|
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
|
-
|
|
148
|
-
|
|
149
|
-
"
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
"
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
"
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opencode.ai/config.json",
|
|
3
|
+
"model": "opencode-go/deepseek-v4.1-flash",
|
|
4
|
+
"small_model": "opencode-go/deepseek-v4-flash",
|
|
5
|
+
"provider": {
|
|
6
|
+
"opencode-go": {
|
|
7
|
+
"models": {
|
|
8
|
+
"deepseek-v4.1-flash": {
|
|
9
|
+
"options": {
|
|
10
|
+
"reasoningEffort": "max"
|
|
11
|
+
},
|
|
12
|
+
"variants": {
|
|
13
|
+
"low": {
|
|
14
|
+
"reasoningEffort": "low"
|
|
15
|
+
},
|
|
16
|
+
"high": {
|
|
17
|
+
"reasoningEffort": "high"
|
|
18
|
+
},
|
|
19
|
+
"max": {
|
|
20
|
+
"reasoningEffort": "max"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"default_agent": "team-lead",
|
|
28
|
+
"instructions": [
|
|
29
|
+
"skills/adr/SKILL.md",
|
|
30
|
+
"skills/dev-flow/SKILL.md",
|
|
31
|
+
"skills/pr-review/SKILL.md",
|
|
32
|
+
"skills/test-gen/SKILL.md",
|
|
33
|
+
"skills/docs-gen/SKILL.md",
|
|
34
|
+
"skills/orchestrate/SKILL.md",
|
|
35
|
+
"skills/design-evidence/SKILL.md"
|
|
36
|
+
],
|
|
37
|
+
"plugin": [
|
|
38
|
+
"plugins/provider-profile.mjs"
|
|
39
|
+
],
|
|
40
|
+
"agent": {
|
|
41
|
+
"team-lead": {
|
|
42
|
+
"description": "Primary delivery orchestrator. Coordinates Design Evidence → SA → SD → Frontend/Backend → Review → Verify.",
|
|
43
|
+
"mode": "primary",
|
|
44
|
+
"prompt": "{file:agents/team-lead.md}",
|
|
45
|
+
"permission": {
|
|
46
|
+
"task": "ask"
|
|
47
|
+
},
|
|
48
|
+
"tools": {
|
|
49
|
+
"read": true,
|
|
50
|
+
"write": true,
|
|
51
|
+
"edit": true,
|
|
52
|
+
"bash": true
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"design-evidence": {
|
|
56
|
+
"description": "Extract source-backed Design Evidence Packs from Figma, screenshots, wireframes, and prototypes.",
|
|
57
|
+
"mode": "subagent",
|
|
58
|
+
"model": "opencode-go/deepseek-v4.1-flash",
|
|
59
|
+
"prompt": "{file:agents/design-evidence.md}",
|
|
60
|
+
"tools": {
|
|
61
|
+
"read": true,
|
|
62
|
+
"bash": true,
|
|
63
|
+
"write": true,
|
|
64
|
+
"edit": true
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"business-analyst": {
|
|
68
|
+
"description": "SA role: translate evidence into business requirements, rules, states, data meaning, and acceptance intent.",
|
|
69
|
+
"mode": "subagent",
|
|
70
|
+
"model": "opencode-go/deepseek-v4.1-flash",
|
|
71
|
+
"prompt": "{file:agents/business-analyst.md}",
|
|
72
|
+
"tools": {
|
|
73
|
+
"read": true,
|
|
74
|
+
"write": true,
|
|
75
|
+
"edit": true,
|
|
76
|
+
"bash": true
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"system-designer": {
|
|
80
|
+
"description": "SD role: translate business requirements into technical, API, data, security, and operational contracts.",
|
|
81
|
+
"mode": "subagent",
|
|
82
|
+
"model": "opencode-go/deepseek-v4.1-flash",
|
|
83
|
+
"prompt": "{file:agents/system-designer.md}",
|
|
84
|
+
"tools": {
|
|
85
|
+
"read": true,
|
|
86
|
+
"bash": true,
|
|
87
|
+
"write": true,
|
|
88
|
+
"edit": true
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"frontend-dev": {
|
|
92
|
+
"description": "Implement frontend routes, interactions, state, accessibility, and visual acceptance from approved contracts.",
|
|
93
|
+
"mode": "subagent",
|
|
94
|
+
"prompt": "{file:agents/frontend-dev.md}",
|
|
95
|
+
"tools": {
|
|
96
|
+
"read": true,
|
|
97
|
+
"write": true,
|
|
98
|
+
"edit": true,
|
|
99
|
+
"bash": true
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"backend-dev": {
|
|
103
|
+
"description": "Implement backend APIs, domain logic, persistence, authorization, integrations, and observability from approved contracts.",
|
|
104
|
+
"mode": "subagent",
|
|
105
|
+
"prompt": "{file:agents/backend-dev.md}",
|
|
106
|
+
"tools": {
|
|
107
|
+
"read": true,
|
|
108
|
+
"write": true,
|
|
109
|
+
"edit": true,
|
|
110
|
+
"bash": true
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"verifier": {
|
|
114
|
+
"description": "Run lint, typecheck, tests, and build to verify code changes. Read-only + bash.",
|
|
115
|
+
"mode": "subagent",
|
|
116
|
+
"model": "opencode-go/deepseek-v4-flash",
|
|
117
|
+
"prompt": "{file:agents/verifier.md}",
|
|
118
|
+
"tools": {
|
|
119
|
+
"read": true,
|
|
120
|
+
"bash": true,
|
|
121
|
+
"write": false,
|
|
122
|
+
"edit": false
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"code-reviewer": {
|
|
126
|
+
"description": "Systematic code review across correctness, security, quality, testing, and style dimensions.",
|
|
127
|
+
"mode": "subagent",
|
|
128
|
+
"model": "opencode-go/deepseek-v4.1-flash",
|
|
129
|
+
"prompt": "{file:agents/code-reviewer.md}",
|
|
130
|
+
"tools": {
|
|
131
|
+
"read": true,
|
|
132
|
+
"bash": true,
|
|
133
|
+
"write": false,
|
|
134
|
+
"edit": false
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"test-engineer": {
|
|
138
|
+
"description": "Generate meaningful tests for source code — unit, integration, and E2E. Framework-aware.",
|
|
139
|
+
"mode": "subagent",
|
|
140
|
+
"prompt": "{file:agents/test-engineer.md}",
|
|
141
|
+
"tools": {
|
|
142
|
+
"read": true,
|
|
143
|
+
"write": true,
|
|
144
|
+
"edit": true,
|
|
145
|
+
"bash": true
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"tech-writer": {
|
|
149
|
+
"description": "Generate and update project documentation — code comments, API docs, README, and CHANGELOG.",
|
|
150
|
+
"mode": "subagent",
|
|
151
|
+
"prompt": "{file:agents/tech-writer.md}",
|
|
152
|
+
"tools": {
|
|
153
|
+
"read": true,
|
|
154
|
+
"write": true,
|
|
155
|
+
"edit": true,
|
|
156
|
+
"bash": true
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"architect": {
|
|
160
|
+
"description": "Capture architecture decisions as ADR documents. Analyzes tradeoffs and records context.",
|
|
161
|
+
"mode": "subagent",
|
|
162
|
+
"model": "opencode-go/deepseek-v4.1-flash",
|
|
163
|
+
"prompt": "{file:agents/architect.md}",
|
|
164
|
+
"tools": {
|
|
165
|
+
"read": true,
|
|
166
|
+
"write": true,
|
|
167
|
+
"edit": true,
|
|
168
|
+
"bash": true
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"command": {
|
|
173
|
+
"evidence": {
|
|
174
|
+
"description": "Create a source-backed Design Evidence Pack in docs/specs/<feature>/",
|
|
175
|
+
"agent": "design-evidence",
|
|
176
|
+
"subtask": true,
|
|
177
|
+
"template": "Extract the Design Evidence Pack for this feature. Record sources, observed/inferred/unknown evidence, confidence, and intake metadata.\n\n$ARGUMENTS"
|
|
178
|
+
},
|
|
179
|
+
"business-spec": {
|
|
180
|
+
"description": "Create business requirements from an approved Design Evidence Pack",
|
|
181
|
+
"agent": "business-analyst",
|
|
182
|
+
"subtask": true,
|
|
183
|
+
"template": "Read the feature intake and evidence pack, then produce business requirements, rules, states, business data definitions, acceptance intent, and traceability IDs.\n\n$ARGUMENTS"
|
|
184
|
+
},
|
|
185
|
+
"technical-design": {
|
|
186
|
+
"description": "Create technical, frontend, and backend contracts from approved business requirements",
|
|
187
|
+
"agent": "system-designer",
|
|
188
|
+
"subtask": true,
|
|
189
|
+
"template": "Read the evidence pack and business requirements, then produce technical design, frontend contract, backend contract, and traceability mappings.\n\n$ARGUMENTS"
|
|
190
|
+
},
|
|
191
|
+
"frontend": {
|
|
192
|
+
"description": "Implement a frontend slice from its approved contract",
|
|
193
|
+
"agent": "frontend-dev",
|
|
194
|
+
"subtask": true,
|
|
195
|
+
"template": "Implement the approved frontend slice and report its requirement, API, and verification IDs.\n\n$ARGUMENTS"
|
|
196
|
+
},
|
|
197
|
+
"backend": {
|
|
198
|
+
"description": "Implement a backend slice from its approved contract",
|
|
199
|
+
"agent": "backend-dev",
|
|
200
|
+
"subtask": true,
|
|
201
|
+
"template": "Implement the approved backend slice and report its requirement, API, data, and verification IDs.\n\n$ARGUMENTS"
|
|
202
|
+
},
|
|
203
|
+
"review": {
|
|
204
|
+
"description": "Review code changes across 5 dimensions (correctness, security, quality, testing, style)",
|
|
205
|
+
"agent": "code-reviewer",
|
|
206
|
+
"subtask": true,
|
|
207
|
+
"template": "Review the current changes.\n\n$ARGUMENTS"
|
|
208
|
+
},
|
|
209
|
+
"test": {
|
|
210
|
+
"description": "Generate tests for source code — auto-detects framework and conventions",
|
|
211
|
+
"agent": "test-engineer",
|
|
212
|
+
"subtask": true,
|
|
213
|
+
"template": "Generate tests for the current code.\n\n$ARGUMENTS"
|
|
214
|
+
},
|
|
215
|
+
"docs": {
|
|
216
|
+
"description": "Generate or update documentation — code comments, README, API docs, ADRs",
|
|
217
|
+
"agent": "tech-writer",
|
|
218
|
+
"subtask": true,
|
|
219
|
+
"template": "Generate or update documentation.\n\n$ARGUMENTS"
|
|
220
|
+
},
|
|
221
|
+
"orchestrate": {
|
|
222
|
+
"description": "Coordinate multiple agents for complex, multi-domain tasks",
|
|
223
|
+
"agent": "team-lead",
|
|
224
|
+
"subtask": true,
|
|
225
|
+
"template": "Orchestrate the following complex task.\n\n$ARGUMENTS"
|
|
226
|
+
},
|
|
227
|
+
"adr": {
|
|
228
|
+
"description": "Create or update an Architecture Decision Record",
|
|
229
|
+
"agent": "architect",
|
|
230
|
+
"subtask": true,
|
|
231
|
+
"template": "Create an Architecture Decision Record.\n\n$ARGUMENTS"
|
|
232
|
+
},
|
|
233
|
+
"verify": {
|
|
234
|
+
"description": "Run lint, typecheck, tests, and build to verify changes",
|
|
235
|
+
"template": "Use the verifier agent to run the full verification suite on the current changes.\n\n$ARGUMENTS",
|
|
236
|
+
"agent": "verifier",
|
|
237
|
+
"subtask": true
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
package/package.json
CHANGED
|
@@ -1,51 +1,53 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "my-opencode",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "高品質 opencode 開發流程 skill 與 agents 集合 —
|
|
5
|
-
"keywords": [
|
|
6
|
-
"opencode",
|
|
7
|
-
"claude-code",
|
|
8
|
-
"ai-coding",
|
|
9
|
-
"development-workflow",
|
|
10
|
-
"contract-first",
|
|
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
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "my-opencode",
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "高品質 opencode 開發流程 skill 與 agents 集合 — Evidence-First 開發流程、ADR、PR Review、測試生成、文件生成",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"opencode",
|
|
7
|
+
"claude-code",
|
|
8
|
+
"ai-coding",
|
|
9
|
+
"development-workflow",
|
|
10
|
+
"contract-first",
|
|
11
|
+
"evidence-first",
|
|
12
|
+
"adr",
|
|
13
|
+
"code-review",
|
|
14
|
+
"test-generation",
|
|
15
|
+
"documentation",
|
|
16
|
+
"agents",
|
|
17
|
+
"skills"
|
|
18
|
+
],
|
|
19
|
+
"homepage": "https://github.com/jjyung/my-opencode#readme",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/jjyung/my-opencode/issues"
|
|
22
|
+
},
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"author": "cfh00902455",
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/jjyung/my-opencode.git"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"postinstall": "node scripts/postinstall.js",
|
|
31
|
+
"test": "node --test test/*.test.mjs",
|
|
32
|
+
"test:structure": "node scripts/validate-role-flow.mjs"
|
|
33
|
+
},
|
|
34
|
+
"bin": {
|
|
35
|
+
"my-opencode": "bin/cli.js",
|
|
36
|
+
"moc": "bin/moc.js"
|
|
37
|
+
},
|
|
38
|
+
"files": [
|
|
39
|
+
"bin/",
|
|
40
|
+
"scripts/",
|
|
41
|
+
"skills/",
|
|
42
|
+
"agents/",
|
|
43
|
+
"plugins/",
|
|
44
|
+
"opencode.json"
|
|
45
|
+
],
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": ">=18.0.0"
|
|
48
|
+
},
|
|
49
|
+
"type": "module",
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"access": "public"
|
|
52
|
+
}
|
|
53
|
+
}
|