skills

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 9 Imported by: 1 module, 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 ships the agent skills the loop installs: a thin skill per user-facing intent that fetches a turn's instructions from the CLI, the operator skill and the one that edits the review profile.

Index

Constants

This section is empty.

Variables

View Source
var (
	Operator = Skill{Name: brand.Name, Body: operator}
	Profile  = Skill{Name: brand.SkillName("profile"), Body: profile}
)

Functions

This section is empty.

Types

type Mark

type Mark struct {
	Version string
	// Unedited says the file is as the version that wrote it rendered it.
	Unedited bool
}

Mark is what a skill file's marker says.

func ReadMark

func ReadMark(raw []byte) (m Mark, ok bool)

ReadMark reads the marker Render writes; ok is false for a file the loop did not write.

type Skill

type Skill struct {
	Name string
	Body []byte
}

func Bundled

func Bundled(defs []dintent.Def, target func(dintent.Def) string) []Skill

Bundled lists every skill install writes: the turn skill of each intent of defs whose manifest asks for one, its target as target names it, then the operator and profile skills.

func Turn

func Turn(d dintent.Def, target string) Skill

Turn is the skill that runs a turn of d by hand, filled from its manifest (its name, its summary, what its target is and the flags a user passes), with target the argument that names the unit, such as <url>.

func (Skill) Render

func (s Skill) Render(command, version string) []byte

Render fills the {{command}}, {{name}} and {{statedir}} tokens of the body and marks it in the front matter's metadata: the loop that manages it, the version that wrote it, and the sha256 of the file without that digest line, which tells an edited file from one install wrote.

Jump to

Keyboard shortcuts

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