Documentation
¶
Overview ¶
Package agentskill handles installation of the Brev CLI agent skill
Index ¶
- func GetSkillDir(homeDir string) string
- func GetSkillDirs(homeDir string) []string
- func InstallSkill(t *terminal.Terminal, homeDir string, quiet bool) error
- func IsClaudeInstalled(homeDir string) bool
- func IsSkillInstalled(homeDir string) bool
- func NewCmdAgentSkill(t *terminal.Terminal, store AgentSkillStore) *cobra.Command
- func PromptInstallSkill(t *terminal.Terminal, homeDir string) bool
- func PromptInstallSkillSimple() bool
- func RunInstallSkillIfWanted(t *terminal.Terminal, homeDir string)
- func UninstallSkill(t *terminal.Terminal, homeDir string) error
- type AgentSkillStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSkillDir ¶
GetSkillDir returns the primary skill directory (for backwards compat)
func GetSkillDirs ¶
GetSkillDirs returns all paths where the skill should be installed
func InstallSkill ¶
InstallSkill downloads and installs the agent skill to all install paths
func IsClaudeInstalled ¶
IsClaudeInstalled checks if Claude Code appears to be installed
func IsSkillInstalled ¶
IsSkillInstalled checks if the brev-cli skill is installed in any location
func NewCmdAgentSkill ¶
func NewCmdAgentSkill(t *terminal.Terminal, store AgentSkillStore) *cobra.Command
NewCmdAgentSkill creates the agent-skill command with install/uninstall subcommands
func PromptInstallSkill ¶
PromptInstallSkill asks the user if they want to install the agent skill Returns true if they want to install, false otherwise
func PromptInstallSkillSimple ¶
func PromptInstallSkillSimple() bool
PromptInstallSkillSimple is a simpler yes/no prompt for the login flow
func RunInstallSkillIfWanted ¶
RunInstallSkillIfWanted prompts and installs if user wants it This is called from the login flow
Types ¶
type AgentSkillStore ¶
AgentSkillStore interface for any store dependencies