my-opencode 1.2.1 → 1.3.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 +259 -180
- package/agents/architect.md +30 -30
- package/agents/code-reviewer.md +29 -29
- package/agents/executor.md +30 -30
- package/agents/fullstack-dev.md +57 -57
- package/agents/spec-writer.md +37 -37
- package/agents/team-lead.md +60 -60
- package/agents/tech-writer.md +30 -30
- package/agents/test-engineer.md +30 -30
- package/agents/verifier.md +33 -33
- package/bin/cli.js +341 -311
- package/bin/moc +199 -0
- package/opencode.json +170 -167
- package/package.json +50 -48
- package/plugins/README.md +64 -0
- package/plugins/provider-profile.mjs +139 -0
- package/scripts/postinstall.js +202 -182
- 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/dev-flow/SKILL.md +188 -188
- package/skills/dev-flow/references/code-phase.md +72 -72
- package/skills/dev-flow/references/contract-phase.md +81 -81
- package/skills/dev-flow/references/verify-phase.md +129 -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 +112 -112
- package/skills/orchestrate/references/orchestration-patterns.md +56 -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/bin/moc
ADDED
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
|
|
3
|
+
profile=
|
|
4
|
+
known_profiles="opencode openai google copilot"
|
|
5
|
+
|
|
6
|
+
print_help() {
|
|
7
|
+
cat <<'EOF'
|
|
8
|
+
Usage:
|
|
9
|
+
moc [profile] [opencode-args...]
|
|
10
|
+
moc --help
|
|
11
|
+
moc doctor [profile]
|
|
12
|
+
moc print-config [profile]
|
|
13
|
+
|
|
14
|
+
Profiles:
|
|
15
|
+
opencode | openai | google | copilot
|
|
16
|
+
|
|
17
|
+
Examples:
|
|
18
|
+
moc
|
|
19
|
+
moc google
|
|
20
|
+
moc openai --list-agents
|
|
21
|
+
moc doctor google
|
|
22
|
+
moc print-config google
|
|
23
|
+
|
|
24
|
+
Notes:
|
|
25
|
+
- `moc` without extra args launches interactive opencode.
|
|
26
|
+
- Use `moc doctor` or `moc print-config` for non-interactive debugging.
|
|
27
|
+
EOF
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
print_doctor() {
|
|
31
|
+
active_profile=$1
|
|
32
|
+
printf 'profile=%s\n' "$active_profile"
|
|
33
|
+
printf 'plugin_path=%s\n' "$plugin_path"
|
|
34
|
+
printf 'config_path=%s\n' "$config_path"
|
|
35
|
+
printf 'cache_content_path=%s\n' "$cache_content_path"
|
|
36
|
+
printf 'cache_meta_path=%s\n' "$cache_meta_path"
|
|
37
|
+
printf 'plugin_exists=%s\n' "$( [ -f "$plugin_path" ] && printf yes || printf no )"
|
|
38
|
+
printf 'config_exists=%s\n' "$( [ -f "$config_path" ] && printf yes || printf no )"
|
|
39
|
+
printf 'cache_content_exists=%s\n' "$( [ -f "$cache_content_path" ] && printf yes || printf no )"
|
|
40
|
+
printf 'cache_meta_exists=%s\n' "$( [ -f "$cache_meta_path" ] && printf yes || printf no )"
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
case "${1-}" in
|
|
44
|
+
--help|-h|help)
|
|
45
|
+
print_help
|
|
46
|
+
exit 0
|
|
47
|
+
;;
|
|
48
|
+
"")
|
|
49
|
+
profile=opencode
|
|
50
|
+
;;
|
|
51
|
+
doctor)
|
|
52
|
+
profile=${2-opencode}
|
|
53
|
+
;;
|
|
54
|
+
print-config)
|
|
55
|
+
profile=${2-opencode}
|
|
56
|
+
;;
|
|
57
|
+
opencode|openai|google|copilot)
|
|
58
|
+
profile=$1
|
|
59
|
+
shift
|
|
60
|
+
;;
|
|
61
|
+
esac
|
|
62
|
+
|
|
63
|
+
if [ -z "$profile" ]; then
|
|
64
|
+
exec opencode "$@"
|
|
65
|
+
fi
|
|
66
|
+
|
|
67
|
+
case "$profile" in
|
|
68
|
+
opencode|openai|google|copilot)
|
|
69
|
+
;;
|
|
70
|
+
*)
|
|
71
|
+
printf '%s\n' "moc: unknown profile '$profile'. Must be one of: $known_profiles" >&2
|
|
72
|
+
exit 1
|
|
73
|
+
;;
|
|
74
|
+
esac
|
|
75
|
+
|
|
76
|
+
exec_opencode_with_profile() {
|
|
77
|
+
exec env \
|
|
78
|
+
OPENCODE_PROVIDER_PROFILE="$profile" \
|
|
79
|
+
OPENCODE_CONFIG_CONTENT="$config_content" \
|
|
80
|
+
opencode "$@"
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
plugin_path=.opencode/plugins/provider-profile.mjs
|
|
84
|
+
config_path=.opencode/opencode.json
|
|
85
|
+
cache_dir=.opencode/cache/provider-profile
|
|
86
|
+
cache_content_path=$cache_dir/$profile.json
|
|
87
|
+
cache_meta_path=$cache_dir/$profile.meta
|
|
88
|
+
|
|
89
|
+
get_mtime() {
|
|
90
|
+
if stat -f %m "$1" >/dev/null 2>&1; then
|
|
91
|
+
stat -f %m "$1"
|
|
92
|
+
else
|
|
93
|
+
stat -c %Y "$1"
|
|
94
|
+
fi
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
read_meta() {
|
|
98
|
+
meta_profile=
|
|
99
|
+
meta_plugin_mtime=
|
|
100
|
+
meta_config_mtime=
|
|
101
|
+
|
|
102
|
+
[ -f "$1" ] || return 1
|
|
103
|
+
|
|
104
|
+
while IFS='=' read -r key value; do
|
|
105
|
+
case "$key" in
|
|
106
|
+
profile) meta_profile=$value ;;
|
|
107
|
+
plugin_mtime) meta_plugin_mtime=$value ;;
|
|
108
|
+
config_mtime) meta_config_mtime=$value ;;
|
|
109
|
+
esac
|
|
110
|
+
done < "$1"
|
|
111
|
+
|
|
112
|
+
[ -n "$meta_profile" ] && [ -n "$meta_plugin_mtime" ] && [ -n "$meta_config_mtime" ]
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
write_cache() {
|
|
116
|
+
tmp_content=$cache_content_path.tmp.$$
|
|
117
|
+
tmp_meta=$cache_meta_path.tmp.$$
|
|
118
|
+
|
|
119
|
+
if ! mkdir -p "$cache_dir" 2>/dev/null; then
|
|
120
|
+
return 1
|
|
121
|
+
fi
|
|
122
|
+
|
|
123
|
+
if ! printf '%s\n' "$1" > "$tmp_content"; then
|
|
124
|
+
rm -f "$tmp_content" "$tmp_meta"
|
|
125
|
+
return 1
|
|
126
|
+
fi
|
|
127
|
+
|
|
128
|
+
if ! {
|
|
129
|
+
printf 'profile=%s\n' "$profile"
|
|
130
|
+
printf 'plugin_mtime=%s\n' "$plugin_mtime"
|
|
131
|
+
printf 'config_mtime=%s\n' "$config_mtime"
|
|
132
|
+
} > "$tmp_meta"; then
|
|
133
|
+
rm -f "$tmp_content" "$tmp_meta"
|
|
134
|
+
return 1
|
|
135
|
+
fi
|
|
136
|
+
|
|
137
|
+
if ! mv "$tmp_content" "$cache_content_path" || ! mv "$tmp_meta" "$cache_meta_path"; then
|
|
138
|
+
rm -f "$tmp_content" "$tmp_meta"
|
|
139
|
+
return 1
|
|
140
|
+
fi
|
|
141
|
+
|
|
142
|
+
return 0
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if [ ! -f "$plugin_path" ]; then
|
|
146
|
+
printf '%s\n' "moc: plugin not found at $plugin_path; falling back to plain opencode" >&2
|
|
147
|
+
exec opencode "$@"
|
|
148
|
+
fi
|
|
149
|
+
|
|
150
|
+
if [ ! -f "$config_path" ]; then
|
|
151
|
+
printf '%s\n' "moc: config not found at $config_path; cannot compute provider profile override" >&2
|
|
152
|
+
exit 1
|
|
153
|
+
fi
|
|
154
|
+
|
|
155
|
+
case "${1-}" in
|
|
156
|
+
doctor)
|
|
157
|
+
print_doctor "$profile"
|
|
158
|
+
exit 0
|
|
159
|
+
;;
|
|
160
|
+
esac
|
|
161
|
+
|
|
162
|
+
plugin_mtime=$(get_mtime "$plugin_path") || {
|
|
163
|
+
printf '%s\n' "moc: failed to read plugin mtime from $plugin_path" >&2
|
|
164
|
+
exit 1
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
config_mtime=$(get_mtime "$config_path") || {
|
|
168
|
+
printf '%s\n' "moc: failed to read config mtime from $config_path" >&2
|
|
169
|
+
exit 1
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
config_content=
|
|
173
|
+
|
|
174
|
+
if read_meta "$cache_meta_path" && [ -f "$cache_content_path" ]; then
|
|
175
|
+
if [ "$meta_profile" = "$profile" ] \
|
|
176
|
+
&& [ "$meta_plugin_mtime" = "$plugin_mtime" ] \
|
|
177
|
+
&& [ "$meta_config_mtime" = "$config_mtime" ]; then
|
|
178
|
+
config_content=$(tr -d '\n' < "$cache_content_path") || config_content=
|
|
179
|
+
fi
|
|
180
|
+
fi
|
|
181
|
+
|
|
182
|
+
if [ -z "$config_content" ]; then
|
|
183
|
+
if ! config_content=$(OPENCODE_PROVIDER_PROFILE=$profile node "$plugin_path"); then
|
|
184
|
+
printf '%s\n' "moc: failed to compute OPENCODE_CONFIG_CONTENT from $plugin_path" >&2
|
|
185
|
+
exit 1
|
|
186
|
+
fi
|
|
187
|
+
|
|
188
|
+
write_cache "$config_content" || \
|
|
189
|
+
printf '%s\n' "moc: warning: failed to update cache at $cache_dir; continuing with fresh config" >&2
|
|
190
|
+
fi
|
|
191
|
+
|
|
192
|
+
case "${1-}" in
|
|
193
|
+
print-config)
|
|
194
|
+
printf '%s\n' "$config_content"
|
|
195
|
+
exit 0
|
|
196
|
+
;;
|
|
197
|
+
esac
|
|
198
|
+
|
|
199
|
+
exec_opencode_with_profile "$@"
|
package/opencode.json
CHANGED
|
@@ -1,167 +1,170 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opencode.ai/config.json",
|
|
3
|
-
"model": "opencode/
|
|
4
|
-
"small_model": "opencode/
|
|
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
|
-
"
|
|
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
|
-
|
|
148
|
-
|
|
149
|
-
"
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
"
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
"
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
"
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
"
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
"
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opencode.ai/config.json",
|
|
3
|
+
"model": "opencode/big-pickle",
|
|
4
|
+
"small_model": "opencode/deepseek-v4-flash-free",
|
|
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/big-pickle",
|
|
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/deepseek-v4-flash-free",
|
|
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/big-pickle",
|
|
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/big-pickle",
|
|
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/big-pickle",
|
|
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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,48 +1,50 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "my-opencode",
|
|
3
|
-
"version": "1.
|
|
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
|
-
},
|
|
31
|
-
"bin": {
|
|
32
|
-
"my-opencode": "bin/cli.js"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "my-opencode",
|
|
3
|
+
"version": "1.3.0",
|
|
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
|
+
},
|
|
31
|
+
"bin": {
|
|
32
|
+
"my-opencode": "bin/cli.js",
|
|
33
|
+
"moc": "bin/moc"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"bin/",
|
|
37
|
+
"scripts/",
|
|
38
|
+
"skills/",
|
|
39
|
+
"agents/",
|
|
40
|
+
"plugins/",
|
|
41
|
+
"opencode.json"
|
|
42
|
+
],
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=18.0.0"
|
|
45
|
+
},
|
|
46
|
+
"type": "module",
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public"
|
|
49
|
+
}
|
|
50
|
+
}
|