Documentation
¶
Overview ¶
Package agentskills installs Stripe agent skills natively, reproducing what `npx skills add https://docs.stripe.com` does without any Node/npx dependency. It fetches the skills index from docs.stripe.com and writes each skill's files to a destination directory, preserving the skill/relative-path layout.
Index ¶
Constants ¶
const ( StatusNotInstalled = "not_installed" StatusCurrent = "current" StatusOutOfDate = "out_of_date" StatusError = "error" )
Variables ¶
var IndexURL = "https://docs.stripe.com/.well-known/skills/index.json"
IndexURL is the canonical Stripe skills index. It is a var (not a const) so tests can point it at an httptest server; individual file URLs are derived from it, so overriding it redirects file fetches too.
Functions ¶
func Install ¶
Install fetches every file of every skill in the index and writes it under destDir preserving the skill/relative-path layout (destDir/<skill>/<file>). Installation is best-effort: a file that fails to fetch or write is skipped. It returns the names of skills that had at least one file written.
Types ¶
type DirStatus ¶
type DirStatus struct {
Dir string `json:"dir"`
Status string `json:"status"`
Skills []SkillCheck `json:"skills,omitempty"`
InstalledCount int `json:"installed_count"`
OutOfDateCount int `json:"out_of_date_count"`
Error string `json:"error,omitempty"`
}
DirStatus summarizes installed skills under a single destination directory.
type Index ¶
type Index struct {
Skills []Skill `json:"skills"`
}
Index is the top-level response from IndexURL.