Official agent skill

Generate Snapshot Tests

by getsentry in getsentry/sentry

Generate snapshot test files for Sentry frontend React components.

OfficialCustom licenceAuto-check passedFrontend & Design

Install Generate Snapshot Tests

skills CLI
$ npx skills add getsentry/sentry --skill generate-snapshot-tests -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install getsentry/sentry generate-snapshot-tests --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/getsentry/sentry.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/generate-snapshot-tests .claude/skills/generate-snapshot-tests && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
generate-snapshot-tests
GitHub stars
45k
Token cost
~3.3k tokens
SKILL.md length
592 words
Files
1
Skills in repo
29
Repo updated
First seen
Licence
Custom licence

At a glance

Generate snapshot test files for Sentry frontend React components.

  • Works in 5 steps: Locate the Component → Determine the Import Path → Identify Props to Snapshot → …
  • Asked to generate snapshot tests
  • SKILL.md covers Step 1: Locate the Component, Step 2: Determine the Import…, Step 3: Identify Props to… and Step 4: Write the Snapshot File, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Generate Snapshot Tests is an agent skill from getsentry/sentry, published by the product's own GitHub organization. Generate snapshot test files for Sentry frontend React components. Use when asked to "generate snapshot tests", "add snapshot tests", "create visual snapshots", "write snapshot tests", "add visual regression tests", or "snapshot this component". Accepts an optional component path or name via $ARGUMENTS.

Its SKILL.md is about 3.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering React components and Visual regression testing. It works with Sentry. The repository describes itself as: Developer-first error tracking and performance monitoring.

When your agent uses it

  • Asked to generate snapshot tests
  • Add snapshot tests
  • Create visual snapshots
  • Write snapshot tests

Example prompts

  • “generate snapshot tests”
  • “add snapshot tests”
  • “create visual snapshots”
  • “/generate-snapshot-tests”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Locate the Component
  2. Determine the Import Path
  3. Identify Props to Snapshot
  4. Write the Snapshot File
  5. Ordering snapshots within the theme loop

What it can do on your machine

Read from SKILL.md and the folder at commit 87d1203. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Generate Snapshot Tests loads about 3.3k tokens when it runs. Until then it costs about 82 tokens; SKILL.md has 592 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~82
When it runs · the whole SKILL.md, loaded when a task matches
~3.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 592 words (~3,302 tokens).

“Generate a *.snapshots.tsx file colocated with a Sentry React component, following the established pattern used by core design system components.”

— opening of SKILL.md by getsentry, Custom licence
name
generate-snapshot-tests
type
workflow-process

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/generate-snapshot-tests of getsentry/sentry.

Open the folder on GitHubat commit 87d1203

Compare with similar skills

Generate Snapshot Tests next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Generate Snapshot Tests compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Generate Snapshot Tests this skillgetsentry/sentry45k—~3.3kAutomated safety check: PassCustom licence
Ark UIBrandon030722/ark-ui-skill265—~3.7kAutomated safety check: PassNone
Manage HTML Teststelerik/kendo-themes158—~1.8kAutomated safety check: PassNone
Sanity Visual Coveragesanity-io/sanity6.4k—~1.9kAutomated safety check: PassMIT
Adversarial QAinkline/inkline1.5k—~1.2kAutomated safety check: PassNone
Vrtmarigold-ui/marigold146—~787Automated safety check: PassMIT

