Prompt Snapshot — Development skill for Claude Code
Vitest-for-prompts.
How to install Prompt Snapshot
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open swarmclawai/prompt-snapshot and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Prompt Snapshot does
Vitest-for-prompts. File-based prompt eval runner with snapshots and assertions — no SaaS, no dashboard, CI-native. Built for agents.
Alternatives in Development
- 10 Context And Prompts — Prompt 10: Wire Up System Prompt, Context Gathering & Memory System 2.3k ★
- Codex Prompt Handgepflegte Mega Und Mini Prompts — Codex-Prompt — Handgepflegte Mega- und Mini-Prompts fuer alle Plugins 1.5k ★
- Phistory — Phistory automatically archives versioned system prompt snapshots from agent CLIs like Claude Code, Codex, Ope 560 ★
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
Eval Prompts
Run a golden-set prompt eval suite against the pinned baseline; fail on any regression beyond threshold.
Skill Snapshot Skill
Claude Code skill for creating snapshots of skills with version control
Pi Inspect
Introspection dashboard for the pi coding agent — tools, prompts, skills, and the system prompt injected on in
Skill Eval Harness
Agent Skill evaluation harness for paired variants, trace artifacts, and runner adapters
LiteBench
A pip-installable benchmark runner for LLMs and agents. Five minutes to your first eval.
Cadorange
Agent-native CAD runtime in TypeScript, powered by occt.ts (OCCT/WASM). Headless, embeddable, in-process: snap
Related Agents
Turbo Flow V4 + Ruflo V3.5 — The Definitive Prompt & Workflow Guide
One document. Every feature. Every workflow. Every scenario. Copy-paste prompts for Claude Code that leverage
Git Snapshots
Git and Snapshot system - full git abstraction plus automatic versioned snapshots. Use proactively when the us
AWS Snapshot Exposure
Determine which AWS snapshots, AMIs and SSM documents are shared outside the account, whether the share is usa