schema

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package schema exposes the embedded Claude Code plugin and marketplace JSON schemas.

The schemas are a synthesis of Anthropic's published plugin docs (code.claude.com/docs/en/plugins-reference and plugin-marketplaces), the unofficial hesreallyhim/claude-code-json-schema project, and real plugin.json files in the wild. They are deliberately a touch stricter than the official CLI validator in some places (semver pattern on version) and stricter than docs in others (additionalProperties: false at the top level). Runtime rules in internal/rules handle cases that do not round-trip cleanly through JSON Schema.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarketplaceSchema

func MarketplaceSchema() []byte

MarketplaceSchema returns the bytes of the marketplace.json schema.

func PluginSchema

func PluginSchema() []byte

PluginSchema returns the bytes of the plugin.json schema.

Types

type Kind

type Kind string

Kind identifies which embedded schema a caller wants.

const (
	// KindPlugin is the `.claude-plugin/plugin.json` schema.
	KindPlugin Kind = "plugin"
	// KindMarketplace is the `.claude-plugin/marketplace.json` schema.
	KindMarketplace Kind = "marketplace"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL