@ssheleg/make-skill 0.14.0 → 0.16.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/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.16.0
4
+
5
+ ### Changed
6
+
7
+ - **The installer now offers the family's routing block** (closing B-06 in the
8
+ umbrella). Until now only `super-ux` delegated: install this skill on its own
9
+ and no router was written at all, so an agent had the skill and no rule saying
10
+ when to reach for it. The bundle installer wrote all eight, which is why
11
+ nothing looked broken — the gap only opened for someone installing one member.
12
+
13
+ Delegated to `npx sshlg-skills routers --member make-skill` rather than
14
+ reimplemented, for three reasons:
15
+
16
+ - The block describes what the machine actually has. A lone member rendering
17
+ the whole thing would print a table for routers nobody installed.
18
+ - `--member` scopes the write to this skill's own section. Verified by damaging
19
+ two sections of a real block and running this installer: its own was
20
+ repaired, the other left exactly as it was.
21
+ - The launcher is the only writer that copies the operator's global instruction
22
+ file before touching it. That file has no version control behind it.
23
+
24
+ `--no-install` keeps it from silently downloading a package nobody asked for.
25
+ When the launcher is absent the command is printed instead of failing: ending
26
+ an install in an error over an optional follow-up reads as a failed install.
27
+ Both paths were exercised.
28
+
29
+ ## v0.15.0
30
+
31
+ ### Fixed
32
+
33
+ - **Reachability counted links and missed the files a skill leans on hardest.** After
34
+ v0.13.0 taught the check to follow links transitively, it still only followed *links* —
35
+ so four bundled scripts in `seo-aeo-audit` were reported as dead weight while `SKILL.md`
36
+ names them in the sentence that tells the agent what ships and the references name them
37
+ in the commands that run them: `` `gsc_pull.py` ``, `scripts/psi_pull.py`. A file the
38
+ body tells you to execute is the opposite of unopened.
39
+
40
+ Reachability is now by link, by path, or by bare filename, followed transitively.
41
+ Probed: a reference nobody mentions anywhere is still flagged. `seo-aeo-audit` 4 → 0,
42
+ family 11 → 7, nothing gained elsewhere.
43
+
44
+ **Third false-positive class in three releases, all one shape**: the check asserted how
45
+ a skill refers to its own files instead of measuring how these skills actually do it.
46
+ Between them the three fired on 45 correct files — more than half of every finding this
47
+ auditor reported across the family.
48
+
3
49
  ## v0.14.0
4
50
 
5
51
  ### Fixed
package/bin/make-skill.js CHANGED
@@ -63,6 +63,38 @@ function installOne(label, src, dest, isDir, force) {
63
63
  console.log(`Installed ${label} -> ${dest}`);
64
64
  }
65
65
 
66
+ /**
67
+ * Ask the family launcher to write the routing block, for this member only.
68
+ *
69
+ * Delegated rather than reimplemented, for three reasons. The block describes
70
+ * what the machine actually has, so a lone member rendering the whole thing
71
+ * would produce a table for routers nobody installed. `--member` limits the
72
+ * write to the `make-skill` section and leaves everyone else's alone, which is
73
+ * what lets the bundle and a single installer both write. And the launcher is
74
+ * the only writer that copies the operator's global instruction file before
75
+ * touching it — that file has no version control behind it.
76
+ *
77
+ * `--no-install` keeps this from silently downloading a package nobody asked
78
+ * for. When the launcher is absent, print the command rather than fail: ending
79
+ * an install in an error because an OPTIONAL follow-up is missing reads as a
80
+ * failed install.
81
+ */
82
+ function offerRouters() {
83
+ const { spawnSync } = require('child_process');
84
+ const r = spawnSync(
85
+ 'npx',
86
+ ['--no-install', 'sshlg-skills', 'routers', '--member', 'make-skill'],
87
+ { stdio: 'inherit', shell: process.platform === 'win32' }
88
+ );
89
+ if (r.status !== 0) {
90
+ console.log(
91
+ '\nTo have this skill apply by default in every project, add the\n' +
92
+ "family's routing block to your agent's global instructions:\n\n" +
93
+ ' npx --yes sshlg-skills routers --member make-skill\n'
94
+ );
95
+ }
96
+ }
97
+
66
98
  function main(argv) {
67
99
  const args = argv.slice(2);
68
100
  if (args.includes('--help') || args.includes('-h')) {
@@ -103,6 +135,11 @@ function main(argv) {
103
135
  ' claude plugin update make-skill@make-skill\n' +
104
136
  ' Pass --force if you really want both.'
105
137
  );
138
+ // Offered here too. The skill IS present on this machine — as the plugin —
139
+ // so the routing block is exactly as wanted as on the install path. Two
140
+ // doors into one install that behave differently is how a feature comes to
141
+ // exist for half its users.
142
+ offerRouters();
106
143
  return 0;
107
144
  }
108
145
 
@@ -113,6 +150,7 @@ function main(argv) {
113
150
  true,
114
151
  force
115
152
  );
153
+ offerRouters();
116
154
  return 0;
117
155
  }
