skills 1.0.3 → 1.0.5
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/cli.js +4 -15
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -45,9 +45,8 @@ ${BOLD}Usage:${RESET} skills <command> [options]
|
|
|
45
45
|
|
|
46
46
|
${BOLD}Commands:${RESET}
|
|
47
47
|
add <package> Add a skill package
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
search <query> Search for skills
|
|
48
|
+
e.g. vercel-labs/agent-skills
|
|
49
|
+
https://github.com/vercel-labs/agent-skills
|
|
51
50
|
|
|
52
51
|
${BOLD}Options:${RESET}
|
|
53
52
|
--help, -h Show this help message
|
|
@@ -55,13 +54,12 @@ ${BOLD}Options:${RESET}
|
|
|
55
54
|
|
|
56
55
|
${BOLD}Examples:${RESET}
|
|
57
56
|
${DIM}$${RESET} skills add vercel-labs/agent-skills
|
|
58
|
-
${DIM}$${RESET} skills list
|
|
59
|
-
${DIM}$${RESET} skills search "react"
|
|
60
57
|
`);
|
|
61
58
|
}
|
|
62
59
|
function runAddSkill(packages) {
|
|
63
60
|
const child = spawn("npx", ["-y", "add-skill", ...packages], {
|
|
64
|
-
stdio: "inherit"
|
|
61
|
+
stdio: "inherit",
|
|
62
|
+
shell: true
|
|
65
63
|
});
|
|
66
64
|
child.on("close", (code) => {
|
|
67
65
|
process.exit(code ?? 0);
|
|
@@ -92,15 +90,6 @@ function main() {
|
|
|
92
90
|
case "-v":
|
|
93
91
|
console.log("0.1.0");
|
|
94
92
|
break;
|
|
95
|
-
case "remove":
|
|
96
|
-
console.log(`${DIM}Removing skill:${RESET} ${restArgs[0] || "(no package specified)"}`);
|
|
97
|
-
break;
|
|
98
|
-
case "list":
|
|
99
|
-
console.log(`${DIM}No skills installed yet.${RESET}`);
|
|
100
|
-
break;
|
|
101
|
-
case "search":
|
|
102
|
-
console.log(`${DIM}Searching for:${RESET} ${restArgs[0] || "(no query specified)"}`);
|
|
103
|
-
break;
|
|
104
93
|
default:
|
|
105
94
|
console.log(`Unknown command: ${command}`);
|
|
106
95
|
console.log(`Run ${BOLD}skills --help${RESET} for usage.`);
|