Documentation
¶
Index ¶
- Constants
- Variables
- func DefaultClaudeDir() string
- func DefaultClaudeGuidanceFile() string
- func DefaultDataAgentDir() string
- func DefaultGuidanceFile() string
- func DefaultKiroDir() string
- func DefaultKiroGuidanceFile() string
- func DefaultOpenClawDir() string
- func DefaultOpenClawGuidanceFile() string
- type InstallOptions
- type InstallResult
Constants ¶
const (
// Name is the built-in mcpx skill folder name.
Name = "mcpx"
)
Variables ¶
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.