#12

Fix shell parsing error in npx skills add command

Openadihexopened 2mo ago

Problem

The npx skills add vercel-labs/before-and-after#main command shown in documentation and on the landing page fails when users try to run it directly in their terminal. The # character is interpreted by the shell as a comment delimiter, causing a "no matches found" error.

Example error:

zsh: no matches found: vercel-labs/before-and-after#main

Root Cause

The command string lacks proper quoting around the argument containing the # character. Shell interpreters (zsh, bash, etc.) treat # as the start of a comment unless the argument is quoted.

Solution

Add quotes around the repository argument in all instances:

npx skills add "vercel-labs/before-and-after#main"

Locations to Fix

  1. site/app/page.tsx - Line 51 in the <Code> component
  2. README.md - Line 12 in the installation instructions section

Additional Context

This is a common issue when displaying npm/npx commands with hash fragments in documentation.

Activity

0

No activity yet.