Skip to content

install-gate: the skill repo-fetcher check only recognises owner/repo, so the URL form installs ungated #507

Closed

Description

@sandstream

The gap

6.6.2 closed the skill-installer blind spot: npx skills add <owner>/<repo> triaged only the npm wrapper, so the third-party repo it actually cloned went ungated. The fix triages the repo argument too.

It recognises exactly one argument shape. Measured against 6.6.5:

$ npx skills add cursor/plugins                                    → BLOCKED ✅
$ npx skills@latest add cursor/plugins                             → BLOCKED ✅
$ npx skills add cursor/plugins --skill unslop                     → BLOCKED ✅
$ npx skills add https://github.com/cursor/plugins --skill unslop   → ALLOWED ❌
$ npx skills add github.com/cursor/plugins                          → ALLOWED ❌
$ npx skills add git@github.com:cursor/plugins.git                  → ALLOWED ❌

Control, same harness: npm install left-pad comes back BLOCKED, so the gate is live and the silence above is a miss rather than a broken probe. The --skill flag is not the variable — the shorthand blocks with it and without it. It is the argument form.

Cause

// src/install-gate.ts
/** `owner/repo` shape — no npm scope (`@scope/name`), no scheme, no protocol. */
function ownerRepoArg(tok: string): string | null {
  if (tok.startsWith("@")) return null; // npm scope, not a repo
  return /^[\w.-]+\/[\w.-]+$/.test(tok) ? tok : null;
}

One slash, no scheme — so every URL-shaped reference to the same repo falls through repoFetcherRef() and only the skills wrapper package gets triaged. Note the gate already normalises the shorthand to a URL when it does fire (BLOCKED — triage did not pass (repo https://github.com/cursor/plugins)), so the two forms name the identical payload and get opposite verdicts.

Where each form is published

Both forms come from the registry, on different pages:

page command shown verdict
skills.sh homepage npx skills add <owner/repo> gated ✅
a collection page (/cursor/plugins) npx skills add cursor/plugins gated ✅
an individual plugin page (/cursor/plugins/unslop) npx skills add https://github.com/cursor/plugins --skill unslop ungated ❌

The shorthand is the canonical one and it works. But the per-plugin page is where you land when you search for one specific skill, so the copy-pasteable command for a single skill is the one that bypasses the gate. Observed 2026-08-20; the registry is Vercel-run and reports ~1.28M total skill installs.

What I did NOT verify

That npx skills add <URL> actually succeeds. What is measured here is that kit's gate allows the URL form — not that the skills CLI accepts it. The registry printing that line on its own product page is strong circumstantial evidence, not proof. If the CLI rejects URL arguments, this gap is latent rather than live: the fix is equally correct, the urgency lower. Worth one --help check by someone with the CLI installed before prioritising.

Suggested fix

Normalise the argument before matching, rather than widening the regex: accept https://host/owner/repo, scheme-less host/owner/repo, and git@host:owner/repo(.git), reduce each to owner/repo, and keep rejecting @scope/name. A table test over those forms plus the shorthand would pin it — the bug is that one shape was implemented and the equivalent ones were not.

Second-order, worth deciding separately

When the gate does fire, it triages the whole repo (cursor/plugins), but --skill unslop installs one subtree of a monorepo. Repo-level triage is a superset answer: it can pass a repo while saying nothing about the skill actually installed, and a monorepo of many skills widens that gap with every skill added. kit triage skill exists for the module-level question; nothing currently connects the two on this path.

Provenance

Found while researching a skill on skills.sh and testing the documented install command against the gate that was built for exactly that install path.

🤖 Generated with Claude Code

Activity

  1. added a commit that references this issue on Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions