fix: change source from "." to "./" to pass Claude Code schema validation by danielorlando97 · Pull Request #260 · coreyhaines31/marketingskills · GitHub
Skip to content

fix: change source from "." to "./" to pass Claude Code schema validation#260

Open
danielorlando97 wants to merge 1 commit intocoreyhaines31:mainfrom
danielorlando97:fix/marketplace-source-schema-validation
Open

fix: change source from "." to "./" to pass Claude Code schema validation#260
danielorlando97 wants to merge 1 commit intocoreyhaines31:mainfrom
danielorlando97:fix/marketplace-source-schema-validation

Conversation

@danielorlando97
Copy link
Copy Markdown

Problem

When running /plugin marketplace add coreyhaines31/marketingskills, Claude Code throws:

Failed to parse marketplace file at .../.claude-plugin/marketplace.json: Invalid schema:
plugins.0.source: Invalid input

The source field for the marketing-skills plugin is set to ".", which doesn't pass the Zod schema validation used by the Claude Code plugin system.

Fix

Change "source": "." to "source": "./" in .claude-plugin/marketplace.json. The two values are semantically equivalent (both refer to the current directory), but "./" passes the schema validator while "." does not.

How to reproduce

# In Claude Code:
/plugin marketplace add coreyhaines31/marketingskills
# Error: Failed to parse marketplace file... plugins.0.source: Invalid input

Tested

After applying this fix, the marketplace installs and the plugin is available:

Successfully added marketplace: marketingskills
✓ Installed marketing-skills

The Claude Code plugin system validates the marketplace.json schema using
Zod. The source field value "." does not pass validation, causing the
following error when running `/plugin marketplace add coreyhaines31/marketingskills`:

  Failed to parse marketplace file: plugins.0.source: Invalid input

Changing it to "./" (equivalent path) passes the schema validator and
allows the plugin to install correctly.
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.

1 participant