Agent skill

Prompt Engineer

by chrispangg in chrispangg/deepagentsdk

A skill your agent uses when creating, improving, or optimizing prompts for Claude.

MITAuto-check passedAI & LLM Engineering

Install Prompt Engineer

skills CLI
$ npx skills add chrispangg/deepagentsdk --skill prompt-engineer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install chrispangg/deepagentsdk prompt-engineer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/chrispangg/deepagentsdk.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/prompt-engineer .claude/skills/prompt-engineer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
prompt-engineer
GitHub stars
128
Token cost
~2k tokens
SKILL.md length
792 words
Files
4 (incl. references)
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when creating, improving, or optimizing prompts for Claude.

  • Works in 7 steps: Understand Requirements → Identify Applicable Techniques → Load Relevant References → …
  • Optimizing prompts for Claude
  • SKILL.md covers Overview, When to Use This Skill, Workflow and Important Principles, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Prompt Engineer is an agent skill from chrispangg/deepagentsdk. Use this skill when creating, improving, or optimizing prompts for Claude. Applies Anthropic's best practices for prompt engineering including clarity, structure, consistency, hallucination reduction, and security. Useful when users request help with writing prompts, improving existing prompts, reducing errors, increasing consistency, or implementing specific techniques like chain-of-thought, multishot prompting, or XML structuring.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/advanced_patterns.md`, `references/core_prompting.md` and `references/quality_improvement.md`).

It sits in AI & LLM Engineering, covering Prompt engineering. The repository describes itself as: A Deep Agent Harness framework built with Vercel's AI SDK v6. The licence is MIT.

When your agent uses it

  • Optimizing prompts for Claude
  • Tasks that involve Prompt engineering

Example prompts

  • “/prompt-engineer”

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Understand Requirements
  2. Identify Applicable Techniques
  3. Load Relevant References
  4. Design the Prompt
  5. Add Quality Controls
  6. Optimize and Test
  7. Iterate Based on Results

What it can do on your machine

Read from SKILL.md and the folder at commit feaaa05. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Prompt Engineer loads about 2k tokens when it runs, and up to ~8.4k if it reads all its reference files. Until then it costs about 113 tokens; SKILL.md has 792 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~113
When it runs · the whole SKILL.md, loaded when a task matches
~2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from chrispangg/deepagentsdk at commit feaaa05, republished under its MIT licence (© chrispangg). 792 words, ~2,039 tokens.

Download SKILL.mdSave it as .claude/skills/prompt-engineer/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
prompt-engineer
description
Use this skill when creating, improving, or optimizing prompts for Claude. Applies Anthropic's best practices for prompt engineering including clarity, structure, consistency, hallucination reduction, and security. Useful when users request help with writing prompts, improving existing prompts, reducing errors, increasing consistency, or implementing specific techniques like chain-of-thought, multishot prompting, or XML structuring.

Prompt Engineering Skill

This skill provides comprehensive guidance for creating effective prompts for Claude based on Anthropic's official best practices. Use this skill whenever working on prompt design, optimization, or troubleshooting.

Overview

Apply proven prompt engineering techniques to create high-quality, reliable prompts that produce consistent, accurate outputs while minimizing hallucinations and implementing appropriate security measures.

When to Use This Skill

Trigger this skill when users request:

  • Help writing a prompt for a specific task
  • Improving an existing prompt that isn't performing well
  • Making Claude more consistent, accurate, or secure
  • Creating system prompts for specialized roles
  • Implementing specific techniques (chain-of-thought, multishot, XML tags)
  • Reducing hallucinations or errors in outputs
  • Debugging prompt performance issues

Workflow

Step 1: Understand Requirements

Ask clarifying questions to understand:

  • Task goal: What should the prompt accomplish?
  • Use case: One-time use, API integration, or production system?
  • Constraints: Output format, length, style, tone requirements
  • Quality needs: Consistency, accuracy, security priorities
  • Complexity: Simple task or multi-step workflow?
Step 2: Identify Applicable Techniques

Based on requirements, determine which techniques to apply:

Core techniques (for all prompts):

  • Be clear and direct
  • Use XML tags for structure

Specialized techniques:

  • Role-specific expertise → System prompts
  • Complex reasoning → Chain of thought
  • Format consistency → Multishot prompting
  • Multi-step tasks → Prompt chaining
  • Long documents → Long context tips
  • Deep analysis → Extended thinking
  • Factual accuracy → Hallucination reduction
  • Output consistency → Consistency techniques
  • Security concerns → Jailbreak mitigation
Step 3: Load Relevant References

Read the appropriate reference file(s) based on techniques needed:

For basic prompt improvement:

Read references/core_prompting.md

Covers: clarity, system prompts, XML tags

For complex tasks:

Read references/advanced_patterns.md

Covers: chain of thought, multishot, chaining, long context, extended thinking

For specific quality issues:

Read references/quality_improvement.md

Covers: hallucinations, consistency, security

Step 4: Design the Prompt

Apply techniques from references to create the prompt structure:

