/engineering-advanced-skills:prompt-engineer-toolkitfrom engineering-advanced-skills
Tests, versions, and scores production prompts with linting, version diffs, and eval-suite scoring. Use when changing a production prompt, building an eval suite, debugging a regression, or migrating to a new model.
Ships in engineering-advanced-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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.
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.
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.
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.
contains / regex / exact expectations (shape: assets/sample_eval_suite.json). Include edge cases and format checks.prompt_analyzer.py: it flags vague wording, chain-of-thought scaffolding and all-caps emphasis, and estimates tokens.prompt_diff.py and read the risk findings (removed constraints, changed output format).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.# 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
| 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.
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 required reasoning block for a reasoning model. Why it matters: The model already reasons; the scaffold costs tokens, and forcing reasoning into the answer can break the output contract or be refused. Instead: State the goal and the checks; raise reasoning effort if the task needs more depth.
Mistake: Asking the model to rate its own confidence.
Why it matters: Self-ratings are labels, not calibration; a confident wrong answer stays confident.
Instead: Require an evidence field quoting the source for each claim, and test that unsupported claims are marked as such.
| File | Purpose |
|---|---|
scripts/prompt_analyzer.py, scripts/prompt_diff.py, scripts/eval_scorer.py | Stdlib CLIs |
assets/prompt_v1.txt | Weak ticket-triage prompt (scaffolding, shouting, vague words) |
assets/prompt_v2.txt | Rewrite with goal, reasons, examples and a JSON contract |
assets/sample_eval_suite.json | Four cases; one breaks the JSON-only contract (75% average) |
Covers: prompt structure, eval suites and scoring, regression gating, versioning and changelogs, failure modes, model migration.
Does not cover:
engineering/senior-ml-engineer).engineering/rag-architect and engineering/context-engine).engineering/agent-designer).engineering/llm-cost-optimizer).eval_scorer.py checks text deterministically; it makes no model calls.assets/prompt_v1.txt (opens in a new tab)assets/prompt_v2.txt (opens in a new tab)assets/sample_eval_suite.json (opens in a new tab)references/failure-modes-and-workflows.md (opens in a new tab)references/prompt-patterns-catalog.md (opens in a new tab)references/testing-and-versioning.md (opens in a new tab)scripts/eval_scorer.py (opens in a new tab)scripts/prompt_analyzer.py (opens in a new tab)scripts/prompt_diff.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
prompt-engineering, evals, regression-testing, version-control, llm
npx claudepluginhub borghei/claude-skills --plugin engineering-advanced-skills100 skills in this plugin
/a11y-auditStatic WCAG scan of HTML files (alt text, headings, labels, ARIA, lang, landmarks) and colour contrast checks for colour pairs or CSS. Use when auditing templates for accessibility, checking contrast, or adding an a11y gate to CI.
/agent-designerDesigns multi-agent system architectures with orchestration patterns, tool schemas, and performance evaluation. Use when building AI agent systems, designing agent workflows, creating tool schemas, or evaluating agent performance.
/agent-harnessTest and evaluation harness for AI agents — scenario suites, deterministic replay, regression diffing, cost and latency budgets. Use when agent quality is vibe-checked, before shipping a prompt or model change, or when evals drift.
Other plugins' skills for the same job