skills

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MPL-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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