add-skill 1.0.19 → 1.0.20

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 (2) hide show
  1. package/dist/index.js +9 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -519,7 +519,7 @@ function track(data) {
519
519
  // package.json
520
520
  var package_default = {
521
521
  name: "add-skill",
522
- version: "1.0.19",
522
+ version: "1.0.20",
523
523
  description: "Install agent skills onto coding agents (OpenCode, Claude Code, Codex, Cursor)",
524
524
  type: "module",
525
525
  bin: {
@@ -585,7 +585,7 @@ var package_default = {
585
585
  // src/index.ts
586
586
  var version = package_default.version;
587
587
  setVersion(version);
588
- program.name("add-skill").description("Install skills onto coding agents (OpenCode, Claude Code, Codex, Cursor, Antigravity, Github Copilot, Roo Code)").version(version).argument("<source>", "Git repo URL, GitHub shorthand (owner/repo), local path (./path), 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, antigravity, gitub-copilot, roo)").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").configureOutput({
588
+ program.name("add-skill").description("Install skills onto coding agents (OpenCode, Claude Code, Codex, Cursor, Antigravity, Github Copilot, Roo Code)").version(version).argument("<source>", "Git repo URL, GitHub shorthand (owner/repo), local path (./path), 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, antigravity, gitub-copilot, roo)").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").option("--all", "Install all skills to all agents without any prompts (implies -y -g)").configureOutput({
589
589
  outputError: (str, write) => {
590
590
  if (str.includes("missing required argument")) {
591
591
  console.log();
@@ -608,6 +608,10 @@ program.name("add-skill").description("Install skills onto coding agents (OpenCo
608
608
  });
609
609
  program.parse();
610
610
  async function main(source, options) {
611
+ if (options.all) {
612
+ options.yes = true;
613
+ options.global = true;
614
+ }
611
615
  console.log();
612
616
  p.intro(chalk.bgCyan.black(" skills "));
613
617
  let tempDir = null;
@@ -708,6 +712,9 @@ async function main(source, options) {
708
712
  process.exit(1);
709
713
  }
710
714
  targetAgents = options.agent;
715
+ } else if (options.all) {
716
+ targetAgents = validAgents;
717
+ p.log.info(`Installing to all ${targetAgents.length} agents`);
711
718
  } else {
712
719
  spinner2.start("Detecting installed agents...");
713
720
  const installedAgents = await detectInstalledAgents();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "add-skill",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Install agent skills onto coding agents (OpenCode, Claude Code, Codex, Cursor)",
5
5
  "type": "module",
6
6
  "bin": {