Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

gomplate

$ gomplate Community Low Risk
Dave Henderson · Database & Data · MIT · macos / linux / windows

gomplate renders Go text/template files (-f) or inline templates (-i) backed by rich datasources (-d alias=file.yaml, JSON, CSV, TOML, HTTP, Vault, AWS SSM) and 200+ helper functions (data.ToJSON, coll.JQ, crypto).

FCRS-1.0 Score
90 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install gomplate
CLI vs MCP Decision CLI Only

Renders structured templates from YAML/JSON/CSV datasources deterministically in one static Go binary (gomplate -d cfg=data.yaml -f tmpl.gotmpl).

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Fully non-interactive with -f, -i inline templates, -d datasources, -o output, and built-in data.ToJSON / data.ToYAML functions.

  • Supports -d, -f, -i, -o, and data.ToJSON
Trust & Safety 23 / 25

Writes to stdout by default; local file writes require -o or --output-dir, though exec functions exist in advanced plugin/template modes.

  • Stdout default; explicit -o / --output-dir required for writes
Setup & Portability 15 / 15

Single static Go binary across macOS, Linux, and Windows via Homebrew, go install, Docker, and GitHub Releases.

  • Static Go binary (brew install gomplate)
Utility & Efficiency 14 / 15

Combines JSON, YAML, CSV, TOML, env, and Vault/SSM datasources with 200+ template functions in one binary.

  • Multi-format datasource ingestion and Go template rendering
Maintenance & Lineage 9 / 10

Actively maintained by Dave Henderson (hairyhenderson/gomplate v4) under MIT license.

  • Active hairyhenderson/gomplate repository
Docs & Verifiability 8 / 10

Well-organized documentation site at docs.gomplate.ca covering CLI flags, datasources, and every function namespace.

  • Comprehensive docs at docs.gomplate.ca

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key Config File
Credential Storage

None for local datasources; optional Vault/AWS/Consul datasources read VAULT_TOKEN, AWS_*, or standard provider env vars.

Side Effects
Read-Only Local Write
Cost & Quotas

MIT open-source CLI; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# gomplate Agent Rules
- Preview rendered output on stdout first (omit `-o` / `--output-dir`) before writing files.
- Use explicit `-d alias=path` datasources and avoid HTTP/Vault datasource URLs unless explicitly intended.

Agent-Ready Command Recipes

Safe Read-Only Queries

Render a template from a YAML or JSON datasource to stdout
gomplate -d cfg=data.yaml -f tmpl.gotmpl

Loads data.yaml under alias cfg and prints the rendered template to stdout without writing files.

Evaluate an inline Go template expression to JSON
gomplate -d data=users.csv -i '{{ (ds "data") | data.ToJSON }}'

Parses users.csv inline via -i and emits JSON using data.ToJSON.

Controlled Writes & Previews

Render a template to an explicit output file
gomplate -d cfg=data.yaml -f config.tmpl -o config.json

Writes the rendered output to config.json via -o (--out).

Strengths for Agents

  • + Reads JSON, YAML, CSV, and TOML datasources natively via -d alias=file.
  • + Single static Go binary with -i inline evaluation and data.ToJSON formatting.
  • + Clean stdout-first behavior unless -o or --output-dir is passed.

Caveats & Pitfalls

  • ! Go text/template whitespace trimming ({{- ... -}}) and ds syntax require careful quoting in shell commands.
  • ! Datasource URLs (vault://, aws+sm://, https://) can trigger external network/credential lookups if used in templates.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI