prompt-engineer-toolkit
БесплатноЗапускает вложенные скриптыНе проверенTests, versions and scores production prompts: prompt linting, version diffs, eval-suite scoring with a CI gate. Use when changing a production prompt…
от borghei★ 1 250 звёзд на GitHubОб этом скилле
Prompt Engineer Toolkit
The agent treats production prompts like code: it writes them against a stated goal, tests them with an eval suite, versions every change with a reason and a baseline score, and refuses a change that lowers the score. The tools measure prompt text, diff versions and score eval results, so "looks better" becomes a number.
Pick this or a sibling: this skill is the test, version and evaluate loop. engineering/senior-prompt-engineer covers authoring techniques and LLM system design in depth; engineering/prompt-governance covers catalogs, ownership, approval and injection audits across a team.
How to Write Prompts for Reasoning Models
Current reasoning models think before they answer, so prompts work best when they state the goal, the constraints with the reason for each, the context the model needs, one or two examples of the output, and an exact output contract. Leave out "think step by step", forced "Thought:" blocks and shouted MUST/NEVER: they cost tokens and cause over-triggering. Control depth with the platform's reasoning-effort or thinking-budget setting. Explicit chain-of-thought is for non-reasoning models only (see the patterns catalog). Sampling parameters such as temperature are model-dependent and some reasoning models ignore or reject them; use structured outputs for format stability instead.
When to Use
- Designing a production prompt or building a prompt library.
- Running regression tests or A/B comparisons on prompt variants.
- Versioning prompts and gating changes on eval scores.
- Debugging a degraded prompt, or migrating one to a new model.
Clarify First
Before designing or testing the prompt, settle the inputs below. 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.
- Task and definition of good: what the prompt must produce and how success is judged (becomes the eval suite).
- Target model: reasoning or non-reasoning, structured-output support, and which parameters it accepts.
- Lifecycle stage: design new, debug degraded, or migrate (selects the workflow).
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.
Workflow
- Write the eval suite first: 10 to 30 cases with real inputs, the model's actual outputs, and
contains/regex/exactexpectations (shape:assets/sample_eval_suite.json). Include edge cases and format checks. - Draft or revise the prompt using the six-layer structure in the patterns catalog: role, goal, constraints with reasons, context, examples, output contract.
- Lint the text with
prompt_analyzer.py: it flags vague wording, chain-of-thought scaffolding and all-caps emphasis, and estimates tokens. - Diff against the last version with
prompt_diff.pyand read the risk findings (removed constraints, changed output format). - Score the new outputs with
eval_scorer.py --fail-under <baseline>. Validation checkpoint: the new version must match or beat the baseline score, with no new failures on format cases. - Done when the suite passes at or above baseline, the changelog entry records the reason and score, and a rollback version is named.
Quick Start
# from engineering/prompt-engineer-toolkit/
python3 scripts/prompt_analyzer.py assets/prompt_v1.txt # 57/100: CoT scaffold, all-caps, vague words
python3 scripts/prompt_diff.py assets/prompt_v1.txt assets/prompt_v2.txt
python3 scripts/eval_scorer.py assets/sample_eval_suite.json --fail-under 0.9 # exit 1: tc-004 breaks the JSON contract
Tools Overview
| Tool | Purpose | Key flags | Exit codes |
|---|---|---|---|
scripts/prompt_analyzer.py |
Clarity score with deductions (vague words, CoT scaffolding, all-caps emphasis), instruction density, few-shot coverage, layer coverage, token estimate | files..., --json |
0 analyzed; 2 missing file |
scripts/prompt_diff.py |
Structural diff of two versions: sections, instructions added and removed, risk findings | old new, --show-diff, --json |
0 compared; 2 missing file |
scripts/eval_scorer.py |
Scores outputs against exact, contains and regex expectations; per-tag and per-case results |
suite.json, --fail-under 0.8, --json |
0 scored (at or above threshold); 1 below --fail-under; 2 unreadable or malformed suite |
The analyzer and diff are heuristics on text: they catch common smells, not whether the prompt works. Only the eval suite answers that.
Anti-Patterns
Mistake: Shipping a prompt change because the new output "reads better". Why it matters: One impressive example hides regressions on the cases you did not look at. Instead: Run the whole suite and compare against the recorded baseline before merging.
Mistake: Adding "think step by step" or a requ
Установить prompt-engineer-toolkit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл prompt-engineer-toolkit?
Tests, versions and scores production prompts: prompt linting, version diffs, eval-suite scoring with a CI gate. Use when changing a production prompt, building an eval suite, debugging a regression, or migrating to a new model.
Как установить скилл prompt-engineer-toolkit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл prompt-engineer-toolkit запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub