Skip to content

[skills] Rename upstream/SKILL.md to UPSTREAM.md to avoid duplicate skill names - #426

Open
cavalcanticampos wants to merge 1 commit into
vercel:mainfrom
cavalcanticampos:fix/156-skills-rename-upstream-skill-md-to-upstr
Open

cavalcanticampos wants to merge 1 commit into
vercel:mainfrom
cavalcanticampos:fix/156-skills-rename-upstream-skill-md-to-upstr

Conversation

@cavalcanticampos

Copy link
Copy Markdown
Contributor

Problem

Adding vercel/vercel-plugin as a marketplace on claude.ai fails with failed_content: the validator walks every SKILL.md under skills/ and rejects the plugin when two declare the same name: (e.g. skills/ai-sdk/SKILL.md and skills/ai-sdk/upstream/SKILL.md, both name: ai-sdk). Claude Code's local loader tolerates this, so the plugin works locally but cannot be enabled at the account level.

Fixes #156

Cause

Synced skills keep the pristine upstream file at skills/<name>/upstream/SKILL.md, and build:skills merges it with overlay.yaml into skills/<name>/SKILL.md. On main, 8 of those upstream copies share their name: with the built skill: ai-sdk, chat-sdk, eve, flags-sdk, is-agentic, vercel-cli, vercel-flags, workflow.

Fix

  • Rename every skills/*/upstream/SKILL.md to skills/*/upstream/UPSTREAM.md (pure git mv, content unchanged).
  • scripts/build-skills.ts reads upstream/UPSTREAM.md.
  • README layout and sync instructions updated.

Only 8 upstream files currently duplicate a name. react-best-practices and vercel-sandbox declare different names upstream, but they are renamed too so the build reads a single path (upstream/UPSTREAM.md) for every synced skill and a future upstream rename can't reintroduce the collision.

The built skills/*/SKILL.md files are unchanged.

Tests

New tests/skill-names-unique.test.ts (read-only, writes nothing):

  • no two SKILL.md files under skills/ share a name: fails on main with the 8 duplicates above, passes with this change.
  • synced skills keep their upstream copy in upstream/UPSTREAM.md: for each skill with overlay.yaml, asserts there is no upstream/SKILL.md, that upstream/UPSTREAM.md exists, and that the committed SKILL.md equals the same overlay + upstream-body merge build:skills does. Fails on main (no UPSTREAM.md), passes with this change.

Ran: bun test tests/skill-names-unique.test.ts (2 pass). Not run: the full test suite, and an actual sync against claude.ai.

🤖 Generated with Claude Code

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Marketplace sync to claude.ai fails validation: duplicate skill names from nested skills/*/upstream/ directories

1 participant