Documentation
¶
Overview ¶
Package asset defines path constants for embedded asset directories and files. All paths are relative to the embed.FS root.
Index ¶
Constants ¶
View Source
const ( DirClaude = "claude" DirClaudePlugin = "claude/.claude-plugin" DirClaudeSkills = "claude/skills" DirCommands = "commands" DirCommandsText = "commands/text" DirContext = "context" DirEntryTemplates = "entry-templates" DirHooks = "hooks" DirHooksMessages = "hooks/messages" DirJournal = "journal" DirPermissions = "permissions" DirProject = "project" DirPromptTemplates = "prompt-templates" DirRalph = "ralph" DirSchema = "schema" DirWhy = "why" )
Embedded asset directory names.
View Source
const ( FileAllowTxt = "allow.txt" FileCLAUDEMd = "CLAUDE.md" FileCommandsYAML = "commands.yaml" FileCopilotInstructionsMd = "copilot-instructions.md" FileCtxrcSchemaJSON = "ctxrc.schema.json" FileDenyTxt = "deny.txt" FileExamplesYAML = "examples.yaml" FileExtraCSS = "extra.css" FileFlagsYAML = "flags.yaml" FileMakefileCtx = "Makefile.ctx" FilePluginJSON = "plugin.json" FileRegistryYAML = "registry.yaml" FileSKILLMd = "SKILL.md" )
Embedded asset file names (leaf names only).
View Source
const (
DirReferences = "references"
)
Subdirectory name within a skill directory.
View Source
const (
JSONKeyVersion = "version"
)
JSON field keys used when parsing embedded asset files.
View Source
const ( // SuffixReadme is appended to a directory name to form the README // template filename (e.g., "specs" -> "specs-README.md"). SuffixReadme = "-README.md" )
Naming patterns used to construct embedded asset filenames.
Variables ¶
View Source
var ( PathCLAUDEMd = path.Join(DirClaude, FileCLAUDEMd) PathPluginJSON = path.Join(DirClaudePlugin, FilePluginJSON) PathCommandsYAML = path.Join(DirCommands, FileCommandsYAML) PathFlagsYAML = path.Join(DirCommands, FileFlagsYAML) PathExamplesYAML = path.Join(DirCommands, FileExamplesYAML) PathCopilotInstructions = path.Join(DirHooks, FileCopilotInstructionsMd) PathHookRegistry = path.Join(DirHooksMessages, FileRegistryYAML) PathExtraCSS = path.Join(DirJournal, FileExtraCSS) PathMakefileCtx = path.Join(DirProject, FileMakefileCtx) PathAllowTxt = path.Join(DirPermissions, FileAllowTxt) PathDenyTxt = path.Join(DirPermissions, FileDenyTxt) PathCtxrcSchema = path.Join(DirSchema, FileCtxrcSchemaJSON) )
Full embedded paths for files accessed directly.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.