Documentation
¶
Index ¶
- Constants
- func AtomicWrite(path string, content []byte, mode fs.FileMode) error
- func EmbeddedInstructionBody(embeddedFS embed.FS) (string, error)
- func EnsureSkillFile(targetPath string, content []byte) (bool, error)
- func FindAgentsMD(startDir string) (string, error)
- func ReadAGENTSFile(path string) (string, error)
- func ReconcileAgentSkills(embeddedFS embed.FS, targetDir string) error
- func RemoveAGENTSBlock(agentsPath string) error
- func RunMaintenanceNonBlocking(embeddedFS embed.FS, targetDir, blockContent string)
- func UninstallAgentSkills(targetDir string, local bool) ([]string, error)
- func UpdateAGENTSBlock(agentsPath, blockContent string) error
- func WriteAGENTSFile(path, content string) error
- type InstructionResult
- type SkillResult
Constants ¶
View Source
const ( SkillName = "guiho-s-mirror" BlockBeginMarker = "<!-- BEGIN MIRROR — DO NOT EDIT THIS SECTION -->" BlockEndMarker = "<!-- END MIRROR -->" )
Variables ¶
This section is empty.
Functions ¶
func FindAgentsMD ¶
func ReadAGENTSFile ¶
func ReconcileAgentSkills ¶
ReconcileAgentSkills atomically updates both targets below targetDir. The explicit CLI path uses InstallAgentSkills to choose global or local scope.
func RemoveAGENTSBlock ¶
func UninstallAgentSkills ¶
func UpdateAGENTSBlock ¶
func WriteAGENTSFile ¶
Types ¶
type InstructionResult ¶
func ApplyInstructions ¶
func ApplyInstructions(embeddedFS embed.FS, targetDir string) ([]InstructionResult, error)
func RemoveInstructions ¶
func RemoveInstructions(targetDir string) ([]InstructionResult, error)
type SkillResult ¶
type SkillResult struct {
Tool string `json:"tool"`
Path string `json:"path"`
Installed bool `json:"installed"`
Updated bool `json:"updated"`
}
func InstallAgentSkills ¶
Click to show internal directories.
Click to hide internal directories.