Documentation
¶
Overview ¶
Package agent installs the session-start hooks that make each AI coding agent run `skillcrew sync` when a session starts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent interface {
// Name is the agent's stable identifier, such as "claude-code".
Name() string
// Detected reports whether the agent's config directory exists under home.
Detected(home string) bool
// HookInstalled reports whether a Skillcrew hook is registered.
HookInstalled(home string) (bool, error)
// InstallHook registers `<bin> sync --hook`. It is idempotent and keeps
// every other setting and hook intact.
InstallHook(home, bin string) error
// UninstallHook removes Skillcrew's hook only; it is a no-op when absent.
UninstallHook(home string) error
}
Agent is a coding agent that can trigger a sync when a session starts.
Click to show internal directories.
Click to hide internal directories.