Skip to content
Skills Library
AI & agents · Writing

prompt-engineering-expert

/prompt-engineering-expert

Expert prompt engineering, custom instruction, system prompt, and agent instruction design. Use when Codex needs to review, generate, refactor, debug, optimize, document, or test AI prompts; design reusable prompt templates; create or improve system prompts, custom instructions, agent behavior guidelines, tool-use prompts, multimodal prompts, or prompt evaluation frameworks.

Repository
ralphy ↗
Licence
Apache-2.0
Last repository change
26.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
6
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Expert prompt engineering, custom instruction, system prompt, and agent instruction design. Use when Codex needs to review, generate, refactor, debug, optimize, document, or test AI prompts; design reusable prompt templates; create or improve system prompts, custom instructions, agent behavior guidelines, tool-use prompts, multimodal prompts, or prompt evaluation frameworks.

Original author description

Expert prompt engineering, custom instruction, system prompt, and agent instruction design. Use when Codex needs to review, generate, refactor, debug, optimize, document, or test AI prompts; design reusable prompt templates; create or improve system prompts, custom instructions, agent behavior guidelines, tool-use prompts, multimodal prompts, or prompt evaluation frameworks.

How it works

  1. Workflow
  2. Response Pattern
  3. Core Principles
  4. Technique Selection
  5. Custom Instructions And Agent Prompts
  6. Vague verbs: "analyze," "improve," "make better," "handle this."
  7. Evaluation
  8. Reference Loading
Original SKILL.md headings · 97 lines, 730 words
SKILL.md preview
---
name: prompt-engineering-expert
description: |
  Expert prompt engineering, custom instruction, system prompt, and agent instruction design. Use when Codex needs to review, generate, refactor, debug, optimize, document, or test AI prompts; design reusable prompt templates; create or improve system prompts, custom instructions, agent behavior guidelines, tool-use prompts, multimodal prompts, or prompt evaluation frameworks.
license: MIT
---

# Prompt Engineering Expert

Use this skill to make prompts clearer, more reliable, easier to evaluate, and better matched to the model, task, tools, and operating context.

## Workflow

Identify the prompt's job: task, audience, model or agent context, available tools, inputs, output consumers, and failure cost.
Diagnose weaknesses before rewriting: ambiguity, missing context, conflicting instructions, brittle examples, unsafe scope, untestable success criteria, output format gaps, or token bloat.
Choose the lightest effective technique: direct instructions first; add roles, examples, structured tags, staged reasoning, tool-use guidance, or prompt chaining only when they solve a concrete issue.
Produce an improved prompt or instruction set with enough surrounding explanation for the user to evaluate the tradeoffs.
Define validation: expected behaviors, edge cases, regression cases, and success criteria.

## Response Pattern

For prompt reviews, prefer this structure:

- Diagnosis: the highest-impact issues, ordered by severity.
- Revision: a ready-to-use improved prompt.
- Why It Works: concise rationale for major changes.
- Tests: representative cases the user should run.

For prompt generation, prefer:

- Ask for missing high-risk constraints only if they cannot be reasonably assumed.
- Otherwise state assumptions and draft the prompt.
- Include variables/placeholders when the prompt should be reusable.
- Include a short evaluation checklist.

## Core Principles

- Make the task objective explicit.
- Give only the context needed to perform the task.
- State non-negotiable constraints separately from preferences.
- Specify the expected output format when downstream use matters.
- Use examples to teach patterns, not to smuggle one-off answers.
- Avoid hidden contradictions between role, task, constraints, and format.
- Prefer observable success criteria over subjective goals such as "high quality" or "good."
- Preserve model flexibility where multiple valid answers exist.
- Add safeguards for uncertainty: cite provided evidence, mark assumptions, and say what is unknown.

## Technique Selection

- Direct instruction: default for simple tasks.
- Few-shot examples: use when format, categorization, tone, or edge-case handling must be learned from examples.
- Structured tags or schemas: use when inputs, constraints, and outputs need clear boundaries or machine parsing.
- Role framing: use only when expertise, tone, or decision standards change the output.
- Staged reasoning or decomposition: use when the task has separable phases or frequent reasoning mistakes.
- Prompt chaining: use when one prompt is overloaded with extraction, analysis, transformation, and generation.
- Tool-use instructions: use when the agent must decide when to call tools, how to validate tool output, or how to recover from tool errors.
- Multimodal instructions: use when images, PDFs, spreadsheets, code, or other files require explicit inspection targets.
- See references/techniques.md [blocked] for patterns and compact examples.

