Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StagedSkillSupportPath ¶
func StripHarnessPrefix ¶
StripHarnessPrefix removes the per-agent directory a package may keep its components under (.claude/skills, .cursor/rules, …).
Types ¶
type Kind ¶
type Kind uint8
func RenderedKind ¶
RenderedKind is the kind an artifact takes on a target: Codex has skills only, and rules become skills where the target has no rule files.
type Markdown ¶
type Markdown struct {
Kind Kind
SourceVariant SourceVariant
Name string
StorageName string
Description string
Body string
DisableModelInvocation bool
AlwaysApply bool
Globs []string
ExtraFrontmatter map[string]any
// contains filtered or unexported fields
}
func (Markdown) CodexAgent ¶
CodexAgent renders a subagent as a Codex custom agent file, agents/<name>.toml with name, description and developer_instructions, the form Codex reads from $CODEX_HOME/agents and .codex/agents. The agent's file name is its Codex name, so that it is a plain identifier. It reports false for anything that is not a subagent.
func (Markdown) NestedPath ¶
NestedPath is where the artifact sits in its package's own layout, under its kind's directory (agents/team/reviewer.md).
type SourceVariant ¶
type SourceVariant uint8
const ( SkillFrontmatter SourceVariant = iota CommandFrontmatter CursorPlainCommand AgentFrontmatter CursorRule )