@agentskillshub/cli 0.2.3 → 0.2.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
@@ -1,4 +1,4 @@
1
- # `ash` — AgentSkillsHub CLI
1
+ # AgentSkillsHub CLI
2
2
 
3
3
  Search, audit, and install open-source AI agent skills & MCP servers from your terminal. Every result is **security-graded** and **quality-scored** by [AgentSkillsHub](https://agentskillshub.top).
4
4
 
@@ -8,7 +8,7 @@ npx @agentskillshub/cli search "scrape a website" --safe
8
8
 
9
9
  ## Why
10
10
 
11
- Discovering a skill is easy. Knowing whether it's safe to run against your credentials is not. `ash` puts the trust signal *before* the install:
11
+ Discovering a skill is easy. Knowing whether it's safe to run against your credentials is not. It puts the trust signal *before* the install:
12
12
 
13
13
  ```
14
14
  $ npx @agentskillshub/cli search postgres --category mcp-server --limit 2
@@ -24,9 +24,7 @@ sgaunet/postgresql-mcp 5★ ⚪ UNAUDITED ~23.0k tok
24
24
 
25
25
  ## Commands
26
26
 
27
- Run via `npx @agentskillshub/cli <command>`. (A global `npm i -g` also exposes an
28
- `ash` shorthand — but `ash` is the Almquist shell on Alpine/BusyBox, so the `npx`
29
- form is the recommended, collision-free way to invoke it.)
27
+ Run via `npx @agentskillshub/cli <command>`:
30
28
 
31
29
  | | |
32
30
  |---|---|
@@ -39,7 +37,7 @@ Add `--json` to any of `search` / `audit` / `install` for machine-readable outpu
39
37
 
40
38
  ## How it works
41
39
 
42
- The catalog (~20K quality skills, stars ≥ 5) is a single static file (~1.7MB gzipped) served from the CDN. `ash` downloads it once, caches it at `~/.cache/agentskillshub/`, and refreshes every ~8h. **All searching is local** — fast, works offline, and puts zero load on the backend.
40
+ The catalog (~20K quality skills, stars ≥ 5) is a single static file (~1.7MB gzipped) served from the CDN. The CLI downloads it once, caches it at `~/.cache/agentskillshub/`, and checks for a newer index with a cheap 77B probe (re-downloading the full file only when it actually changed, so a freshly-deployed index reaches you within minutes). **All searching is local** — fast, works offline, and puts zero load on the backend.
43
41
 
44
42
  ## Security grades
45
43
 
package/SKILL.md CHANGED
@@ -7,7 +7,7 @@ description: Use when the user wants to find, evaluate, audit, or install an ope
7
7
 
8
8
  Discover → audit → install open-source AI agent skills and MCP servers without leaving the terminal. Backed by [AgentSkillsHub](https://agentskillshub.top): ~106K indexed skills, of which ~20K (stars ≥ 5) are in the searchable catalog, each carrying a **quality score** and a **security grade**.
9
9
 
10
- The catalog is a static index downloaded once and cached locally (`~/.cache/agentskillshub/`, refreshed every ~8h). Every search after the first is **instant, offline, and puts zero load on the Hub backend**.
10
+ The catalog is a static index downloaded once and cached locally (`~/.cache/agentskillshub/`), with a cheap 77B freshness probe that re-downloads only when the index actually changes. Every search after the first is **instant, offline, and puts zero load on the Hub backend**.
11
11
 
12
12
  ## When to use
13
13
 
@@ -17,22 +17,22 @@ The catalog is a static index downloaded once and cached locally (`~/.cache/agen
17
17
 
18
18
  ## How to use
19
19
 
20
- The CLI is `bin/ash.mjs` (Node ≥ 18, zero dependencies). Run it with `node`:
20
+ Zero-dependency Node CLI (Node ≥ 18). Run it with `npx`:
21
21
 
22
22
  ```bash
23
23
  # Search (local fuzzy ranking over name/desc/tags; quality + popularity tiebreak)
24
- node bin/ash.mjs search "scrape a website" --safe --limit 5
25
- node bin/ash.mjs search postgres --category mcp-server
24
+ npx @agentskillshub/cli search "scrape a website" --safe --limit 5
25
+ npx @agentskillshub/cli search postgres --category mcp-server
26
26
  # filters: --category <c> --platform <p> --min-stars <n> --safe --limit <n>
27
27
 
28
28
  # Audit — free basic trust check (security grade + plain-English verdict)
29
- node bin/ash.mjs audit owner/repo
29
+ npx @agentskillshub/cli audit owner/repo
30
30
 
31
31
  # Install — install commands + a "check before you install" safety line
32
- node bin/ash.mjs install owner/repo
32
+ npx @agentskillshub/cli install owner/repo
33
33
 
34
34
  # Force-refresh the cached index
35
- node bin/ash.mjs update
35
+ npx @agentskillshub/cli update
36
36
  ```
37
37
 
38
38
  Add `--json` to `search`, `audit`, or `install` for structured output to parse programmatically.
package/bin/ash.mjs CHANGED
@@ -26,12 +26,18 @@ import { join } from "node:path";
26
26
  const BASE = process.env.AGENTSKILLSHUB_BASE || "https://agentskillshub.top";
27
27
  const META_URL = `${BASE}/search-index-meta.json`;
28
28
  const INDEX_URL = `${BASE}/search-index.json.gz`;
29
- const HUB_SKILL = (full) => `${BASE}/skill/${full}/`;
29
+ // ?ref=cli lets web analytics attribute clickthroughs that originate in the CLI
30
+ // (anonymous, no in-CLI telemetry). Query comes before any #audit fragment.
31
+ const HUB_SKILL = (full) => `${BASE}/skill/${full}/?ref=cli`;
30
32
 
31
33
  const CACHE_DIR = join(process.env.AGENTSKILLSHUB_CACHE || join(homedir(), ".cache", "agentskillshub"));
32
34
  const CACHE_INDEX = join(CACHE_DIR, "search-index.json");
33
35
  const CACHE_META = join(CACHE_DIR, "search-index-meta.json");
34
- const TTL_MS = 8 * 60 * 60 * 1000; // refresh at most every 8h (matches sync cadence)
36
+ // Within this window we serve the cached index without even probing the CDN.
37
+ // Kept short so a freshly-deployed index reaches users within minutes — the
38
+ // probe is a cheap 77B meta fetch; the 1.7MB index re-downloads only when
39
+ // generated_at actually changed.
40
+ const TTL_MS = 15 * 60 * 1000; // 15 min
35
41
 
36
42
  // security_grade → display
37
43
  const GRADE = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentskillshub/cli",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Search, audit, and install open-source AI agent skills & MCP servers from the terminal — security-graded, quality-scored.",
5
5
  "type": "module",
6
6
  "bin": {