Testing
redis/RedisInsight
Unit/integration testing standards for RedisInsight using Jest and Testing Library: test structure, the renderComponent helper, faker for test data, mocking patterns, and waitFor instead of fixed…
Write Jest integration and unit tests for the Grafana Synthetic Monitoring app using React Testing Library, MSW, and src/test helpers.
$ npx skills add grafana/synthetic-monitoring-app --skill write-tests -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install grafana/synthetic-monitoring-app write-tests --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/grafana/synthetic-monitoring-app.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/write-tests .claude/skills/write-tests && 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 "write-tests" agent skill from https://github.com/grafana/synthetic-monitoring-app/tree/main/.agents/skills/write-tests into .claude/skills/write-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "write-tests", 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/grafana/synthetic-monitoring-app/tree/main/.agents/skills/write-testsType 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 grafana/synthetic-monitoring-app --skill write-tests -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install grafana/synthetic-monitoring-app write-tests --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/grafana/synthetic-monitoring-app.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/write-tests .agents/skills/write-tests && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "write-tests" agent skill from https://github.com/grafana/synthetic-monitoring-app/tree/main/.agents/skills/write-tests into .agents/skills/write-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "write-tests", 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 grafana/synthetic-monitoring-app --skill write-tests -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install grafana/synthetic-monitoring-app write-tests --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/grafana/synthetic-monitoring-app.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/write-tests .cursor/skills/write-tests && 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 "write-tests" agent skill from https://github.com/grafana/synthetic-monitoring-app/tree/main/.agents/skills/write-tests into .cursor/skills/write-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "write-tests", 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/grafana/synthetic-monitoring-app.git --path .agents/skills/write-tests--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 grafana/synthetic-monitoring-app --skill write-tests -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install grafana/synthetic-monitoring-app write-tests --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/grafana/synthetic-monitoring-app.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/write-tests .gemini/skills/write-tests && 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 "write-tests" agent skill from https://github.com/grafana/synthetic-monitoring-app/tree/main/.agents/skills/write-tests into .gemini/skills/write-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "write-tests", 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 grafana/synthetic-monitoring-app write-testsInstalls 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 grafana/synthetic-monitoring-app --skill write-tests -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/grafana/synthetic-monitoring-app.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/write-tests .github/skills/write-tests && 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 "write-tests" agent skill from https://github.com/grafana/synthetic-monitoring-app/tree/main/.agents/skills/write-tests into .github/skills/write-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "write-tests", 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 grafana/synthetic-monitoring-app --skill write-tests -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install grafana/synthetic-monitoring-app write-tests --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/grafana/synthetic-monitoring-app.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/write-tests .opencode/skills/write-tests && 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 "write-tests" agent skill from https://github.com/grafana/synthetic-monitoring-app/tree/main/.agents/skills/write-tests into .opencode/skills/write-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "write-tests", 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.
write-testsWrite Jest integration and unit tests for the Grafana Synthetic Monitoring app using React Testing Library, MSW, and src/test helpers.
Write Tests is an agent skill from grafana/synthetic-monitoring-app, published by the product's own GitHub organization. Write Jest integration and unit tests for the Grafana Synthetic Monitoring app using React Testing Library, MSW, and src/test helpers. Use whenever the user asks to add, fix, or review tests, mentions yarn test, .test.tsx, integration tests, user journeys, MSW handlers, fixtures, unhappy paths, or PR test coverage — even if they do not say "write tests" explicitly.
Its SKILL.md is about 1.2k 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 generation, Unit testing and Monitoring and alerting. It works with Grafana, Jest and Testing Library. The repository describes itself as: Synthetic Monitoring frontend application. The licence is AGPL-3.0.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 2739165. 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.
Write Tests loads about 1.2k tokens when it runs. Until then it costs about 95 tokens; SKILL.md has 455 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 grafana/synthetic-monitoring-app at commit 2739165, republished under its AGPL-3.0 licence (© grafana). 455 words, ~1,162 tokens.
.claude/skills/write-tests/SKILL.md (or your agent's skills folder).Read docs/development/testing.md first. That doc is the harness-agnostic source of truth for expectations and how-to. This skill is the agent workflow for applying it.
src/test/handlers/index.ts if you need to override or add API routes; open src/test/fixtures/ for existing named data.Our suite is a pseudo e2e framework: real UI, user journeys, mocked APIs. Integration tests carry the most weight. Unit tests are fine for pure logic but matter less than journey coverage.
When adding or reviewing tests, verify:
src/test/handlers/, registered in API_ROUTES, fixtures/factories if needed — not inline JSON in every test.__testHelpers__/ next to the feature (see checkForm.tsx, formHelpers.ts for patterns).| Situation | Approach |
|---|---|
| Component or page behaviour | Integration test via test/render |
| Multi-step check wizard | Journey helpers in page/__testHelpers__/ + Checkster helpers |
| Pure function / adaptor / validation | Unit test, no custom render |
| Hard to test (heavy upstream deps) | Document behaviour; note in PR |
import { screen } from '@testing-library/react';
import { apiRoute, getServerRequests } from 'test/handlers';
import { render } from 'test/render';
import { server } from 'test/server';
import { OFFLINE_PROBE } from 'test/fixtures/probes';
it('shows Offline for an offline probe', async () => {
render(<Probe probe={OFFLINE_PROBE} />);
expect(await screen.findByText('Offline')).toBeInTheDocument();
});Rules:
async; use findBy* / findAllBy* after render (network must settle).user from render, not userEvent directly.server.use(apiRoute('routeKey', { result: () => ({ ... }) })).getServerRequests() when the journey submits data.mockFeatureToggles and runTestAs* from test/utils for flags and personas — not ad-hoc config mocks.test/fixtures/*) over one-off DB.build unless you need a custom variant.For routing, pass path and route to render. Assert navigation via ROUTER_TEST_ID from test/dataTestIds.
For hooks, use createWrapper() with renderHook.
Run the file you changed:
yarn test <filename>Fix failures before considering the work done.
src/test/handlers/index.ts.test/render.© grafana, AGPL-3.0. 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/write-tests of grafana/synthetic-monitoring-app.
Open the folder on GitHubat commit 2739165
Write 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Write Tests this skillgrafana/synthetic-monitoring-app | 171 | — | ~1.2k | Automated safety check: Pass | AGPL-3.0 | |
| Testingredis/RedisInsight | 8.9k | — | ~3.3k | Automated safety check: Pass | Custom licence | |
| Senior QAalirezarezvani/claude-skills | 28k | 1 repos | ~2.1k | Automated safety check: Pass | MIT | |
| Appbuilder Testingadobe/skills | 195 | — | ~2.8k | Automated safety check: Pass | Apache-2.0 | |
| OpenROAD Module Test AdderThe-OpenROAD-Project/OpenROAD | 3.2k | — | ~1.8k | Automated safety check: Pass | BSD-3-Clause | |
| Write Testsopenplayerjs/openplayerjs | 649 | — | ~1.8k | Automated safety check: Pass | MIT |
redis/RedisInsight
Unit/integration testing standards for RedisInsight using Jest and Testing Library: test structure, the renderComponent helper, faker for test data, mocking patterns, and waitFor instead of fixed…
alirezarezvani/claude-skills
Generates unit tests, integration tests, and E2E tests for React/Next.js applications.
adobe/skills
Generate and run tests for Adobe App Builder actions and UI components.
The-OpenROAD-Project/OpenROAD
Adds integration or unit tests to an OpenROAD module: writes the Tcl test, generates golden files and registers it in both CMake and Bazel.
openplayerjs/openplayerjs
Write or extend Jest tests for OpenPlayerJS to this repo's exact conventions — makeCore factories, typed internals handles instead of as any, media property mocking, fake timers, ads/vast mocks, and…
Khan/wonder-blocks
Jest + React Testing Library best practices for Wonder Blocks unit tests.
Works with
Categories
Write Jest integration and unit tests for the Grafana Synthetic Monitoring app using React Testing Library, MSW, and src/test helpers. Write Tests is an agent skill from grafana/synthetic-monitoring-app, published by the product's own GitHub organization. Write Jest integration and unit tests for the Grafana Synthetic Monitoring app using React Testing Library, MSW, and src/test helpers.
Write Tests fits situations like: the user asks to add; mentions yarn test; integration tests; PR test coverage — even if they do not say write tests explicitly.
Run `npx skills add grafana/synthetic-monitoring-app --skill write-tests -a claude-code`. Or copy the skill folder (.agents/skills/write-tests in grafana/synthetic-monitoring-app) into .claude/skills/write-tests in your project. Claude Code loads it when a task matches its description.
Run `npx skills add grafana/synthetic-monitoring-app --skill write-tests -a codex`. Or copy the skill folder (.agents/skills/write-tests in grafana/synthetic-monitoring-app) into .agents/skills/write-tests 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 grafana/synthetic-monitoring-app --skill write-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/write-tests, .gemini/skills/write-tests, .github/skills/write-tests and .opencode/skills/write-tests in your project.
Going by SKILL.md and its folder, Write Tests 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.
Write Tests is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.6k 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 Write Tests: Testing (redis/RedisInsight, 8.9k stars), Senior QA (alirezarezvani/claude-skills, 28k stars), Appbuilder Testing (adobe/skills, 195 stars) and OpenROAD Module Test Adder (The-OpenROAD-Project/OpenROAD, 3.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
grafana (a GitHub organization, an official publisher) maintains it in grafana/synthetic-monitoring-app, which has 171 GitHub stars. The repository was last updated on October 6, 2026.
Source: grafana/synthetic-monitoring-app on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.