Similar skills

  • Ark UI

    Brandon030722/ark-ui-skill

    Design, implement, audit, or refactor web and game-adjacent interfaces using an evidence-based Hypergryph visual language with two independent choices: product family and application depth (1…

    265 GitHub stars~3.7k tokensUpdated 2 mo ago
    Frontend & DesignAuto-check passed
  • Manage HTML Tests

    telerik/kendo-themes

    Create or update visual test scenarios for a Kendo UI component in the HTML package.

    158 GitHub stars~1.8k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Sanity Visual Coverage

    sanity-io/sanity

    Official

    Check whether Studio UI is covered by Chromatic visual regression, for a PR's changed files or for the whole tree, and decide between "already covered", "a story is pending in an open PR", and…

    6.4k GitHub stars~1.9k tokensUpdated today
    Testing & QAAuto-check passed
  • Adversarial QA

    inkline/inkline

    Repro-first QA for Inkline — minimal .ink.tsx reproductions, the visual-parity and cross-target harnesses, fuzz targets, and how to audit teammates' claims.

    1.5k GitHub stars~1.2k tokensUpdated 26 days ago
    Frontend & DesignAuto-check passed
  • Vrt

    marigold-ui/marigold

    DST — Trigger the Visual-Regression-Tests (Chromatic) GitHub Actions workflow on the current or a given branch.

    146 GitHub stars~787 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Visual Acceptance Review

    huiliyi37/Tianshu-harness

    Chinese-language final-check method for UI visual changes before delivery, using multi-theme screenshot matrices, pixel-level evidence and a CSS cascade checklist.

    1.1k GitHub stars~601 tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed

More from getsentry/sentry

All 29 skills in this repo
  • Scraps Review

    getsentry/sentry

    Official

    Filter large Sentry Scraps design-system migration PRs for review by separating mechanical import-path changes, generated baseline updates, snapshot mocks, and pure renames from substantive…

    45k GitHub stars~1.2k tokensUpdated today
    Auto-check: notes
  • Analytics

    getsentry/sentry

    Official

    Instrument and discover analytics events in Sentry's frontend UI.

    45k GitHub stars~2.5k tokensUpdated today
    Auto-check passed
  • Hybrid Cloud Outboxes

    getsentry/sentry

    Official

    Guide for creating and maintaining outbox-based eventually consistent operations in Sentry.

    45k GitHub stars~4.8k tokensUpdated today
    Auto-check passed
  • Hybrid Cloud Rpc

    getsentry/sentry

    Official

    Guide for creating, updating, and deprecating hybrid cloud RPC services in Sentry.

    45k GitHub stars~4k tokensUpdated today
    Auto-check passed
  • Hybrid Cloud Test Gen

    getsentry/sentry

    Official

    Generate hybrid cloud tests for the Sentry codebase. An agent skill from getsentry/sentry.

    45k GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • Lint Fix

    getsentry/sentry

    Official

    Fix violations of an eslintPluginScraps rule across the codebase.

    45k GitHub stars~1k tokensUpdated today
    Auto-check passed

Works with

Questions about Generate Snapshot Tests

What does Generate Snapshot Tests do?

Generate snapshot test files for Sentry frontend React components. Generate Snapshot Tests is an agent skill from getsentry/sentry, published by the product's own GitHub organization. Generate snapshot test files for Sentry frontend React components.

When should I use Generate Snapshot Tests?

Generate Snapshot Tests fits situations like: asked to generate snapshot tests; add snapshot tests; create visual snapshots; write snapshot tests.

How do I install Generate Snapshot Tests in Claude Code?

Run `npx skills add getsentry/sentry --skill generate-snapshot-tests -a claude-code`. Or copy the skill folder (.agents/skills/generate-snapshot-tests in getsentry/sentry) into .claude/skills/generate-snapshot-tests in your project. Claude Code loads it when a task matches its description.

How do I install Generate Snapshot Tests in Codex?

Run `npx skills add getsentry/sentry --skill generate-snapshot-tests -a codex`. Or copy the skill folder (.agents/skills/generate-snapshot-tests in getsentry/sentry) into .agents/skills/generate-snapshot-tests in your project. Codex loads it when a task matches its description.

Can I use Generate Snapshot Tests in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add getsentry/sentry --skill generate-snapshot-tests -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/generate-snapshot-tests, .gemini/skills/generate-snapshot-tests, .github/skills/generate-snapshot-tests and .opencode/skills/generate-snapshot-tests in your project.

What does Generate Snapshot Tests need to run?

SKILL.md names no scripts, command-line tools or credentials: Generate Snapshot Tests is instructions for the agent only.

Does Generate Snapshot Tests access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Generate Snapshot Tests safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Generate Snapshot Tests use?

Generate Snapshot Tests has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Generate Snapshot Tests use?

About 3.3k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Generate Snapshot Tests?

Skills that share tags, products or a category with Generate Snapshot Tests: Ark UI (Brandon030722/ark-ui-skill, 265 stars), Manage HTML Tests (telerik/kendo-themes, 158 stars), Sanity Visual Coverage (sanity-io/sanity, 6.4k stars) and Adversarial QA (inkline/inkline, 1.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Generate Snapshot Tests?

getsentry (a GitHub organization, an official publisher) maintains it in getsentry/sentry, which has 45,495 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on October 7, 2026.

Source: getsentry/sentry on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.