Skills
Skill 20 of 27
Creates, optimizes, and iteratively refines agent prompts, system prompts, developer prompts, and reusable prompt templates.
2 minutes · 486 words · 8 sections
Install
npx skills add getsentry/skills --skill prompt-optimizernpx skills add getsentry/skills/plugin marketplace add getsentry/skillsThe first command installs just this skill, by the name in its SKILL.md; the second installs the whole repository.
Optimize prompts with evals. Keep every instruction, example, and external context reference causal.
| Need | Read |
|---|---|
| New prompt | references/core-patterns.md, references/model-family-notes.md, references/transformed-examples.md |
| Existing prompt | references/meta-optimization-loop.md, references/core-patterns.md, references/model-family-notes.md |
| Model-family port | references/model-family-notes.md, references/core-patterns.md |
| Repeated failures | references/meta-optimization-loop.md, references/core-patterns.md |
| Weak or ambiguous draft | references/transformed-examples.md |
| Provenance | SOURCES.md |
Record before editing:
system, developer, user, tool descriptions, examples, schemasIf success criteria or examples are missing, create a small eval set first. If the bottleneck is model choice, retrieval, tool schema, or missing evals, say so before rewriting.
For repo or agent prompts, list stable context by exact path:
| Context type | Examples |
|---|---|
| Agent rules | AGENTS.md, CLAUDE.md |
| Specs | specs/*.md, docs/api.md |
| Policies | SECURITY.md, docs/releasing.md |
| Examples | examples/, tests/fixtures/ |
Rules:
loaded, referenced, or out of scope.Read references/model-family-notes.md.
Read references/core-patterns.md.
system or developer.Read references/meta-optimization-loop.md for refinements.
Return:
TargetSuccess CriteriaExternal ContextOptimized PromptAdapter NotesEval SetOptimization LogResidual RisksFor existing prompts, include a concise diff-style note of the main behavioral changes.
Creates, optimizes, and iteratively refines agent prompts, system prompts, developer prompts, and reusable prompt templates. Use when asked to improve a prompt, optimize a system prompt, rewrite an agent prompt, tune prompt wording, make a prompt more reliable, port prompts between OpenAI, Claude, or Gemini, or build prompt evals.
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
main, last pushed 21 September 2026.SKILL.md, not by matching a directory convention. One layout observed: skills/*/SKILL.md.h1 and no skipped levels:.claude-plugin/marketplace.json by Sentry, declaring 1 plugin. It is read for editorial metadata only — never as the skill index, which is always the repository tree./getsentry/skills.md, and each skill at its own .md URL.6 files · 32 KB
Everything this skill ships beside its prose. All of it is set here, as subchapters of skill 20.
Documentation the agent loads on demand, rather than up front.
Everything else published alongside the skill.