## Custom Instructions And Agent Prompts

When designing system prompts, custom instructions, or agent skills:

- Define the agent's role through responsibilities and decision standards, not theatrical persona.
- Separate mandatory behavior from style preferences.
- Include boundaries: what to refuse, what to escalate, what to ask about, and what to infer.
- Keep instructions stable across turns; avoid directions that require mutating past context.
- For tool-using agents, specify tool selection, validation, retry, and user-update behavior.
- For coding agents, include repository conventions, test expectations, and change-safety rules.

Anti-Patterns
Watch for:

## Vague verbs: "analyze," "improve," "make better," "handle this."

Contradictions: "be concise" plus many mandatory sections, or "do not ask questions" plus missing required data.
Overfitted examples that teach accidental details.
Output formats described in prose when a schema or example is needed.
Prompts that invite hallucination by asking for facts without sources or data.
Security gaps: untrusted user content can override instructions, leak context, or request unsafe actions.
Token bloat from background essays, duplicated rules, and unused options.
See references/troubleshooting.md [blocked] for failure modes and fixes.

## Evaluation

Every non-trivial prompt improvement should include tests:

- Happy path with typical input.
- Edge case with missing, ambiguous, or malformed input.
- Regression case for a known failure.
- Adversarial or injection case when untrusted input is involved.
- Format compliance case when downstream parsing matters.
- See references/evaluation.md [blocked] for test templates and scoring rubrics.

## Reference Loading

Load only the references needed for the request:

- references/techniques.md [blocked]: prompting techniques, when to use each, and compact examples.
- references/troubleshooting.md [blocked]: common prompt failures, diagnosis, and fixes.
- references/evaluation.md [blocked]: prompt test cases, rubrics, and regression strategy.
- references/examples.md [blocked]: reusable prompt review, generation, classification, structured-output, and agent-instruction examples.
Files in this package (6)
  • SKILL.md 6 KB
  • references/evaluation.md 2 KB
  • references/examples.md 3 KB
  • references/techniques.md 4 KB
  • references/troubleshooting.md 3 KB
  • references/agents/openai.yaml 1 KB

Versions

RepositoryScoreLicence
This page · alecs5am/ralphy100Apache-2.0
miaoge-ge/coding-agent-skills100MIT

Database snapshot: 13.11.2026 · package version b50a5b4b0128 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100v1-prompt-engineering
    Use when writing, reviewing, or migrating prompts, system prompts, hooks, skills, or agent instructions. Triggers on "optimize prompt", "system prompt", or "prompt migration".
  • 100instruction-engineering
    Use when crafting, improving, or reviewing prompts, system prompts, skill instructions, or any text that instructs an LLM. Triggers: 'write a prompt', 'prompt engineering', 'improve this prompt', 'design a system prompt', 'write skill instructions', 'craft agent instructions'.…
  • 100prompt-engineer
    Expert prompt engineering for AI systems. Use when the user wants to write or review prompts for AI, create instructions for AI systems, build system prompts, review or improve existing prompts, optimize AI instructions, or create any form of written communication intended for…
  • 90prompt-engineering
    Use this skill when you writing commands, hooks, skills for Agent, or prompts for sub agents or any other LLM interaction, including optimizing prompts, improving LLM outputs, or designing production prompt templates.
  • 100prompt-engineer
    Audit and revise system prompts, developer instructions, tool descriptions, and reusable LLM prompt templates. Use for behavioral failures such as over-searching, format drift, weak tool use, instruction conflicts, or unsupported claims. Use for prompt behavior, not ordinary…
  • 100cursor-custom-prompts
    Create effective custom prompts for Cursor AI using project rules, prompt engineering patterns, and reusable templates. Triggers on "cursor prompts", "prompt engineering cursor", "better cursor prompts", "cursor instructions", "cursor prompt templates".

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.