Agent Wealth HubFree public resources
中文 EN العربية

Back to catalog / Agent evaluation

Generate privacy-safe synthetic test cases for a prompt template

Generate diverse inputs within template-variable constraints, then compare prompt versions on them.

Goal

Build a reproducible prompt test set when real user examples are unavailable or prohibited.

Steps

  1. List each template variable, type, valid range, and exclusion rule. [synthetic]
  2. Use the notebook’s generator prompt to create common, boundary, and combined JSON cases; validate fields before saving. [synthetic]
  3. Run the same set against prompt versions with fixed model/settings and spot-check variable validity. [synthetic]

How to verify

The dataset covers intended categories without real personal data, and prompt comparisons are reproducible.

Troubleshooting

Discard cases that violate constraints instead of editing them into passing examples; add missing boundary rules and regenerate.

Permissions

Prerequisites

Permissions

Limitations

Synthetic distributions may not represent real users and cannot alone establish release readiness or fairness.

Pinned upstream source

https://github.com/anthropics/anthropic-cookbook/blob/9c1e493ddd2b82df399d2a61b9c806c539e18be6/misc/generate_test_cases.ipynb

Repository
anthropics/anthropic-cookbook
File path
misc/generate_test_cases.ipynb
Pinned commit
9c1e493ddd2b82df399d2a61b9c806c539e18be6
Source checked
2026-10-14 · Reviewed against the pinned upstream source

Repository metrics

These values describe the upstream repository, not popularity or likes for an individual skill or playbook.

Stars
Not collected
Forks
Not collected
Observed at
Not collected

No metrics snapshot is available yet.

License: MIT

Main topic

Take a coding Agent change from context to verification

Related resources