feat(cli): run and add accept repository, curator, and collection refs - #131
Open
harlan-zw wants to merge 6 commits into
Open
feat(cli): run and add accept repository, curator, and collection refs#131harlan-zw wants to merge 6 commits into
harlan-zw wants to merge 6 commits into
Conversation
Contributor
🤖 STOPPED
The automated review stopped. Reason: The current head commit already has an automated review. Push a new commit to start a new review. To review this commit again, comment |
skilld.dev prints `npx skilld add gh:owner/repo`, `@login`, and
`@login/slug`, but the v3 CLI had no `add` and `run` took one Skill.
`skilld run <ref>` now prints an index: one line per Skill with its run
command, and loads none of them. `skilld add <ref>` installs every
Skill the ref names through the hosted Artifact path `install` uses.
`skilld add <selector>` installs one Skill like `install`.
Refs parse once into `SkillRef` in skilld-core. Listings come from
`/api/skills?owner=`, `/api/curators/{login}`, and
`/api/collections/by-author/{login}/{slug}`.
Claude-Session: https://claude.ai/code/session_018T67Ndp8FAjnHWthXABbJW
harlan-zw
force-pushed
the
feat/multi-skill-refs
branch
from
September 1, 2026 15:37
ff970d5 to
be5d693
Compare
# Conflicts: # crates/skilld-command/src/lib.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
❓ Type of change
📚 Description
The homepage, owner pages, and collection pages print
npx skilld add gh:owner/repo,npx skilld add @login, andnpx skilld add @login/slug. The v3 CLI had noadd, andrunrefused anything but one Skill, so every one of those commands failed againstskilld@beta. ROADMAP "Now" item 4.skilld run <ref>answers with an index and loads nothing.skilld add <ref>installs every Skill the ref names through the same hosted Artifact pathinstalluses, with--global,--agent, and--mode.skilld add <selector>isinstallfor one Skill, so the site can settle on one verb if it wants to.gh:owner/repo/skillandnpm:are rejected with a message that names the form to use instead.Live, against skilld.dev:
Endpoints:
GET /api/skills?owner=&limit=200(filtered to the repository client side),GET /api/curators/{login},GET /api/collections/by-author/{login}/{slug}. None of these are inskilld-protocolor the/api/v1OpenAPI. I went with the collection detail route over the protocol-typed/manifestbecause the manifest reports the seeded collections asnpmpackages (for exampleapple-appsis sixnpmitems), while the detail route has them resolved toowner/repo/nameplus the curator'sreason, which the index prints as the description.Protocol gaps worth a site PR: a
repositoryfilter on/api/v1/skills(orowner+repositoryquery params reusingpresentSkillSearch) so the Repository listing stops paging an owner's whole index, and v1 routes for curator and collection listings. A missing curator returns200with no collections, so the CLI reportsSOURCE_NOT_FOUND: @x names no Skills that skilld.dev listsrather than "no such curator".Open question:
addstops at the first failed install and says how many landed. Should it continue and report the failures at the end instead?https://claude.ai/code/session_018T67Ndp8FAjnHWthXABbJW