Skip to content

fix: marketplace.json schema + scaffold component paths + CI validation#5

Merged
minsoo-web merged 1 commit intomainfrom
marketplace-json
Mar 2, 2026
Merged

fix: marketplace.json schema + scaffold component paths + CI validation#5
minsoo-web merged 1 commit intomainfrom
marketplace-json

Conversation

@minsoo-web
Copy link
Member

Summary

  • Fix marketplace.json schema: Rewrites .claude-plugin/marketplace.json to match the required schema — adds owner object, version, renames skillsplugins, changes pathsource, and removes non-standard repository/homepage fields. Fixes claude plugin marketplace add https://github.com/hamsurang/kit failure.
  • Fix scaffold-plugin.sh: Generated plugin.json now conditionally includes commands, skills, agents, and mcpServers path fields when the user selects those components during scaffolding. Bash fallback rewritten with printf + if for valid JSON without trailing commas.
  • Add validate-marketplace.js: New CI script at .github/scripts/validate-marketplace.js that validates required fields (name, owner.name, plugins[].name, plugins[].source).
  • Update validate-plugin.yml: Adds .claude-plugin/marketplace.json to the paths: trigger and a validate-marketplace job so marketplace schema is checked on every PR that touches it.
  • Add update-version.md: New /update-version slash command that diffs vs main, determines the correct semver bump (patch/minor/major) per changed plugin, and updates plugin.json and marketplace.json accordingly.

Test plan

  • Run node .github/scripts/validate-marketplace.js .claude-plugin/marketplace.json → expect OK: marketplace kit with 1 plugin(s)
  • Run bash scripts/scaffold-plugin.sh locally, select skills → verify generated plugin.json includes "skills": "./skills/"
  • Confirm CI validate-marketplace job passes on this PR

🤖 Generated with Claude Code

- Rewrite .claude-plugin/marketplace.json to match required schema:
  add owner, version, rename skills→plugins, path→source
- Fix scaffold-plugin.sh: generated plugin.json now includes
  commands/skills/agents/mcpServers paths when components are selected
- Add .github/scripts/validate-marketplace.js for schema validation
- Add validate-marketplace CI job + marketplace.json path trigger
- Add .claude/commands/update-version.md for semver auto-bump

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@minsoo-web minsoo-web merged commit 4949afd into main Mar 2, 2026
3 checks passed
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