starter

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package starter provides embedded starter commands that ship with staghorn.

Package starter provides embedded starter configs that ship with staghorn.

Package starter provides embedded starter skills that ship with staghorn.

Package starter provides embedded starter templates that ship with staghorn.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapCommands

func BootstrapCommands(targetDir string) (int, error)

BootstrapCommands copies starter commands to the target directory. It skips files that already exist. Returns the number of commands copied.

func BootstrapCommandsSelective

func BootstrapCommandsSelective(targetDir string, names []string) (int, []string, error)

BootstrapCommandsSelective copies only the specified starter commands to the target directory. It skips files that already exist. Returns the count and names of installed commands.

func BootstrapCommandsWithSkip

func BootstrapCommandsWithSkip(targetDir string, skip []string) (int, []string, error)

BootstrapCommandsWithSkip copies starter commands to the target directory, skipping commands in the skip list. Returns the count and names of installed commands.

func BootstrapEvals added in v0.4.0

func BootstrapEvals(targetDir string) (int, []string, error)

BootstrapEvals copies starter evals to the target directory. It skips files that already exist. Returns the number of files copied and their names.

func BootstrapEvalsSelective added in v0.4.0

func BootstrapEvalsSelective(targetDir string, names []string) (int, []string, error)

BootstrapEvalsSelective copies only the specified starter evals to the target directory.

func BootstrapLanguages

func BootstrapLanguages(targetDir string) (int, error)

BootstrapLanguages copies starter language configs to the target directory. It skips files that already exist. Returns the number of files copied.

func BootstrapLanguagesSelective

func BootstrapLanguagesSelective(targetDir string, names []string) (int, []string, error)

BootstrapLanguagesSelective copies only the specified starter language configs to the target directory. It skips files that already exist. Returns the count and names of installed configs.

func BootstrapRules added in v0.8.0

func BootstrapRules(targetDir string) (int, error)

BootstrapRules copies starter rules to the target directory. It skips files that already exist. Returns the number of rules copied.

func BootstrapRulesWithSkip added in v0.8.0

func BootstrapRulesWithSkip(targetDir string, skip []string) (int, []string, error)

BootstrapRulesWithSkip copies starter rules to the target directory, skipping rules in the skip list. Returns the count and names of installed rules.

func BootstrapSkills added in v0.8.0

func BootstrapSkills(targetDir string) (int, error)

BootstrapSkills copies starter skills to the target directory. It skips skills that already exist. Returns the number of skills copied.

func BootstrapSkillsSelective added in v0.8.0

func BootstrapSkillsSelective(targetDir string, names []string) (int, []string, error)

BootstrapSkillsSelective copies only the specified starter skills to the target directory. It skips skills that already exist. Returns the count and names of installed skills.

func BootstrapSkillsWithSkip added in v0.8.0

func BootstrapSkillsWithSkip(targetDir string, skip []string) (int, []string, error)

BootstrapSkillsWithSkip copies starter skills to the target directory, skipping skills in the skip list. Returns the count and names of installed skills.

func BootstrapTemplates

func BootstrapTemplates(targetDir string) (int, error)

BootstrapTemplates copies starter templates to the target directory. It skips files that already exist. Returns the number of templates copied.

func CommandNames

func CommandNames() []string

CommandNames returns the list of available starter command names.

func EvalNames added in v0.4.0

func EvalNames() []string

EvalNames returns the list of available starter eval names.

func GetCommand

func GetCommand(name string) ([]byte, error)

GetCommand returns the content of a starter command by name.

func GetEval added in v0.4.0

func GetEval(name string) ([]byte, error)

GetEval returns the content of a starter eval by name.

func GetLanguageConfig

func GetLanguageConfig(langID string) ([]byte, error)

GetLanguageConfig returns the content of a starter language config by ID.

func GetRule added in v0.8.0

func GetRule(relPath string) ([]byte, error)

GetRule returns the content of a starter rule by relative path.

func GetSkill added in v0.8.0

func GetSkill(name string) ([]byte, error)

GetSkill returns the SKILL.md content for a starter skill by name.

func GetTemplate

func GetTemplate(name string) ([]byte, error)

GetTemplate returns the content of a starter template by name.

func LanguageNames

func LanguageNames() []string

LanguageNames returns the list of available starter language config names.

func ListCommands

func ListCommands() ([]fs.DirEntry, error)

ListCommands returns all embedded command files.

func ListRules added in v0.8.0

func ListRules() ([]fs.DirEntry, error)

ListRules returns all embedded rule files.

func ListSkills added in v0.8.0

func ListSkills() ([]fs.DirEntry, error)

ListSkills returns all embedded skill directories.

func LoadStarterCommands

func LoadStarterCommands() ([]*commands.Command, error)

LoadStarterCommands loads and parses all embedded starter commands.

func LoadStarterEvals added in v0.4.0

func LoadStarterEvals() ([]*eval.Eval, error)

LoadStarterEvals loads and parses all embedded starter evals.

func LoadStarterRules added in v0.8.0

func LoadStarterRules() ([]*rules.Rule, error)

LoadStarterRules loads and parses all embedded starter rules.

func LoadStarterSkills added in v0.8.0

func LoadStarterSkills() ([]*skills.Skill, error)

LoadStarterSkills loads and parses all embedded starter skills.

func RuleNames added in v0.8.0

func RuleNames() []string

RuleNames returns the list of available starter rule names (relative paths).

func SkillNames added in v0.8.0

func SkillNames() []string

SkillNames returns the list of available starter skill names.

func TemplateNames

func TemplateNames() []string

TemplateNames returns the list of available starter template names.

Types

This section is empty.

Jump to

Keyboard shortcuts

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