@agentskill.sh/cli 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/README.md CHANGED
@@ -4,8 +4,9 @@
4
4
 
5
5
  <p align="center">
6
6
  <a href="https://github.com/agentskill-sh/ags/stargazers"><img src="https://img.shields.io/github/stars/agentskill-sh/ags" alt="GitHub stars"></a>
7
- <img src="https://img.shields.io/badge/platforms-15+-blue" alt="15+ platforms">
7
+ <a href="https://www.npmjs.com/package/@agentskill.sh/cli"><img src="https://img.shields.io/npm/v/@agentskill.sh/cli" alt="npm version"></a>
8
8
  <img src="https://img.shields.io/badge/skills-100%2C000%2B-orange" alt="100,000+ skills">
9
+ <img src="https://img.shields.io/badge/platforms-15+-blue" alt="15+ platforms">
9
10
  <a href="https://github.com/agentskill-sh/ags/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="License"></a>
10
11
  </p>
11
12
 
@@ -16,7 +17,7 @@
16
17
  Copy-paste this into your AI agent (Claude Code, Cursor, Copilot, Codex, Windsurf, Gemini CLI, etc.):
17
18
 
18
19
  ```
19
- Install the /learn skill from https://github.com/agentskill-sh/ags then search for skills relevant to this project
20
+ Follow the instructions at https://agentskill.sh/install to install the /learn skill, then search for skills relevant to this project
20
21
  ```
21
22
 
22
23
  That's it. Your agent will install `/learn`, analyze your project, and suggest relevant skills from a directory of 100,000+.
package/dist/api.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const API_BASE = 'https://agentskill.sh/api';
2
- const VERSION = '1.0.3';
2
+ const VERSION = '1.0.5';
3
3
  export async function apiFetch(path, options) {
4
4
  const res = await fetch(`${API_BASE}${path}`, {
5
5
  ...options,
@@ -37,13 +37,8 @@ export async function installCommand(args) {
37
37
  // Parse owner from slug if present (e.g. @owner/slug or owner/slug)
38
38
  let apiPath;
39
39
  const cleanSlug = slug.startsWith('@') ? slug.slice(1) : slug;
40
- if (cleanSlug.includes('/')) {
41
- const [owner, name] = cleanSlug.split('/');
42
- apiPath = `/agent/skills/${encodeURIComponent(name)}/install?owner=${encodeURIComponent(owner)}`;
43
- }
44
- else {
45
- apiPath = `/agent/skills/${encodeURIComponent(cleanSlug)}/install`;
46
- }
40
+ // Use encoded composite slug (owner%2Fname) for reliable lookup
41
+ apiPath = `/agent/skills/${encodeURIComponent(cleanSlug)}/install`;
47
42
  if (platform) {
48
43
  apiPath += apiPath.includes('?') ? `&platform=${platform}` : `?platform=${platform}`;
49
44
  }
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { listCommand } from './commands/list.js';
5
5
  import { removeCommand } from './commands/remove.js';
6
6
  import { feedbackCommand } from './commands/feedback.js';
7
7
  import { updateCommand } from './commands/update.js';
8
- const VERSION = '1.0.3';
8
+ const VERSION = '1.0.5';
9
9
  const HELP = `ags v${VERSION} — search, install, and manage AI agent skills
10
10
 
11
11
  Usage:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentskill.sh/cli",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Agent Skill CLI. Search, install, review, and manage AI agent skills from agentskill.sh.",
5
5
  "type": "module",
6
6
  "bin": {