Documentation
¶
Index ¶
- func MarketplaceHandler(provider *skillcatalog.DBSkillCatalog, cfg skillcatalog.MarketplaceConfig) http.HandlerFunc
- type Plugin
- func (p *Plugin) BasePath() string
- func (p *Plugin) DatastoreEntries() []plugin.DatastoreEntry
- func (p *Plugin) Description() string
- func (p *Plugin) Healthy() bool
- func (p *Plugin) Init(_ context.Context, cfg plugin.Config) error
- func (p *Plugin) Migrations() []plugin.Migration
- func (p *Plugin) Name() string
- func (p *Plugin) RegisterRoutes(router chi.Router) error
- func (p *Plugin) SkillPreviewer() v1.SkillSourcePreviewer
- func (p *Plugin) SkillSources() *skillcatalog.SkillSourceCollection
- func (p *Plugin) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarketplaceHandler ¶
func MarketplaceHandler(provider *skillcatalog.DBSkillCatalog, cfg skillcatalog.MarketplaceConfig) http.HandlerFunc
MarketplaceHandler renders the indexed skills as a Claude Code plugin marketplace document. The optional `audience` query parameter selects the clone URL base for git-subdir sources ("cluster" for in-cluster consumers); see MarketplaceConfig.Options.
Types ¶
type Plugin ¶
type Plugin struct {
*plugin.PluginBase
// contains filtered or unexported fields
}
func (*Plugin) DatastoreEntries ¶
func (p *Plugin) DatastoreEntries() []plugin.DatastoreEntry
func (*Plugin) Description ¶
func (*Plugin) Migrations ¶
func (*Plugin) SkillPreviewer ¶
func (p *Plugin) SkillPreviewer() v1.SkillSourcePreviewer
SkillPreviewer returns the skill source previewer for cross-plugin access. The model plugin injects it into the shared sources/preview endpoint so an assetType: skills preview resolves through the skill catalog's own resolver.
func (*Plugin) SkillSources ¶
func (p *Plugin) SkillSources() *skillcatalog.SkillSourceCollection
SkillSources returns the loader's source collection for cross-plugin access. The model plugin injects it into FindSources so skill sources appear alongside model/MCP/agent sources when queried with assetType: skills.