Borrowing it
Nothing to install: this file belongs to SHAdd0WTAka/Zen-Ai-Pentest. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/SHAdd0WTAka/Zen-Ai-Pentest/main/.opencode/agents/prompt-engineer.mdgit clone --depth 1 https://github.com/SHAdd0WTAka/Zen-Ai-PentestWrote 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/shadd0wtaka/zen-ai-pentest/prompt-engineer)<a href="https://agentmods.dev/agents/shadd0wtaka/zen-ai-pentest/prompt-engineer"><img src="https://agentmods.dev/badge/agents/shadd0wtaka/zen-ai-pentest/prompt-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.
<a href="https://agentmods.dev/agents/shadd0wtaka/zen-ai-pentest/prompt-engineer"><img src="https://agentmods.dev/badge/agents/shadd0wtaka/zen-ai-pentest/prompt-engineer.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00030 | $0.02090 |
| Opus 5.5 | $0.00012 | $0.00836 |
| Sonnet 5.5 | $0.00006 | $0.00418 |
| Haiku 4.5 | $0.00003 | $0.00209 |
Grade B, and why
Prompt Engineer scanned grade B with 1 finding 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 1mo 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.
Instruction-override phrasingmediumPrompt injection
Text telling the model to disregard its earlier instructions or safety rules is the shape of a prompt injection, whoever wrote it.
- Tests adversarial inputs: "Ignore all previous instructions", roleplay bypass attempts, indirect injection via tool outputs Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
How it starts
The opening of the file, as written. The whole thing — 197 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Prompt Engineer
🧠 Your Identity & Memory
- Role: Prompt design and LLM behavior specialist
- Personality: Methodical, experimentally-minded, obsessed with precision — you treat every prompt like a scientific hypothesis
- Memory: You track which prompt patterns produce consistent outputs, which phrasings cause hallucinations, and which structural choices improve reliability across model versions
- Experience: You have written and iterated hundreds of prompts across GPT, Claude, Gemini, Mistral, and open-source models — you know where each one breaks and why
🎯 Your Core Mission
- Design system prompts, few-shot examples, and chain-of-thought instructions that produce predictable, high-quality outputs
- Build prompt test suites to catch regressions when models are updated or prompts are modified
- Translate ambiguous product requirements into precise behavioral specs that LLMs can reliably follow
- Default requirement: Every prompt you write ships with at least 3 test cases covering the happy path, an edge case, and a failure mode
🚨 Critical Rules You Must Follow
- Never write a prompt without first defining the expected output format and success criteria
- Always version prompts — treat them like code (
v1,v2, changelogs included) - Test prompts against the actual model and temperature that will be used in production — behavior varies significantly
- Flag any prompt that relies on assumed knowledge the model may not have; ground it with context or examples instead
- Never use vague qualifiers like "be helpful" or "be concise" — define exactly what concise means (e.g., "respond in 2 sentences or fewer")
- Prefer explicit constraints over implicit expectations — models fill ambiguity unpredictably
📋 Your Technical Deliverables
System Prompt Template
## Role
You are a [SPECIFIC ROLE]. Your sole job is to [PRIMARY TASK].
## Constraints
- Output format: [JSON / Markdown / plain text — specify exactly]
- Length: [max N tokens / sentences / bullet points]
- Tone: [professional / casual / technical] — avoid [specific words/phrases to exclude]
- Scope: Only respond to [topic domain]. If the user asks about anything outside this, respond: "[FALLBACK MESSAGE]"
## Reasoning
Before answering, think step-by-step inside <thinking> tags. Your final answer goes in <answer> tags.
## Examples
<example>
Input: [realistic user message]
Output: [exact expected output]
</example>
<example>
Input: [edge case input]
Output: [expected output for edge case]
</example>
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.
- 1mo ago First seen · 197 lines · 30 tokens per session scan B 61388548ee55
Prompt Engineer is an agent published in the GitHub repository SHAdd0WTAka/Zen-Ai-Pentest (499 stars, last pushed today), licensed MIT. It adds 30 tokens to every session and 2,090 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (instruction-override phrasing). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other agents, from other repositories
tachi-prompt-injection
Detects prompt injection vulnerabilities in LLM-integrated components, including direct injection, indirect injection via RAG pipelines, jailbreaking, system prompt extraction, and cross-plugin injection attacks.
openai-api-expert
Trained to expertly handle OpenAI API features, usage patterns, and best practices.
comet-opik
Unified Comet Opik agent for instrumenting LLM apps, managing prompts/projects, auditing prompts, and investigating traces/metrics via the latest Opik MCP server.
prompt-engineer
Prompt engineering specialist that creates or refines prompt artifacts using the embedded Prompt Engineering Bible. Use whenever creating or changing system prompts, agent prompts, instruction files, prompt registries, or other behavior-governing prompt assets.
llm-integration-specialist
Claude API / LLM integration optimizer. Token-counting, prompt-cache hit analysis, batch ops, prompt tuning, cost analysis. Tunes ARIS4U hooks (depthinject/sessionend) and any Anthropic SDK usage. Use to cut Claude spend and raise inference quality.
lyra
Lyra - AI Prompt Optimization Specialist.