agent

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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