read/

directory
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0

README

assets/read/

Domain accessor packages for the embedded assets.FS.

Each sub-package owns a slice of the embedded filesystem and exposes it through clean, domain-named functions (e.g., entry.List(), claude.Md()). This avoids a god-object assets package where every function is prefixed with its domain (assets.EntryList, assets.ClaudeMd).

Why this directory exists

  • assets.FS must live in internal/assets/ (Go //go:embed constraint).
  • Domain packages here import assets.FS - the dependency flows one way.
  • assets must never import packages under read/ (that creates a cycle).
  • Tests in package assets cannot import read/ packages for the same reason; they use assets.FS directly.

Adding a new domain package

  1. Create read/<domain>/<domain>.go
  2. Import assets.FS and config/asset for path constants
  3. Export functions named from the domain's perspective: List(), ForName(), Content() - not DomainList(), DomainContent()
  4. Callers read as entry.List(), claude.Md(), agent.CopilotInstructions()

Do not

  • Flatten these packages into assets - that's the opposite direction
  • Delete this directory - the structure is intentional
  • Import read/ packages from internal/assets/*.go - cycle

Directories

Path Synopsis
Package agent provides access to agent integration files embedded in the assets filesystem.
Package agent provides access to agent integration files embedded in the assets filesystem.
Package catalog lists available context template files from the embedded assets.
Package catalog lists available context template files from the embedded assets.
Package claude provides access to Claude Code integration files embedded in the assets filesystem.
Package claude provides access to Claude Code integration files embedded in the assets filesystem.
Package desc provides command, flag, text, and example description lookups backed by embedded YAML.
Package desc provides command, flag, text, and example description lookups backed by embedded YAML.
Package entry provides access to entry template files embedded in the assets filesystem.
Package entry provides access to entry template files embedded in the assets filesystem.
Package hook provides access to hook message templates and the hook registry from embedded assets.
Package hook provides access to hook message templates and the hook registry from embedded assets.
Package journal provides access to journal site assets such as extra CSS.
Package journal provides access to journal site assets such as extra CSS.
Package lookup owns the YAML description maps and eager initialization for all embedded text lookups.
Package lookup owns the YAML description maps and eager initialization for all embedded text lookups.
Package loop provides access to Ralph autonomous loop templates from embedded assets.
Package loop provides access to Ralph autonomous loop templates from embedded assets.
Package makefile provides access to the embedded Makefile.ctx template.
Package makefile provides access to the embedded Makefile.ctx template.
Package philosophy provides access to embedded why-documents (manifesto, about, design invariants).
Package philosophy provides access to embedded why-documents (manifesto, about, design invariants).
Package project provides access to project-root files and directory README templates from embedded assets.
Package project provides access to project-root files and directory README templates from embedded assets.
Package prompt provides access to embedded prompt templates for code review, refactoring, and explanation.
Package prompt provides access to embedded prompt templates for code review, refactoring, and explanation.
Package schema provides access to the embedded JSON Schema for `.ctxrc` validation.
Package schema provides access to the embedded JSON Schema for `.ctxrc` validation.
Package skill provides access to embedded skill directories, SKILL.md files, and reference documents.
Package skill provides access to embedded skill directories, SKILL.md files, and reference documents.
Package template provides access to context template files (TASKS.md, DECISIONS.md, etc.) from embedded assets.
Package template provides access to context template files (TASKS.md, DECISIONS.md, etc.) from embedded assets.

Jump to

Keyboard shortcuts

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