@agentskillshub/cli 0.2.4 → 0.2.6
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 +1 -1
- package/SKILL.md +1 -1
- package/bin/ash.mjs +9 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ Add `--json` to any of `search` / `audit` / `install` for machine-readable outpu
|
|
|
37
37
|
|
|
38
38
|
## How it works
|
|
39
39
|
|
|
40
|
-
The catalog (~20K quality skills, stars ≥ 5) is a single static file (~1.7MB gzipped) served from the CDN.
|
|
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.
|
|
41
41
|
|
|
42
42
|
## Security grades
|
|
43
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
|
|
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
|
|
package/bin/ash.mjs
CHANGED
|
@@ -26,12 +26,19 @@ 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
|
-
|
|
29
|
+
// UTM params let GA4 (Traffic acquisition) and Plausible (UTM Sources) auto-
|
|
30
|
+
// attribute CLI-originated clickthroughs with zero report-building — anonymous,
|
|
31
|
+
// no in-CLI telemetry. Query comes before any #audit fragment.
|
|
32
|
+
const HUB_SKILL = (full) => `${BASE}/skill/${full}/?utm_source=cli&utm_medium=cli`;
|
|
30
33
|
|
|
31
34
|
const CACHE_DIR = join(process.env.AGENTSKILLSHUB_CACHE || join(homedir(), ".cache", "agentskillshub"));
|
|
32
35
|
const CACHE_INDEX = join(CACHE_DIR, "search-index.json");
|
|
33
36
|
const CACHE_META = join(CACHE_DIR, "search-index-meta.json");
|
|
34
|
-
|
|
37
|
+
// Within this window we serve the cached index without even probing the CDN.
|
|
38
|
+
// Kept short so a freshly-deployed index reaches users within minutes — the
|
|
39
|
+
// probe is a cheap 77B meta fetch; the 1.7MB index re-downloads only when
|
|
40
|
+
// generated_at actually changed.
|
|
41
|
+
const TTL_MS = 15 * 60 * 1000; // 15 min
|
|
35
42
|
|
|
36
43
|
// security_grade → display
|
|
37
44
|
const GRADE = {
|
package/package.json
CHANGED