skilllib 1.12.2 → 1.13.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
@@ -10,6 +10,7 @@ import {
10
10
  globalCommand,
11
11
  harnessesCommand,
12
12
  importSkills,
13
+ install,
13
14
  isJsonMode,
14
15
  json,
15
16
  link,
@@ -23,6 +24,7 @@ import {
23
24
  remove,
24
25
  restore,
25
26
  scan,
27
+ search,
26
28
  setJsonMode,
27
29
  show,
28
30
  status,
@@ -31,19 +33,23 @@ import {
31
33
  unhide,
32
34
  update,
33
35
  usage
34
- } from "./chunk-YQFLFWAY.js";
36
+ } from "./chunk-C6TSR7NT.js";
35
37
 
36
38
  // src/index.ts
37
39
  import { readFileSync } from "fs";
38
40
  var HELP = `
39
- skilllib \u2014 one library of agent skills (Claude Code, Cursor, Codex, Zed, Grok), installed per project
41
+ skilllib \u2014 one library of agent skills, installed per project, visible to every agent you use
40
42
 
41
43
  skilllib Open the interactive app (run it from anywhere)
44
+ skilllib install <source>... Install skills from skills.sh, GitHub, or a folder
45
+ (owner/repo, owner/repo@skill, a skills.sh URL, or a path)
46
+ In a repo, also adds them here. --global loads them everywhere
47
+ skilllib search <query> Search skills.sh
42
48
 
43
49
  Set up:
44
50
  skilllib scan [folder...] Add folders that contain your projects and scan them
45
51
  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)
52
+ skilllib harnesses [id...] Show or set the agents you use (skilllib harnesses lists them)
47
53
  skilllib import <dir>... Add skill folders to the library (--force replaces)
48
54
  skilllib import --global Copy your global skills (every agent's folder) into the library
49
55
  skilllib global [keep|unkeep <name>...] Your global skills; mark ones you keep global on purpose
@@ -82,7 +88,7 @@ Agents:
82
88
  Teach your agents to use skilllib, so you can ask them
83
89
  "which skills can you use here?" in any repo
84
90
  --json Machine-readable output (status list show projects outdated
85
- usage doctor apply add remove sync update import global move agent-skill)
91
+ usage doctor apply add remove sync update import global move agent-skill install search)
86
92
 
87
93
  Options: --force (overwrite local edits) --allow-tracked (link into git-tracked skill folders) --days N
88
94
  `.trim();
@@ -119,6 +125,8 @@ var FLAGS_OF = {
119
125
  doctor: ["fix", "days"],
120
126
  apply: ["days"],
121
127
  usage: ["days"],
128
+ install: ["force", "global", "all", "allow-tracked"],
129
+ search: [],
122
130
  "agent-skill": [],
123
131
  version: [],
124
132
  help: []
@@ -140,10 +148,10 @@ async function main() {
140
148
  if (!["--version", "-v", "version", "help", "--help", "-h"].includes(command ?? "")) refreshAgentSkill();
141
149
  switch (command) {
142
150
  case void 0:
143
- return process.stdin.isTTY && process.stdout.isTTY ? (await import("./tui-P3HKRNHI.js")).tui() : overview(args);
151
+ return process.stdin.isTTY && process.stdout.isTTY ? (await import("./tui-3MBVYSVM.js")).tui() : overview(args);
144
152
  case "ui":
145
153
  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();
154
+ return (await import("./tui-3MBVYSVM.js")).tui();
147
155
  case "status":
148
156
  return status(args);
149
157
  case "add":
@@ -190,6 +198,10 @@ async function main() {
190
198
  return usage(args);
191
199
  case "agent-skill":
192
200
  return agentSkill(args);
201
+ case "install":
202
+ return install(args);
203
+ case "search":
204
+ return search(args);
193
205
  case "--version":
194
206
  case "-v":
195
207
  case "version":