skilllib 1.12.2 → 1.14.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/dist/index.js CHANGED
@@ -4,12 +4,14 @@ import {
4
4
  add,
5
5
  agentSkill,
6
6
  apply,
7
+ check,
7
8
  doctor,
8
9
  error,
9
10
  folders,
10
11
  globalCommand,
11
12
  harnessesCommand,
12
13
  importSkills,
14
+ install,
13
15
  isJsonMode,
14
16
  json,
15
17
  link,
@@ -18,11 +20,13 @@ import {
18
20
  outdated,
19
21
  overview,
20
22
  parseArgs,
23
+ pluginCommand,
21
24
  projects,
22
25
  refreshAgentSkill,
23
26
  remove,
24
27
  restore,
25
28
  scan,
29
+ search,
26
30
  setJsonMode,
27
31
  show,
28
32
  status,
@@ -31,19 +35,23 @@ import {
31
35
  unhide,
32
36
  update,
33
37
  usage
34
- } from "./chunk-YQFLFWAY.js";
38
+ } from "./chunk-XMXC2XM2.js";
35
39
 
36
40
  // src/index.ts
37
41
  import { readFileSync } from "fs";
38
42
  var HELP = `
39
- skilllib \u2014 one library of agent skills (Claude Code, Cursor, Codex, Zed, Grok), installed per project
43
+ skilllib \u2014 one library of agent skills, installed per project, visible to every agent you use
40
44
 
41
45
  skilllib Open the interactive app (run it from anywhere)
46
+ skilllib install <source>... Install skills from skills.sh, GitHub, or a folder
47
+ (owner/repo, owner/repo@skill, a skills.sh URL, or a path)
48
+ In a repo, also adds them here. --global loads them everywhere
49
+ skilllib search <query> Search skills.sh
42
50
 
43
51
  Set up:
44
52
  skilllib scan [folder...] Add folders that contain your projects and scan them
45
53
  skilllib folders [add|remove] Show or change your project folders
46
- skilllib harnesses [id...] Show or set the agents you use (claude-code cursor codex zed grok)
54
+ skilllib harnesses [id...] Show or set the agents you use (skilllib harnesses lists them)
47
55
  skilllib import <dir>... Add skill folders to the library (--force replaces)
48
56
  skilllib import --global Copy your global skills (every agent's folder) into the library
49
57
  skilllib global [keep|unkeep <name>...] Your global skills; mark ones you keep global on purpose
@@ -53,8 +61,8 @@ Set up:
53
61
  In a project (a git repo or a folder with skilllib.json; never your home folder):
54
62
  skilllib status This project's skills, which agents load them, and issues
55
63
  skilllib add <name>... Install library skills where your harnesses look
56
- (pinned in skilllib.json when the repo has one, else in your
57
- personal pins, kept out of git; --personal / --shared to choose)
64
+ (your personal pins, kept out of git; --shared writes
65
+ skilllib.json to commit with the team)
58
66
  skilllib remove <name>... Remove skills from this project
59
67
  skilllib link [--all] Make every skill here usable by all your agents (adds links)
60
68
  skilllib tidy [--all|--global] One real copy per skill, plus only the links your agents need
@@ -70,6 +78,8 @@ Library:
70
78
  skilllib new <name> [desc] Create a skill in the library
71
79
  skilllib projects Your projects and their skills
72
80
  skilllib usage [--days N] Which skills agents used (from Claude Code transcripts)
81
+ skilllib check [--days N] What global skills and this repo's cost, and whether each was used or is current
82
+ skilllib plugin off|on <id> Turn a Claude Code plugin off or on (it stays installed)
73
83
 
74
84
  Health:
75
85
  skilllib doctor [--fix] Broken links, duplicates, out-of-date projects
@@ -82,7 +92,7 @@ Agents:
82
92
  Teach your agents to use skilllib, so you can ask them
83
93
  "which skills can you use here?" in any repo
84
94
  --json Machine-readable output (status list show projects outdated
85
- usage doctor apply add remove sync update import global move agent-skill)
95
+ usage doctor apply add remove sync update import global move agent-skill install search check plugin)
86
96
 
87
97
  Options: --force (overwrite local edits) --allow-tracked (link into git-tracked skill folders) --days N
88
98
  `.trim();
@@ -119,11 +129,15 @@ var FLAGS_OF = {
119
129
  doctor: ["fix", "days"],
120
130
  apply: ["days"],
121
131
  usage: ["days"],
132
+ check: ["days"],
133
+ plugin: [],
134
+ install: ["force", "global", "all", "allow-tracked"],
135
+ search: [],
122
136
  "agent-skill": [],
123
137
  version: [],
124
138
  help: []
125
139
  };
126
- var NO_ARGS = /* @__PURE__ */ new Set(["", "ui", "status", "outdated", "list", "projects", "link", "doctor", "usage", "version"]);
140
+ var NO_ARGS = /* @__PURE__ */ new Set(["", "ui", "status", "outdated", "list", "projects", "link", "doctor", "usage", "check", "version"]);
127
141
  async function main() {
128
142
  const argv = process.argv.slice(2);
129
143
  setJsonMode(argv.includes("--json"));
@@ -140,10 +154,10 @@ async function main() {
140
154
  if (!["--version", "-v", "version", "help", "--help", "-h"].includes(command ?? "")) refreshAgentSkill();
141
155
  switch (command) {
142
156
  case void 0:
143
- return process.stdin.isTTY && process.stdout.isTTY ? (await import("./tui-P3HKRNHI.js")).tui() : overview(args);
157
+ return process.stdin.isTTY && process.stdout.isTTY ? (await import("./tui-N6NRJYLZ.js")).tui() : overview(args);
144
158
  case "ui":
145
159
  if (!process.stdin.isTTY || !process.stdout.isTTY) throw new Error("`skilllib ui` needs an interactive terminal. Agents and scripts: use `skilllib status --json`.");
146
- return (await import("./tui-P3HKRNHI.js")).tui();
160
+ return (await import("./tui-N6NRJYLZ.js")).tui();
147
161
  case "status":
148
162
  return status(args);
149
163
  case "add":
@@ -188,8 +202,16 @@ async function main() {
188
202
  return apply(args);
189
203
  case "usage":
190
204
  return usage(args);
205
+ case "check":
206
+ return check(args);
207
+ case "plugin":
208
+ return pluginCommand(args);
191
209
  case "agent-skill":
192
210
  return agentSkill(args);
211
+ case "install":
212
+ return install(args);
213
+ case "search":
214
+ return search(args);
193
215
  case "--version":
194
216
  case "-v":
195
217
  case "version":