Documentation
¶
Overview ¶
Package skillgen renders the committed skills/ tree from the command catalog.
OpenAPI plus overlay.yaml stay the single source of truth: one reference page is generated per public command, so the agent-facing docs cannot drift from the CLI surface. Only skills/pmock-shared is hand-written, because it describes conventions no spec field carries (access keys, envelope, exit codes, risk confirmation).
Index ¶
Constants ¶
const (
// DefaultBinary is the command name used in every generated example.
DefaultBinary = "pmock-cli"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManualPage ¶
type ManualPage struct {
Skill string
Command string // full command path, e.g. "phone file upload"
Summary string
Risk spec.Risk
Body string // markdown below the generated heading
}
ManualPage is a page the OpenAPI document cannot describe (a command written by hand). The generator still owns the file so pruning stays safe.
func DefaultManual ¶
func DefaultManual() []ManualPage
DefaultManual lists hand-written pages that belong to generated skills.
type Options ¶
type Options struct {
Binary string // defaults to DefaultBinary
Version string // frontmatter version, defaults to "1.0.0"
Skills []Skill
Manual []ManualPage
}
Options configures Render.
type Skill ¶
type Skill struct {
Name string // directory name and frontmatter name
Title string // heading shown in SKILL.md
Description string // frontmatter description, at most 1024 characters
Intent string // hand-written paragraph under the heading
CliHelp string // command whose help the skill mirrors
Prefixes [][]string // command-path prefixes this skill covers
}
Skill is one generated skill directory.
func DefaultSkills ¶
func DefaultSkills() []Skill
DefaultSkills lists the skills this release generates. The phone skill is first because it covers the largest part of the API surface; the remaining skills follow the product areas a task usually starts from.