Official agent skill

Enzyme To Rtl

by elastic in elastic/kibana

Migrate Enzyme tests to React Testing Library (RTL). An agent skill from elastic/kibana.

OfficialCustom licenceAuto-check passedTesting & QA

Install Enzyme To Rtl

skills CLI
$ npx skills add elastic/kibana --skill enzyme-to-rtl -a claude-code

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

GitHub CLI
$ gh skill install elastic/kibana enzyme-to-rtl --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/elastic/kibana.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/enzyme-to-rtl .claude/skills/enzyme-to-rtl && 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
enzyme-to-rtl
GitHub stars
21k
Token cost
~3.6k tokens
SKILL.md length
1,175 words
Files
2
Skills in repo
40
Repo updated
First seen
Licence
Custom licence

At a glance

Migrate Enzyme tests to React Testing Library (RTL). An agent skill from elastic/kibana.

  • Works in 5 steps: Replace enzyme imports with RTL imports. → Replace shallow() / mount() with render(). → Migrate selectors and assertions. → …
  • Converting shallow/mount enzyme tests to RTL render
  • SKILL.md covers Goal, Core principles, Migration workflow and Import changes, plus 10 more sections
  • Calls pnpm

What it does

Enzyme To Rtl is an agent skill from elastic/kibana, published by the product's own GitHub organization. Migrate Enzyme tests to React Testing Library (RTL). Use when converting shallow/mount enzyme tests to RTL render, replacing enzyme selectors with RTL queries, updating snapshot tests, or when the user mentions enzyme migration, RTL migration, or react-testing-library.

Its SKILL.md is about 3.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Testing & QA. It works with Testing Library. The repository describes itself as: Your window into all of your data.

When your agent uses it

  • Converting shallow/mount enzyme tests to RTL render
  • Replacing enzyme selectors with RTL queries
  • Updating snapshot tests
  • The user mentions enzyme migration

Example prompts

  • “/enzyme-to-rtl”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Replace enzyme imports with RTL imports.
  2. Replace shallow() / mount() with render().
  3. Migrate selectors and assertions.
  4. Update or delete snapshots (--updateSnapshot).
  5. Run the test and fix any missing mocks/providers that enzyme's shallow rendering was hiding.

What it can do on your machine

Read from SKILL.md and the folder at commit 6d2624d. 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

    Shell commands in SKILL.md call:

    • pnpm

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

  • Network

    Links to these hosts (documentation or services it may open):

    • testing-library.com

    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

Enzyme To Rtl loads about 3.6k tokens when it runs. Until then it costs about 71 tokens; SKILL.md has 1,175 words of instructions outside code blocks.

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

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 1,175 words (~3,616 tokens).

“Migrate enzyme tests to @testing-library/react as a 1:1 port — preserve existing test intent without refactoring toward integration-style testing or removing mocks.”

— opening of SKILL.md by elastic, Custom licence
name
enzyme-to-rtl
disable-model-invocation
true

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in .agents/skills/enzyme-to-rtl of elastic/kibana.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 6d2624d

Compare with similar skills

Enzyme To Rtl 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.

Enzyme To Rtl compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Enzyme To Rtl this skillelastic/kibana21k—~3.6kAutomated safety check: PassCustom licence
Jest Testing PatternsChrisWiles/claude-code-showcase6.1k7 repos~1.5kAutomated safety check: PassNone
Frontend TestingOhh-889/skyroc7951 repos~2.5kAutomated safety check: PassMIT
Write Testsgrafana/synthetic-monitoring-app171—~1.2kAutomated safety check: PassAGPL-3.0
Playwright Testingchongdashu/vibejam-starter-pack149—~2.1kAutomated safety check: PassNone
Bug HuntUse-Tusk/drift-node-sdk173—~3.6kAutomated safety check: PassApache-2.0

Similar skills

  • Jest Testing Patterns

    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.

    6.1k GitHub starsUsed in 7 repos~1.5k tokens
    Testing & QAAuto-check passed
  • Frontend Testing

    Ohh-889/skyroc

    Generate Vitest + React Testing Library tests for Dify frontend components, hooks, and utilities.

    795 GitHub starsUsed in 1 repo~2.5k tokens
    Testing & QAAuto-check passed
  • Write Tests

    grafana/synthetic-monitoring-app

    Official

    Write Jest integration and unit tests for the Grafana Synthetic Monitoring app using React Testing Library, MSW, and src/test helpers.

    171 GitHub stars~1.2k tokensUpdated today
    Testing & QAAuto-check passed
  • Playwright Testing

    chongdashu/vibejam-starter-pack

    Plan, implement, and debug frontend tests: unit/integration/E2E/visual/a11y.

    149 GitHub stars~2.1k tokensUpdated 5 mo ago
    Testing & QAAuto-check passed
  • Bug Hunt

    Use-Tusk/drift-node-sdk

    Hunt for instrumentation bugs by analyzing code gaps and running e2e tests through DISABLED/RECORD/REPLAY cycle

    173 GitHub stars~3.6k tokensUpdated 5 mo ago
    Testing & QAAuto-check passed
  • UI Test Utils

    open-edge-platform/anomalib

    A skill your agent uses when writing or updating Anomalib Studio UI component or hook tests that need the shared render/renderHook helpers, React Router paths or parameters, React Query, theme…

    6.2k GitHub stars~1.3k tokensUpdated today
    Testing & QAAuto-check passed

