Documentation
¶
Overview ¶
Package agentskills validates the agentskills.io SKILL.md format.
Index ¶
- func CanonicalRepoURL(repo string) (string, error)
- func ExtractName(content []byte) (string, error)
- func GraftRemote(content []byte, remote Remote) ([]byte, error)
- func InjectRemoteStatus(content []byte, status string) ([]byte, error)
- func Normalize(dirName string, content []byte) (string, []byte, error)
- func StripRemote(content []byte) ([]byte, error)
- func SurgicalRemoteEdit(stored, incoming []byte, dirName ...string) ([]byte, bool, error)
- func ValidateName(name string) error
- func ValidateRemotePath(remotePath string) error
- type Remote
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalRepoURL ¶ added in v0.4.0
CanonicalRepoURL converts a legacy owner/repo value or validates an HTTPS repository URL. Repository URLs intentionally identify the repository root, not a web UI tree path.
func ExtractName ¶ added in v0.4.0
ExtractName parses and validates the name independently of disabled-skill handling. Remote import uses it before deriving a destination path.
func InjectRemoteStatus ¶ added in v0.4.0
func Normalize ¶ added in v0.4.0
Normalize converts imported skills to OpenLore's strict agentskills.io representation. dirName fixes the identity during sync; when empty, the destination name is derived from the upstream name.
func StripRemote ¶ added in v0.4.0
func SurgicalRemoteEdit ¶ added in v0.4.0
SurgicalRemoteEdit accepts a remote-only edit and clears commit when its target changes.
func ValidateName ¶ added in v0.4.0
func ValidateRemotePath ¶ added in v0.4.0
ValidateRemotePath accepts only canonical relative repository paths.