skillscheck

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package skillscheck compares installed mysql-cli skills (e.g. under ~/.claude/skills) against the versions bundled into the binary, reporting missing or stale skills. It mirrors the skillscheck concept from larksuite/cli, adapted to mysql-cli's per-process, connection-less model: the check runs only when explicitly invoked via `mysql-cli skill check`, never on the hot query path.

Index

Constants

View Source
const (
	StatusOK      = "ok"      // installed and version matches
	StatusStale   = "stale"   // installed but version differs
	StatusMissing = "missing" // not installed
	StatusUnknown = "unknown" // installed but version unparseable
)

Status values reported per skill.

Variables

This section is empty.

Functions

func ParseVersion

func ParseVersion(content string) string

ParseVersion extracts a semver version from a SKILL.md frontmatter.

Types

type Result

type Result struct {
	Skill        string `json:"skill"`
	Installed    bool   `json:"installed"`
	InstalledVer string `json:"installed_version,omitempty"`
	ExpectedVer  string `json:"expected_version"`
	Status       string `json:"status"`
	Path         string `json:"path"`
}

Result is the check outcome for one skill.

func Check

func Check(targetDir string) ([]Result, error)

Check scans targetDir for each bundled skill and compares its installed version frontmatter against the bundled version.

Jump to

Keyboard shortcuts

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