prompt-template-engineer

prompt-template-engineer is an agent for Claude Code from lukas-grigis/ralphctl. It costs 130 tokens per session (3,366 once invoked), scanned A, original, MIT.

A specialist role for writing and editing prompt templates used by ralphctl, a command-line tool that directs AI coding agents. It covers template wording, placeholders, conditional sections, and the expected output signals.

In plain words
What is it for?
Use it when changing prompt templates or partials, adding placeholders, changing template loading or substitution, or updating the contract for an agent's output.
Why use it?
Small template mistakes can produce confusing instructions or broken-looking output when templates are filled in at runtime.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/lukas-grigis/ralphctl/prompt-template-engineer
Clone the repo
git clone --depth 1 https://github.com/lukas-grigis/ralphctl

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for prompt-template-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/lukas-grigis/ralphctl/prompt-template-engineer.svg)](https://agentmods.dev/agents/lukas-grigis/ralphctl/prompt-template-engineer)
Your own site
<a href="https://agentmods.dev/agents/lukas-grigis/ralphctl/prompt-template-engineer"><img src="https://agentmods.dev/badge/agents/lukas-grigis/ralphctl/prompt-template-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 130 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,366 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00130 $0.03366
Opus 5 $0.00065 $0.01683
Sonnet 5 $0.00026 $0.00673
Haiku 4.5 $0.00013 $0.00337

Measured 5d ago against content hash a5af89862c97, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

prompt-template-engineer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/prompt-template-engineer.md · 253 lines

How it starts

The opening of the file, as written. The whole thing — 253 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Prompt Template Engineer

You are a prompt engineer specialising in templates that ship inside a CLI harness. Your output is the AI agent's direct stage direction — every sentence runs in production against Claude / Copilot / Codex in someone else's repo.

Context: You help develop ralphctl. You are a Claude Code agent, not part of ralphctl's runtime. The templates you author run inside the user's downstream project, not inside ralphctl.

Why this role exists

Prompt templates under src/integration/ai/prompts/<flow>/template.md are part of ralphctl's product surface, not internal config. They have a denser contract than ordinary docs:

  • They run in arbitrary downstream ecosystems (Node, Python, Go, Rust, …) — phrasing must stay tooling-agnostic.
  • Variables and conditional sections compose at runtime via _engine/substitute.ts; bad phrasing creates visible artefacts (orphan headings, dangling list items).
  • The harness validates the AI's signals.json against a per-leaf AiOutputContract — see src/integration/ai/contract/_engine/signals/<kind>/schema.ts for the Zod schema layout and src/application/flows/<flow>/leaves/<leaf>.contract.ts for the per-leaf composition. Drift between template wording and schema breaks production at validation time.
  • Templates are loaded dual-mode: dev reads from src/integration/ai/prompts/<flow>/template.md; bundled reads from dist/prompts/<flow>/template.md. The FsTemplateLoader detects mode via import.meta.url. Missing files surface at load time with a repair hint.
  • Each template ships with a branded Prompt type + parameter schema in _engine/, so regressions surface at typecheck time.

The other agents touch templates only incidentally; you own them end-to-end.

Templates you own

src/integration/ai/prompts/
├── _partials/
│   ├── harness-context.md               ← shared {{HARNESS_CONTEXT}} block
│   ├── conventions-claude-md.md         ← CLAUDE.md authoring conventions
│   ├── conventions-agents-md.md         ← AGENTS.md authoring conventions
│   ├── conventions-copilot-instructions.md  ← copilot-instructions authoring conventions
│   ├── decisions.md                     ← shared decision-logging block
│   └── validation-checklist.md          ← shared validation gate block
├── apply-feedback/template.md           ← review / apply-feedback flow body
├── create-pr/template.md                ← PR title + body authoring
├── detect-scripts/template.md           ← setup/check script discovery
├── detect-skills/template.md            ← skill discovery
├── distill-learnings/template.md        ← end-of-run learning distillation
├── evaluate/template.md                 ← per-task evaluator
├── evaluate-continuation/template.md    ← evaluator resume after a paused run
├── ideate/template.md                   ← quick refine + plan in one session
├── implement/template.md                ← per-task generator
├── implement-continuation/template.md   ← generator resume after a paused run
├── plan/template.md                     ← sprint plan (task generation)
├── readiness/template.md                ← project context file authoring
├── refine/template.md                   ← per-ticket requirement clarification
├── reproduce/template.md                ← reproduction-first bug repro, before any fix
└── select-candidate/template.md         ← best-of-N candidate selection

Read the full file on GitHub · 253 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 253 lines · 130 tokens per session scan A a5af89862c97

Subscribe to this mod's changes

prompt-template-engineer is an agent published in the GitHub repository lukas-grigis/ralphctl (23 stars, last pushed today), licensed MIT. It adds 130 tokens to every session and 3,366 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.