Documentation
¶
Index ¶
- func InferProjectRoot(events []ingest.Event) string
- func InferScope(events []ingest.Event, scopeCfg config.ScopeConfig) string
- func LinkSkill(ajSkillsDir, claudeSkillsDir, skillName string) error
- func RemoveSkill(skillsDir, name string) error
- func SyncLinks(ajSkillsDir, claudeSkillsDir string) error
- func UnlinkSkill(claudeSkillsDir, skillName string) error
- type SkillInfo
- type SkillMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InferProjectRoot ¶
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 ¶
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 ¶
RemoveSkill deletes a skill directory.
func SyncLinks ¶
SyncLinks ensures all AJ skills have corresponding entries in the Claude Code skills directory.
func UnlinkSkill ¶
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 ¶
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 ¶
ScanSkillsDir reads all skill directories under the given root and returns metadata.