prompt-engineer-toolkit — скилл для Claude Code: что делает
Скилл тестирует, сравнивает и версионирует маркетинговые промпты. Он пригодится, когда качество ответов нужно проверять по тест-кейсам.
/plugin marketplace add alirezarezvani/claude-skills
/plugin install marketing-skills@claude-code-skillsЧто делает prompt-engineer-toolkit
prompt-engineer-toolkit превращает маркетинговые промпты в проверяемые рабочие версии. Скилл запускает A/B-сравнение по JSON-тестам, оценивает покрытие ожидаемого содержания, запрещённые фрагменты, соответствие regex и длину ответа. Результаты можно получить в текстовом или JSON-формате.
Внутри есть scripts/prompt_tester.py и scripts/prompt_versioner.py. Первый принимает два промпта, набор кейсов и опциональную команду внешнего LLM-раннера. Второй добавляет версии, хранит снимки содержимого и метаданные, показывает diff и changelog. В комплекте также есть шаблоны для рекламных текстов, email-кампаний, соцсетей, лендингов и SEO-мета, а также правила проверки утверждений, раскрытия и ручного ревью.
Для запуска скриптов нужен python3; внешний раннер задаётся отдельно, если он используется. Ставить скилл стоит командам, которые меняют промпты по версиям и хотят принимать решения по набору тестов. Для разовой правки одного промпта он избыточен.
Какие задачи решает
- сравнить два промпта на одном наборе кейсов
- проверить обязательное содержание и запрещённые фрагменты
- сохранить историю версий промпта и автора изменений
- посмотреть diff перед выпуском новой версии
- собрать регрессионный набор для LLM-промпта
Примеры запросов агенту
- Проведи A/B-тест для `prompts/a.txt` и `prompts/b.txt` на данных из `testcases.json`.
- Добавь версию `support_classifier` из `prompts/support_v3.txt` от автора `alice`.
- Покажи diff между версиями `2` и `3`, затем сформируй changelog.
Как установить prompt-engineer-toolkit
1Через маркетплейс плагинов
/plugin marketplace add alirezarezvani/claude-skills/plugin install marketing-skills@claude-code-skillsКоманда ставит плагин marketing-skills целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add alirezarezvani/claude-skills --skill prompt-engineer-toolkit -a claude-code3Вручную: положить файлы
~/.claude/skills/prompt-engineer-toolkit/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/prompt-engineer-toolkit/
Вручную: положить файлы
.agents/skills/prompt-engineer-toolkit/SKILL.mdДля всех проектов — ~/.agents/skills/
Вручную: положить файлы
.cursor/skills/prompt-engineer-toolkit/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install alirezarezvani/claude-skills prompt-engineer-toolkit2Вручную: положить файлы
.github/skills/prompt-engineer-toolkit/SKILL.mdКомандой платформы
gemini skills install https://github.com/alirezarezvani/claude-skills --path marketing-skill/skills/prompt-engineer-toolkitВручную: положить файлы
.devin/skills/prompt-engineer-toolkit/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора349
Весь набор →Похожие
Вопросы о prompt-engineer-toolkit
Как установить prompt-engineer-toolkit в Claude Code?
В Claude Code выполните npx skills add alirezarezvani/claude-skills --skill prompt-engineer-toolkit -a claude-code.
Что делает prompt-engineer-toolkit?
Скилл сравнивает промпты по структурированным тест-кейсам, считает проверки качества и ведёт неизменяемую историю версий с diff. Он также содержит маркетинговые шаблоны и правила LLM-гovernance.
Что нужно для запуска тестов prompt-engineer-toolkit?
Скрипты запускаются через python3. Для тестирования с внешней моделью можно передать команду раннера через --runner-cmd; тестовые кейсы задаются в JSON.
Исходный текст
SKILL.md · MIT
---
name: "prompt-engineer-toolkit"
description: "Turns marketing prompts into tested, versioned production assets: A/B prompt evaluation against structured test cases, immutable prompt version history with diffs, ready-to-use marketing prompt templates (ad copy, email campaigns, social posts, landing pages, SEO meta), and an LLM-governance playbook for marketing teams (claim discipline, disclosure rules, human-review gates). Use when a marketing team relies on AI-generated content and needs prompt quality to be measurable and safe — or when the user mentions 'prompt engineering,' 'improve my prompts,' 'prompt templates,' 'prompt versioning,' 'AI content workflow,' or 'AI governance for marketing.'"
license: MIT
metadata:
version: 1.0.0
author: Alireza Rezvani
category: marketing
updated: 2026-03-06
---
# Prompt Engineer Toolkit
## Overview
Use this skill to move prompts from ad-hoc drafts to production assets with repeatable testing, versioning, and regression safety. It emphasizes measurable quality over intuition. Apply it when launching a new LLM feature that needs reliable outputs, when prompt quality degrades after model or instruction changes, when multiple team members edit prompts and need history/diffs, when you need evidence-based prompt choice for production rollout, or when you want consistent prompt governance across environments.
## Core Capabilities
- A/B prompt evaluation against structured test cases
- Quantitative scoring for adherence, relevance, and safety checks
- Prompt version tracking with immutable history and changelog
- Prompt diffs to review behavior-impacting edits
- Reusable prompt templates and selection guidance
- Regression-friendly workflows for model/prompt updates
## Key Workflows
### 1. Run Prompt A/B Test
Prepare JSON test cases and run:
```bash
python3 scripts/prompt_tester.py \
--prompt-a-file prompts/a.txt \
--prompt-b-file prompts/b.txt \
--cases-file testcases.json \
--runner-cmd 'my-llm-cli --prompt {prompt} --input {input}' \
--format text
```
Input can also come from stdin/`--input` JSON payload.
### 2. Choose Winner With Evidence
The tester scores outputs per case and aggregates:
- expected content coverage
- forbidden content violations
- regex/format compliance
- output length sanity
Use the higher-scoring prompt as candidate baseline, then run regression suite.
### 3. Version Prompts
```bash
# Add version
python3 scripts/prompt_versioner.py add \
--name support_classifier \
--prompt-file prompts/support_v3.txt \
--author alice
# Diff versions
python3 scripts/prompt_versioner.py diff --name support_classifier --from-version 2 --to-version 3
# Changelog
python3 scripts/prompt_versioner.py changelog --name support_classifier
```
### 4. Regression Loop
1. Store baseline version.
2. Propose prompt edits.
3. Re-run A/B test.
4. Promote only if score and safety constraints improve.
## Script Interfaces
- `python3 scripts/prompt_tester.py --help`
- Reads prompts/cases from stdin or `--input`
- Optional external runner command
- Emits text or JSON metrics
- `python3 scripts/prompt_versioner.py --help`
- Manages prompt history (`add`, `list`, `diff`, `changelog`)
- Stores metadata and content snapshots locally
## Pitfalls, Best Practices & Review Checklist
**Avoid these mistakes:**
1. Picking prompts from single-case outputs — use a realistic, edge-case-rich test suite.
2. Changing prompt and model simultaneously — always isolate variables.
3. Missing `must_not_contain` (forbidden-content) checks in evaluation criteria.
4. Editing prompts without version metadata, author, or change rationale.
5. Skipping semantic diffs before deploying a new prompt version.
6. Optimizing one benchmark while harming edge cases — track the full suite.
7. Model swap without rerunning the baseline A/B suite.
**Before promoting any prompt, confirm:**
- [ ] Task intent is explicit and unambiguous.
- [ ] Output schema/format is explicit.
- [ ] Safety and exclusion constraints are explicit.
- [ ] No contradictory instructions.
- [ ] No unnecessary verbosity tokens.
- [ ] A/B score improves and violation count stays at zero.
## References
- [references/prompt-templates.md](references/prompt-templates.md) — 6 production marketing templates (ad copy, email sequence, social repurposing, landing sections, SEO meta, brand-voice rewrite) plus generic building blocks; each written to be graded by `prompt_tester.py`
- [references/technique-guide.md](references/technique-guide.md) — technique-selection table for marketing tasks + the LLM-governance stack for marketing teams (claim discipline, disclosure rules, data boundaries, human-review gates)
- [references/evaluation-rubric.md](references/evaluation-rubric.md) — mechanical scoring weights, acceptance gates, marketing quality dimensions, test-suite design, and eval anti-patterns
- [README.md](README.md)
## Evaluation Design
Each test case should define:
- `input`: realistic production-like input
- `expected_contains`: required markers/content
- `forbidden_contains`: disallowed phrases or unsafe content
- `expected_regex`: required structural patterns
This enables deterministic grading across prompt variants.
## Versioning Policy
- Use semantic prompt identifiers per feature (`support_classifier`, `ad_copy_shortform`).
- Record author + change note for every revision.
- Never overwrite historical versions.
- Diff before promoting a new prompt to production.
## Rollout Strategy
1. Create baseline prompt version.
2. Propose candidate prompt.
3. Run A/B suite against same cases.
4. Promote only if winner improves average and keeps violation count at zero.
5. Track post-release feedback and feed new failure cases back into test suite.
© Alireza Rezvani · MIT · alirezarezvani/claude-skills