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
- 14 Dev Runner — Prompt 14: Create Development Runner 2.2k ★
- Phistory — Phistory automatically archives versioned system prompt snapshots from agent CLIs like Claude Code, Codex, Ope 560 ★
- Clarc — Native macOS client for Claude Code — a GUI desktop app built with SwiftUI 363 ★
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.
Lit Web Apps Skill
Agent skill for building framework-free web apps with Lit: SSR/SSG/CSR, platform-native routing, signals, Type
Skill Snapshot Skill
Claude Code skill for creating snapshots of skills with version control
Gd Agent
Drive any Godot 4 game in the background from an agent, script or bot — screenshots, input injection, click-by
Pi Inspect
Introspection dashboard for the pi coding agent — tools, prompts, skills, and the system prompt injected on in
Session Optimizer
Cross-platform prompt refinement for Codex, Gemini CLI, and Claude Code, plus Claude-native context guard and
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
Conversation Designer
Use this agent when translating natural-language app descriptions into concrete design decisions. Interprets a