
Prompt Engineer Toolkit
FreeTransform marketing prompts into tested production assets.
Free · Opens the source repo
What Prompt Engineer Toolkit does
The Prompt Engineer Toolkit is designed to streamline the process of creating and managing marketing prompts for AI-generated content. It emphasizes a structured approach to prompt evaluation, allowing marketing teams to ensure quality and safety in their outputs. By integrating A/B testing, version control, and regression workflows, this toolkit provides a comprehensive solution for teams that rely on AI to generate marketing materials such as ad copy, email campaigns, and social media posts.
With this toolkit, users can conduct A/B tests on their prompts using structured test cases, enabling them to quantitatively assess the effectiveness of different prompt variations. The toolkit tracks prompt versions, maintaining an immutable history that allows teams to review changes and ensure that only the best-performing prompts are promoted to production. This is particularly useful in environments where multiple team members may edit prompts, as it provides clarity and accountability through version diffs and changelogs.
Additionally, the Prompt Engineer Toolkit includes ready-to-use prompt templates and a governance playbook tailored for marketing teams. This ensures that all generated content adheres to established guidelines, including safety checks and compliance with marketing standards. By providing a systematic approach to prompt engineering, the toolkit helps teams avoid common pitfalls and maintain high-quality outputs in their AI-driven marketing efforts.
Overall, this toolkit is a valuable resource for marketing teams looking to enhance their AI content workflows, ensuring that prompt quality is both measurable and manageable. It is particularly beneficial when launching new features or when prompt quality is critical for successful marketing campaigns.
When to use it
Use this skill when your marketing team relies on AI-generated content and needs to establish measurable quality standards for prompts.
When not to use it
This toolkit may not be suitable for teams that do not require structured testing or versioning of prompts, or for those who prefer a more intuitive, less formal approach to prompt creation.
What you can build with it
Launching a New Marketing Campaign
When preparing for a new marketing campaign, use the toolkit to create and test multiple prompt variations to identify the most effective messaging.
Ensuring Compliance in AI Content
Utilize the toolkit's governance features to ensure all AI-generated content adheres to your organization's compliance and safety standards.
Collaborative Prompt Development
In a team setting, leverage the version control capabilities to manage prompt edits from different team members, maintaining a clear history of changes.
How to install Prompt Engineer Toolkit
View source1. Install with the skills CLI
npx skills add alirezarezvani/claude-skills/prompt-engineer-toolkit --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by alirezarezvaniPrompt 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:
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
# 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
- Store baseline version.
- Propose prompt edits.
- Re-run A/B test.
- 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
- Reads prompts/cases from stdin or
python3 scripts/prompt_versioner.py --help- Manages prompt history (
add,list,diff,changelog) - Stores metadata and content snapshots locally
- Manages prompt history (
Pitfalls, Best Practices & Review Checklist
Avoid these mistakes:
- Picking prompts from single-case outputs — use a realistic, edge-case-rich test suite.
- Changing prompt and model simultaneously — always isolate variables.
- Missing
must_not_contain(forbidden-content) checks in evaluation criteria. - Editing prompts without version metadata, author, or change rationale.
- Skipping semantic diffs before deploying a new prompt version.
- Optimizing one benchmark while harming edge cases — track the full suite.
- 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 — 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 — 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 — mechanical scoring weights, acceptance gates, marketing quality dimensions, test-suite design, and eval anti-patterns
- README.md
Evaluation Design
Each test case should define:
input: realistic production-like inputexpected_contains: required markers/contentforbidden_contains: disallowed phrases or unsafe contentexpected_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
- Create baseline prompt version.
- Propose candidate prompt.
- Run A/B suite against same cases.
- Promote only if winner improves average and keeps violation count at zero.
- Track post-release feedback and feed new failure cases back into test suite.
Frequently asked questions about Prompt Engineer Toolkit
Similar skills
Arize Prompt Optimization
Enhance LLM prompts using data-driven insights.
Prompt Optimizer
Transform vague ideas into precise LLM prompts.
Prompt Engineering Patterns
Enhance LLM prompts for better performance and reliability.
Senior Prompt Engineer
Optimize LLM performance and design advanced AI systems.
Senior Prompt Engineer
Optimize prompts and evaluate LLM outputs efficiently.
Claude Coach
Become a power user of Claude with personalized coaching.
