Skip to content

feat(agent-skills): marketplace.json build, validate, and audit#57

Merged
jdutton merged 3 commits intomainfrom
feat/marketplace-json-build-validate
Mar 5, 2026
Merged

feat(agent-skills): marketplace.json build, validate, and audit#57
jdutton merged 3 commits intomainfrom
feat/marketplace-json-build-validate

Conversation

@jdutton
Copy link
Owner

@jdutton jdutton commented Mar 5, 2026

Summary

  • Add MarketplaceManifestSchema (Zod, passthrough) supporting all official source types (string, github, url, npm, pip)
  • Add validateMarketplace() validator mirroring the plugin-validator pattern
  • Generate marketplace.json in vat claude build with relative source paths
  • Validate marketplace.json in vat claude verify against the schema
  • Route marketplace type through unified validator, replacing the placeholder UNKNOWN_FORMAT error
  • Make plugin description optional in VAT project config (adopter compatibility)
  • Add marketplace-level skills selector to config schema

Verification

  • Schema verified against official Anthropic docs and real-world fixtures (claude-plugins-official, anthropic-agent-skills, superpowers)
  • Tested in avonrisk-sdlc adopter project — vat build + vat verify both pass
  • vat audit --user now correctly validates 4 marketplaces (previously returned UNKNOWN_FORMAT)
  • All 14 validation steps pass across 3 phases (build, integration, system tests)

Test plan

  • bun run validate passes (14/14 steps)
  • New unit tests: marketplace-manifest.test.ts (13 tests), marketplace-validator.test.ts (5 tests)
  • Updated existing tests: unified-validator, audit integration, audit system tests
  • Dogfood: vat build --cwd packages/vat-development-agents generates marketplace.json
  • Dogfood: vat verify --cwd packages/vat-development-agents validates it
  • Adopter: VAT_ROOT_DIR=. vat build in avonrisk-sdlc succeeds
  • Adopter: VAT_ROOT_DIR=. vat verify in avonrisk-sdlc passes all phases
  • vat audit --user shows no UNKNOWN_FORMAT for marketplace directories

🤖 Generated with Claude Code

Add full marketplace.json lifecycle support:

- Create MarketplaceManifestSchema (Zod, passthrough per Postel's Law)
  supporting all official source types (string, github, url, npm, pip)
- Create validateMarketplace() mirroring plugin-validator pattern
- Generate marketplace.json in `vat claude build` with relative source paths
- Validate marketplace.json in `vat claude verify`
- Route marketplace type through unified validator (replaces placeholder error)
- Make plugin description optional in VAT config (adopter compatibility)
- Add marketplace-level skills selector to config schema

Verified against official Anthropic docs and real-world fixtures including
claude-plugins-official, anthropic-agent-skills, and superpowers marketplaces.
Tested in avonrisk-sdlc adopter project.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Mar 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.35%. Comparing base (ae7bd64) to head (4443891).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #57      +/-   ##
==========================================
+ Coverage   74.22%   74.35%   +0.13%     
==========================================
  Files         164      165       +1     
  Lines       12315    12379      +64     
  Branches     2173     2187      +14     
==========================================
+ Hits         9141     9205      +64     
  Misses       3174     3174              
Files with missing lines Coverage Δ
...ent-skills/src/validators/marketplace-validator.ts 100.00% <100.00%> (ø)
...s/agent-skills/src/validators/unified-validator.ts 64.28% <100.00%> (-5.42%) ⬇️
Files with missing lines Coverage Δ
...ent-skills/src/validators/marketplace-validator.ts 100.00% <100.00%> (ø)
...s/agent-skills/src/validators/unified-validator.ts 64.28% <100.00%> (-5.42%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

jdutton and others added 2 commits March 4, 2026 20:27
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Requires CHANGELOG.md update and version bump prompt before creating PRs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 5, 2026

@jdutton jdutton merged commit 46a329b into main Mar 5, 2026
7 checks passed
@jdutton jdutton deleted the feat/marketplace-json-build-validate branch March 5, 2026 01:49
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