skill

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeNotifier

type ChangeNotifier interface {
	NotifySkillChange(projectID string)
}

ChangeNotifier is called after skill CRUD operations to notify connected agents that they should re-sync their local skill definitions.

type Repository

type Repository interface {
	Create(ctx context.Context, s *Skill) error
	Get(ctx context.Context, id string) (*Skill, error)
	List(ctx context.Context, projectID string, limit, offset int) ([]*Skill, int, error)
	FindByName(ctx context.Context, projectID, name string) (*Skill, error)
	Update(ctx context.Context, s *Skill) error
	Delete(ctx context.Context, id string) error
}

type Server

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

func NewServer

func NewServer(repo Repository, notifier ...ChangeNotifier) *Server

func (*Server) SyncSkillsFromDir

SyncSkillsFromDir scans a directory for .claude/skills/*/SKILL.md files and syncs them.

type Skill

type Skill struct {
	ID                     string    `yaml:"id"`
	ProjectID              string    `yaml:"project_id"`
	Name                   string    `yaml:"name"`
	Description            string    `yaml:"description"`
	Content                string    `yaml:"content"`
	DisableModelInvocation bool      `yaml:"disable_model_invocation"`
	UserInvocable          bool      `yaml:"user_invocable"`
	AllowedTools           []string  `yaml:"allowed_tools"`
	Model                  string    `yaml:"model"`
	Context                string    `yaml:"context"`
	Agent                  string    `yaml:"agent"`
	ArgumentHint           string    `yaml:"argument_hint"`
	IsSynced               bool      `yaml:"is_synced"`
	CreatedAt              time.Time `yaml:"created_at"`
	UpdatedAt              time.Time `yaml:"updated_at"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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