More from elastic/kibana

All 40 skills in this repo
  • Official

    Migrate Kibana Cypress E2E tests (.cy.ts) to Scout (Playwright).

    21k GitHub stars~3.8k tokensUpdated today
    Auto-check passed
  • Activate Connector

    elastic/kibana

    Official

    Creates a connector instance in a running Kibana. An agent skill from elastic/kibana.

    21k GitHub stars~1.9k tokensUpdated today
    Auto-check: notes
  • Codeql

    elastic/kibana

    Official

    Work with CodeQL in Kibana — write, test, and debug custom queries locally, fetch scan results from GitHub, and validate inline suppression comments.

    21k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Debug Oas

    elastic/kibana

    Official

    A skill your agent uses when debugging OpenAPI (OAS) issues for a specific API area in Kibana by scoping validation output with one or more --path filters, then separating structural invalid-OAS…

    21k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Evals Write Spec

    elastic/kibana

    Official

    Write LLM evaluation spec files with datasets, tasks, and evaluators using the @kbn/evals Playwright fixture.

    21k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Kbn GitHub

    elastic/kibana

    Official

    GitHub interactions via gh CLI for the Kibana repo. An agent skill from elastic/kibana.

    21k GitHub stars~1.3k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Enzyme To Rtl

What does Enzyme To Rtl do?

Migrate Enzyme tests to React Testing Library (RTL). An agent skill from elastic/kibana. Enzyme To Rtl is an agent skill from elastic/kibana, published by the product's own GitHub organization. Migrate Enzyme tests to React Testing Library (RTL).

When should I use Enzyme To Rtl?

Enzyme To Rtl fits situations like: converting shallow/mount enzyme tests to RTL render; replacing enzyme selectors with RTL queries; updating snapshot tests; the user mentions enzyme migration.

How do I install Enzyme To Rtl in Claude Code?

Run `npx skills add elastic/kibana --skill enzyme-to-rtl -a claude-code`. Or copy the skill folder (.agents/skills/enzyme-to-rtl in elastic/kibana) into .claude/skills/enzyme-to-rtl in your project. Claude Code loads it when a task matches its description.

How do I install Enzyme To Rtl in Codex?

Run `npx skills add elastic/kibana --skill enzyme-to-rtl -a codex`. Or copy the skill folder (.agents/skills/enzyme-to-rtl in elastic/kibana) into .agents/skills/enzyme-to-rtl in your project. Codex loads it when a task matches its description.

Can I use Enzyme To Rtl 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 elastic/kibana --skill enzyme-to-rtl -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/enzyme-to-rtl, .gemini/skills/enzyme-to-rtl, .github/skills/enzyme-to-rtl and .opencode/skills/enzyme-to-rtl in your project.

What does Enzyme To Rtl need to run?

Going by SKILL.md and its folder, Enzyme To Rtl needs the command-line tools its instructions call (pnpm).

Does Enzyme To Rtl access the network?

SKILL.md names 1 domain. As links in the text: testing-library.com. This is read from the text; nothing was executed.

Is Enzyme To Rtl 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 Enzyme To Rtl use?

Enzyme To Rtl 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 Enzyme To Rtl use?

About 3.6k tokens (SKILL.md is roughly 14k 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 Enzyme To Rtl?

Skills that share tags, products or a category with Enzyme To Rtl: Jest Testing Patterns (ChrisWiles/claude-code-showcase, 6.1k stars), Frontend Testing (Ohh-889/skyroc, 795 stars), Write Tests (grafana/synthetic-monitoring-app, 171 stars) and Playwright Testing (chongdashu/vibejam-starter-pack, 149 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Enzyme To Rtl?

elastic (a GitHub organization, an official publisher) maintains it in elastic/kibana, which has 21,309 GitHub stars. The repository holds 40 skills in this directory. The repository was last updated on October 10, 2026.

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