Basic Template:

[System prompt - optional, for role assignment]

<context>
Relevant background information
</context>

<instructions>
Clear, specific task instructions
Use numbered steps for multi-step tasks
</instructions>

<examples>
  <example>
    <input>Sample input</input>
    <output>Expected output</output>
  </example>
  [2-4 more examples if using multishot]
</examples>

<output_format>
Specify exact format (JSON, XML, markdown, etc.)
</output_format>

[Actual task/question]

Key Design Principles:

  1. Clarity: Be explicit and specific
  2. Structure: Use XML tags to organize
  3. Examples: Provide 3-5 concrete examples for complex formats
  4. Context: Give relevant background
  5. Constraints: Specify output requirements clearly
Step 5: Add Quality Controls

Based on quality needs, add appropriate safeguards:

For factual accuracy:

  • Grant permission to say "I don't know"
  • Request quote extraction before analysis
  • Require citations for claims
  • Limit to provided information sources

For consistency:

  • Provide explicit format specifications
  • Use response prefilling
  • Include diverse examples
  • Consider prompt chaining

For security:

  • Add harmlessness screening
  • Establish clear ethical boundaries
  • Implement input validation
  • Use layered protection
Step 6: Optimize and Test

Optimization checklist:

  • Could someone with minimal context follow the instructions?
  • Are all terms and requirements clearly defined?
  • Is the desired output format explicitly specified?
  • Are examples diverse and relevant?
  • Are XML tags used consistently?
  • Is the prompt as concise as possible while remaining clear?

Testing approach:

  • Run prompt multiple times with varied inputs
  • Check consistency across runs
  • Verify outputs match expected format
  • Test edge cases
  • Validate quality controls work
Show full SKILL.md (331 more words)Show less
Step 7: Iterate Based on Results

Debugging process:

  1. Identify failure points
  2. Review relevant reference material
  3. Apply appropriate techniques
  4. Test and measure improvement
  5. Repeat until satisfactory

Common Issues and Solutions:

IssueSolutionReference
Inconsistent formatAdd examples, use prefillingquality_improvement.md
HallucinationsAdd uncertainty permission, quote groundingquality_improvement.md
Missing stepsBreak into subtasks, use chainingadvanced_patterns.md
Wrong toneAdd role to system promptcore_prompting.md
Misunderstands taskAdd clarity, provide contextcore_prompting.md
Complex reasoning failsAdd chain of thoughtadvanced_patterns.md

Important Principles

Progressive Disclosure Start with core techniques and add advanced patterns only when needed. Don't over-engineer simple prompts.

Documentation When delivering prompts, explain which techniques were used and why. This helps users understand and maintain them.

Validation Always validate critical outputs, especially for high-stakes applications. No prompting technique eliminates all errors.

Experimentation Prompt engineering is iterative. Small changes can have significant impacts. Test variations and measure results.

Quick Reference Guide

Technique Selection Matrix
User NeedPrimary TechniqueReference File
Better clarityBe clear and directcore_prompting.md
Domain expertiseSystem promptscore_prompting.md
Organized structureXML tagscore_prompting.md
Complex reasoningChain of thoughtadvanced_patterns.md
Format consistencyMultishot promptingadvanced_patterns.md
Multi-step processPrompt chainingadvanced_patterns.md
Long documents (100K+ tokens)Long context tipsadvanced_patterns.md
Deep analysisExtended thinkingadvanced_patterns.md
Reduce false informationHallucination reductionquality_improvement.md
Consistent outputsConsistency techniquesquality_improvement.md
Security/safetyJailbreak mitigationquality_improvement.md
When to Combine Techniques
  • Structured analysis: XML tags + Chain of thought
  • Consistent formatting: Multishot + Response prefilling
  • Complex workflows: Prompt chaining + XML tags
  • Factual reports: Quote grounding + Citation verification
  • Production systems: System prompts + Input validation + Consistency techniques

Resources

This skill includes three comprehensive reference files:

references/core_prompting.md

Essential techniques for all prompts:

  • Being clear and direct
  • System prompts and role assignment
  • Using XML tags effectively
references/advanced_patterns.md

Sophisticated techniques for complex tasks:

  • Chain of thought prompting
  • Multishot prompting
  • Prompt chaining
  • Long context handling
  • Extended thinking
references/quality_improvement.md

Techniques for specific quality issues:

  • Reducing hallucinations
  • Increasing consistency
  • Mitigating jailbreaks and prompt injections

Load these files as needed based on the workflow steps above.

© chrispangg, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in .claude/skills/prompt-engineer of chrispangg/deepagentsdk.

  • SKILL.md
  • references/advanced_patterns.md
  • references/core_prompting.md
  • references/quality_improvement.md

Open the folder on GitHubat commit feaaa05

Compare with similar skills

