Documentation
¶
Overview ¶
Package registry provides access to the skills.sh skill directory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatCount ¶ added in v0.13.0
FormatCount returns a human-readable count (e.g., "85.7K", "1.2M").
Types ¶
type Skill ¶
type Skill struct {
Source string // e.g., "anthropics/skills"
SkillID string // e.g., "frontend-design"
Name string // e.g., "frontend-design"
Installs int // e.g., 123897
}
Skill represents a skill from the skills.sh directory.
func FetchTopSkills ¶ added in v0.13.0
FetchTopSkills fetches the most popular skills from skills.sh via the search API.
func ParseSearchResponse ¶ added in v0.13.0
ParseSearchResponse parses the JSON response from the skills.sh search API.
func Search ¶ added in v0.13.0
Search filters skills locally by a query string, matching against name and source. Prefer SearchSkills for server-side search across the full directory.
func SearchSkills ¶ added in v0.13.0
SearchSkills searches the skills.sh directory via the API. The API requires a minimum 2-character query and supports a configurable limit.
func (Skill) FormatInstalls ¶ added in v0.13.0
FormatInstalls returns a human-readable install count (e.g., "123.9K", "1.2M").