skilllib 1.0.2 → 1.2.1

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,6 +4,7 @@ import {
4
4
  doctor,
5
5
  error,
6
6
  folders,
7
+ globalCommand,
7
8
  harnessesCommand,
8
9
  importSkills,
9
10
  link,
@@ -18,10 +19,11 @@ import {
18
19
  show,
19
20
  status,
20
21
  sync,
22
+ tidy,
21
23
  unhide,
22
24
  update,
23
25
  usage
24
- } from "./chunk-67BDL5SN.js";
26
+ } from "./chunk-O5TY4NWZ.js";
25
27
 
26
28
  // src/index.ts
27
29
  import { readFileSync } from "fs";
@@ -36,12 +38,16 @@ Set up:
36
38
  skilllib harnesses [id...] Show or set the agents you use (claude-code cursor codex zed)
37
39
  skilllib import <dir>... Add skill folders to the library (--force replaces)
38
40
  skilllib import --global Copy ~/.claude/skills into the library
41
+ skilllib global [keep|unkeep <name>...] Your global skills; mark ones you keep global on purpose
39
42
 
40
43
  In a project:
41
44
  skilllib status This project's skills and their status
42
45
  skilllib add <name>... Install library skills where your harnesses look
43
46
  skilllib remove <name>... Remove skills from this project
44
47
  skilllib link [--all] Make every skill here usable by all your agents (adds links)
48
+ skilllib tidy [--all|--global] One real copy per skill, plus only the links your agents need
49
+ (--dry-run to preview, --allow-git to change what git sees,
50
+ <name> --keep <folder> to pick the copy that wins)
45
51
  skilllib sync [--all] Install exactly the versions in skilllib.json
46
52
  skilllib outdated [--all] Skills with a newer version in the library
47
53
  skilllib update [name...] Move to the newest versions (--all: every project)
@@ -73,9 +79,9 @@ async function main() {
73
79
  const args = parseArgs(rest);
74
80
  switch (command) {
75
81
  case void 0:
76
- return process.stdin.isTTY && process.stdout.isTTY ? (await import("./tui-CQCVL6IK.js")).tui() : status(args);
82
+ return process.stdin.isTTY && process.stdout.isTTY ? (await import("./tui-6BOQIKAU.js")).tui() : status(args);
77
83
  case "ui":
78
- return (await import("./tui-CQCVL6IK.js")).tui();
84
+ return (await import("./tui-6BOQIKAU.js")).tui();
79
85
  case "status":
80
86
  return status(args);
81
87
  case "add":
@@ -104,6 +110,9 @@ async function main() {
104
110
  return projects();
105
111
  case "link":
106
112
  return link(args);
113
+ case "tidy":
114
+ case "dedup":
115
+ return tidy(args);
107
116
  case "harnesses":
108
117
  case "agents":
109
118
  return harnessesCommand(args);
@@ -115,6 +124,8 @@ async function main() {
115
124
  case "new":
116
125
  case "create":
117
126
  return newSkill(args);
127
+ case "global":
128
+ return globalCommand(args);
118
129
  case "restore":
119
130
  return restore(args);
120
131
  case "doctor":