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.
Files changed (47) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +309 -271
  3. package/agents/architect.md +30 -30
  4. package/agents/backend-dev.md +29 -0
  5. package/agents/business-analyst.md +30 -0
  6. package/agents/code-reviewer.md +29 -29
  7. package/agents/design-evidence.md +29 -0
  8. package/agents/frontend-dev.md +29 -0
  9. package/agents/system-designer.md +30 -0
  10. package/agents/team-lead.md +65 -60
  11. package/agents/tech-writer.md +30 -30
  12. package/agents/test-engineer.md +30 -30
  13. package/agents/verifier.md +38 -33
  14. package/bin/cli.js +366 -364
  15. package/bin/moc +206 -198
  16. package/bin/moc.js +9 -3
  17. package/opencode.json +240 -170
  18. package/package.json +53 -51
  19. package/plugins/README.md +74 -67
  20. package/plugins/provider-profile.mjs +238 -194
  21. package/scripts/postinstall.js +202 -202
  22. package/scripts/validate-role-flow.mjs +90 -0
  23. package/skills/adr/SKILL.md +91 -91
  24. package/skills/adr/references/templates.md +100 -100
  25. package/skills/adr/scripts/README.md +5 -5
  26. package/skills/design-evidence/SKILL.md +56 -0
  27. package/skills/dev-flow/SKILL.md +126 -188
  28. package/skills/dev-flow/references/code-phase.md +35 -72
  29. package/skills/dev-flow/references/contract-phase.md +66 -81
  30. package/skills/dev-flow/references/verify-phase.md +70 -129
  31. package/skills/dev-flow/scripts/README.md +3 -3
  32. package/skills/docs-gen/SKILL.md +162 -162
  33. package/skills/docs-gen/references/doc-styles.md +216 -216
  34. package/skills/docs-gen/scripts/README.md +5 -5
  35. package/skills/orchestrate/SKILL.md +63 -112
  36. package/skills/orchestrate/references/orchestration-patterns.md +49 -56
  37. package/skills/pr-review/SKILL.md +110 -110
  38. package/skills/pr-review/references/review-dimensions.md +117 -117
  39. package/skills/pr-review/references/security-checklist.md +122 -122
  40. package/skills/pr-review/scripts/README.md +5 -5
  41. package/skills/test-gen/SKILL.md +143 -143
  42. package/skills/test-gen/references/framework-detection.md +105 -105
  43. package/skills/test-gen/references/test-patterns.md +260 -260
  44. package/skills/test-gen/scripts/README.md +5 -5
  45. package/agents/executor.md +0 -30
  46. package/agents/fullstack-dev.md +0 -57
  47. 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-pro",
