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
- Variables
- func FormatAvailableSkills(skills []Definition) string
- func LoadCommandAliases(dir string, available []Definition) ([]Definition, []Diagnostic)
- func LoadCommands(dir string) ([]Definition, []Diagnostic)
- type AvailabilityOptions
- type Definition
- type Diagnostic
- type Frontmatter
- type LoadOptions
- type PromoteAction
- type PromoteConflictPolicy
- type PromoteMode
- type PromoteRequest
- type PromoteResult
- type Snapshot
- type Source
- type SourceDir
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)
Click to show internal directories.
Click to hide internal directories.