agents-md
Creates and maintains concise AGENTS.md and CLAUDE.md project instruction files. Use when asked to create AGENTS.md, update…
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
Claude Code
$ npx -y skills add getsentry/skills --skill prompt-optimizer --agent claude-code
Codex
$ npx skills add getsentry/skills --skill prompt-optimizer -a codex -y
Cursor
$ npx skills add getsentry/skills --skill prompt-optimizer -a cursor -y
Gemini CLI
$ npx skills add getsentry/skills --skill prompt-optimizer -a gemini-cli -y
GitHub Copilot
$ npx skills add getsentry/skills --skill prompt-optimizer -a github-copilot -y
OpenCode
$ npx skills add getsentry/skills --skill prompt-optimizer -a opencode -y
Windsurf
$ npx skills add getsentry/skills --skill prompt-optimizer -a windsurf -y
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.
Agent skills for Sentry employees, following the Agent Skills open format.
Creates and maintains concise AGENTS.md and CLAUDE.md project instruction files. Use when asked to create AGENTS.md, update…
Write, review, and improve blog posts for the Sentry engineering blog following Sentry's specific writing standards, voice, and…
Write copy following Sentry brand guidelines. Use when writing UI text, error messages, empty states, onboarding flows, 404…
Analyze a repository to generate recommended Claude Code settings.json permissions. Use when setting up a new project, auditing…
Perform code reviews following Sentry engineering practices. Use when reviewing pull requests, examining code changes, or…
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Use when asked to…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.