skillssh

package
v0.46.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client wraps the skills.sh API

func NewClient

func NewClient() *Client

NewClient creates a new skills.sh client

func (*Client) ListPopular added in v0.15.0

func (c *Client) ListPopular(limit int) ([]Skill, error)

ListPopular returns popular skills for autocompletion

func (*Client) Resolve added in v0.15.0

func (c *Client) Resolve(name string) (*Skill, error)

Resolve finds the best matching skill for a given name. Returns the skill with the most installs if multiple matches exist.

func (*Client) Search

func (c *Client) Search(query string, limit int) (*SearchResponse, error)

Search queries the skills.sh API for skills matching the query

type Installer added in v0.15.0

type Installer struct {
	// contains filtered or unexported fields
}

Installer handles downloading and installing skills from GitHub

func NewInstaller added in v0.15.0

func NewInstaller() *Installer

NewInstaller creates a new skill installer

func (*Installer) Install added in v0.15.0

func (i *Installer) Install(skill *Skill, targetDir string) (int, error)

Install downloads a skill from GitHub and installs it to the target directory. It clones the repository using gh CLI, copies the skill files, and cleans up.

type SearchResponse

type SearchResponse struct {
	Query      string  `json:"query"`
	SearchType string  `json:"searchType"`
	Skills     []Skill `json:"skills"`
	Count      int     `json:"count"`
	DurationMs int     `json:"duration_ms"`
}

SearchResponse represents the API response from /search

type Skill

type Skill struct {
	ID       string `json:"id"`
	SkillID  string `json:"skillId"`
	Name     string `json:"name"`
	Installs int    `json:"installs"`
	Source   string `json:"source"`
}

Skill represents a skill from the search results

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL