agentskill

package
v0.6.317 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package agentskill handles installation of the Brev CLI agent skill

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSkillDir

func GetSkillDir(homeDir string) string

GetSkillDir returns the primary skill directory (for backwards compat)

func GetSkillDirs

func GetSkillDirs(homeDir string) []string

GetSkillDirs returns all paths where the skill should be installed

func InstallSkill

func InstallSkill(t *terminal.Terminal, homeDir string, quiet bool) error

InstallSkill downloads and installs the agent skill to all install paths

func IsClaudeInstalled

func IsClaudeInstalled(homeDir string) bool

IsClaudeInstalled checks if Claude Code appears to be installed

func IsSkillInstalled

func IsSkillInstalled(homeDir string) bool

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

func PromptInstallSkill(t *terminal.Terminal, homeDir string) bool

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

func RunInstallSkillIfWanted(t *terminal.Terminal, homeDir string)

RunInstallSkillIfWanted prompts and installs if user wants it This is called from the login flow

func UninstallSkill

func UninstallSkill(t *terminal.Terminal, homeDir string) error

UninstallSkill removes the agent skill from all install paths

Types

type AgentSkillStore

type AgentSkillStore interface {
	UserHomeDir() (string, error)
}

AgentSkillStore interface for any store dependencies

Jump to

Keyboard shortcuts

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