Command Palette

Search for a command to run...

Назад к скиллам
скилл № 53189

senior-prompt-engineer

Prompt engineering and LLM evaluation. Use when optimizing prompts, designing prompt templates, evaluating LLM outputs, building agentic systems, implementing…

БесплатноЗапускает вложенные скрипты
borgheiот borghei★ 1 250 звёзд на GitHub

Установить senior-prompt-engineer в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Senior Prompt Engineer

Prompt engineering patterns, LLM evaluation frameworks, and agentic system design. Provides static (deterministic) analysis tools to optimize prompts, evaluate RAG retrieval and generation quality, and validate/visualize agent workflows — plus deep reference libraries of prompt patterns, evaluation metrics, and agent architectures.

Core Capabilities

  • Prompt optimization — token counting and cost estimation, clarity/structure scoring, ambiguity and redundancy detection, and generation of optimized prompt versions.
  • Few-shot & structured output design — extract/manage few-shot examples, design diverse example sets (simple/edge/complex/negative), and enforce reliable JSON/XML schema outputs.
  • RAG evaluation — context relevance, answer faithfulness, groundedness (ROUGE-L), and retrieval metrics (Precision@K, MRR, NDCG) over pre-retrieved contexts.
  • Agentic system design — validate agent configs, visualize flows (ASCII/Mermaid), estimate token cost per run, and apply ReAct / Plan-Execute / Tool-Use / multi-agent patterns.
  • Pattern library — 10 prompt patterns, evaluation frameworks (A/B testing, benchmarks, human eval), and agent architectures with pseudocode.

Prompting Reasoning Models

Current frontier models reason before they answer, which changes what a good prompt looks like:

  • Goal, context, constraints, done. Say what the output is for, who reads it, what to avoid and why, and how success is judged. Context beats a generic persona.
  • An output contract. A schema, a filled example, or the provider's structured-output feature.
  • No scripted thinking. "Think step by step", forced Thought: blocks and "explain your reasoning first" are for non-reasoning models. For reasoning models, raise the platform's reasoning control (effort / thinking budget) when a task needs more depth.
  • Calm emphasis with reasons. ALL-CAPS imperatives make models over-apply rules; a one-line reason lets them handle edge cases.
  • Evals over intuition. Keep a small set of real inputs with expected outputs and re-run it on every change.

prompt_optimizer.py flags forced chain-of-thought and shouted imperatives, so you can run it on an inherited prompt to find them.

When to Use

  • Optimizing an existing prompt's performance or reducing token costs.
  • Designing prompt templates, few-shot examples, or structured-output workflows.
  • Evaluating LLM outputs or RAG retrieval/generation quality.
  • Building or validating agentic systems and tool-calling workflows.

Clarify First

What shapes this skill's output most is the target model, the job the prompt has to do, and the data you can test it against. Settle the inputs below before producing anything. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

  • Target model: whether it is a reasoning model decides whether explicit chain-of-thought helps or hurts, and token counts depend on the family (prompt_optimizer.py --model). Prices come from the provider's pricing page, passed as flags.
  • Task and output contract: whether the prompt classifies, extracts, generates or drives an agent decides which of the 10 patterns fits and whether a JSON or XML schema has to be enforced. A missing output format is one of the first issues the optimizer flags.
  • Evaluation data: without sample inputs, expected outputs or pre-retrieved contexts, the work stays at static clarity and structure scoring. rag_evaluator.py needs contexts and questions before it can report relevance, faithfulness or Precision@K, so find out what exists before promising those numbers.
  • Volume and budget: the daily run count drives the monthly cost projection (--runs), and a tight budget shifts the trade-off between more few-shot examples and a shorter prompt.

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

Tools Overview

Tool Purpose Example (runs as written)
prompt_optimizer.py Heuristic prompt review: vague wording, missing output format, forced chain-of-thought, ALL-CAPS emphasis, structure, token estimate; --optimize, --extract-examples, --compare python scripts/prompt_optimizer.py assets/sample_prompt_flawed.txt --analyze
rag_evaluator.py Lexical RAG scoring: context relevance, faithfulness (numbers absent from the context count as unsupported), groundedness, Precision@K; --min-faithfulness gate python scripts/rag_evaluator.py --contexts assets/sample_contexts.json --questions assets/sample_questions.json --min-faithfulness 0.7
agent_orchestrator.py Validate an agent config, draw its flow (ASCII/Mermaid), estimate tokens and cost per run `python scripts/agent_orchestrator.py assets/sample_agent.yaml --estimate-cost --in
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • assets/sample_agent.yaml
  • assets/sample_contexts.json
  • assets/sample_prompt_clean.txt
  • assets/sample_prompt_flawed.txt
  • assets/sample_questions.json
  • references/agentic_system_design.md
  • references/llm_evaluation_frameworks.md
  • references/prompt_engineering_patterns.md
  • references/tools-and-workflows.md
  • scripts/agent_orchestrator.py
  • scripts/prompt_optimizer.py
  • scripts/rag_evaluator.py

FAQ

Что делает скилл senior-prompt-engineer?

Prompt engineering and LLM evaluation. Use when optimizing prompts, designing prompt templates, evaluating LLM outputs, building agentic systems, implementing RAG, creating few- shot examples, or designing structured-output workflows.

Как установить скилл senior-prompt-engineer?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл senior-prompt-engineer запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить senior-prompt-engineer с