Documentation
¶
Overview ¶
Package skillrequest is the grammar of a skill request (skills design D15): the first lines of a maintainer's issue, which the factory reads and nothing else does. A request generates a skill (plan 3), imports one from GitHub or removes one (plan 4). It is Kubernetes-free and pure.
Index ¶
Constants ¶
const ( MaxSentence = 1024 // bytes of a generate request's sentence MaxLessons = 8 // lessons one generate request may codify, the recall cap MaxName = 64 // a skill name, the Agent Skills standard's bound )
Bounds of a request.
Variables ¶
var ErrInvalid = errors.New("skill request")
ErrInvalid reports a body that starts as a skill request and breaks the grammar.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct {
Kind Kind
Sentence string
Lessons []int
Source Source
Roles []string
Name string
}
Request is one parsed skill request; only the kind's own fields are set.
func Parse ¶
Parse reads body's first non-blank line. isRequest is false when that line does not start with "skill:"; then the issue is an ordinary task. A request that breaks the grammar is isRequest with an error wrapping ErrInvalid, and the returned Request carries only its Kind once the kind is recognised, so a refusal can be counted under it.