Prompt Engineer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Prompt Engineer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Prompt Engineer this skillchrispangg/deepagentsdk128—~2kAutomated safety check: PassMIT
Prompt Improverseverity1/claude-code-prompt-improver1.9k1 repos~1.7kAutomated safety check: PassMIT
Prompt Engineering Patternsynulihao/AgentSkillOS61714 repos~1.7kAutomated safety check: PassNone
Patch CreationPiebald-AI/tweakcc2.5k—~1.6kAutomated safety check: PassMIT
Senior Prompt Engineermaslennikov-ig/claude-code-orchestrator-kit2603 repos~1.4kAutomated safety check: PassCustom licence
Codex Fable5baskduf/FableCodex437—~1.6kAutomated safety check: PassAGPL-3.0

Similar skills

  • Prompt Improver

    severity1/claude-code-prompt-improver

    This skill enriches vague prompts with targeted research and clarification before execution.

    1.9k GitHub starsUsed in 1 repo~1.7k tokens
    AI & LLM EngineeringAuto-check passed
  • Prompt Engineering Patterns

    ynulihao/AgentSkillOS

    Master advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability in production.

    617 GitHub starsUsed in 14 repos~1.7k tokens
    AI & LLM EngineeringAuto-check passed
  • Patch Creation

    Piebald-AI/tweakcc

    Create and register new patches for tweakcc. An agent skill from Piebald-AI/tweakcc.

    2.5k GitHub stars~1.6k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Senior Prompt Engineer

    maslennikov-ig/claude-code-orchestrator-kit

    Provides reference guides and Python scripts for prompt optimization, RAG evaluation, and agent orchestration when building or tuning LLM systems.

    260 GitHub starsUsed in 3 repos~1.4k tokens
    AI & LLM EngineeringAuto-check passed
  • Codex Fable5

    baskduf/FableCodex

    Apply a Claude Fable 5 inspired operating style inside Codex.

    437 GitHub stars~1.6k tokensUpdated 2 mo ago
    AI & LLM EngineeringAuto-check passed
  • Reference for designing and tuning production LLM prompts: few-shot examples, chain-of-thought, structured outputs, templates and system prompts.

    40k GitHub stars~1.3k tokensUpdated 4 days ago
    AI & LLM EngineeringAuto-check passed

More from chrispangg/deepagentsdk

  • Testing Anti Patterns

    chrispangg/deepagentsdk

    A skill your agent uses when writing or changing tests, adding mocks, or tempted to add test-only methods to production code - prevents testing mock behavior, production pollution with test-only…

    128 GitHub starsUsed in 4 repos~2.2k tokens
    Auto-check passed
  • Content Writer

    chrispangg/deepagentsdk

    Writing content across different platforms and styles. An agent skill from chrispangg/deepagentsdk.

    128 GitHub stars~3.3k tokensUpdated 7 mo ago
    Auto-check passed

Questions about Prompt Engineer

What does Prompt Engineer do?

A skill your agent uses when creating, improving, or optimizing prompts for Claude. Prompt Engineer is an agent skill from chrispangg/deepagentsdk. Use this skill when creating, improving, or optimizing prompts for Claude.

When should I use Prompt Engineer?

Prompt Engineer fits situations like: optimizing prompts for Claude; tasks that involve Prompt engineering.

How do I install Prompt Engineer in Claude Code?

Run `npx skills add chrispangg/deepagentsdk --skill prompt-engineer -a claude-code`. Or copy the skill folder (.claude/skills/prompt-engineer in chrispangg/deepagentsdk) into .claude/skills/prompt-engineer in your project. Claude Code loads it when a task matches its description.

How do I install Prompt Engineer in Codex?

Run `npx skills add chrispangg/deepagentsdk --skill prompt-engineer -a codex`. Or copy the skill folder (.claude/skills/prompt-engineer in chrispangg/deepagentsdk) into .agents/skills/prompt-engineer in your project. Codex loads it when a task matches its description.

Can I use Prompt Engineer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add chrispangg/deepagentsdk --skill prompt-engineer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/prompt-engineer, .gemini/skills/prompt-engineer, .github/skills/prompt-engineer and .opencode/skills/prompt-engineer in your project.

What does Prompt Engineer need to run?

SKILL.md names no scripts, command-line tools or credentials: Prompt Engineer is instructions for the agent only.

Does Prompt Engineer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Prompt Engineer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Prompt Engineer use?

Prompt Engineer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Prompt Engineer use?

About 2k tokens (SKILL.md is roughly 8.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 6.3k tokens, read only when the agent opens those files.

What are the alternatives to Prompt Engineer?

Skills that share tags, products or a category with Prompt Engineer: Prompt Improver (severity1/claude-code-prompt-improver, 1.9k stars), Prompt Engineering Patterns (ynulihao/AgentSkillOS, 617 stars), Patch Creation (Piebald-AI/tweakcc, 2.5k stars) and Senior Prompt Engineer (maslennikov-ig/claude-code-orchestrator-kit, 260 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Prompt Engineer?

chrispangg (a GitHub user) maintains it in chrispangg/deepagentsdk, which has 128 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on February 24, 2026.

Source: chrispangg/deepagentsdk on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.