Prompt Snapshot
Description
Vitest-for-prompts. File-based prompt eval runner with snapshots and assertions — no SaaS, no dashboard, CI-native. Built for agents.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
prompt-snapshot
Vitest-for-prompts. A file-based prompt eval runner with snapshots and assertions. No dashboard, no SaaS, no sign-up — just `.prompt.ts` files in your repo and a CLI that runs them in CI.
[](https://www.npmjs.com/package/@swarmclawai/prompt-snapshot) [](./LICENSE) [](https://github.com/swarmclawai/prompt-snapshot/actions/workflows/ci.yml)
Why this exists
If you ship any LLM feature, you should be testing your prompts the way you test your code — in CI, on every change. The existing options (Langfuse, DeepEval, Phoenix, Promptfoo) are heavy observability platforms shaped for enterprise teams: SDK init, hosted dashboards, sign-ups, YAML configs, whole new abstractions to learn.
A solo dev or small team wants this instead:
- Colocated
.prompt.tsfiles next to the code that uses the prompt. - A TypeScript-native API with types, autocomplete, and Zod schemas.
- Snapshot testing — run a prompt, capture the output, fail the build if it drifts.
- Deterministic assertions (
contains,matchesSchema, …) for the parts that matter. - One CLI, JSON output, stable exit codes — CI-friendly on day one.
That's what `prompt-snapshot` is.
30-second demo
Create `summarizer.prompt.ts`:
import { defineSuite, contains, shorterThan } from "@swarmclawai/prompt-snapshot";
export default defineSuite({
name: "summarizer",
model: { provider: "anthropic", model: "claude-haiku-4-5", temperature: 0 },
prompt: ({ doc }: { doc: string }) =>
`Summarize the following in one sentence.\n\n${doc}`,
cases: [
{
name: "short-doc",
input: { doc: "The cat sat on the mat. The dog watched from across the room." },
assertions: [contains("cat", { caseInsensitive: true }), shorterThan(300)],
snapshot:
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11