Documentation
¶
Index ¶
- type Result
- func CheckAgents(cfg *config.ProjectConfig) []Result
- func CheckConfig(root string) ([]Result, *config.ProjectConfig)
- func CheckFlatFormatSkills(root string) []Result
- func CheckPromptServer(root string, cfg *config.ProjectConfig) []Result
- func CheckPromptServerConfig(root string, cfg *config.ProjectConfig) []Result
- func CheckSecrets(cfg *config.ProjectConfig) []Result
- func CheckSkills(cfg *config.ProjectConfig) []Result
- func CheckStructure(root string) []Result
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
Result holds the outcome of a single diagnostic check.
func CheckAgents ¶
func CheckAgents(cfg *config.ProjectConfig) []Result
CheckAgents reports which agents are enabled or disabled.
func CheckConfig ¶
func CheckConfig(root string) ([]Result, *config.ProjectConfig)
CheckConfig validates that the configuration file can be loaded and parsed. When strict loading fails but lenient loading succeeds (e.g., missing required fields from a newer version), CheckConfig returns a FAIL result with the validation error AND the leniently-loaded config so downstream checks still run.
func CheckFlatFormatSkills ¶ added in v0.9.0
CheckFlatFormatSkills scans .agent-layer/skills/ for stale flat-format .md files at the root level. Returns a FAIL result for each, recommending `al upgrade`.
func CheckPromptServer ¶ added in v0.9.0
func CheckPromptServer(root string, cfg *config.ProjectConfig) []Result
CheckPromptServer verifies the internal MCP prompt server can be resolved. Args: root is the repo root; cfg is the loaded project config. Returns: one Result describing the check outcome.
func CheckPromptServerConfig ¶ added in v0.9.0
func CheckPromptServerConfig(root string, cfg *config.ProjectConfig) []Result
CheckPromptServerConfig verifies generated client config files keep the internal MCP prompt server entry in sync with the current resolution. Args: root is the repo root; cfg is the loaded project config. Returns: one or more Results describing each client config check.
func CheckSecrets ¶
func CheckSecrets(cfg *config.ProjectConfig) []Result
CheckSecrets scans the configuration for missing environment variables. Only enabled MCP servers are considered; disabled servers are skipped.
func CheckSkills ¶ added in v0.9.0
func CheckSkills(cfg *config.ProjectConfig) []Result
CheckSkills validates configured skills against agentskills-aligned conventions.
func CheckStructure ¶
CheckStructure verifies that the required project directories exist.