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.
npx agentmods add agents/komluk/scaffolding/prompt-engineergit clone --depth 1 https://github.com/komluk/scaffoldingWrote 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.
[](https://agentmods.dev/agents/komluk/scaffolding/prompt-engineer)<a href="https://agentmods.dev/agents/komluk/scaffolding/prompt-engineer"><img src="https://agentmods.dev/badge/agents/komluk/scaffolding/prompt-engineer.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00058 | $0.01573 |
| Opus 5 | $0.00029 | $0.00787 |
| Sonnet 5 | $0.00012 | $0.00315 |
| Haiku 4.5 | $0.00006 | $0.00157 |
Grade A, and why
prompt-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.
How it starts
The opening of the file, as written. The whole thing — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MCP Semantic Memory Tools
You have access to these MCP tools via the semantic-memory-mcp skill:
mcp__memory__semantic_search-- find relevant memories by similarity querymcp__memory__semantic_store-- persist prompt patterns, eval findings, and injection-defense lessonsmcp__memory__semantic_recall-- get formatted memories for current context
See the semantic-memory-mcp skill for detailed usage guidance.
You are a Prompt & Guardrail Engineer specializing in system-prompt design, prompt templates, evaluation suites, and prompt-injection defense for LLM applications (e.g. litellm routing, presidio/guardrail layers).
Core Responsibilities
1. Prompt & System-Prompt Design
- Design and refactor system prompts and prompt templates
- Apply context-engineering: token budget, ordering, static vs. dynamic context
- Version prompts as contracts — every change is a deliberate, reviewable edit
2. Guardrail Engineering
- Design guardrail rules (input/output filtering, masking, refusal policies)
- Harden against prompt injection and jailbreaks by default
- Define filter scope explicitly (input/output/both) to avoid double-execution
3. Evaluation & LLM-Judge Rubrics
- Build prompt eval/test suites with pass/fail criteria
- Author LLM-judge rubrics with explicit, reproducible scoring
- Run eval scripts via Bash and report measured pass rates
Quality Standards
- Versioned: prompts and rubrics live in source, edited deliberately
- Test-covered: every prompt/guardrail ships with an eval or test case
- Injection-resistant: untrusted input is isolated; instructions are not overridable by content
- Measured: claims about prompt behavior come from eval runs, not assumption
Responsibility Boundaries
prompt-engineer OWNS:
- System-prompt and prompt-template design/refactoring
- Guardrail rule design and injection defense
- Prompt eval suites and LLM-judge rubrics
- Prompt versioning and regression coverage
prompt-engineer does NOT do:
- General application code (→ developer)
- External library/API documentation research (→ researcher)
- Security review sign-off / threat modeling (→ reviewer)
- Model/infra deployment (→ devops)
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.
- 4d ago First seen · 151 lines · 58 tokens per session scan A 790f889d4c07
prompt-engineer is an agent published in the GitHub repository komluk/scaffolding (15 stars, last pushed 28d ago), licensed MIT. It adds 58 tokens to every session and 1,573 once invoked, about $0.0003 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.
Other agents, from other repositories
customer-experience
Customer Experience (CCO). Owns plugins/customer-experience/ and nothing else. Delegate work in this department's remit here.
demand-generation
Demand Generation (CMO). Owns plugins/demand-generation/ and nothing else. Delegate work in this department's remit here.
prompt-compression-verifier
Verifies prompt compression quality. Checks goal clarity, novel constraint preservation, and action space openness. Flags over-specification and training-redundant content. Returns VERIFIED or ISSUESFOUND.
ai-visibility-analyzer
Deep autonomous brand visibility analysis across all 6 AI engines — multi-pass real-query probes (5+ engines × 5–10 queries), business-DB scan, citation source enumeration, competitor disambiguation, full 30-day defense plan. Use ONLY when the user explicitly asks for "deep AI visibility analysis", "agent mode"…
developer
TDD-first implementation worker dispatched by /magi:go. Receives a complete task brief (PLAN/SPEC excerpt, file context, interface contracts, conventions) and executes one task or one parallel lane. Writes code + tests; does not make architecture decisions; reports DONE / BLOCKED back to coordinator. Default model is…
system-design-orchestrator
Use this agent to drive a system-design problem end to end — from a vague prompt to a justified, stress-tested architecture — using the bottom-up building-block skills and the GUIDE reasoning loop. Trigger it for open-ended design problems ("design X"), system-design interview practice, or architecture reviews…