Documentation
¶
Overview ¶
Package registry reads a Skillcrew registry: a Claude Code marketplace repository with a skillcrew.yaml governance file at its root.
Index ¶
Constants ¶
const GovernanceFile = "skillcrew.yaml"
GovernanceFile is the governance file at the registry root.
const MarketplaceFile = ".claude-plugin/marketplace.json"
MarketplaceFile is the Claude Code marketplace manifest.
Variables ¶
This section is empty.
Functions ¶
func ValidTagName ¶
ValidTagName reports whether name is a tag name git accepts (git check-ref-format), given without its refs/tags/ prefix. Names starting with a dash or refs/ are refused too: they would be read as options or as another ref.
Types ¶
type Governance ¶
type Governance struct {
Org string `yaml:"org"`
Default Status `yaml:"default"`
Skills map[string]Rule `yaml:"skills"`
Teams map[string]Team `yaml:"teams"`
}
Governance is the content of skillcrew.yaml.
func (Governance) OrgRule ¶
func (g Governance) OrgRule(id string) Rule
OrgRule returns the organization rule for a skill, falling back to the default status.
type Issue ¶
type Issue struct {
Severity Severity `json:"severity"`
Message string `json:"message"`
Skill string `json:"skill,omitempty"` // id of the skill concerned, when there is one
}
Issue is a validation finding.
type Registry ¶
type Registry struct {
Name string
Skills []Skill // sorted by ID
Plugins map[string]string // plugin name -> directory
Governance Governance
// Warnings concern every developer (e.g. ignored plugins); syncs show them.
Warnings []string
// contains filtered or unexported fields
}
Registry is a parsed registry.
func (*Registry) InstallName ¶
InstallName is the directory name a skill is installed under.
type Rule ¶
type Rule struct {
Status Status `yaml:"status"`
Message string `yaml:"message"`
ReplacedBy string `yaml:"replaced_by"`
Ref string `yaml:"ref"`
SHA string `yaml:"sha"`
InstallAs string `yaml:"install_as"`
}
Rule is the governance of one skill at one level.
type Skill ¶
type Skill struct {
ID string // "plugin:name"
Plugin string
Name string
Dir string // directory relative to the registry root
}
Skill is a skill discovered in the registry.