Help us shape the future of Go! Take the 2026 Go Developer Survey

skills

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package skills holds the agent skill files tuios ships, embedded so the copy a binary prints is the copy that was built into it.

A skill fetched from anywhere else can describe commands the running build does not have. Embedding removes that failure mode: `tuios --skill` and skills/tuios/SKILL.md are the same bytes by construction.

The skill is split so an agent loads only what it needs. SKILL.md is the core every agent in a pane reads. Each other file in skills/tuios is a topic, printed by `tuios --skill <topic>`, and the core's last section lists them.

Index

Constants

This section is empty.

Variables

View Source
var TUIOS string

TUIOS is the core skill that teaches an agent to drive tuios from inside a pane. It is what `tuios --skill` prints.

Functions

func All

func All() string

All returns the core and then every topic, each separated by a blank line. It is the whole skill, for a reader that wants it in one go.

func Lookup

func Lookup(name string) (string, error)

Lookup returns the text `tuios --skill <name>` prints. The empty name and "core" are the core, "all" is the core followed by every topic, and any other name is a topic. An unknown name is an error that lists the topics.

func TopicNames

func TopicNames() []string

TopicNames returns the names Topics carries, in the same order.

Types

type Topic

type Topic struct {
	// Name is what `tuios --skill <name>` takes: the file name without .md.
	Name string
	// Text is the whole file.
	Text string
}

Topic is one file of the skill besides the core.

func Topics

func Topics() []Topic

Topics returns every topic, sorted by name. The core is not one of them.

Jump to

Keyboard shortcuts

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