Documentation
¶
Overview ¶
Package skills provides agent detection, install path resolution, and GitHub-based skill fetching for the oodle CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectAgent ¶
func DetectAgent() string
DetectAgent returns the name of the running AI coding agent by checking env vars in priority order (first truthy match wins). Returns "" if none detected.
func FetchContent ¶
FetchContent fetches the SKILL.md content for the named skill. Returns an error wrapping "skill not found: <name>" if the response is 404.
func FindProjectRoot ¶
func FindProjectRoot() string
FindProjectRoot walks up from cwd looking for a directory containing .git. Returns cwd if no .git ancestor is found.
func SetContentsAPIURLOverride ¶
func SetContentsAPIURLOverride(u string)
SetContentsAPIURLOverride sets the URL override for the GitHub contents API. Used in tests only. Pass "" to reset to the real GitHub URL.
func SetRawContentURLOverride ¶
func SetRawContentURLOverride(u string)
SetRawContentURLOverride sets the URL override for GitHub raw content. Used in tests only. Pass "" to reset to the real GitHub URL.