118
156
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssheleg/make-skill",
3
- "version": "0.14.0",
3
+ "version": "0.16.0",
4
4
  "description": "Create, retrofit, audit, and ship agent skills & Claude Code plugins the proven ssheleg way — conformance to the Agent Skills open standard AND Anthropic's platform rules (front-matter limits, disclosure budgets, per-surface runtime limits, the Skills API, evals) plus the Claude Code plugin reference (manifest schemas, component layout, claude plugin validate --strict), marketplace repo layout, version sync, validator + CI, multi-channel distribution (plugin, vercel skills CLI, npx, Cursor), npm gotchas, the review checklist for third-party skills, and MCP / A2A rules for protocol-connected skills. This package is the installer CLI.",
5
5
  "keywords": [
6
6
  "skill",
@@ -3,7 +3,7 @@
3
3
  "name": "make-skill",
4
4
  "displayName": "Make Skill",
5
5
  "description": "Create, retrofit, audit, and ship agent skills & Claude Code plugins the proven ssheleg way: conformance to the Agent Skills open standard, Anthropic's platform rules (surfaces, Skills API, evals) and the Claude Code plugin reference, marketplace repo layout, version sync, validator + CI, multi-channel distribution (plugin, vercel skills CLI, npx, Cursor), npm gotchas, end-to-end first publish, the review checklist for third-party skills, plus MCP / A2A references for protocol-connected skills.",
6
- "version": "0.14.0",
6
+ "version": "0.16.0",
7
7
  "author": {
8
8
  "name": "ssheleg",
9
9
  "url": "https://x.com/sshlg93"
@@ -5,7 +5,7 @@ license: MIT
5
5
  compatibility: Authoring works on any agent. The bundled scripts/ need python3. Publishing steps need git, gh, node and npm; the plugin gates need the claude CLI. Not usable on the Claude API surface, which has no network and no runtime package install.
6
6
  metadata:
7
7
  author: ssheleg
8
- version: "0.14.0"
8
+ version: "0.16.0"
9
9
  homepage: https://github.com/ssheleg/make-skill
10
10
  ---
11
11
 
@@ -309,8 +309,30 @@ def _bundle_closure(skill_dir, skill_text):
309
309
  if os.path.isfile(os.path.join(d, entry)):
310
310
  available["%s/%s" % (sub, entry)] = os.path.join(d, entry)
311
311
 
312
+ def named_in(text):
313
+ """Keys this text reaches: by link, by path, or by bare filename.
314
+
315
+ A script the body tells the agent to run is named in prose and a command —
316
+ `python3 scripts/gsc_pull.py`, or just `gsc_pull.py` in a list of what ships —
317
+ never as a markdown link. It is the opposite of dead weight, so matching only
318
+ link syntax reports the files a skill leans on hardest.
319
+ """
320
+ hits = set()
321
+ for key, _path in available.items():
322
+ base = key.split("/", 1)[1]
323
+ if key in text or base in text:
324
+ hits.add(key)
325
+ for target in LINK_RE.findall(text):
326
+ t = target.split("#", 1)[0].strip().lstrip("./")
327
+ if not t or "://" in t:
328
+ continue
329
+ for key in available:
330
+ if key == t or key.endswith("/" + t):
331
+ hits.add(key)
332
+ return hits
333
+
312
334
  seen = set()
313
- stack = [key for key in available if key in skill_text]
335
+ stack = list(named_in(skill_text))
314
336
  while stack:
315
337
  key = stack.pop()
316
338
  if key in seen:
@@ -318,19 +340,11 @@ def _bundle_closure(skill_dir, skill_text):
318
340
  seen.add(key)
319
341
  if not key.endswith(".md"):
320
342
  continue
321
- sub = key.split("/", 1)[0]
322
343
  try:
323
344
  txt = open(available[key], encoding="utf-8").read()
324
345
  except (OSError, UnicodeDecodeError):
325
346
  continue
326
- for target in LINK_RE.findall(txt):
327
- t = target.split("#", 1)[0].strip().lstrip("./")
328
- if not t or "://" in t:
329
- continue
330
- # a bare name inside references/ means a sibling of that same directory
331
- cand = t if "/" in t else "%s/%s" % (sub, t)
332
- if cand in available and cand not in seen:
333
- stack.append(cand)
347
+ stack.extend(k for k in named_in(txt) if k not in seen)
334
348
  return seen
335
349
 
336
350