skills

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package skills contains the embedded skill definitions for tfctl.

Index

Constants

View Source
const TFCTLSkillPath = "tfctl/SKILL.md"

TFCTLSkillPath is the path to the embedded SKILL.md file within the binary.

Variables

View Source
var AgentNames []string

AgentNames is a list of the names of all supported agents.

FS is the embedded filesystem containing the skill definitions for tfctl.

Functions

This section is empty.

Types

type AgentSpec

type AgentSpec struct {
	Name                string
	DisplayName         string
	SkillsDir           string
	GlobalSkillsDir     func() string
	Detect              func() bool
	DetectParentProcess func() bool
}

AgentSpec defines the necessary information to install a skill for a coding agent.

func DetectAgent

func DetectAgent() []AgentSpec

DetectAgent returns a list of AgentSpecs for agents detected on the current system.

func GetAgent

func GetAgent(name string) (AgentSpec, bool)

GetAgent returns the AgentSpec for a given agent name, along with a boolean indicating whether the agent was found.

func (AgentSpec) InstallSkill

func (a AgentSpec) InstallSkill(global bool) error

InstallSkill installs the tfctl skill for the agent, either to the project directory or the global config directory based on the value of the global parameter.

Jump to

Keyboard shortcuts

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