Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

senior-prompt-engineer

Skill by alirezarezvani

Improves prompts and measures LLM quality with eval sets, RAG retrieval scoring and agent config checks. Built for developers whose prompts, chatbots or RAG answers are unreliable.

  • Score 94
  • 31k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install senior-prompt-engineer

Built from the published package, never by AI.

git clone --depth 1 https://github.com/alirezarezvani/claude-skills /tmp/claude-skills && mkdir -p ~/.claude/skills && cp -r /tmp/claude-skills/engineering-team/skills/senior-prompt-engineer ~/.claude/skills/senior-prompt-engineer

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install senior-prompt-engineer in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill covers eval-driven prompt engineering, RAG quality measurement and agent workflow validation. It includes three stdlib Python CLIs: a prompt optimizer for static analysis and baseline comparison, a RAG evaluator that scores retrieval and grounding from JSON files, and an agent orchestrator that validates YAML or JSON agent configs. It also gives step-by-step workflows for prompt optimization, few-shot design, structured output, RAG tuning and agent config review.

The skill requires a baseline before any prompt change and an eval set of 10 to 20 cases. It is model-agnostic, and cost figures only appear when the user supplies provider prices. It is aimed at developers and prompt engineers who need to test and improve LLM outputs.

Written from the project's SKILL.md and checked against it.

What it can do

  • Prompt OptimizerRuns static analysis on a prompt: token estimate, clarity and structure scores, ambiguity and redundancy checks.
  • RAG EvaluatorMeasures context relevance, precision at k, coverage, answer faithfulness and groundedness from JSON files.
  • Agent OrchestratorValidates agent configs for tool wiring, missing config, loop risk and token estimates.
  • Agent visualizationRenders an agent config as a Mermaid diagram with the --visualize option.
  • Agent cost estimateEstimates token cost over N runs when the user supplies input and output prices.
  • Prompt baseline comparisonCompares a revised prompt against a saved baseline JSON file with the --compare option.
  • Few-shot example extractionExtracts Input and Output few-shot pairs from a prompt into JSON for checking.
  • Structured output designGuides writing a JSON Schema and checking that eval outputs parse against it.
  • RAG tuning loopSets a baseline, fixes the lowest RAG metric first and blocks changes that regress any metric.
  • Eval-gated prompt workflowRequires a passing structural gate and no regressions on eval cases before a revised prompt ships.

What you need

  • Python 3
  • Your provider's current per-Mtok prices, if you want dollar cost figures

Try asking

  • Use senior-prompt-engineer to compare my revised prompt against baseline.json
  • Score my RAG retrieval results against questions.json with senior-prompt-engineer
  • Validate my agent.yaml config and check for loop risk

Good to know

  • Cost figures require user-supplied prices; the tools do not use a built-in price table.
  • The skill stops at the prompt and eval layer and does not cover model deployment or serving.
  • Relevance below 0.80 is treated as a retrieval problem to fix before rewriting the prompt.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: engineering-team/skills/senior-prompt-engineer/SKILL.md, engineering-team/skills/senior-prompt-engineer/scripts/agent_orchestrator.py, engineering-team/skills/senior-prompt-engineer/scripts/prompt_optimizer.py, engineering-team/skills/senior-prompt-engineer/scripts/rag_evaluator.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md10 KB
  • references/agentic_system_design.md21 KB
  • references/llm_evaluation_frameworks.md13 KB
  • references/prompt_engineering_patterns.md13 KB
  • scripts/agent_orchestrator.py21 KB
Show all 7 files
  • scripts/prompt_optimizer.py19 KB
  • scripts/rag_evaluator.py20 KB

Alternatives to senior-prompt-engineer

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

senior-prompt-engineer: common questions

Does senior-prompt-engineer need an eval set?

Yes. The source says to have at least 10 to 20 representative cases with expected outputs before optimizing a prompt.

Which models does it support?

The tools are model-agnostic and do not hardcode model IDs. The model field in agent configs is informational and any model name is accepted.

Are the scripts dependent on external libraries?

The source says all scripts use only the Python standard library.

How do I install senior-prompt-engineer?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is senior-prompt-engineer free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is senior-prompt-engineer safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to senior-prompt-engineer?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

senior-prompt-engineer Install

Add to stack

Loading.