agent-skills-standard 2.2.4 → 2.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/README.md CHANGED
@@ -122,6 +122,7 @@ The CLI **never** modifies user-home files (`~/.cursor/mcp.json`, `~/.gemini/set
122
122
 
123
123
  | Version | Date | Skills | Avg Tokens | Savings (%) | Report |
124
124
  | --- | --- | --- | --- | --- | --- |
125
+ | v2.3.0 | 2026-05-13 | 246 | 540 | 85% | [Report](benchmarks/archive/v2.3.0.md) |
125
126
  | v2.2.2 | 2026-05-09 | 249 | 539 | 85% | [Report](benchmarks/archive/v2.2.2.md) |
126
127
  | v2.2.0 | 2026-04-22 | 242 | 538 | 85% | [Report](benchmarks/archive/v2.2.0.md) |
127
128
  | v2.1.2 | 2026-04-11 | 237 | 516 | 86% | [Report](benchmarks/archive/v2.1.2.md) |
@@ -131,4 +132,3 @@ The CLI **never** modifies user-home files (`~/.cursor/mcp.json`, `~/.gemini/set
131
132
  | v2.0.0 | 2026-03-25 | 235 | 523 | 86% | [Report](benchmarks/archive/v2.0.0.md) |
132
133
  | v1.10.3 | 2026-03-21 | 234 | 505 | 86% | [Report](benchmarks/archive/v1.10.3.md) |
133
134
  | v1.10.1 | 2026-03-16 | 229 | 428 | 88% | [Report](benchmarks/archive/v1.10.1.md) |
134
- | v1.10.0 | 2026-03-16 | 229 | 434 | 88% | [Report](benchmarks/archive/v1.10.0.md) |
package/dist/index.js CHANGED
@@ -3657,10 +3657,22 @@ Follow the exact steps in the workflow file.
3657
3657
  * Invoked through each platform's skill mechanism.
3658
3658
  */
3659
3659
  static toSkillMarkdown(name, description, body) {
3660
- return `# ${name.split("-").map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join(" ")} Skill
3660
+ const normalizedDescription = description || `Workflow skill for ${name.replace(/-/g, " ")}.`;
3661
+ const escapedDescription = normalizedDescription.replace(/\\/g, "\\\\").replace(/"/g, "\\\"");
3662
+ const title = name.split("-").map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join(" ");
3663
+ return `---
3664
+ name: ${name}
3665
+ description: "${escapedDescription}"
3666
+ metadata:
3667
+ triggers:
3668
+ keywords:
3669
+ - ${name.replace(/-/g, " ")}
3670
+ - workflow
3671
+ ---
3672
+ # ${title} Skill
3661
3673
 
3662
3674
  > [!IMPORTANT]
3663
- > ${description}
3675
+ > ${normalizedDescription}
3664
3676
 
3665
3677
  ## Instructions
3666
3678
 
@@ -4370,7 +4382,7 @@ var SyncCommand = class {
4370
4382
  };
4371
4383
  var package_default = {
4372
4384
  name: "agent-skills-standard",
4373
- version: "2.2.4",
4385
+ version: "2.3.0",
4374
4386
  description: "A CLI to manage and sync AI agent skills standard for Cursor, Claude, Copilot, Windsurf, and more.",
4375
4387
  main: "dist/index.js",
4376
4388
  bin: {
@@ -4465,40 +4477,44 @@ var UpgradeCommand = class {
4465
4477
  console.log(picocolors.default.yellow(`šŸ“¦ Upgrading to v${latestVersion} using ${pm}...`));
4466
4478
  try {
4467
4479
  console.log(picocolors.default.gray(` Running: ${upgradeCmd}`));
4468
- (0, child_process.execSync)(upgradeCmd, { stdio: "inherit" });
4469
4480
  try {
4470
- const lines = (0, child_process.execSync)("ags -V", { encoding: "utf8" }).trim().split("\n");
4481
+ (0, child_process.execSync)(upgradeCmd, { stdio: "inherit" });
4482
+ } catch {
4483
+ console.log(picocolors.default.yellow(`āš ļø Failed to install v${latestVersion}. Retrying with @latest...`));
4484
+ (0, child_process.execSync)(this.getUpgradeCommand(pm, "latest"), { stdio: "inherit" });
4485
+ }
4486
+ try {
4487
+ const lines = (0, child_process.execSync)("ags -V", {
4488
+ encoding: "utf8",
4489
+ stdio: "pipe"
4490
+ }).trim().split("\n");
4471
4491
  const installedVersion = lines[lines.length - 1].trim();
4472
- if (installedVersion === latestVersion) console.log(picocolors.default.green(`āœ… Successfully upgraded to v${latestVersion}!`));
4492
+ if (installedVersion.includes(latestVersion)) console.log(picocolors.default.green(`āœ… Successfully upgraded to v${latestVersion}!`));
4473
4493
  else {
4474
- console.log("\n" + picocolors.default.yellow(`āš ļø Install finished, but 'ags -V' still reports v${installedVersion}.`));
4475
- console.log(picocolors.default.gray(" This is likely due to package manager caching or a PATH conflict."));
4476
- console.log(picocolors.default.cyan(`šŸ‘‰ Recommendation: Run '${picocolors.default.bold(upgradeCmd + " --force")}' manually.`));
4494
+ console.log("\n" + picocolors.default.yellow(`āš ļø Installation complete, but 'ags -V' still reports v${installedVersion}.`));
4495
+ console.log(picocolors.default.gray(" This is common if multiple versions are installed or your shell needs a restart."));
4496
+ console.log(picocolors.default.cyan(`šŸ‘‰ Recommendation: Restart your terminal or run: ${picocolors.default.bold(this.getUpgradeCommand(pm, latestVersion) + " --force")}`));
4477
4497
  }
4478
4498
  } catch {
4479
- console.log(picocolors.default.green(`āœ… Install command completed.`));
4499
+ console.log(picocolors.default.green("\nāœ… Upgrade command finished."));
4500
+ console.log(picocolors.default.gray(" (Unable to verify version automatically, please check with 'ags -V')"));
4480
4501
  }
4481
- console.log(picocolors.default.cyan("Please restart your terminal if the version doesn't update immediately."));
4502
+ console.log(picocolors.default.cyan("\nNote: You may need to restart your terminal session for changes to take effect."));
4482
4503
  } catch {
4483
4504
  console.log("\n" + picocolors.default.red("āŒ Automatic upgrade failed."));
4484
4505
  this.printManualInstructions(pm, latestVersion);
4485
4506
  }
4486
4507
  }
4487
4508
  detectPackageManager() {
4488
- const userAgent = process.env.npm_config_user_agent || "";
4489
- if (userAgent.includes("pnpm")) return "pnpm";
4490
- if (userAgent.includes("yarn")) return "yarn";
4509
+ const execPath = process.argv[1] || "";
4510
+ if (execPath.includes("pnpm") || (process.env.npm_config_user_agent || "").includes("pnpm")) return "pnpm";
4511
+ if (execPath.includes("yarn") || (process.env.npm_config_user_agent || "").includes("yarn")) return "yarn";
4512
+ if (execPath.includes("nvm") || execPath.includes("npm")) return "npm";
4491
4513
  try {
4492
4514
  (0, child_process.execSync)("pnpm --version", { stdio: "ignore" });
4493
- return "pnpm";
4494
- } catch {
4495
- try {
4496
- (0, child_process.execSync)("yarn --version", { stdio: "ignore" });
4497
- return "yarn";
4498
- } catch {
4499
- return "npm";
4500
- }
4501
- }
4515
+ if (execPath.includes("pnpm")) return "pnpm";
4516
+ } catch {}
4517
+ return "npm";
4502
4518
  }
4503
4519
  getUpgradeCommand(pm, version) {
4504
4520
  switch (pm) {
@@ -4852,7 +4868,7 @@ var ValidateCommand = class {
4852
4868
  //#region src/index.ts
4853
4869
  dotenv.default.config();
4854
4870
  var program = new commander.Command();
4855
- program.name("agent-skills-standard").description("A CLI to manage and sync AI agent skills for Cursor, Claude, Copilot, Windsurf, and more.").version("2.2.4");
4871
+ program.name("agent-skills-standard").description("A CLI to manage and sync AI agent skills for Cursor, Claude, Copilot, Windsurf, and more.").version("2.3.0");
4856
4872
  program.command("init").description("Initialize a .skillsrc configuration file interactively").action(async () => {
4857
4873
  await new InitCommand().run();
4858
4874
  });