Versions in this module Expand all Collapse all v0 v0.3.0 May 26, 2026 v0.2.1 May 26, 2026 Changes in this version + func FormatPattern(p *PromptPattern) string + func FormatSkill(skill *Skill) string + func RenderTree(files []string) string + type FewShotExample struct + CreatedAt time.Time + Prompt string + Quality float64 + Response string + TaskType string + UsedCount int + type FewShotStore struct + func NewFewShotStore() *FewShotStore + func (fs *FewShotStore) FormatForPrompt(prompt string) string + func (fs *FewShotStore) Record(prompt, response, taskType string) + func (fs *FewShotStore) Retrieve(prompt string, topK int) []FewShotExample + type PatternLibrary struct + Dir string + Patterns map[string]*PromptPattern + func NewPatternLibrary(dir string) *PatternLibrary + func (pl *PatternLibrary) Apply(patternName string, input string) (string, string, error) + func (pl *PatternLibrary) Chain(patterns []string, input string) []string + func (pl *PatternLibrary) Get(name string) *PromptPattern + func (pl *PatternLibrary) ListByTag(tag string) []*PromptPattern + func (pl *PatternLibrary) LoadBuiltins() + func (pl *PatternLibrary) LoadFromDir(dir string) error + func (pl *PatternLibrary) Register(pattern *PromptPattern) + func (pl *PatternLibrary) Remove(name string) + func (pl *PatternLibrary) Search(query string) []*PromptPattern + type PromptPattern struct + Author string + Description string + Name string + OutputFormat string + SystemPrompt string + Tags []string + UserTemplate string + Version string + type Recipe struct + Author string + CreatedAt time.Time + Description string + ID string + Model string + Name string + Prompt string + Provider string + Settings map[string]interface{} + Tools []string + Version string + type RecipeRegistry struct + Dir string + Recipes map[string]*Recipe + func NewRecipeRegistry(dir string) *RecipeRegistry + func (r *RecipeRegistry) Create(recipe *Recipe) string + func (r *RecipeRegistry) Decode(deeplink string) (*Recipe, error) + func (r *RecipeRegistry) Encode(recipe *Recipe) string + func (r *RecipeRegistry) Execute(ctx context.Context, recipe *Recipe, ...) (string, error) + func (r *RecipeRegistry) FormatRecipe(recipe *Recipe) string + func (r *RecipeRegistry) Get(id string) *Recipe + func (r *RecipeRegistry) ImportFromURL(url string) (*Recipe, error) + func (r *RecipeRegistry) List() []*Recipe + func (r *RecipeRegistry) Load() error + func (r *RecipeRegistry) Save() error + func (r *RecipeRegistry) Share(recipe *Recipe) string + func (r *RecipeRegistry) Validate(recipe *Recipe) []string + type Scaffolder struct + TemplateDir string + Templates map[string]*Template + func NewScaffolder() *Scaffolder + func (s *Scaffolder) Generate(templateName string, vars map[string]string, outputDir string) error + func (s *Scaffolder) ListTemplates() []*Template + func (s *Scaffolder) LoadTemplate(path string) (*Template, error) + func (s *Scaffolder) Preview(templateName string, vars map[string]string) string + func (s *Scaffolder) RegisterTemplate(t *Template) + func (s *Scaffolder) ValidateVars(tmpl *Template, vars map[string]string) []string + type Skill struct + Author string + CreatedAt time.Time + Description string + ID string + Language string + Name string + Steps []SkillStep + SuccessRate float64 + Tags []string + UsageCount int + type SkillRegistry struct + Dir string + Skills map[string]*Skill + func NewSkillRegistry(dir string) *SkillRegistry + func (r *SkillRegistry) Execute(ctx context.Context, skillID string, vars map[string]string, ...) (*SkillResult, error) + func (r *SkillRegistry) Get(id string) *Skill + func (r *SkillRegistry) LearnFromSession(goal string, toolCalls []string, outcome string) *Skill + func (r *SkillRegistry) ListByTag(tag string) []*Skill + func (r *SkillRegistry) Load() error + func (r *SkillRegistry) Register(skill *Skill) error + func (r *SkillRegistry) Remove(id string) error + func (r *SkillRegistry) Save() error + func (r *SkillRegistry) Search(query string, tags []string) []*Skill + func (r *SkillRegistry) UpdateStats(id string, success bool) + type SkillResult struct + Duration time.Duration + Outputs []string + SkillID string + StepsCompleted int + Success bool + TotalSteps int + type SkillStep struct + Action string + Content string + ExpectedOutcome string + Fallback string + Order int + ToolName string + type Template struct + Description string + Files []TemplateFile + Framework string + Language string + Name string + PostCreate []string + Variables []TemplateVariable + type TemplateFile struct + Condition string + Content string + Mode os.FileMode + Path string + type TemplateVariable struct + Choices []string + Default string + Description string + Name string + Required bool + Type string