skills

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InferProjectRoot

func InferProjectRoot(events []ingest.Event) string

InferProjectRoot finds the common root directory from a set of events.

func InferScope

func InferScope(events []ingest.Event, scopeCfg config.ScopeConfig) string

InferScope determines whether a pattern should be registered as global or local.

func LinkSkill

func LinkSkill(ajSkillsDir, claudeSkillsDir, skillName string) error

LinkSkill creates a symlink from the Claude Code skills directory to the AJ skill directory, making the skill discoverable by Claude Code. On symlink failure (e.g. Windows without developer mode), falls back to copying the SKILL.md file.

func RemoveSkill

func RemoveSkill(skillsDir, name string) error

RemoveSkill deletes a skill directory.

func SyncLinks(ajSkillsDir, claudeSkillsDir string) error

SyncLinks ensures all AJ skills have corresponding entries in the Claude Code skills directory.

func UnlinkSkill

func UnlinkSkill(claudeSkillsDir, skillName string) error

UnlinkSkill removes the symlink or copied skill from the Claude Code skills directory.

Types

type SkillInfo

type SkillInfo struct {
	Name                 string
	Description          string
	Scope                string
	Version              string
	SavingsPerInvocation int
	ObservedFrequency    int
	TotalSavings         int
	Path                 string
}

SkillInfo holds display information for a skill.

func ListSkills

func ListSkills(dir string) ([]SkillInfo, error)

ListSkills scans a skills directory and returns display info for each skill.

type SkillMeta

type SkillMeta struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	GeneratedBy string `json:"generated_by"`
	Version     int    `json:"version"`
	Scope       string `json:"scope"`
	Path        string `json:"path"`
	RawContent  string `json:"raw_content"`
}

SkillMeta holds metadata for a compiled skill.

func ScanSkillsDir

func ScanSkillsDir(root string) ([]SkillMeta, error)

ScanSkillsDir reads all skill directories under the given root and returns metadata.

Jump to

Keyboard shortcuts

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