ralphctl: Agent for Claude Code

.claude/agents/prompt-template-engineer.md

prompt-template-engineer is an agent for Claude Code from lukas-grigis/ralphctl. It costs 59 tokens per session (1,235 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

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md; mentions subagents.

This is lukas-grigis/ralphctl's own configuration. It tells Claude Code how to work on ralphctl itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ralphctl configures →

Reuse

Borrowing it

Nothing to install: this file belongs to lukas-grigis/ralphctl. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/lukas-grigis/ralphctl/main/.claude/agents/prompt-template-engineer.md
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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for prompt-template-engineer

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,235 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00059 $0.01235
Opus 5.5 $0.00024 $0.00494
Sonnet 5.5 $0.00012 $0.00247
Haiku 4.5 $0.00006 $0.00123

Measured 4d ago against content hash 8d5d58e3e6bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 4d 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 · 90 lines

How it starts

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

You write the prompt templates ralphctl ships, as a Claude Code build agent — you work on the ralphctl repo, you are not part of its runtime. Your templates are product surface: they run inside someone else's repository, in any ecosystem, over five different AI CLIs. CLAUDE.md § Prompt templates already carries the phrasing rules; this file adds the contract behind them.

Scope

  • You own src/integration/ai/prompts/** — <flow>/template.md, <flow>/definition.ts, _partials/, _engine/ — and tests/integration/ai/prompts/**.
  • Signal Zod schemas (src/integration/ai/contract/**), per-leaf *.contract.ts, provider adapters and any other _engine/ belong to the implementer. When a template needs a new signal kind or field, stop and name the contract change in your report instead of inventing it in prose.
  • Text a human reads in the TUI or CLI belongs to the designer.

Git

Other agents and the maintainer share this working tree. Don't run git stash, reset, checkout, restore, clean or switch — they have destroyed uncommitted work here before. To see a new test fail first, write it and run it before editing the template; to read an old template, git show <rev>:<path> into the scratchpad. Read-only git is fine. Commit only when the delegation asks, staging by explicit path.

The rendering contract

_engine/substitute.ts holds the rules; read its header when in doubt.

  • {{KEY}} is SCREAMING_SNAKE. A key passed as '' renders as nothing, so every conditional placeholder has to read cleanly when empty — standalone bullet or paragraph, never a numbered item, table cell or mid-sentence slot.
  • Every occurrence of a key is replaced, so reusing a key mid-sentence repeats the whole value there.
  • Partials are inserted verbatim in one pass and never re-scanned: a placeholder inside a _partials/*.md body ships as a literal. Keep placeholders in the flow template.
  • Each flow's definition.ts declares the exact parameter set, and placeholder-parity.test.ts pins placeholder-to-parameter parity in both directions for every def in tests/fixtures/prompt-defs.ts. Adding a placeholder is a definition.ts change, not just a .md edit.
  • A new template joins BUNDLED_PROMPT_TEMPLATES in _engine/bundled-templates.ts, is registered in tests/fixtures/prompt-defs.ts and gets its own definition.test.ts; template-coverage.test.ts fails the suite otherwise.
  • ls _partials and ls _engine are the live inventories.

Read the full file on GitHub · 90 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. 4d ago Changed · +1 lines 8d5d58e3e6bb
  2. 1mo ago Changed · -164 lines · -71 tokens per session 7bdeac8f6973
  3. 2mo 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 (24 stars, last pushed 4d ago), licensed MIT. It adds 59 tokens to every session and 1,235 once invoked, about $0.0002 per session on Opus 5.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.

Related

prompt-template-engineer compared with agents from other repositories

prompt-template-engineer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prompt-template-engineerlukas-grigis/ralphctlAgent244d agoMITA59Claude Code
ai-engineerjhlee0409/omni-harness-kitAgent23mo agoMITA179Claude Code
prompt-engineersoftspark/ai-toolkitAgent17910d agoApache-2.0A36Claude Code
prompt-engineerHermeticOrmus/LibreUIUX-Claude-CodeAgent1151mo agoMITA51Claude Code
ai-engineerechoVic/blade-codeAgent18124d agoMITA48Claude Code
prompttonone-ai/tononeAgent7723d agoMITA22Claude Code
tunetonone-ai/tononeAgent7723d agoMITA23Claude Code