Marketing Prompt Testing

Prompt engineer toolkit

by alirezarezvani · MIT license · ★ 26,349 on GitHub · updated Aug 30

Prompt engineer toolkit cover

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,…

---
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

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.

Manual install (npx, ZIP)
Claude Codenpx skills add alirezarezvani/claude-skills --skill prompt-engineer-toolkit -g -a claude-code
Claude Code (manual)mkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/alirezarezvani/claude-skills/tar.gz/19392f7a0826 \ | tar -xz -C ~/.claude/skills --strip-components=3 claude-skills-19392f7a0826/marketing-skill/skills/prompt-engineer-toolkit
Windows (PowerShell)New-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/5a7cb62d6cf183dbbbac/prompt-engineer-toolkit.zip" -OutFile "$env:TEMP\prompt-engineer-toolkit.zip"; Expand-Archive "$env:TEMP\prompt-engineer-toolkit.zip" -DestinationPath "$HOME\.claude\skills" -Force
Claude.ai / desktopDownload the ZIP and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md5.6 KB
  • README.md1.2 KB
  • references/3 files · 16.4 KB
  • scripts/2 files · 15.5 KB
Read the files here
alirezarezvani/19392f77 files
SKILL.md
Show the full text139 lines

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:

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
  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 — 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 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.
