add-skill 1.0.5 → 1.0.6
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/dist/index.js +19 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -290,6 +290,25 @@ var version = "1.0.0";
|
|
|
290
290
|
program.name("add-skill").description("Install skills onto coding agents (OpenCode, Claude Code, Codex, Cursor)").version(version).argument("<source>", "Git repo URL, GitHub shorthand (owner/repo), or direct path to skill").option("-g, --global", "Install skill globally (user-level) instead of project-level").option("-a, --agent <agents...>", "Specify agents to install to (opencode, claude-code, codex, cursor)").option("-s, --skill <skills...>", "Specify skill names to install (skip selection prompt)").option("-l, --list", "List available skills in the repository without installing").option("-y, --yes", "Skip confirmation prompts").action(async (source, options) => {
|
|
291
291
|
await main(source, options);
|
|
292
292
|
});
|
|
293
|
+
program.configureOutput({
|
|
294
|
+
outputError: (str, write) => {
|
|
295
|
+
if (str.includes("missing required argument 'source'")) {
|
|
296
|
+
console.log();
|
|
297
|
+
console.log(chalk.red("Error: Missing skill source"));
|
|
298
|
+
console.log();
|
|
299
|
+
console.log("Usage:");
|
|
300
|
+
console.log(` ${chalk.cyan("npx add-skill <source>")} ${chalk.dim("[options]")}`);
|
|
301
|
+
console.log();
|
|
302
|
+
console.log("Example:");
|
|
303
|
+
console.log(` ${chalk.dim("$")} npx add-skill vercel-labs/agent-skills`);
|
|
304
|
+
console.log();
|
|
305
|
+
console.log(`Run ${chalk.cyan("npx add-skill --help")} for more options.`);
|
|
306
|
+
console.log();
|
|
307
|
+
} else {
|
|
308
|
+
write(str);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
});
|
|
293
312
|
program.parse();
|
|
294
313
|
async function main(source, options) {
|
|
295
314
|
console.log();
|