4
- "small_model": "opencode-go/deepseek-v4-flash",
5
- "default_agent": "fullstack-dev",
6
- "instructions": [
7
- "skills/adr/SKILL.md",
8
- "skills/dev-flow/SKILL.md",
9
- "skills/pr-review/SKILL.md",
10
- "skills/test-gen/SKILL.md",
11
- "skills/docs-gen/SKILL.md",
12
- "skills/orchestrate/SKILL.md"
13
- ],
14
- "plugin": [
15
- "plugins/provider-profile.mjs"
16
- ],
17
- "agent": {
18
- "fullstack-dev": {
19
- "description": "Primary development agent. Orchestrates contract-first ADR → contract → code → verify flow.",
20
- "mode": "primary",
21
- "prompt": "{file:agents/fullstack-dev.md}",
22
- "permission": {
23
- "task": "ask"
24
- },
25
- "tools": {
26
- "read": true,
27
- "write": true,
28
- "edit": true,
29
- "bash": true
30
- }
31
- },
32
- "spec-writer": {
33
- "description": "Analyze requirements and produce contract specifications in docs/specs/. Writes persistent contracts for parallel development.",
34
- "mode": "subagent",
35
- "model": "opencode-go/deepseek-v4-pro",
36
- "prompt": "{file:agents/spec-writer.md}",
37
- "tools": {
38
- "read": true,
39
- "bash": true,
40
- "write": true,
41
- "edit": true
42
- }
43
- },
44
- "executor": {
45
- "description": "Implement code changes following an approved contract. Full read/write access for coding.",
46
- "mode": "subagent",
47
- "prompt": "{file:agents/executor.md}",
48
- "tools": {
49
- "read": true,
50
- "write": true,
51
- "edit": true,
52
- "bash": true
53
- }
54
- },
55
- "verifier": {
56
- "description": "Run lint, typecheck, tests, and build to verify code changes. Read-only + bash.",
57
- "mode": "subagent",
58
- "model": "opencode-go/deepseek-v4-flash",
59
- "prompt": "{file:agents/verifier.md}",
60
- "tools": {
61
- "read": true,
62
- "bash": true,
63
- "write": false,
64
- "edit": false
65
- }
66
- },
67
- "code-reviewer": {
68
- "description": "Systematic code review across correctness, security, quality, testing, and style dimensions.",
69
- "mode": "subagent",
70
- "model": "opencode-go/deepseek-v4-pro",
71
- "prompt": "{file:agents/code-reviewer.md}",
72
- "tools": {
73
- "read": true,
74
- "bash": true,
75
- "write": false,
76
- "edit": false
77
- }
78
- },
79
- "test-engineer": {
80
- "description": "Generate meaningful tests for source code — unit, integration, and E2E. Framework-aware.",
81
- "mode": "subagent",
82
- "prompt": "{file:agents/test-engineer.md}",
83
- "tools": {
84
- "read": true,
85
- "write": true,
86
- "edit": true,
87
- "bash": true
88
- }
89
- },
90
- "tech-writer": {
91
- "description": "Generate and update project documentation — code comments, API docs, README, and CHANGELOG.",
92
- "mode": "subagent",
93
- "prompt": "{file:agents/tech-writer.md}",
94
- "tools": {
95
- "read": true,
96
- "write": true,
97
- "edit": true,
98
- "bash": true
99
- }
100
- },
101
- "team-lead": {
102
- "description": "Multi-agent orchestrator for complex tasks. Delegates to architect, spec-writer, executor, code-reviewer, test-engineer, verifier.",
103
- "mode": "subagent",
104
- "model": "opencode-go/deepseek-v4-pro",
105
- "prompt": "{file:agents/team-lead.md}",
106
- "tools": {
107
- "read": true,
108
- "write": true,
109
- "edit": true,
110
- "bash": true
111
- }
112
- },
113
- "architect": {
114
- "description": "Capture architecture decisions as ADR documents. Analyzes tradeoffs and records context.",
115
- "mode": "subagent",
116
- "model": "opencode-go/deepseek-v4-pro",
117
- "prompt": "{file:agents/architect.md}",
118
- "tools": {
119
- "read": true,
120
- "write": true,
121
- "edit": true,
122
- "bash": true
123
- }
124
- }
125
- },
126
- "command": {
127
- "spec": {
128
- "description": "Create a contract specification in docs/specs/ — source of truth for implementation",
129
- "agent": "spec-writer",
130
- "subtask": true,
131
- "template": "Analyze the request and produce a contract specification document.\n\n$ARGUMENTS"
132
- },
133
- "review": {
134
- "description": "Review code changes across 5 dimensions (correctness, security, quality, testing, style)",
135
- "agent": "code-reviewer",
136
- "subtask": true,
137
- "template": "Review the current changes.\n\n$ARGUMENTS"
138
- },
139
- "test": {
140
- "description": "Generate tests for source code — auto-detects framework and conventions",
141
- "agent": "test-engineer",
142
- "subtask": true,
143
- "template": "Generate tests for the current code.\n\n$ARGUMENTS"
144
- },
145
- "docs": {
146
- "description": "Generate or update documentation — code comments, README, API docs, ADRs",
147
- "agent": "tech-writer",
148
- "subtask": true,
149
- "template": "Generate or update documentation.\n\n$ARGUMENTS"
150
- },
151
- "orchestrate": {
152
- "description": "Coordinate multiple agents for complex, multi-domain tasks",
153
- "agent": "team-lead",
154
- "subtask": true,
155
- "template": "Orchestrate the following complex task.\n\n$ARGUMENTS"
156
- },
157
- "adr": {
158
- "description": "Create or update an Architecture Decision Record",
159
- "agent": "architect",
160
- "subtask": true,
161
- "template": "Create an Architecture Decision Record.\n\n$ARGUMENTS"
162
- },
163
- "verify": {
164
- "description": "Run lint, typecheck, tests, and build to verify changes",
165
- "template": "Use the verifier agent to run the full verification suite on the current changes.\n\n$ARGUMENTS",
166
- "agent": "verifier",
167
- "subtask": true
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": "1.3.4",
4
- "description": "高品質 opencode 開發流程 skill 與 agents 集合 — Contract-First 開發流程、ADR、PR Review、測試生成、文件生成",
5
- "keywords": [
6
- "opencode",
7
- "claude-code",
8
- "ai-coding",
9
- "development-workflow",
10
- "contract-first",
11
- "adr",
12
- "code-review",
13
- "test-generation",
14
- "documentation",
15
- "agents",
16
- "skills"
17
- ],
18
- "homepage": "https://github.com/jjyung/my-opencode#readme",
19
- "bugs": {
20
- "url": "https://github.com/jjyung/my-opencode/issues"
21
- },
22
- "license": "MIT",
23
- "author": "cfh00902455",
24
- "repository": {
25
- "type": "git",
26
- "url": "git+https://github.com/jjyung/my-opencode.git"
27
- },
28
- "scripts": {
29
- "postinstall": "node scripts/postinstall.js",
30
- "test": "node --test"
31
- },
32
- "bin": {
33
- "my-opencode": "bin/cli.js",
34
- "moc": "bin/moc.js"
35
- },
36
- "files": [
37
- "bin/",
38
- "scripts/",
39
- "skills/",
40
- "agents/",
41
- "plugins/",
42
- "opencode.json"
43
- ],
44
- "engines": {
45
- "node": ">=18.0.0"
46
- },
47
- "type": "module",
48
- "publishConfig": {
49
- "access": "public"
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
+ }