resources

package
v0.0.0-...-dc5cb5d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AgentsMdContent string

Embed AGENTS.md from agents/

Functions

func CopyDocsToProject

func CopyDocsToProject(projectPath string, filesystem afero.Fs) error

CopyDocsToProject copies the embedded docs folder to .archie/docs/ in the project

func GetSchemaTemplate

func GetSchemaTemplate(templateName string) (string, error)

GetSchemaTemplate 获取指定的 schema 模板内容 templateName: "background.md", "feature.md" 等

func LoadCommands

func LoadCommands() (map[string]*CommandTemplate, error)

LoadCommands loads all command templates from the embedded commands folder Returns a map where key is filename (without extension) and value is CommandTemplate

func LoadSubAgents

func LoadSubAgents() (map[string]string, error)

LoadSubAgents loads all subagent templates from the embedded subagents folder Returns a map where key is filename and value is file content

Types

type CommandTemplate

type CommandTemplate struct {
	// Metadata 包含所有非 content 的字段
	Metadata map[string]interface{} `yaml:",inline"`
	// Content 是命令的正文内容
	Content string `yaml:"content"`
}

CommandTemplate 表示一个命令模板的结构

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL