skill

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is the built-in mcpx skill folder name.
	Name = "mcpx"
)

Variables

View Source
var (
	ErrInvalidSkillName = errors.New("invalid skill name")
)

Functions

func DefaultClaudeDir

func DefaultClaudeDir() string

DefaultClaudeDir returns the default Claude Code skills directory.

func DefaultClaudeGuidanceFile added in v1.0.0

func DefaultClaudeGuidanceFile() string

DefaultClaudeGuidanceFile returns the default Claude guidance path.

func DefaultDataAgentDir

func DefaultDataAgentDir() string

DefaultDataAgentDir returns the default data-agent skills directory.

func DefaultGuidanceFile added in v1.0.0

func DefaultGuidanceFile() string

DefaultGuidanceFile returns the default global AGENTS.md path.

func DefaultKiroDir added in v0.1.10

func DefaultKiroDir() string

DefaultKiroDir returns the default Kiro skills directory.

func DefaultKiroGuidanceFile added in v1.0.0

func DefaultKiroGuidanceFile() string

DefaultKiroGuidanceFile returns the default Kiro guidance path.

func DefaultOpenClawDir added in v0.1.24

func DefaultOpenClawDir() string

DefaultOpenClawDir returns the default OpenClaw skills directory.

func DefaultOpenClawGuidanceFile added in v1.0.0

func DefaultOpenClawGuidanceFile() string

DefaultOpenClawGuidanceFile returns the default OpenClaw guidance path.

Types

type InstallOptions

type InstallOptions struct {
	DataAgentDir       string
	ClaudeDir          string
	EnableClaudeLink   bool
	KiroDir            string
	EnableKiroLink     bool
	OpenClawDir        string
	EnableOpenClawLink bool
	EnableGuidance     bool
	GuidanceFile       string
	GuidanceText       string
}

InstallOptions controls where the built-in mcpx skill is installed.

type InstallResult

type InstallResult struct {
	SkillDir           string
	SkillFile          string
	ClaudeLink         string
	ClaudeLinkTarget   string
	KiroLink           string
	KiroLinkTarget     string
	OpenClawLink       string
	OpenClawLinkTarget string
	GuidanceFile       string
}

InstallResult describes where the skill was installed.

func InstallMCPXSkill

func InstallMCPXSkill(opts InstallOptions) (*InstallResult, error)

InstallMCPXSkill installs the built-in mcpx skill.

func InstallSkill added in v0.1.18

func InstallSkill(name string, content []byte, opts InstallOptions) (*InstallResult, error)

InstallSkill installs a named skill from caller-provided content.

Jump to

Keyboard shortcuts

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