@ai-agent-lead/skills 1.0.0 → 1.1.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/README.md +1 -0
- package/bin/install.js +18 -4
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -31,6 +31,7 @@ By default, the installer runs in an interactive console wizard allowing you to
|
|
|
31
31
|
- `--claude` Install skills only for Claude Code
|
|
32
32
|
- `--codex` Install skills only for Codex
|
|
33
33
|
- `--antigravity`, `-agy` Install skills only for Antigravity
|
|
34
|
+
- `--opencode` Install skills only for OpenCode
|
|
34
35
|
- `--all` Install skills for all supported assistants (default)
|
|
35
36
|
- `--force`, `-f` Overwrite files without confirmation
|
|
36
37
|
- `--help`, `-h` Show the help menu with all options
|
package/bin/install.js
CHANGED
|
@@ -52,6 +52,7 @@ function printHelp() {
|
|
|
52
52
|
console.log(` ${CYAN}--claude${RESET} Install skills only for Claude Code`);
|
|
53
53
|
console.log(` ${CYAN}--codex${RESET} Install skills only for Codex`);
|
|
54
54
|
console.log(` ${CYAN}--antigravity, -agy${RESET} Install skills only for Antigravity`);
|
|
55
|
+
console.log(` ${CYAN}--opencode${RESET} Install skills only for OpenCode`);
|
|
55
56
|
console.log(` ${CYAN}--all${RESET} Install skills for all supported assistants (default)`);
|
|
56
57
|
console.log(` ${CYAN}--force, -f${RESET} Overwrite files without confirmation`);
|
|
57
58
|
console.log(` ${CYAN}--help, -h${RESET} Show this help menu`);
|
|
@@ -105,6 +106,7 @@ async function run() {
|
|
|
105
106
|
claude: false,
|
|
106
107
|
codex: false,
|
|
107
108
|
antigravity: false,
|
|
109
|
+
opencode: false,
|
|
108
110
|
all: false,
|
|
109
111
|
force: false,
|
|
110
112
|
help: false
|
|
@@ -116,6 +118,7 @@ async function run() {
|
|
|
116
118
|
else if (arg === '--claude') flags.claude = true;
|
|
117
119
|
else if (arg === '--codex') flags.codex = true;
|
|
118
120
|
else if (arg === '--antigravity' || arg === '--agy' || arg === '-agy') flags.antigravity = true;
|
|
121
|
+
else if (arg === '--opencode') flags.opencode = true;
|
|
119
122
|
else if (arg === '--all') flags.all = true;
|
|
120
123
|
else if (arg === '--force' || arg === '-f') flags.force = true;
|
|
121
124
|
else if (arg === '--help' || arg === '-h') flags.help = true;
|
|
@@ -154,22 +157,26 @@ async function run() {
|
|
|
154
157
|
console.log(``);
|
|
155
158
|
|
|
156
159
|
console.log(`${BOLD}2. Select Targets:${RESET}`);
|
|
157
|
-
console.log(` [1] All Assistants (Claude, Codex, Antigravity)`);
|
|
160
|
+
console.log(` [1] All Assistants (Claude, Codex, Antigravity, OpenCode)`);
|
|
158
161
|
console.log(` [2] Claude Code only`);
|
|
159
162
|
console.log(` [3] Codex only`);
|
|
160
163
|
console.log(` [4] Antigravity only`);
|
|
161
|
-
|
|
162
|
-
|
|
164
|
+
console.log(` [5] OpenCode only`);
|
|
165
|
+
const targetAns = await askQuestion(`${BOLD}${CYAN}? Choose target [1-5] (Default: 1): ${RESET}`);
|
|
166
|
+
|
|
163
167
|
if (targetAns === '2') {
|
|
164
168
|
flags.claude = true;
|
|
165
169
|
} else if (targetAns === '3') {
|
|
166
170
|
flags.codex = true;
|
|
167
171
|
} else if (targetAns === '4') {
|
|
168
172
|
flags.antigravity = true;
|
|
173
|
+
} else if (targetAns === '5') {
|
|
174
|
+
flags.opencode = true;
|
|
169
175
|
} else {
|
|
170
176
|
flags.claude = true;
|
|
171
177
|
flags.codex = true;
|
|
172
178
|
flags.antigravity = true;
|
|
179
|
+
flags.opencode = true;
|
|
173
180
|
}
|
|
174
181
|
console.log(``);
|
|
175
182
|
} else {
|
|
@@ -179,11 +186,12 @@ async function run() {
|
|
|
179
186
|
flags.global = true; // Default to global
|
|
180
187
|
}
|
|
181
188
|
|
|
182
|
-
const hasAssistantFlag = flags.claude || flags.codex || flags.antigravity;
|
|
189
|
+
const hasAssistantFlag = flags.claude || flags.codex || flags.antigravity || flags.opencode;
|
|
183
190
|
if (!hasAssistantFlag) {
|
|
184
191
|
flags.claude = true;
|
|
185
192
|
flags.codex = true;
|
|
186
193
|
flags.antigravity = true;
|
|
194
|
+
flags.opencode = true;
|
|
187
195
|
}
|
|
188
196
|
}
|
|
189
197
|
|
|
@@ -205,6 +213,9 @@ async function run() {
|
|
|
205
213
|
destinations.push({ name: 'Antigravity CLI (Global)', path: path.join(home, '.gemini', 'antigravity-cli', 'skills') });
|
|
206
214
|
destinations.push({ name: 'Antigravity Config (Global)', path: path.join(home, '.gemini', 'config', 'skills') });
|
|
207
215
|
}
|
|
216
|
+
if (flags.opencode) {
|
|
217
|
+
destinations.push({ name: 'OpenCode (Global)', path: path.join(home, '.config', 'opencode', 'skills') });
|
|
218
|
+
}
|
|
208
219
|
}
|
|
209
220
|
|
|
210
221
|
if (flags.local) {
|
|
@@ -219,6 +230,9 @@ async function run() {
|
|
|
219
230
|
destinations.push({ name: 'Antigravity Agent (Local)', path: path.join(cwd, '.agent', 'skills') });
|
|
220
231
|
destinations.push({ name: 'Antigravity CLI (Local)', path: path.join(cwd, '.antigravitycli', 'skills') });
|
|
221
232
|
}
|
|
233
|
+
if (flags.opencode) {
|
|
234
|
+
destinations.push({ name: 'OpenCode (Local)', path: path.join(cwd, '.opencode', 'skills') });
|
|
235
|
+
}
|
|
222
236
|
}
|
|
223
237
|
|
|
224
238
|
if (destinations.length === 0) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-agent-lead/skills",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Install AI agent skills for Claude Code, Codex, and
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Install AI agent skills for Claude Code, Codex, Antigravity, and OpenCode",
|
|
5
5
|
"main": "bin/install.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"install-skills": "bin/install.js"
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"claude",
|
|
24
24
|
"codex",
|
|
25
25
|
"antigravity",
|
|
26
|
+
"opencode",
|
|
26
27
|
"skills",
|
|
27
28
|
"ai-agent"
|
|
28
29
|
],
|