skill

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package skill exposes the markdown skill and slash-command loader used by TARS. It is meant for applications that want file-backed SKILL.md discovery, frontmatter parsing, availability filtering, and prompt formatting without depending on the TARS server.

Index

Constants

View Source
const (
	SourceWorkspace  = internal.SourceWorkspace
	SourceUser       = internal.SourceUser
	SourceBundled    = internal.SourceBundled
	SourceSessionCwd = internal.SourceSessionCwd
)
View Source
const (
	PromoteModeCopy            = internal.PromoteModeCopy
	PromoteModeMove            = internal.PromoteModeMove
	PromoteOnConflictRename    = internal.PromoteOnConflictRename
	PromoteOnConflictOverwrite = internal.PromoteOnConflictOverwrite
	PromoteOnConflictAbort     = internal.PromoteOnConflictAbort
	PromoteActionCreated       = internal.PromoteActionCreated
	PromoteActionOverwritten   = internal.PromoteActionOverwritten
	PromoteActionRenamed       = internal.PromoteActionRenamed
)

Variables

View Source
var ErrPromoteConflict = internal.ErrPromoteConflict

Functions

func FormatAvailableSkills

func FormatAvailableSkills(skills []Definition) string

func LoadCommandAliases

func LoadCommandAliases(dir string, available []Definition) ([]Definition, []Diagnostic)

func LoadCommands

func LoadCommands(dir string) ([]Definition, []Diagnostic)

Types

type AvailabilityOptions

type AvailabilityOptions = internal.AvailabilityOptions

type Definition

type Definition = internal.Definition

type Diagnostic

type Diagnostic = internal.Diagnostic

type Frontmatter

type Frontmatter = internal.Frontmatter

func ParseFrontmatter

func ParseFrontmatter(raw string) (Frontmatter, string, error)

type LoadOptions

type LoadOptions = internal.LoadOptions

type PromoteAction

type PromoteAction = internal.PromoteAction

type PromoteConflictPolicy

type PromoteConflictPolicy = internal.PromoteConflictPolicy

type PromoteMode

type PromoteMode = internal.PromoteMode

type PromoteRequest

type PromoteRequest = internal.PromoteRequest

type PromoteResult

type PromoteResult = internal.PromoteResult

func Promote

func Promote(req PromoteRequest) (PromoteResult, error)

type Snapshot

type Snapshot = internal.Snapshot

func Load

func Load(opts LoadOptions) (Snapshot, error)

type Source

type Source = internal.Source

type SourceDir

type SourceDir = internal.SourceDir

Jump to

Keyboard shortcuts

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