1---
2name: "prompt-engineer-toolkit"
3description: "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.'"
4license: MIT
5metadata:
6 version: 1.0.0
7 author: Alireza Rezvani
8 category: marketing
9 updated: 2026-03-06
10---
11 
12# Prompt Engineer Toolkit
13 
14## Overview
15 
16Use 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.
17 
18## Core Capabilities
19 
20- A/B prompt evaluation against structured test cases
21- Quantitative scoring for adherence, relevance, and safety checks
22- Prompt version tracking with immutable history and changelog
23- Prompt diffs to review behavior-impacting edits
24- Reusable prompt templates and selection guidance
25- Regression-friendly workflows for model/prompt updates
26 
27## Key Workflows
28 
29### 1. Run Prompt A/B Test
30 
31Prepare JSON test cases and run:
32 
33```bash
34python3 scripts/prompt_tester.py \
35 --prompt-a-file prompts/a.txt \
36 --prompt-b-file prompts/b.txt \
37 --cases-file testcases.json \
38 --runner-cmd 'my-llm-cli --prompt {prompt} --input {input}' \
39 --format text
40```
41 
42Input can also come from stdin/`--input` JSON payload.
43 
44### 2. Choose Winner With Evidence
45 
46The tester scores outputs per case and aggregates:
47 
48- expected content coverage
49- forbidden content violations
50- regex/format compliance
51- output length sanity
52 
53Use the higher-scoring prompt as candidate baseline, then run regression suite.
54 
55### 3. Version Prompts
56 
57```bash
58# Add version
59python3 scripts/prompt_versioner.py add \
60 --name support_classifier \
61 --prompt-file prompts/support_v3.txt \
62 --author alice
63 
64# Diff versions
65python3 scripts/prompt_versioner.py diff --name support_classifier --from-version 2 --to-version 3
66 
67# Changelog
68python3 scripts/prompt_versioner.py changelog --name support_classifier
69```
70 
71### 4. Regression Loop
72 
731. Store baseline version.
742. Propose prompt edits.
753. Re-run A/B test.
764. Promote only if score and safety constraints improve.
77 
78## Script Interfaces
79 
80- `python3 scripts/prompt_tester.py --help`
81 - Reads prompts/cases from stdin or `--input`
82 - Optional external runner command
83 - Emits text or JSON metrics
84- `python3 scripts/prompt_versioner.py --help`
85 - Manages prompt history (`add`, `list`, `diff`, `changelog`)
86 - Stores metadata and content snapshots locally
87 
88## Pitfalls, Best Practices & Review Checklist
89 
90**Avoid these mistakes:**
911. Picking prompts from single-case outputs — use a realistic, edge-case-rich test suite.
922. Changing prompt and model simultaneously — always isolate variables.
933. Missing `must_not_contain` (forbidden-content) checks in evaluation criteria.
944. Editing prompts without version metadata, author, or change rationale.
955. Skipping semantic diffs before deploying a new prompt version.
966. Optimizing one benchmark while harming edge cases — track the full suite.
977. Model swap without rerunning the baseline A/B suite.
98 
99**Before promoting any prompt, confirm:**
100- [ ] Task intent is explicit and unambiguous.
101- [ ] Output schema/format is explicit.
102- [ ] Safety and exclusion constraints are explicit.
103- [ ] No contradictory instructions.
104- [ ] No unnecessary verbosity tokens.
105- [ ] A/B score improves and violation count stays at zero.
106 
107## References
108 
109- [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`
110- [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)
111- [references/evaluation-rubric.md](references/evaluation-rubric.md) — mechanical scoring weights, acceptance gates, marketing quality dimensions, test-suite design, and eval anti-patterns
112- [README.md](README.md)
113 
114## Evaluation Design
115 
116Each test case should define:
117 
118- `input`: realistic production-like input
119- `expected_contains`: required markers/content
120- `forbidden_contains`: disallowed phrases or unsafe content
121- `expected_regex`: required structural patterns
122 
123This enables deterministic grading across prompt variants.
124 
125## Versioning Policy
126 
127- Use semantic prompt identifiers per feature (`support_classifier`, `ad_copy_shortform`).
128- Record author + change note for every revision.
129- Never overwrite historical versions.
130- Diff before promoting a new prompt to production.
131 
132## Rollout Strategy
133 
1341. Create baseline prompt version.
1352. Propose candidate prompt.
1363. Run A/B suite against same cases.
1374. Promote only if winner improves average and keeps violation count at zero.
1385. Track post-release feedback and feed new failure cases back into test suite.
139 
View all files on GitHub →

Details

Updated
Aug 30, 2026
License
MIT
Stars on the repo
★ 26,349
Checked
Source
alirezarezvani/claude-skills ↗
Creator
alirezarezvani · 363 listings
View creator

Similar skills

See all →
SkillSkill Builder from Sourcesyusufkaraaslan/Skill_Seekers · by yusufkaraaslanAutomatically detect source types and build AI skills using Skill Seekers. Use when the user wants to create skills from documentation, repos, PDFs, videos, or other knowledge sources.★ 15.1k GitHub starsSkillAnthropic Skill Creatoranthropics/skills · by anthropicsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.★ 178k GitHub starsSkillAdvanced Prompt Patternswshobson/agents · by wshobsonThis skill should be used when the user asks to "optimize a prompt", "improve prompt performance", "design a prompt template", "write better prompts", "debug prompt issues", "use chain-of-thought", "structured prompting", "few-shot prompting", or wants to apply advanced prompt engineering patterns for production LLM applications.★ 39.9k GitHub starsSkillPrompt Engineering Expertalirezarezvani/claude-skills · by alirezarezvaniUse when the user asks to optimize prompts, design prompt templates, evaluate LLM outputs with an eval set, measure RAG retrieval quality, validate agent/tool configurations, analyze token usage, or design structured-output contracts. Covers eval-driven prompt iteration, RAG metrics (relevance, faithfulness, coverage), agent workflow validation, and token/cost budgeting — all model-agnostic, with three stdlib Python tools.★ 26.3k GitHub starsAgentProduction Prompt OptimizerVoltAgent/awesome-claude-code-subagents · by VoltAgentUse this agent when you need to design, optimize, test, or evaluate prompts for large language models in production systems.★ 25.2k GitHub starsSkillProgrammatic Prompt Librarydanielmiessler/LifeOS · by danielmiesslerMeta-prompting standard library for generating, optimizing, and composing prompts programmatically via Standards, Handlebars Templates, and Tools; output is always a prompt to use elsewhere, not final content. USE WHEN meta-prompting, template generation, prompt optimization, prompt engineering, write a prompt, create system prompt, Handlebars template, eval prompt, judge prompt. NOT FOR generating final content (use the appropriate domain skill).★ 19.3k GitHub stars

More from alirezarezvani

SkillExperiment Resume Toolalirezarezvani/claude-skills · by alirezarezvaniResume a paused experiment. Checkout the experiment branch, read results history, continue iterating. Use when the user runs /ar:ar-resume or asks to pick up a previously started autoresearch experiment.★ 26.3k GitHub starsSkillExperiment Dashboard Vieweralirezarezvani/claude-skills · by alirezarezvaniShow experiment dashboard with results, active loops, and progress. Use when the user runs /ar:ar-status or asks how an autoresearch experiment is going.★ 26.3k GitHub starsSkillAutonomous Experiment Runneralirezarezvani/claude-skills · by alirezarezvaniStart an autonomous experiment loop with user-selected interval (10min, 1h, daily, weekly, monthly). Uses CronCreate for scheduling. Use when the user runs /ar:loop or asks to run an autoresearch experiment continuously on a schedule.★ 26.3k GitHub starsSkillSingle Experiment Iteratoralirezarezvani/claude-skills · by alirezarezvaniRun a single experiment iteration. Edit the target file, evaluate, keep or discard. Use when the user runs /ar:run or asks for one manual autoresearch iteration.★ 26.3k GitHub starsSkillAutoresearch Experiment Setupalirezarezvani/claude-skills · by alirezarezvaniSet up a new autoresearch experiment interactively. Collects domain, target file, eval command, metric, direction, and evaluator. Use when the user runs /ar:setup or asks to start optimizing a file with the autoresearch loop.★ 26.3k GitHub starsSkillExecutive Boardroom Deliberatoralirezarezvani/claude-skills · by alirezarezvani/cs:boardroom <brief> — 6-phase multi-role deliberation across the C-suite with Phase 2 isolation, critic pre-screen, and synthesis. Outputs a board memo. Use when a decision spans multiple executive domains — e.g. a pricing change touching finance, positioning, and product, or a raise-vs-cut runway call.★ 26.3k GitHub stars