agents-md
Creates and maintains concise AGENTS.md and CLAUDE.md project instruction files. Use when asked to create AGENTS.md, update AGENTS.md, maintain agent docs, set…
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
$ npx -y skills add getsentry/sentry-skills --skill prompt-optimizer --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/prompt-optimizerContext preview
The summary Claude sees to decide when to auto-load this skill.
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
name: prompt-optimizer description: 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.
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:
If 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:
Read `references/model-family-notes.md`.
Read `references/core-patterns.md`.
Read `references/meta-optimization-loop.md` for refinements.
1. Baseline the current prompt on the same eval slice. 2. Cluster failures by root cause. 3. Write concrete edit criticisms. 4. Generate two to four candidates:
5. Compare candidates on the same cases. 6. Keep a short optimization log. 7. Validate the winner on holdout cases. 8. Stop on plateau, oscillation, overfit, excessive cost, or non-prompt bottleneck.
Return:
1. `Target` 2. `Success Criteria` 3. `External Context` 4. `Optimized Prompt` 5. `Adapter Notes` 6. `Eval Set` 7. `Optimization Log` 8. `Residual Risks`
For existing prompts, include a concise diff-style note of the main behavioral changes.
For skills to help set up Sentry in your project or debug production issues, see Agent skills for Sentry employees, following the Agent Skills open format.
Repo: getsentry/sentry-skills
Creates and maintains concise AGENTS.md and CLAUDE.md project instruction files. Use when asked to create AGENTS.md, update AGENTS.md, maintain agent docs, set…
Write, review, and improve blog posts for the Sentry engineering blog following Sentry's specific writing standards, voice, and quality bar. Use this skill…
Write copy following Sentry brand guidelines. Use when writing UI text, error messages, empty states, onboarding flows, 404 pages, documentation, marketing…
Analyze a repository to generate recommended Claude Code settings.json permissions. Use when setting up a new project, auditing existing settings, or…
Perform code reviews following Sentry engineering practices. Use when reviewing pull requests, examining code changes, or providing feedback on code quality.…
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Use when asked to "simplify code", "clean up…