Documentation
¶
Overview ¶
Package skillsync mirrors skill files across all agent skill directories (~/.claude/skills, ~/.codex/skills, ~/.gemini/skills, ~/.agents/skills) without symlinks. Any file in any dir is copied to all others. Newest mtime wins on conflict so no work is lost.
Index ¶
- func DeleteEntry(name string) (int, error)
- func DeleteEntryFromDir(dir, name string) error
- func DeleteFromAll(filename string) (int, error)
- func DirLabel(dir string) string
- func KnownDirs() []string
- func ReadFile(filename string) ([]byte, string, error)
- func ZipEntry(entryName string) ([]byte, error)
- type Result
- type SkillEntry
- type SkillFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteEntry ¶
DeleteEntry removes entryName (file or folder recursively) from all dirs.
func DeleteEntryFromDir ¶
DeleteEntryFromDir removes entryName only from one specific dir.
func DeleteFromAll ¶
DeleteFromAll removes a skill file from all known dirs.
Types ¶
type Result ¶
Result is returned by Sync and Upload.
type SkillEntry ¶
type SkillEntry struct {
Name string // entry name (folder or filename)
IsDir bool // true if it's a folder in at least one dir
Sources []string // dirs where this entry exists
Missing []string // dirs where this entry is absent
Newest time.Time // mtime of newest copy
}
SkillEntry represents one top-level entry (file or folder) found across skill dirs.
func ListDir ¶
func ListDir(entryName string) ([]SkillEntry, []string, error)
ListDir returns entries inside a specific subfolder across all skill dirs. entryName is a top-level folder name (e.g. "imagegen"). Returns entries found in any dir, deduped by name, isDir tracked. Second return is the list of dirs where entryName exists.