agent

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmbeddedClaudeTemplate = scribe.AgentClaudeTemplate

EmbeddedClaudeTemplate is the generated agent-facing CLI contract.

View Source
var EmbeddedSkillTemplate = scribe.AgentSkillTemplate

EmbeddedSkillTemplate is the scribe SKILL.md template. It lives at the repo root (SKILL.md.tmpl) and is embedded via the root package.

View Source
var EmbeddedVersion = func() string {
	blob := append([]byte(embeddedRendererFormatVersion+"\n"), EmbeddedSkillTemplate...)
	blob = append(blob, []byte("\n---CLAUDE.md---\n")...)
	blob = append(blob, EmbeddedClaudeTemplate...)
	sum := sha256.Sum256(blob)
	return hex.EncodeToString(sum[:])
}()

Functions

func EnsureScribeAgent

func EnsureScribeAgent(store string, st *state.State, cfg *config.Config) (bool, error)

EnsureScribeAgent installs or refreshes the embedded scribe skill in the canonical store. It never performs network I/O.

func InstallScribeAgent

func InstallScribeAgent(store string, st *state.State, content []byte, version string) (bool, error)

InstallScribeAgent validates and installs a scribe skill payload into the canonical store and state using the provided version string.

func RenderSkillTemplate

func RenderSkillTemplate(tmpl []byte, store string, st *state.State) ([]byte, error)

RenderSkillTemplate parses tmpl as a Go text/template and renders it with the same context that EnsureScribeAgent uses. Use this when upgrading from a fetched SKILL.md.tmpl so the bootstrap section is shown only when needed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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