Documentation
¶
Overview ¶
Package agentdocs installs the release-owned Ridu skill bundle into generated and existing projects without overwriting user-authored instructions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Definition ¶
Definition is stable CLI-facing metadata for one agent selection.
func Definitions ¶
func Definitions() []Definition
Definitions returns selections in their user-facing display order.
type Result ¶
type Result struct {
Written []string
PreservedEntrypoint []string
// Excluded lists skills a sync found deleted and recorded as opted out.
Excluded []string
FrameworkVersion string
ManagedFiles int
}
Result describes an installation or synchronization without exposing internal ownership metadata.
func Install ¶
Install adds an agent layout to an existing project. Existing root instructions are preserved, and unmanaged skill files are never replaced.
func InstallNewProject ¶
InstallNewProject installs agent docs into a new scaffold staging directory. The caller guarantees that the directory is not user-owned yet.
type Selection ¶
type Selection string
Selection identifies the coding-agent layout installed into a project.
func DetectSelection ¶ added in v0.16.0
DetectSelection reports the coding agent running the CLI from its environment, or "" when none is recognized. Claude Code sets CLAUDECODE in the commands it runs and discovers skills only under .claude/skills, so a project it creates without an explicit selection needs its layout.
func ParseSelection ¶
ParseSelection validates a CLI-facing selection. Empty selects the default Codex project layout.