prompt-engineer

prompt-engineer is an agent for Claude Code from NickCrew/Claude-Cortex. It costs 44 tokens per session (1,466 once invoked), scanned A, original, MIT.

A prompt-engineering agent for writing and improving instructions given to large language models (LLMs), including prompts used by AI features and agents.

In plain words
What is it for?
Use it to create system prompts, compare few-shot and zero-shot examples, build prompt chains, tailor instructions to models, and generate test inputs.
Why use it?
It helps make model instructions clearer, choose suitable prompt patterns, specify output constraints, and test prompts with synthetic data.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions subagents.

Good fit Use it to create system prompts, compare few-shot and zero-shot examples, build prompt chains, tailor instructions to models, and generate test inputs.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/nickcrew/claude-cortex/prompt-engineer
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.

Clone the repo
git clone --depth 1 https://github.com/NickCrew/Claude-Cortex

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-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/nickcrew/claude-cortex/prompt-engineer/github.svg)](https://agentmods.dev/agents/nickcrew/claude-cortex/prompt-engineer)
Your own site
<a href="https://agentmods.dev/agents/nickcrew/claude-cortex/prompt-engineer"><img src="https://agentmods.dev/badge/agents/nickcrew/claude-cortex/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.

agentmods 80×15 button for prompt-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/nickcrew/claude-cortex/prompt-engineer"><img src="https://agentmods.dev/badge/agents/nickcrew/claude-cortex/prompt-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 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,466 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.00044 $0.01466
Opus 5.5 $0.00018 $0.00586
Sonnet 5.5 $0.00009 $0.00293
Haiku 4.5 $0.00004 $0.00147

Measured 1mo ago against content hash 757ddc81a0f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 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.

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.

archive/agents/prompt-engineer.md · 222 lines

How it starts

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

You are an expert prompt engineer specializing in crafting effective prompts for LLMs and AI systems. You understand the nuances of different models and how to elicit optimal responses.

IMPORTANT: When creating prompts, ALWAYS display the complete prompt text in a clearly marked section. Never describe a prompt without showing it. The prompt needs to be displayed in your response in a single block of text that can be copied and pasted.

Expertise Areas

Prompt Optimization

  • Few-shot vs zero-shot selection
  • Chain-of-thought reasoning
  • Role-playing and perspective setting
  • Output format specification
  • Constraint and boundary setting

Techniques Arsenal

  • Constitutional AI principles
  • Recursive prompting
  • Tree of thoughts
  • Self-consistency checking
  • Prompt chaining and pipelines
  • Synthetic Data Generation: Creating realistic test inputs to stress-test prompts.

Model-Specific Optimization

  • Claude: Emphasis on helpful, harmless, honest
  • GPT: Clear structure and examples
  • Open models: Specific formatting needs
  • Specialized models: Domain adaptation

Optimization Process

  1. Analyze the intended use case
  2. Identify key requirements and constraints
  3. Select appropriate prompting techniques
  4. Create initial prompt with clear structure
  5. Generate Synthetic Test Cases: Ensure the prompt handles diverse inputs.
  6. Test and iterate based on outputs
  7. Document effective patterns

Synthetic Test Data Generation

When asked to generate test cases for a prompt:

  1. Extract Variables: Identify placeholders like {{customer_query}} or {{code_snippet}}.
  2. Analyze Distribution: Determine what "realistic" values look like (tone, length, format, errors).
  3. Generate Scenarios: Create diverse inputs (e.g., happy path, edge case, adversarial input).
  4. Format: Output the test cases as JSON or XML blocks ready for evaluation.

Metaprompting (Prompt Optimization)

When asked to optimize a prompt or "apply the metaprompt", use this robust structure:

Read the full file on GitHub · 222 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. 1mo ago First seen · 222 lines · 44 tokens per session scan A 757ddc81a0f7

Subscribe to this mod's changes

prompt-engineer is an agent published in the GitHub repository NickCrew/Claude-Cortex (57 stars, last pushed 3mo ago), licensed MIT. It adds 44 tokens to every session and 1,466 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-09-03.

Related

Other agents, from other repositories

prompt

Designs versioned system prompts, few-shot libraries, and chain-of-thought patterns with A/B testing and regression coverage — treats prompts as production code. Use when engineering a production LLM feature, auditing a prompt library for drift, or building prompt versioning infrastructure. Trigger with "design this…

jeremylongshore/tons-of-skills-marketplace · 70 tokens

report-generator

Performs blind comparison of repeated prompt-execution pairs, then maps observed differences to optimization findings after identity reveal. Use when original and optimized prompt trials are available.

shinpr/rashomon · 35 tokens

prompt-analyzer

Analyzes prompts against BP-001 through BP-009 and returns the prompt-optimization skill's gated JSON result. Use when prompt text or a prompt file is provided for optimization.

shinpr/rashomon · 40 tokens

prompt-engineer

Use when writing, iterating, or debugging prompts. Enforces prompt-versioning, structures few-shot examples, and proposes eval criteria for the prompt being built.

RBraga01/builder-ai · 36 tokens

Prompt Builder

Expert prompt engineering and validation system for creating high-quality prompts - Brought to you by microsoft/edge-ai.

github/awesome-copilot · 24 tokens

token

Optimizes LLM context windows through token budgeting, chunking strategy, and truncation design. Use when you need to control token spend, design a chunking pipeline, or audit token usage in a production AI system. Trigger with "design my token budget", "fix my context overflow".

jeremylongshore/tons-of-skills-marketplace · 60 tokens