model

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claude

type Claude struct {
	// Description is a brief description of the command
	Description string `yaml:"description"`

	// AllowedTools lists tools the command can use
	AllowedTools string `yaml:"allowed-tools"`
}

Claude contains the Claude-specific properties from frontmatter

type Command

type Command struct {
	// Description is a top-level description that can be used by any agent
	Description string `yaml:"description"`

	// Roo contains the command properties from frontmatter
	Roo Roo `yaml:"roo"`

	// Claude contains Claude-specific properties from frontmatter
	Claude Claude `yaml:"claude"`

	// Copilot contains Copilot-specific properties from frontmatter
	Copilot Copilot `yaml:"copilot"`

	// Content is the main content of the command (not in frontmatter)
	Content string `yaml:"-"`

	// Path is the original file path (not in frontmatter)
	Path string `yaml:"-"`
}

Command represents a command definition

func ParseCommand

func ParseCommand(path string, content []byte) (*Command, error)

ParseCommand parses a command definition from file content

type Copilot

type Copilot struct {
	// Mode is the chat mode (ask, edit, agent)
	Mode string `yaml:"mode,omitempty"`

	// Model is the AI model to use
	Model string `yaml:"model,omitempty"`

	// Tools are the available tools
	Tools []string `yaml:"tools,omitempty"`

	// Description is the prompt description
	Description string `yaml:"description,omitempty"`
}

Copilot contains the Copilot-specific properties from frontmatter

type Roo

type Roo struct {
	// Slug is the command identifier
	Slug string `yaml:"slug"`

	// Name is the display name of the command
	Name string `yaml:"name"`

	// Description is a brief description of the command
	Description string `yaml:"description"`

	// RoleDefinition describes what the command does
	RoleDefinition string `yaml:"roleDefinition"`

	// WhenToUse describes when to use the command
	WhenToUse string `yaml:"whenToUse"`

	// Groups are permission groups for the command
	Groups any `yaml:"groups"`
}

Roo contains the command properties from frontmatter

Jump to

Keyboard shortcuts

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