skill

package
v0.3.18 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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) BasePath

func (p *Plugin) BasePath() string

func (*Plugin) DatastoreEntries

func (p *Plugin) DatastoreEntries() []plugin.DatastoreEntry

func (*Plugin) Description

func (p *Plugin) Description() string

func (*Plugin) Healthy

func (p *Plugin) Healthy() bool

func (*Plugin) Init

func (p *Plugin) Init(_ context.Context, cfg plugin.Config) error

func (*Plugin) Migrations

func (p *Plugin) Migrations() []plugin.Migration

func (*Plugin) Name

func (p *Plugin) Name() string

func (*Plugin) RegisterRoutes

func (p *Plugin) RegisterRoutes(router chi.Router) error

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.

func (*Plugin) Version

func (p *Plugin) Version() string

Jump to

Keyboard shortcuts

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