skillscheck

package
v1.1.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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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