# Agent prompt engineering

> Agent prompt engineering is an open-source agent skill for ai models and llm tooling. Guides building product agent system prompts with eval-backed boundaries and output. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/mtarcure/claude-vibe-squad/tree/main/.agents/skills/agent-prompt-engineering
- **Repository:** https://github.com/mtarcure/claude-vibe-squad
- **GitHub stars:** 227
- **License:** MIT
- **Skill name:** agent-prompt-engineering
- **Collection:** https://github.com/mtarcure/claude-vibe-squad
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-12-02

## About

This skill helps an agent write or revise the system prompt for an AI agent that ships inside a software product. It sets out a priority-ordered prompt contract covering the agent's role, boundaries, tool-use rules, output format and escalation path, then shows how to shape it around the product's real requirements.

The workflow centers on evaluation. The skill provides a worked example for a retrieval-backed support agent with a table of representative and adversarial test turns, such as questions the corpus does not cover, instructions hidden in retrieved text, and a failed retrieval tool. The agent is asked to replay these cases, record actual outputs, add the smallest clause that fixes each failure, and rerun the full set after every change.

The skill is written for specialists and is explicitly scoped away from board-specialist adapters and lane capability projections, which are generated from separate sources. It is a single markdown file with no scripts, so it relies on the agent's own ability to run the evaluations in the target product.

## When your agent uses it

> Use when building or revising the system prompt for a product agent and you need an eval-backed boundary, tool-use, grounding, and output contract. Not for board-specialist adapters or lane capability projections, which follow model-lanes generators and controller policy.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/agent-prompt-engineering)
- [License: MIT](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/agent-prompt-engineering)

## Features

- **Ordered prompt contract:** Defines role, boundary, tool rule, output format and escalation in a priority order.
- **Grounding rules:** Forbids fabricated facts or citations and treats retrieved text as untrusted evidence.
- **Adversarial eval set:** Lists representative, boundary, tool-failure, injection and escalation test turns.
- **Recorded eval replay:** Requires observed outputs to be recorded and the full set rerun after each revision.
- **Scope boundaries:** Separates product agent prompts from generated board-specialist adapters.

## Good for

- Write a system prompt for a customer support chatbot that answers from help articles
- Add grounding and citation rules to an existing product agent prompt
- Create an eval set of adversarial turns for a retrieval-backed assistant
- Tighten escalation rules so an agent hands account changes to a human

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/agent-prompt-engineering` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/agent-prompt-engineering &&
cp -R "$tmp/.agents/skills/agent-prompt-engineering" ~/.claude/skills/agent-prompt-engineering &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/agent-prompt-engineering` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/agent-prompt-engineering` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/agent-prompt-engineering &&
cp -R "$tmp/.agents/skills/agent-prompt-engineering" ~/.agents/skills/agent-prompt-engineering &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/agent-prompt-engineering` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/agent-prompt-engineering` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/agent-prompt-engineering &&
cp -R "$tmp/.agents/skills/agent-prompt-engineering" ~/.cursor/skills/agent-prompt-engineering &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/agent-prompt-engineering` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/mtarcure/claude-vibe-squad.git --path .agents/skills/agent-prompt-engineering
```

Or copy the folder to `~/.gemini/skills/agent-prompt-engineering` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/agent-prompt-engineering`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/agent-prompt-engineering &&
cp -R "$tmp/.agents/skills/agent-prompt-engineering" ~/.copilot/skills/agent-prompt-engineering &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/agent-prompt-engineering` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git
```

Then copy `claude-vibe-squad/.agents/skills/agent-prompt-engineering` into your agent's skills folder as `agent-prompt-engineering`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should Agent prompt engineering trigger?

When you are building or revising the system prompt for a product agent and need an eval-backed boundary, tool-use, grounding and output contract. It is not for board-specialist adapters or lane capability projections.

### Does Agent prompt engineering include scripts or extra files?

No. The folder contains only the SKILL.md file and no scripts.

### Does Agent prompt engineering restrict which tools can be used?

The skill does not set allowed tools.

### How do I install Agent prompt engineering in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/agent-prompt-engineering to use it in all your projects, or to .claude/skills/agent-prompt-engineering in one project.

### Does Agent prompt engineering run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Agent prompt engineering?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Agent prompt engineering?

The closest alternatives to Agent prompt engineering are Prompt optimizer, System prompt creator, Prompt design, Prompt optimizer and Writing prompts.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Prompt optimizer](https://ai-powered.com/skills/prompt-optimizer-getsentry): Prompt optimizer is an open-source agent skill for ai models and llm tooling.
- [System prompt creator](https://ai-powered.com/skills/system-prompt-creator): System prompt creator is an open-source agent skill for ai models and llm tooling.
- [Prompt design](https://ai-powered.com/skills/prompt-design): Prompt design is an open-source agent skill for ai models and llm tooling.
- [Prompt optimizer](https://ai-powered.com/skills/prompt-optimizer-github): Prompt optimizer is an open-source agent skill for ai models and llm tooling.
- [Writing prompts](https://ai-powered.com/skills/writing-prompts-xiaolai): Writing prompts is an open-source agent skill for ai models and llm tooling.
- [Finalize agent prompt](https://ai-powered.com/skills/finalize-agent-prompt): Finalize agent prompt is an open-source agent skill for ai models and llm tooling.
- [Skill creator](https://ai-powered.com/skills/skill-creator): Skill creator is a free agent skill for ai models and llm tooling.
- [AI prompt engineering safety review](https://ai-powered.com/skills/ai-prompt-engineering-safety-review): AI prompt engineering safety review is an open-source agent skill for ai models and llm tooling.

---
Source: https://ai-powered.com/skills/agent-prompt-engineering
