Test Guidelines
getsentry/sentry-dart
Enforce Sentry Dart/Flutter SDK test conventions for naming, structure, and fixtures.
Enforce Sentry React Native SDK test conventions for naming, structure, mocking, and fixtures with Jest.
$ npx skills add getsentry/sentry-react-native --skill test-guidelines -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install getsentry/sentry-react-native test-guidelines --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/getsentry/sentry-react-native.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/test-guidelines .claude/skills/test-guidelines && rm -rf skills-srcUse ~/.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/
Install the "test-guidelines" agent skill from https://github.com/getsentry/sentry-react-native/tree/main/.agents/skills/test-guidelines into .claude/skills/test-guidelines/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-guidelines", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/getsentry/sentry-react-native/tree/main/.agents/skills/test-guidelinesType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add getsentry/sentry-react-native --skill test-guidelines -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install getsentry/sentry-react-native test-guidelines --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/getsentry/sentry-react-native.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/test-guidelines .agents/skills/test-guidelines && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "test-guidelines" agent skill from https://github.com/getsentry/sentry-react-native/tree/main/.agents/skills/test-guidelines into .agents/skills/test-guidelines/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-guidelines", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add getsentry/sentry-react-native --skill test-guidelines -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install getsentry/sentry-react-native test-guidelines --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/getsentry/sentry-react-native.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/test-guidelines .cursor/skills/test-guidelines && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "test-guidelines" agent skill from https://github.com/getsentry/sentry-react-native/tree/main/.agents/skills/test-guidelines into .cursor/skills/test-guidelines/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-guidelines", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/getsentry/sentry-react-native.git --path .agents/skills/test-guidelines--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add getsentry/sentry-react-native --skill test-guidelines -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install getsentry/sentry-react-native test-guidelines --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/getsentry/sentry-react-native.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/test-guidelines .gemini/skills/test-guidelines && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "test-guidelines" agent skill from https://github.com/getsentry/sentry-react-native/tree/main/.agents/skills/test-guidelines into .gemini/skills/test-guidelines/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-guidelines", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install getsentry/sentry-react-native test-guidelinesInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add getsentry/sentry-react-native --skill test-guidelines -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/getsentry/sentry-react-native.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/test-guidelines .github/skills/test-guidelines && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "test-guidelines" agent skill from https://github.com/getsentry/sentry-react-native/tree/main/.agents/skills/test-guidelines into .github/skills/test-guidelines/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-guidelines", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add getsentry/sentry-react-native --skill test-guidelines -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install getsentry/sentry-react-native test-guidelines --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/getsentry/sentry-react-native.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/test-guidelines .opencode/skills/test-guidelines && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "test-guidelines" agent skill from https://github.com/getsentry/sentry-react-native/tree/main/.agents/skills/test-guidelines into .opencode/skills/test-guidelines/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-guidelines", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
test-guidelinesEnforce Sentry React Native SDK test conventions for naming, structure, mocking, and fixtures with Jest.
Test Guidelines is an agent skill from getsentry/sentry-react-native, published by the product's own GitHub organization. Enforce Sentry React Native SDK test conventions for naming, structure, mocking, and fixtures with Jest. Use when writing tests, adding tests, modifying tests, reviewing test code, fixing failing tests, adding coverage, TDD, test-first / red-green, reproducing bugs with tests, regression tests, or test refactoring in packages/core.
Its SKILL.md is about 1.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 Testing & QA, covering Test-driven development, Cross-platform mobile apps and Unit testing. It works with Sentry, React Native and Jest. The repository describes itself as: Official Sentry SDK for React Native. The licence is MIT.
Read from SKILL.md and the folder at commit 6ce1083. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
yarnFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use yarn, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Test Guidelines loads about 1.3k tokens when it runs. Until then it costs about 88 tokens; SKILL.md has 530 words of instructions outside code blocks.
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.
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.
The full file from getsentry/sentry-react-native at commit 6ce1083, republished under its MIT licence (© getsentry). 530 words, ~1,319 tokens.
.claude/skills/test-guidelines/SKILL.md (or your agent's skills folder).Apply these conventions to all new and modified tests in packages/core. Existing tests may not follow them — do not refactor them unless asked. Tests run on Jest (yarn test, yarn test:watch, yarn test:sdk, yarn test:tools).
Tests are easiest to write against code designed to accept its dependencies — when implementing the code under test, load design-first (where the seams go) and code-guidelines (the rules).
Work in vertical slices. One failing test → the minimal code that makes it pass → repeat. Each test proves one thin path end-to-end, and what it teaches shapes the next.
Do not write all the tests first and then all the implementation. That horizontal slicing produces tests of imagined behavior — they assert the shape you guessed at and pass when the real behavior breaks. Write one test at a time, against behavior you can already reason about.
Fixing a bug? Reproduce it with a failing test first — see diagnosing-bugs.
src/js/client.ts → test/client.test.ts; src/js/integrations/release.ts → test/integrations/release.test.ts..test.tsx and @testing-library/react-native.describe naming the unit under test, with nested describe/it inside it.Follow the convention in packages/core/AGENTS.md: describe/it blocks (preferred), with the it describing the expected behavior for a given input.
describe names the unit under test — the exported name (myFeatureIntegration, NATIVE, the class).describe groups a method or a scenario; it states the behavior being verified.it as a clear behavior description, e.g. returns expected value when input is valid.describe('nativeLinkedErrorsIntegration', () => {
describe('when the native module is unavailable', () => {
it('returns the event unchanged', () => { /* ... */ });
});
describe('processEvent', () => {
it('appends linked errors up to the configured limit', () => { /* ... */ });
});
});Structure every test in three clear sections; a blank line between them is enough.
it('returns expected value when input is valid', () => {
// Arrange
const input = 'test';
// Act
const result = functionName(input);
// Assert
expect(result).toBe('expected');
});Use specific matchers — they produce better failure messages:
expect(array).toHaveLength(3); // not expect(array.length).toBe(3)
expect(obj).toMatchObject({ a: 1 }); // partial structural match
expect(fn).toThrow(Error);
await expect(promise).resolves.toBe('ok');
await expect(promise).rejects.toThrow();Assert the exact symptom, not "didn't crash". A test that only checks a call didn't throw catches almost nothing.
afterEach(() => { jest.clearAllMocks(); }) (or resetAllMocks when you also stub implementations). A leaked mock is the most common flaky-test cause here.test/mockWrapper.ts, test/mocks/) over re-mocking react-native ad hoc. When you must, mock the bridge surface only:jest.mock('react-native', () => ({
NativeModules: { RNSentry: { fetchNativeSdkInfo: jest.fn(() => Promise.resolve({})) } },
Platform: { OS: 'ios', select: (o: any) => o.ios ?? o.default },
}));Platform.OS, isTurboModuleEnabled(), isFabricEnabled() from the test rather than assuming one.jest.mock of a deep import — a test that mocks internals breaks on refactors even when behavior is unchanged (see design-first: the interface is the test surface).await async assertions; return or await the promise so Jest sees failures.jest.useFakeTimers() + jest.advanceTimersByTime(...)), not real setTimeout — real delays make tests slow and flaky. Restore with jest.useRealTimers() in afterEach.enableNative false, PII gating on/off, serialization round-trips across the bridge, both architectures.© getsentry, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/test-guidelines of getsentry/sentry-react-native.
Open the folder on GitHubat commit 6ce1083
Test Guidelines 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Test Guidelines this skillgetsentry/sentry-react-native | 1.8k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Test Guidelinesgetsentry/sentry-dart | 873 | — | ~3.1k | Automated safety check: Pass | MIT | |
| Jest Testing PatternsChrisWiles/claude-code-showcase | 6.1k | 7 repos | ~1.5k | Automated safety check: Pass | None | |
| TDD Workflows TDD Redaiskillstore/marketplace | 430 | 6 repos | ~1.3k | Automated safety check: Pass | None | |
| Cometchat React Native Testingcometchat/cometchat-skills | 129 | — | ~997 | Automated safety check: Pass | MIT | |
| React Native Testingcallstackincubator/agent-skills | 1.7k | — | ~1.8k | Automated safety check: Pass | MIT |
getsentry/sentry-dart
Enforce Sentry Dart/Flutter SDK test conventions for naming, structure, and fixtures.
ChrisWiles/claude-code-showcase
Jest patterns for React Native style tests: TDD discipline, mock factory functions, module and GraphQL hook mocking, custom render helpers and anti-patterns to avoid.
aiskillstore/marketplace
Generate failing tests for the TDD red phase to define expected behavior and edge cases.
cometchat/cometchat-skills
Test a CometChat React Native integration — mock the SDK for Jest unit tests, assert init-before-render ordering and no-Auth-Key-in-source, and use Detox for the flows only a device can prove.
callstackincubator/agent-skills
Write tests using React Native Testing Library (RNTL) v13 and v14 (@testing-library/react-native).
gluestack/gluestack-ui
Generate React Native Reanimated animation code for React Native apps.
getsentry/sentry-react-native
Enforce Sentry React Native SDK code guidelines for implementation, refactoring, and review.
getsentry/sentry-react-native
Three-axis review of the branch diff — Standards (this repo's documented standards + public API/bridge surface), Spec (the originating Linear/GitHub issue or PR), and Correctness (runtime bugs + the…
getsentry/sentry-react-native
Shape non-trivial work before writing it — decide the modules, the seams, and the public API surface up front.
getsentry/sentry-react-native
A discipline for hard bugs, flaky tests, CI hangs, native crashes, and performance regressions in this SDK.
getsentry/sentry-react-native
Produce a verified spec — problem, desired outcome, and acceptance criteria — before building.
Works with
Categories
Enforce Sentry React Native SDK test conventions for naming, structure, mocking, and fixtures with Jest. Test Guidelines is an agent skill from getsentry/sentry-react-native, published by the product's own GitHub organization. Enforce Sentry React Native SDK test conventions for naming, structure, mocking, and fixtures with Jest.
Test Guidelines fits situations like: modifying tests; reviewing test code; fixing failing tests; adding coverage.
Run `npx skills add getsentry/sentry-react-native --skill test-guidelines -a claude-code`. Or copy the skill folder (.agents/skills/test-guidelines in getsentry/sentry-react-native) into .claude/skills/test-guidelines in your project. Claude Code loads it when a task matches its description.
Run `npx skills add getsentry/sentry-react-native --skill test-guidelines -a codex`. Or copy the skill folder (.agents/skills/test-guidelines in getsentry/sentry-react-native) into .agents/skills/test-guidelines in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add getsentry/sentry-react-native --skill test-guidelines -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/test-guidelines, .gemini/skills/test-guidelines, .github/skills/test-guidelines and .opencode/skills/test-guidelines in your project.
Going by SKILL.md and its folder, Test Guidelines needs the command-line tools its instructions call (yarn).
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.
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.
Test Guidelines is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Test Guidelines: Test Guidelines (getsentry/sentry-dart, 873 stars), Jest Testing Patterns (ChrisWiles/claude-code-showcase, 6.1k stars), TDD Workflows TDD Red (aiskillstore/marketplace, 430 stars) and Cometchat React Native Testing (cometchat/cometchat-skills, 129 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
getsentry (a GitHub organization, an official publisher) maintains it in getsentry/sentry-react-native, which has 1,824 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 7, 2026.
Source: getsentry/sentry-react-native on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.