skillstore

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: MPL-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateSkill

func ValidateSkill(skill *spec.Skill) error

ValidateSkill applies the Skill Store's structural rules to a projected Skill. Callers retain ownership of the supplied value.

func ValidateSkillArtifactMetadata

func ValidateSkillArtifactMetadata(
	name string,
	description string,
	arguments []agentskillsSpec.SkillArgument,
) error

ValidateSkillArtifactMetadata applies the source-package rules shared by managed Skill creation and other materialized SKILL.md workflows.

Types

type BuiltInSkills

type BuiltInSkills struct {
	// contains filtered or unexported fields
}

func NewBuiltInSkills

func NewBuiltInSkills(
	ctx context.Context,
	overlayBaseDir string,
	maxSnapshotAge time.Duration,
	opts ...BuiltInSkillsOption,
) (b *BuiltInSkills, err error)

func (*BuiltInSkills) Close

func (b *BuiltInSkills) Close() error

func (*BuiltInSkills) GetBuiltInSkill

func (b *BuiltInSkills) GetBuiltInSkill(
	ctx context.Context,
	bundleID bundleitemutils.BundleID,
	slug spec.SkillSlug,
) (spec.Skill, error)

func (*BuiltInSkills) GetBuiltInSkillBundle

func (b *BuiltInSkills) GetBuiltInSkillBundle(
	ctx context.Context,
	id bundleitemutils.BundleID,
) (spec.SkillBundle, error)

func (*BuiltInSkills) ListBuiltInSkills

func (b *BuiltInSkills) ListBuiltInSkills(ctx context.Context) (
	bundles map[bundleitemutils.BundleID]spec.SkillBundle,
	skills map[bundleitemutils.BundleID]map[spec.SkillSlug]spec.Skill,
	err error,
)

func (*BuiltInSkills) SetSkillBundleEnabled

func (b *BuiltInSkills) SetSkillBundleEnabled(
	ctx context.Context,
	id bundleitemutils.BundleID,
	enabled bool,
) (spec.SkillBundle, error)

func (*BuiltInSkills) SetSkillEnabled

func (b *BuiltInSkills) SetSkillEnabled(
	ctx context.Context,
	bundleID bundleitemutils.BundleID,
	slug spec.SkillSlug,
	enabled bool,
) (spec.Skill, error)

type BuiltInSkillsOption

type BuiltInSkillsOption func(*BuiltInSkills)

func WithBuiltInSkillsFS

func WithBuiltInSkillsFS(fsys fs.FS, root string) BuiltInSkillsOption

type SkillSource

type SkillSource struct {
	Type     string
	Name     string
	Location string
}

SkillSource identifies a materialized source package. It is a storage/source projection, not a runtime catalog identity.

type SkillStore

type SkillStore struct {
	// contains filtered or unexported fields
}

SkillStore owns durable Skill management state. It has no session, prompt, catalog, provider, or Agent Skills runtime lifecycle dependency.

func NewSkillStore

func NewSkillStore(baseDir string, opts ...SkillStoreOption) (*SkillStore, error)

func (*SkillStore) Close

func (s *SkillStore) Close()

func (*SkillStore) DeleteSkill

func (*SkillStore) DeleteSkillBundle

func (*SkillStore) GetSkill

func (s *SkillStore) GetSkill(
	ctx context.Context,
	req *spec.GetSkillRequest,
) (*spec.GetSkillResponse, error)

func (*SkillStore) ListSkillBundles

func (*SkillStore) ListSkills

func (*SkillStore) PatchSkill

func (s *SkillStore) PatchSkill(
	ctx context.Context,
	req *spec.PatchSkillRequest,
) (*spec.PatchSkillResponse, error)

func (*SkillStore) PatchSkillBundle

func (*SkillStore) PutSkill

func (s *SkillStore) PutSkill(
	ctx context.Context,
	req *spec.PutSkillRequest,
) (*spec.PutSkillResponse, error)

func (*SkillStore) PutSkillArtifact

func (s *SkillStore) PutSkillArtifact(
	ctx context.Context,
	req *spec.PutSkillArtifactRequest,
) (resp *spec.PutSkillArtifactResponse, err error)

func (*SkillStore) PutSkillBundle

func (*SkillStore) ResolveSkillSource

func (s *SkillStore) ResolveSkillSource(
	value spec.Skill,
) (SkillSource, error)

ResolveSkillSource resolves an installed record into an accessible source. Built-in embedded packages are materialized and translated to filesystem sources entirely inside skillstore.

type SkillStoreOption

type SkillStoreOption func(*skillStoreOptions) error

func WithEmbeddedHydrateDir

func WithEmbeddedHydrateDir(dir string) SkillStoreOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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