Documentation
¶
Overview ¶
Package catalog checks an organization's catalog: a repository laid out as a workspace's .agents folder, whose agents, rules, skills, guardrails, commands, MCP servers and connectors every person's Blitz works under (spec_053_enterprise EN-30, EN-31). Each file is read as Blitz reads it, by the engine's own parsers, so a file Blitz would refuse can't be published. Each item may say how it applies: lock (locked, or a default a workspace or person may override) and groups (who it's for; everyone when it names none).
agents/<name>.md an agent
rules/<name>.md a rule
skills/<name>/SKILL.md a skill, and its other files beside it
guardrails/<name>.md a guardrail
commands/<name>.md a slash command
mcp/<name>.toml an MCP server: [mcp.servers]'s fields, with
secrets as {secrets:<name>}, never values
connectors/…/<name>.yaml a connector's descriptor or connection
Index ¶
Constants ¶
const ( Agent = "agent" Rule = "rule" Skill = "skill" SkillFile = "skill_file" // a file in a skill's folder beside SKILL.md Guardrail = "guardrail" Command = "command" MCP = "mcp" Connector = "connector" )
Kinds of item.
const ( // Locked applies, and can't be changed or switched off. Locked = "locked" // Default applies unless a workspace or the person overrides it. Default = "default" )
How an item applies (EN-31).
Variables ¶
This section is empty.
Functions ¶
func Of ¶
Of is what kind of item a path in the repository is, and its name; ok is false for a path that isn't an item (a README, policy.toml).
func Place ¶
Place sets how the item at p (a path in the catalog) applies: its lock (Locked or Default) and groups (none: everyone), in a Markdown file's front matter, made when it has none, or an MCP server's TOML; any other file (a skill's script) is as it was. The rest of the file is kept (spec_053_enterprise EN-36, Publish to organization).
Types ¶
type Item ¶
type Item struct {
Kind string `json:"kind"`
Name string `json:"name"`
Path string `json:"path"`
Lock string `json:"lock"` // Locked or Default
Groups []string `json:"groups,omitempty"` // who it's for; everyone when empty
}
Item is a catalog file as an item.