Documentation
¶
Overview ¶
Package scaffold creates Skillcrew registries ("skillcrew registry init"): it either adds a skillcrew.yaml to an existing Claude Code marketplace or scaffolds a new marketplace with an example plugin and skill.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeOrg ¶
SanitizeOrg turns name into a valid organization and marketplace name: lowercase letters, digits and dashes, never a name reserved by Claude Code.
Types ¶
type Options ¶
type Options struct {
Org string // organization name; defaults to the marketplace name, else a sanitized dir basename
Owner string // marketplace owner name (used only when creating a marketplace); default = Org
Force bool // overwrite an existing skillcrew.yaml
// Version is the running skillcrew version. When it is a release
// (vX.Y.Z), the generated CI workflow pins it; otherwise it uses @latest.
Version string
}
Options configures Init.
type Result ¶
type Result struct {
Converted bool // an existing Claude Code marketplace was converted
Created []string // files created, relative to dir, sorted
Notices []string // how the organization name was chosen
Warnings []string // e.g. external plugins ignored, skills aliased or left out
// Issues are what "skillcrew validate" reports on the result, minus the
// warnings already listed.
Issues []registry.Issue
}
Result lists what Init did.
func Init ¶
Init turns dir into a Skillcrew registry. If dir holds a Claude Code marketplace, only skillcrew.yaml is written, listing every skill as available. Otherwise a new marketplace is scaffolded; no existing file is ever overwritten in that case. Init never writes through a symbolic link: it fails if any existing path it would write to, or any directory on the way, is one.