Replies: 5 comments 2 replies
|
+1 — there is a second reason for this layout now: the GitHub CLI's new skill manager ( $ gh skill install ogulcancelik/herdr
no standard skills found, but 3 skill(s) exist in hidden directoriesIt only discovers One caveat on the root shim idea: a symlink likely will not work for API-based installers (the contents API returns the link target as the blob content), so a synced copy would be safer if the root file stays. |
|
Consider using this: https://github.com/runkids/skillshare Works much better than npx skills |
|
Another approach that could complement (or replace) the folder move: bundle the SKILL.md into the binary and expose it as a CLI command, similar to how Benefits:
This doesn't replace moving SKILL.md into a subfolder, that fix still matters for tooling like |
|
One more consequence of the root layout, not mentioned above: it also makes the skill report a phantom update on every commit.
// skills/dist/cli.mjs — getSkillFolderHashFromTree
if (!folderPath) return tree.sha; // root SKILL.md → repo-wide shaSo the tracked "skill version" is herdr's HEAD on For anyone updating skills on a schedule (topgrade's Moving to |
|
Confirming the same issue today: |
Uh oh!
There was an error while loading. Please reload this page.
idea / problem
installing the herdr agent skill via
npx skills add ogulcancelik/herdr(the command shown on skills.sh) copies theentire repo into the consumer's skill directory, not just the skill.
the skills CLI vendors the directory that contains SKILL.md. per its docs, the first discovery location is "Root directory
(if it contains SKILL.md)":
https://github.com/vercel-labs/skills#skill-discovery
herdr keeps SKILL.md at the repo root, so "the skill" = the whole repo. a fresh add pulls ~1689 files / ~33 MB (Rust src/,
vendor/libghostty-vt, website/assets/*.mp4, Cargo.lock, .github/, tests/) when the actual skill is a single
self-contained SKILL.md (~12 KB). vendoring it into a dotfiles/config repo drags the full app source into git history; the
only workaround is deleting everything except SKILL.md after install. (--full-depth only widens discovery — nothing
narrows a root match.)
requested change
move the skill into its own folder so the CLI only pulls the skill:
optionally keep a root ./SKILL.md shim/symlink so existing README links still resolve. then
npx skills add ogulcancelik/herdr@herdrvendors ~12 KB instead of ~33 MB — matching the documented flat layout skills//SKILL.mdand how packaged skills lay themselves out (e.g. pulumi/agent-skills, firecrawl/*).
why you want this
makes the published skill installable via the documented npx skills add path without pulling the whole codebase
All reactions