selenium-testing
Use for any question or task about Selenium WebDriver tests in Java, Python, C# or other bindings, including quick how-to questions and one pasted test to fix: explicit waits instead of sleeps, stable locators instead of absolute XPath, driver version errors (Selenium Manager), page objects, BiDi console errors, Grid in Docker and JUnit XML. New projects usually pick Playwright.
Install selenium-testing
npx skills add testland/qa --skill selenium-testing -a claude-codeInstalls into .claude/skills/ in your project. Add -g to install it for all your projects, in ~/.claude/skills/.
SKILL.md
Shown as published, under the repository's MIT license.
---
name: selenium-testing
description: "Use for any question or task about Selenium WebDriver tests in Java, Python, C# or other bindings, including quick how-to questions and one pasted test to fix: explicit waits instead of sleeps, stable locators instead of absolute XPath, driver version errors (Selenium Manager), page objects, BiDi console errors, Grid in Docker and JUnit XML. New projects usually pick Playwright."
---# selenium-testing
## Overview
Selenium WebDriver is a W3C-standard browser automation protocol with
the broadest language support: Java, Python, JavaScript, C#, Ruby,
Kotlin, PHP. Since 4.6 the bindings ship Selenium Manager, so a test
no longer downloads or configures a browser driver itself
([selenium-manager][sm]).
[sm]: https://www.selenium.dev/documentation/selenium_manager/
[rwd]: https://www.selenium.dev/documentation/webdriver/drivers/remote_webdriver/
[gridcli]: https://www.selenium.dev/documentation/grid/configuration/cli_options/
## When to use
- The team has substantial existing Selenium investment; migration
cost is prohibitive.
- The codebase is in a language with limited modern E2E support
(e.g., older C# / Ruby / PHP projects).
- W3C standard adherence is contractually required.
- Cross-browser including IE11 is required (rare; deprecated).
For new projects in 2026+: pick Playwright or Cypress unless
constraints dictate Selenium.
## How to use
1. Pick the language binding that matches the stack (Java, Python, C#, Ruby, Kotlin, PHP) and add the Selenium dependency. Selenium Manager resolves drivers; drop WebDriverManager and hardcoded driver paths.
2. Instantiate a driver in setup and `quit()` it in teardown so no browser process leaks.
3. Prefer stable `By.cssSelector` / `data-testid` locators; keep XPath for relationship queries only.
4. Replace every `Thread.sleep()` with `WebDriverWait` + `ExpectedConditions` so the test waits on a condition, not a clock. Never mix implicit and explicit waits.
5. Author one test per user flow with fresh per-test setup, and move page knowledge into page objects that never assert.
6. Save a screenshot on failure and fail on JavaScript errors captured over WebDriver BiDi.
7. For breadth, point a `RemoteWebDriver` at Selenium Grid (or a managed grid) to fan out across browsers.
8. Emit JUnit XML in CI (`target/surefire-reports/`) and feed it to `junit-xml-analysis`.
## Step 1 - Install (Java + JUnit example)
```xml
<!-- pom.xml: versions current on Maven Central, 3 Nov 2026 -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>4.52.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>6.1.3</version>
<scope>test</scope>
</dependency>
```
No driver dependency is needed. Per [selenium-manager][sm], Selenium
Manager ships "out of the box with each Selenium release as of version
4.6", the bindings use it by default "so you do not need to download it
or add anything to your code", and if Chrome is not installed "the
current stable Chrome for Testing (CfT) release will be discovered,
downloaded, and cached" under `~/.cache/selenium`. Cache that folder in
CI to skip the download on every run.
Upgrading an older suite: delete the `webdrivermanager` dependency,
every `WebDriverManager.chromedriver().setup()` call and every
`webdriver.chrome.driver` system property. They now fight Selenium
Manager instead of helping.
### Selenium Manager on locked-down CI
Per [selenium-manager][sm]:
- **It is only a fallback.** "Selenium Manager only operates as a
fallback: if no driver is provided". A `webdriver.chrome.driver`
property, WebDriverManager, or a `chromedriver` already on the `PATH`
wins, which is how a runner image that auto-updates Chrome ends in
"This version of ChromeDriver only supports Chrome version N". Remove
all three (or set `SE_SKIP_DRIVER_IN_PATH=true`).
- **Pin the browser, not the driver.** `options.setBrowserVersion("131")`
(or `stable`, `beta`, `dev`) makes Selenium Manager use that Chrome
if installed, or download and cache Chrome for Testing 131, and
resolve the matching chromedriver. The tests then run on the version
QA signed off on, whatever the image updated to.
- **Proxy for downloads only.** A proxy set in the browser options "is
used both by the browser and by Selenium Manager". When only the
downloads should go through it, set `SE_PROXY` (or `proxy` in
`se-config.toml`) instead.
- **No network at test time.** Warm the cache in a stage that can
download, keep it in `SE_CACHE_PATH` (default `~/.cache/selenium`),
and run the tests with `SE_OFFLINE=true` ("disabling network requests
and downloads"). `SE_DRIVER_MIRROR_URL` / `SE_BROWSER_MIRROR_URL`
point at an internal mirror with the same layout.
- **Usage statistics are on by default.** "Data collection is on by
default. To disable it, set the `SE_AVOID_STATS` environment variable
to `true`" (or `avoid-stats = true` in `se-config.toml`).
```java
ChromeOptions o = new ChromeOptions();
o.setBrowserVersion("131"); // the version QA signed off on
o.addArguments("--headless=new");
driver = new ChromeDriver(o); // no driver path, no WebDriverManager
```
```yaml
# build stage (network allowed): warm the cache
env: { SE_PROXY: "http://proxy.example:3128", SE_CACHE_PATH: "${{ github.workspace }}/.selenium-cache", SE_AVOID_STATS: "true" }
# test stage (no network): same cache, offline
env: { SE_OFFLINE: "true", SE_CACHE_PATH: "${{ github.workspace }}/.selenium-cache", SE_AVOID_STATS: "true" }
```
Warm the cache by running one throwaway session with the same browser
version in the build stage. Run with `SE_DEBUG=true` when a
resolution step is unclear.
## Step 2 - Author a test (Java)
```java
import org.junit.jupiter.api.*;
import org.openqa.selenium.*;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.*;
import java.time.Duration;
class CheckoutTest {
private WebDriver driver;
private WebDriverWait wait;
@BeforeEach
void setup() {
driver = new ChromeDriver(); // Selenium Manager finds the driver
wait = new WebDriverWait(driver, Duration.ofSeconds(10));
}
@AfterEach
void teardown() {
driver.quit();
}
@Test
void completeCheckout() {
driver.get("http://localhost:3000/login");
driver.findElement(By.cssSelector("[data-testid=email]"))
.sendKeys("user@example.com");
driver.findElement(By.cssSelector("[data-testid=password]"))
.sendKeys(System.getenv("TEST_USER_PASSWORD"));
driver.findElement(By.cssSelector("button[type=submit]")).click();
wait.until(ExpectedConditions.visibilityOfElementLocated(
By.xpath("//h1[contains(text(), 'Welcome')]")));
driver.get("http://localhost:3000/products/BOOK-001");
driver.findElement(By.cssSelector("[data-testid=add-to-cart]")).click();
// Wait for the count to update instead of reading it immediately
wait.until(ExpectedConditions.textToBe(
By.cssSelector("[data-testid=cart-count]"), "1"));
}
}
```
## Step 3 - Locator strategies
| Strategy | When |
|----------------------|----------------------------------------------|
| `By.id` | Element has stable `id` |
| `By.name` | Form field with `name` attribute |
| `By.cssSelector` | Most cases (preferred over XPath) |
| `By.xpath` | Complex relationship queries (avoid otherwise) |
| `By.linkText` | Anchor by text |
| `By.partialLinkText` | Anchor by partial text |
| `By.tagName` | Generic (e.g., all `input` elements) |
| `By.className` | Single CSS class (brittle) |
Prefer `data-testid` selectors; avoid XPath / classes.
For accessibility-first equivalents (Selenium doesn't ship
`getByRole` natively), evaluate **selenium-axe-core** for a11y
testing and consider Selenium 4's relative locators:
```java
// Selenium 4 relative locators
import static org.openqa.selenium.support.locators.RelativeLocator.*;
driver.findElement(with(By.tagName("button")).near(By.id("password-field")));
```
## Step 4 - Explicit waits
```java
// WebDriverWait with ExpectedConditions
WebElement element = wait.until(
ExpectedConditions.elementToBeClickable(By.cssSelector("button.submit"))
);
element.click();
```
**Never use `Thread.sleep()`** - `WebDriverWait` polls until the
condition is met. Sleep is the most common Selenium flake source.
A lambda works when no `ExpectedConditions` helper fits, and
`FluentWait` tunes polling and ignored exceptions. Both forms are from
[selenium-waits][waits]:
```java
wait.until(d -> d.findElement(By.id("status")).getText().equals("Paid"));
Wait<WebDriver> fluent = new FluentWait<>(driver)
.withTimeout(Duration.ofSeconds(10))
.pollingEvery(Duration.ofMillis(300))
.ignoring(ElementNotInteractableException.class);
fluent.until(d -> { d.findElement(By.id("pay")).click(); return true; });
```
Per [selenium-waits][waits]: "Do not mix implicit and explicit waits."
An implicit wait of 10 seconds plus an explicit wait of 15 seconds can
time out after 20. Pick explicit waits and leave `implicitlyWait` unset.
[waits]: https://www.selenium.dev/documentation/webdriver/waits/
## Step 5 - Page objects, failure screenshots and JavaScript errors
**Page objects.** Per [selenium-pom][pom], "A page object is an
object-oriented class that serves as an interface to a page of your
AUT", and "Page objects themselves should never make verifications or
assertions." The test asserts; the page object only acts and reads:
```java
public class LoginPage {
private final WebDriver driver;
private final By email = By.cssSelector("[data-testid=email]");
private final By password = By.cssSelector("[data-testid=password]");
private final By submit = By.cssSelector("button[type=submit]");
public LoginPage(WebDriver driver) { this.driver = driver; }
public DashboardPage loginAs(String user, String pass) {
driver.findElement(email).sendKeys(user);
driver.findElement(password).sendKeys(pass);
driver.findElement(submit).click();
return new DashboardPage(driver);
}
}
```
**Screenshot on failure.** The capture call from
[selenium-windows][win] is
`((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE)`. Call it
from a JUnit `TestWatcher` (`testFailed`) or from the `@AfterEach`
before `quit()`, write it under `target/screenshots/`, and upload that
folder as a CI artifact.
**JavaScript errors over BiDi.** Per [selenium-bidi][bidi], WebDriver
BiDi is "the W3C standard bidirectional protocol for browser
automation" and the "cross-browser replacement for the Chrome DevTools
Protocol". Enable it with the `webSocketUrl` capability, then collect
page errors with the handler from [selenium-bidi-logging][bidilog]:
```java
ChromeOptions options = new ChromeOptions();
options.setCapability("webSocketUrl", true);
driver = new ChromeDriver(options);
List<JavascriptLogEntry> jsErrors = new CopyOnWriteArrayList<>();
((RemoteWebDriver) driver).script().addJavaScriptErrorHandler(jsErrors::add);
// ... drive the flow ...
Assertions.assertTrue(jsErrors.isEmpty(),
() -> "Page threw: " + jsErrors.get(0).getText());
```
`addConsoleMessageHandler` works the same way for `console.*` output.
[pom]: https://www.selenium.dev/documentation/test_practices/encouraged/page_object_models/
[win]: https://www.selenium.dev/documentation/webdriver/interactions/windows/
[bidi]: https://www.selenium.dev/documentation/webdriver/bidi/
[bidilog]: https://www.selenium.dev/documentation/webdriver/bidi/logging/
## Step 6 - Selenium Grid for distributed execution
```yaml
# docker-compose.grid.yml
services:
selenium-hub:
image: selenium/hub:4.51.0-20261010
ports: ["4444:4444"]
chrome-node:
image: selenium/node-chrome:4.51.0-20261010
depends_on: [selenium-hub]
environment:
SE_EVENT_BUS_HOST: selenium-hub
SE_EVENT_BUS_PUBLISH_PORT: 4442
SE_EVENT_BUS_SUBSCRIBE_PORT: 4443
firefox-node:
image: selenium/node-firefox:4.51.0-20261010
# ... same env
```
Connect from tests:
```java
WebDriver driver = new RemoteWebDriver(
new URL("http://localhost:4444"),
new ChromeOptions()
);
```
Per the [docker-selenium README][dsel]: "Always use a Docker image with
a full tag to pin a specific browser and Grid version." The
`4.51.0-20261010` tag above was the newest Grid image on 3 Nov 2026;
Grid images trail the client release, and a 4.52 client talks to a 4.51
Grid over the same W3C protocol.
[dsel]: https://github.com/SeleniumHQ/docker-selenium
Grid distributes tests across nodes - handles parallelism. For
managed grids, see commercial: BrowserStack, Sauce Labs,
LambdaTest.
Verify: `curl http://localhost:4444/wd/hub/status` reports `"ready": true`
before pointing `RemoteWebDriver` at the grid; if not, the hub or nodes
haven't registered - check `docker compose -f docker-compose.grid.yml ps`
and the node container logs.
### Uploads and downloads on the Grid
Per [remote-webdriver][rwd] and the [Grid CLI options][gridcli]:
- **Uploads.** With a remote session, `sendKeys` on a file input sends
a path the *node* looks up on its own file system. A local file
detector bundles the file and sends it to the node. "Java does not
include a Local File Detector by default, so you must always add one
to do uploads"; the same holds for JavaScript. Python, .NET and Ruby
add one by default.
- **Downloads.** A `download.default_directory` pref points at the
node's disk, so the test machine never sees the file. Use managed
downloads: the node runs with `--enable-managed-downloads true`
(docker-selenium: `SE_NODE_ENABLE_MANAGED_DOWNLOADS`, which current
images default to `true`), the test sets `setEnableDownloads(true)`
(the `se:downloadsEnabled` capability), and the Grid only matches such
sessions to nodes with the feature on.
- **Selenium does not wait for a download.** `getDownloadableFiles()`
is "an immediate snapshot", so wait until the file is listed, then
copy it with `downloadFile`. The node deletes the session's download
directory when the session ends; `deleteDownloadableFiles()` clears it
mid-session.
```java
ChromeOptions o = new ChromeOptions();
o.setEnableDownloads(true); // se:downloadsEnabled
RemoteWebDriver driver = new RemoteWebDriver(new URL(gridUrl), o);
driver.setFileDetector(new LocalFileDetector()); // upload from the test machine
driver.findElement(By.id("file")).sendKeys(Path.of("src/test/resources/data.csv").toAbsolutePath().toString());
driver.findElement(By.id("export")).click();
new WebDriverWait(driver, Duration.ofSeconds(20))
.until(d -> ((HasDownloads) d).getDownloadableFiles().contains("report.pdf"));
Path dir = Files.createTempDirectory("downloads");
((HasDownloads) driver).downloadFile("report.pdf", dir);
assertTrue(Files.size(dir.resolve("report.pdf")) > 0);
```
## Step 7 - Other language bindings
The Java spine above ports 1:1 to Selenium's other official bindings.
Python (pytest) and C# (xUnit) worked examples:
[references/language-bindings.md](references/language-bindings.md).
## Step 8 - CI integration
```yaml
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v6
with: { distribution: temurin, java-version: '21', cache: maven }
- uses: actions/cache@v6
with:
path: ~/.cache/selenium # Selenium Manager drivers + browsers
key: selenium-${{ runner.os }}
- run: mvn test
env:
TEST_USER_PASSWORD: ${{ secrets.TEST_USER_PASSWORD }}
- uses: actions/upload-artifact@v7
if: always()
with:
name: surefire-reports
path: |
target/surefire-reports/
target/screenshots/
```
JUnit XML lands at `target/surefire-reports/`; feeds
`junit-xml-analysis` (in the qa-test-reporting plugin).
Verify: confirm `target/surefire-reports/*.xml` exists after `mvn test`
before handing off to `junit-xml-analysis`; if the directory is empty the
run emitted no reports - check that tests compiled and actually ran rather
than being skipped.
## Worked example
A legacy Java suite has one `CheckoutTest` method that drives login,
add-to-cart, and checkout in a single flow, synchronizing with
`Thread.sleep(2000)` between steps and never calling `driver.quit()`.
Browser processes leak on CI and the test flakes when the runner is
slow.
1. The single method is split into per-behavior `@Test` methods, each
with `@BeforeEach` creating a fresh `ChromeDriver` and `@AfterEach`
calling `driver.quit()`.
2. Every `Thread.sleep(2000)` is replaced with
`wait.until(ExpectedConditions.elementToBeClickable(...))` so the
step blocks only until the element is ready.
3. Class-name selectors move to `By.cssSelector("[data-testid=...]")`,
and the hardcoded chromedriver path and the `webdrivermanager`
dependency are deleted: Selenium Manager resolves the driver.
4. A Dockerized Selenium Grid is added and tests connect via
`RemoteWebDriver`, so Chrome and Firefox run on parallel nodes.
5. `mvn test` writes JUnit XML to `target/surefire-reports/`, which
`junit-xml-analysis` ingests for the flake trend.
Result: browsers no longer leak (every test quits its driver), the
fixed sleeps are gone, and the flow runs across two browsers on the
grid.
## Anti-patterns
| Anti-pattern | Why it fails | Fix |
|-----------------------------------------------------------------------|---------------------------------------------------------------------------|-----|
| Single test class with one giant flow | Failure mid-test obscures cause. | Per-flow tests with `@BeforeEach` setup. |
| Skipping `driver.quit()` | Browser instance leaks; CI runner OOM. | Always `quit()` in `@AfterEach` (Step 2). |
| Hardcoded ChromeDriver path or a pinned WebDriverManager | Drift; brittle to Chrome updates; duplicates what Selenium Manager does. | Delete both; Selenium Manager (Step 1). |
| `implicitlyWait` set alongside `WebDriverWait` | Timeouts stack unpredictably (10s + 15s can wait 20s). | Explicit waits only (Step 4). |
| Assertions inside page objects | Page objects stop being reusable; failures point at the wrong layer. | Assert in the test (Step 5). |
| Floating `selenium/node-chrome:latest` images | Browser and Grid change under the suite between runs. | Full date tag (Step 6). |
| Chrome left to auto-update on the runner | Tests run on whatever version the image has today. | `setBrowserVersion(...)`; Selenium Manager fetches that Chrome for Testing (Step 1). |
| Proxy in browser options just for driver downloads | The browser also goes through it. | `SE_PROXY` for Selenium Manager only (Step 1). |
| Upload path or download directory that only exists on the test machine, on Grid | The node looks on its own disk; Java and JavaScript add no file detector. | `LocalFileDetector`, managed downloads (Step 6). |
## Limitations
- **Slower than Playwright / Cypress.** WebDriver protocol overhead;
per-action HTTP round-trips.
- **Async / Promise handling weaker.** Per-language; some
frameworks better than others.
- **No native mobile.** Mobile via Appium (uses Selenium WebDriver
protocol underneath) per `appium-testing` (in the qa-mobile plugin).
- **Per-language idioms vary.** A Python pytest test looks
different from a Java JUnit test.
## References
- [sm][sm] - Selenium Manager: bundled since 4.6, fallback only, `browserVersion`,
`SE_PROXY`, `SE_CACHE_PATH`, `SE_OFFLINE`, `SE_AVOID_STATS`, `~/.cache/selenium`.
- [rwd][rwd] - Remote WebDriver: local file detector per binding, managed
downloads (`HasDownloads`).
- [gridcli][gridcli] - Grid CLI: `--enable-managed-downloads`, `se:downloadsEnabled`.
- [waits][waits] - explicit waits, lambdas, `FluentWait`, no mixing with
implicit waits.
- [pom][pom] - page object model; no assertions in page objects.
- [win][win] - `TakesScreenshot` capture.
- [bidi][bidi], [bidilog][bidilog] - WebDriver BiDi, `webSocketUrl`,
`addJavaScriptErrorHandler` and `addConsoleMessageHandler`.
- [dsel][dsel] - docker-selenium: hub and node images, full-tag pinning,
status endpoint.
- Versions: `selenium-java` 4.52.0 and `junit-jupiter` 6.1.3 from Maven
Central, Grid image tag from the docker-selenium repository tags, all
checked 3 Nov 2026.
- `playwright-testing`,
`cypress-testing` - modern
alternatives.
- `appium-testing` - mobile via WebDriver protocol.0 errors · 1 warning · 0 tips · 56 checks passed · 1 note to review
SKILL.md body: 481 lines, about 5,258 tokens · description: 381 characters · 23 files in the folder
- SpecificationA
Fields and format the Agent Skills specification requires
15 of 15 passed - DescriptionA
Whether an agent can tell when to use the skill
6 of 6 passed - Structure and contentA
How the body and the bundled files are laid out
15 of 16 passed - SecurityA
Secrets, hidden instructions, shell commands and side effects
20 of 20 passed
All checks
Body is about 5,258 tokens, over about 5,000warning
After compaction Claude Code keeps only the first 5,000 tokens.
Fix: Split detail into files that load on demand. The token count shown in the report is an estimate: characters divided by four.
Rule: Body stays under about 5,000 tokens →Calls the network with
curlnoteData can leave your machine.
Fix: Say what the call sends. Name the host and the data in the instructions, so a reader can check them.
SKILL.md line 330
Rule: Network calls →Starts with a frontmatter blockspecification
SKILL.md has to open with a
Rule: Starts with a frontmatter block →---block that holds at leastnameanddescription.Frontmatter is valid YAMLspecification
The text between the
Rule: Frontmatter is valid YAML →---lines has to parse as a YAML map.No byte order mark before the frontmatterspecification
Finds the invisible UTF-8 byte order mark (U+FEFF) that some Windows editors put at the start of a file.
Rule: No byte order mark before the frontmatter →Has a namespecification
The spec requires a
Rule: Has a name →namefield.Name uses lowercase letters, digits and hyphensspecification
1 to 64 characters of
Rule: Name uses lowercase letters, digits and hyphens →a-z,0-9and-, not starting or ending with a hyphen, with no double hyphens.Name avoids the words anthropic and claudespecification
The name must not contain
Rule: Name avoids the words anthropic and claude →anthropicorclaude.Name matches its folderspecification
The
Rule: Name matches its folder →namemust equal the name of the folder that holds SKILL.md.Has a descriptionspecification
The spec requires a non-empty
Rule: Has a description →description.Description fits in 1,024 charactersspecification
The spec caps
Rule: Description fits in 1,024 characters →descriptionat 1,024 characters.No angle brackets in name or descriptionspecification
Rule: No angle brackets in name or description →nameanddescriptionmust not contain<or>, so no XML-style tags such as<example>either.Compatibility note fits in 500 charactersspecification
When
Rule: Compatibility note fits in 500 characters →compatibilityis set it must be 1 to 500 characters.Frontmatter sticks to the spec's fieldsspecification
Fields other than
Rule: Frontmatter sticks to the spec's fields →name,description,license,compatibility,metadataandallowed-tools.metadata maps keys to plain valuesspecification
Rule: metadata maps keys to plain values →metadatamust be a map whose values are strings, not lists or nested maps.Frontmatter keys are plain textspecification
Finds unquoted keys such as
Rule: Frontmatter keys are plain text →true:,no:,123:or2026-01-01:in the frontmatter, including keys undermetadata.Uses paths, not the legacy globs fieldspecification
The frontmatter sets
Rule: Uses paths, not the legacy globs field →globs, which Cursor keeps only for older skills.Description says when to use the skilldescription
The description should contain a trigger such as
Rule: Description says when to use the skill →Use when ....Description is written in the third persondescription
Avoid openers like
Rule: Description is written in the third person →You are,I help,I canorYou can.Description names the tool and the resultdescription
Flags short descriptions with no trigger that lean on vague verbs (
Rule: Description names the tool and the result →helps with,handles,manages), and descriptions that repeat the name.Description is long enough to matchdescription
Descriptions under 60 characters rarely carry both the job and the trigger.
Rule: Description is long enough to match →Description and when_to_use fit in 1,536 charactersdescription
Claude Code cuts the combined
Rule: Description and when_to_use fit in 1,536 characters →descriptionandwhen_to_usetext at 1,536 characters.Description says when to use it earlydescription
The first trigger phrase, such as
Rule: Description says when to use it early →Use when, starts after character 400.Body has instructionsstructure and content
The Markdown after the frontmatter should hold the instructions the agent follows, not be empty or a stray word.
Rule: Body has instructions →SKILL.md stays under 500 linesstructure and content
The spec and Anthropic both recommend keeping SKILL.md under 500 lines.
Rule: SKILL.md stays under 500 lines →Long skills keep detail in reference filesstructure and content
A body over 250 lines that never points to a bundled file, by link or by path.
Rule: Long skills keep detail in reference files →Body gives numbered stepsstructure and content
No numbered list and no
Rule: Body gives numbered steps →Stepheadings.Body shows an examplestructure and content
No code block and no heading named Example.
Rule: Body shows an example →Paths use forward slashesstructure and content
Finds backslash paths such as
Rule: Paths use forward slashes →scripts\helper.py.No wording that goes out of datestructure and content
Finds dated phrases like
Rule: No wording that goes out of date →as of 2025,before March 2026orcoming soon.Every linked file existsstructure and content
A relative link in SKILL.md points to a file that is not in the skill's folder.
Rule: Every linked file exists →Reference files are linked from SKILL.mdstructure and content
A file linked from SKILL.md links on to further bundled files that SKILL.md does not link.
Rule: Reference files are linked from SKILL.md →Long reference files start with a contents liststructure and content
A bundled Markdown reference file over 100 lines with no contents list near the top. Files under
Rule: Long reference files start with a contents list →assets/ortemplates/, templates and test data are skipped.Explains rules instead of shouting themstructure and content
Five or more all-caps
Rule: Explains rules instead of shouting them →MUST,NEVERorALWAYSin the body.Bundled files have descriptive namesstructure and content
Files named like
Rule: Bundled files have descriptive names →doc2.md,file1.mdornotes3.txt.No READMEs or changelogs inside the skillstructure and content
A
Rule: No READMEs or changelogs inside the skill →README.md,CHANGELOG.md,INSTALLATION_GUIDE.mdorQUICK_REFERENCE.mdat the root of the skill folder.Scripts never wait for typed inputstructure and content
A bundled script calls
Rule: Scripts never wait for typed input →input(),getpass(),read -p,Read-Hostor a prompt library such as inquirer. Files named as templates are skipped, since a person runs the copy.Placeholders work in every agentstructure and content
Finds
Rule: Placeholders work in every agent →$ARGUMENTS,${CLAUDE_SKILL_DIR}and${CLAUDE_PROJECT_DIR}in SKILL.md.No real secretssecurity
Finds API keys, tokens, private keys and literal passwords in SKILL.md and its bundled files. Files under
Rule: No real secrets →evals/,fixtures/,__fixtures__/or test data folders are checked by the test data rule instead.Test data uses obvious placeholderssecurity
Finds secret-looking values in
Rule: Test data uses obvious placeholders →evals/,fixtures/,__fixtures__/and test data folders. These are usually fakes, so they cost a warning; the same value anywhere else fails the secrets rule.No piping downloads into a shellsecurity
Finds
Rule: No piping downloads into a shell →curl ... | sh,wget ... | bash,curl ... | python,bash <(curl ...),curl ... | source,source <(curl ...)andiwr ... | iex.Commands that run before loading are reviewedsecurity
Finds
Rule: Commands that run before loading are reviewed →!command blocks that Claude Code runs before the skill reaches the model.allowed-tools stays narrowsecurity
Rule: allowed-tools stays narrow →allowed-toolspre-approves unrestrictedBash(orShell) or every tool.Skills with side effects wait to be askedsecurity
The name or description is about deploying, publishing, sending or deleting, and automatic invocation is not turned off.
Rule: Skills with side effects wait to be asked →No hidden characterssecurity
Finds Unicode tag characters and bidirectional controls in SKILL.md and the bundled files, and runs of two or more zero-width characters on one line of a Markdown, text or YAML file.
Rule: No hidden characters →Frontmatter has no code-running YAML tagssecurity
Finds language tags such as
Rule: Frontmatter has no code-running YAML tags →!!python/object,!!python/apply,!!js/functionor!!ruby/objectin the frontmatter.No instructions to hide actions or override safeguardssecurity
Finds wording such as "ignore previous instructions", "override all system prompts", "don't tell the user." or "without telling the user." Quoted examples, lines that tell the agent to resist such text, tests and test data are skipped.
Rule: No instructions to hide actions or override safeguards →Doesn't turn off permission promptssecurity
Finds
Rule: Doesn't turn off permission prompts →--dangerously-skip-permissions,--dangerously-bypass-approvals-and-sandbox,danger-full-access,--yoloandbypassPermissionson a line that runs an agent CLI or sets a permission mode, unless the same file says it runs in a container or VM.Doesn't read credentials and call the networksecurity
One file names a file that holds secrets, such as an SSH private key,
Rule: Doesn't read credentials and call the network →~/.aws/credentials,.netrcor browserLogin Data, and also makes network calls withcurl,fetch,requestsor similar.No encoded or obfuscated codesecurity
Finds decode-then-run code (
Rule: No encoded or obfuscated code →base64 -d | sh,eval(atob(...)),exec(base64...)), long chains of hex escapes orString.fromCharCode, base64 strings over 200 characters outsideassets/and data files, and password-protected archives (unzip -P,7z x -p).Downloads use HTTPSsecurity
Finds
Rule: Downloads use HTTPS →curl,wgetand PowerShell downloads fromhttp://URLs. Local and private addresses such aslocalhost,127.0.0.1,10.x,192.168.xand169.254.169.254are skipped.Hooks in the frontmatter are reviewedsecurity
The frontmatter has a
Rule: Hooks in the frontmatter are reviewed →hooksfield, which Claude Code turns into commands that run on later tool calls.Credential files are reviewedsecurity
Names files that hold credentials:
Rule: Credential files are reviewed →~/.sshand SSH private keys,~/.aws/credentials,.netrc,.pypirc,~/.kube/config,~/.docker/config.json,~/.config/gh,/etc/shadow, browserLogin Dataand cookies, wallet files and macOS keychain lookups.Changes outside the project are reviewedsecurity
Finds recursive deletes of
Rule: Changes outside the project are reviewed →/,~or$HOME,chmod 777and setuid, writes to shell startup files and agent settings, scheduled jobs and services (crontab,launchctl load,systemctl enable,schtasks),mkfsanddd if=.Downloads are pinned to a versionsecurity
Finds downloads from
Rule: Downloads are pinned to a version →releases/latestand from a branch such asmainormasteron raw.githubusercontent.com, of scripts and binaries that the skill then runs.Instructions ship with the skillsecurity
Finds a skill that tells the agent to fetch an instruction file from a URL (
Rule: Instructions ship with the skill →SKILL.md,AGENTS.md,CLAUDE.md,instructions.md,prompt.md,.cursorrules) or to follow the steps or commands on a web page.Links show where they gosecurity
Finds links through URL shorteners such as bit.ly or tinyurl.com, links to public IP addresses instead of domain names, and downloads from paste sites or anonymous file hosts such as pastebin.com or transfer.sh.
Rule: Links show where they go →Binary filessecurity
Lists compiled or packaged files in the skill folder, such as
Rule: Binary files →.exe,.dll,.so,.jar,.pycor.wasm. A note, not a fault: it costs no points.
To fix these in your copy of the skill, let your agent do it: the skillland-fix skill for Claude Code, Codex and Cursor edits the SKILL.md and runs these checks again until it scores A. Get the skills
The validator checks how the SKILL.md is written. It doesn't run the skill, so a high score doesn't mean the skill is useful, correct or safe. What the score covers
Compared with the index
Score
92 scores higher than 46% of 4,462 skills.
Body size
About 5,258 tokens, loaded each time the skill runs. The median is 1,651.
Files (23)
A tick marks the 23 of 23 files the validator read. It reads text files under 200 KB.
- SKILL.md (opens in new window)
- .tessl-plugin/plugin.json (opens in new window)
- evals/cross-browser-report-that-only-ever-ran-chrome/criteria.json (opens in new window)
- evals/cross-browser-report-that-only-ever-ran-chrome/task.md (opens in new window)
- evals/pipeline-stayed-green-through-a-broken-release/criteria.json (opens in new window)
- evals/pipeline-stayed-green-through-a-broken-release/task.md (opens in new window)
- evals/selenium-bidi-errors/criteria.json (opens in new window)
- evals/selenium-bidi-errors/task.md (opens in new window)
- evals/selenium-grid-files/criteria.json (opens in new window)
- evals/selenium-grid-files/task.md (opens in new window)
Show all 23 files
- evals/selenium-manager-locked-ci/criteria.json (opens in new window)
- evals/selenium-manager-locked-ci/task.md (opens in new window)
- evals/selenium-mixed-waits/criteria.json (opens in new window)
- evals/selenium-mixed-waits/task.md (opens in new window)
- evals/selenium-shadow-frames/criteria.json (opens in new window)
- evals/selenium-shadow-frames/task.md (opens in new window)
- evals/suite-only-fails-on-the-shared-ci-runner/criteria.json (opens in new window)
- evals/suite-only-fails-on-the-shared-ci-runner/task.md (opens in new window)
- evals/two-teams-want-the-same-browser-stack/criteria.json (opens in new window)
- evals/two-teams-want-the-same-browser-stack/task.md (opens in new window)
- evals/vendor-widget-broke-every-locator-again/criteria.json (opens in new window)
- evals/vendor-widget-broke-every-locator-again/task.md (opens in new window)
- references/language-bindings.md (opens in new window)
More testing & qa skills
liarjsdev/liarjs-skills
Check whether a Playwright, Puppeteer, Selenium or CDP-driven browser presents a coherent fingerprint, using liarjs as a library against a Page you already have - navigator.webdriver, HeadlessChrome tokens, worker versus main-thread identity, patched-API integrity, WebGL versus WebGPU GPU identity. Use when asked whether an automated browser looks like a normal one, when a headless setup or a stealth plugin's effect needs measuring rather than assuming, or when an assertion on fingerprint quality belongs in a test suite.
npx skills add liarjsdev/liarjs-skills --skill playwright-stealth-verify138k
workflow-builder
A·98n8n-io/n8n
Load before calling workflow_builder_build_workflow. Once the user wants a workflow, load it before you ask about that workflow. Do not load it to ask about a request that does not yet say what to build. Use for new one-off workflows, edits, repairs and post-build verification of one workflow (not requests only to run or inspect a saved workflow), and for its credentials, model choices, evaluations and error workflow. For any other new workflow, load intent-recognition first when it is listed. If the workflow writes Data Tables, load data-table-manager first. Do a one-time request (no repeat or trigger words) now, without asking whether to repeat it; for one node, load one-off-operations and use execute_node.
npx skills add n8n-io/n8n --skill workflow-builder212.2k
solana-dev
B·82solana-foundation/solana-dev-skill · official
Use when user asks to "build a Solana dapp", "write an Anchor program", "create a token", "debug Solana errors", "set up wallet connection", "test my Solana program", "fuzz my Solana program", "deploy to devnet", "send a v1 transaction", "support larger transactions", "fix maxSupportedTransactionVersion", or "explain Solana concepts" (rent, accounts, PDAs, CPIs). Also for program architecture (state layout, compute units, throughput, naming), quick on-chain lookups via public RPC + curl, gasless or sponsored-fee transactions (Kora), server-side signing with KMS/Turnkey/Privy/Fireblocks (Solana Keychain), and issuing stablecoins or allowlisted tokens (Mosaic). Covers wallets, Anchor/Pinocchio, Codama clients, Surfpool/LiteSVM/Mollusk testing, security review, and v1 transactions (SIMD-0385). Prefers @solana/kit 8 plugin clients building transaction v1 by default, @solana/kit-plugin-wallet + @solana/react for wallets, web3.js v3 as the legacy migration target, and Surfpool for local networks.
npx skills add solana-foundation/solana-dev-skill --skill solana-dev117.4k
More from testland/qa
- a11y-violation-gate
- ab-test-validity-checklist
- add-to-homescreen-flow-tests
- ai-spec-coverage-mapper
- ai-test-generator
- allure-reports
- api-chaos-runner
- apollo-server-tests
- appium-testing
- aria-authoring-patterns
- async-ordering-tests
- atlas-migrations
- attack-surface-test-checklist
- audit-trail-test-author
- auth0-tests
- aws-sam-local-testing
- axe-a11y
- azure-functions-tests
- bats-testing
- bdd-step-library-curator
- behave-testing
- boundary-value-generator
- browser-matrix-strategy-reference
- buf-cli-lint-breaking-build
- bug-bash-facilitator
- bug-report-template
- bug-tracker-workflow
- bullmq-tests
- cache-key-discriminator-audit
- cdn-cache-purge-tests
- ceedling-build-runner
- celery-tests
- chaos-drill-protocol
- chaos-experiment-author
- chaos-mesh
- chart-render-tests
- checkov-policy
- chromatic-visual-regression-testing
- chrome-extension-messaging-tests
- ci-failure-triage
- ci-test-job-conventions
- cli-output-conventions
- cloud-grid-e2e
- cloudflare-workers-miniflare
- codeql-queries
- compliance-coverage-scoring
- confirmation-testing-workflow
- contract-compatibility-gate
- coverage-diff-reporter
- coverage-guided-fuzzing
- coverage-py-analysis
- cron-job-test-author
- cross-tenant-data-leak-tests
- cucumber-testing
- currents-integration
- cve-exploitability-triage
- cypress-testing
- data-contract-extractor
- data-quality-conventions
- data-quality-gate
- db-query-plan-analyzer
- dbt-testing
- deadlock-detection-harness
- decision-table-test-design
- deepchecks-tests
- deepeval-evaluation
- defect-escape-taxonomy
- definition-of-done
- dependabot-config
- dependency-vulnerability-scanning
- desktop-test-strategy-reference
- detox-testing
- docker-compose-tests
- dotnet-unit-tests
- dr-drill-runner
- dst-transition-reference
- e2e-suite-budget
- elasticsearch-relevance-tests
- electron-playwright
- embedded-coverage-strategy-reference
- error-budget-tests
- espresso-suite
- event-sourcing-tests
- evidently-monitoring
- exec-quality-narrative
- experiment-results-interpreter
- experiment-sdk-testing
- exploratory-charter-author
- exploratory-testing
- failure-injection-test-author
- fairlearn-fairness
- fake-clock-testing
- faker-data
- fast-check-testing
- feature-flag-test-harness
- flake-axis-bisection
- flake-dashboard-author
- flake-pattern-reference
- flaky-test-quarantine
- flame-graph-analyzer
- flaui-tests
- flutter-testing
- flyway-migrations
- framework-choice-advisor
- game-perf-profiling
- gameplay-recording-replay
- gdpr-test-patterns
- gherkin-from-stories
- ghz-load
- giskard-llm
- giskard-tests
- github-actions-test-jobs
- gitlab-ci-test-jobs
- gitleaks-scanning
- go-unit-tests
- godot-gut-tests
- golden-file-conventions
- googletest-embedded-arm
- graphql-complexity-limit-tester
- graphql-n-plus-one-remediation
- graphql-schema-regression
- graphql-subscription-test-author
- graphql-yoga-tests
- great-expectations
- grpc-mock
- grpc-streaming-test-author
- grpcurl-cli
- hardware-in-loop-reference
- hasura-tests
- helm-chart-tester
- hipaa-test-patterns
- hybrid-search-eval-author
- hypothesis-testing
- i18n-string-coverage
- idempotency-test-author
- jacoco-analysis
- jaeger-trace-tests
- jenkinsfile-test-stages
- jmeter-load-testing
- jqwik-testing
- js-unit-tests
- judgment-list-author
- junit-xml-analysis
- jvm-unit-tests
- k-anonymity-verifier
- k6-load-testing
- kafka-consumer-tests
- karate-testing
- keycloak-tests
- knip-dead-code
- langfuse-tracing
- language-native-sast
- launchdarkly-testing
- lcov-analysis
- lighthouse-perf
- liquibase-migrations
- living-documentation-publisher
- lizard-complexity
- llm-eval-anti-patterns
- llm-regression-suite-author
- load-testing-overview
- locale-format-validator
- madge-deps
- maestro-flows
- mailpit-testing
- malicious-payload-bank
- manual-test-script-author
- mfa-flow-test-author
- migration-operation-taxonomy
- mobile-a11y-test-author
- mobile-device-matrix-toolkit
- model-based-test-graph-author
- model-performance-regression-gate
- model-risk-evidence-matrix
- mqtt-tests
- msw-handlers
- mull-mutation
- multi-tool-finding-triage
- multiplayer-state-machine-coverage
- mutant-survival-triage
- mutmut-mutation
- mvcc-isolation-tests
- negative-test-generator
- non-functional-requirement-extractor
- notebook-ci-pipeline-author
- nuclei-dast
- oauth-flow-test-author
- object-model-patterns
- offline-fallback-tests
- okta-tests
- openapi-contract-diff
- openfeature-sdk-testing
- opentelemetry-trace-assertions
- otel-collector-config-tester
- outbox-pattern-test-author
- pact-contract-testing
- pairwise-test-case-generator
- payment-flow-test-author
- payment-gateway-sandboxes
- pci-dss-control-test-author
- pdf-accessibility-checker
- pdf-snapshot-tester
- percy-visual-regression-testing
- perf-budget-gate
- pester-cli-testing
- pii-masking-pipeline-builder
- pitest-mutation
- platform-cert-overview-reference
- playwright-agents
- playwright-extension-fixtures
- playwright-fixture-builder
- playwright-snapshots
- playwright-testing
- policy-as-code-runner
- post-mortem-author
- postman-collections
- presidio-pii-detection
- print-stylesheet-tests
- prod-canary-validator
- promptfoo-evaluation
- proptest-testing
- protobuf-compat-checking
- pseudo-localization-runner
- push-notification-test-author
- pytest-asyncio-patterns
- python-unit-tests
- qa-hiring-kit
- qemu-system-test-runner
- qt-test-framework
- quality-status-digest
- rabbitmq-tests
- race-condition-test-author
- ragas-evaluation
- reachability-analyzer
- red-green-refactor
- redis-cache-tests
- regression-suite-selector
- release-runbook-author
- renovate-config
- reqnroll-testing
- restassured-testing
- restler-fuzzing
- risk-matrix
- rtl-rendering-tester
- rust-unit-tests
- saga-transaction-tests
- schemathesis-fuzzing
- screen-reader-test-author
- secrets-rotation-runner
- seed-data-curator
- selenium-grid-4-runner
- semgrep-rules
- server-sent-events-tests
- serverless-integration-test-builder
- service-worker-lifecycle-tests
- session-management-test-author
- sidekiq-tests
- skill-matrix-author
- slo-load-test-plan
- smoke-suite-gate
- sms-test-author
- soc2-evidence-collector
- soda-checks
- sonarqube-maintainability-gate
- sonarqube-rules
- spec-testability-heuristics
- sqs-tests
- state-transition-test-design
- storybook-visual-regression-testing
- stride-threat-modeling
- stripe-subscription-billing-test-author
- stripe-test-cards-and-webhooks
- stryker-mutation
- stryker-net-mutation
- syft-generation
- synthea-healthcare-data
- synthetic-data-toolkit
- synthetic-monitor-author
- synthetic-pii-generator
- tcm-case-management
- tenant-onboarding-test-author
- test-case-anatomy-reference
- test-case-from-live-feature
- test-case-ideation-from-story
- test-code-conventions
- test-coverage-targeter
- test-data-patterns
- test-design-scorecard
- test-effort-estimation
- test-framework-architecture-audit
- test-framework-blueprint
- test-isolation-patterns
- test-management-sync
- test-pyramid-balancer
- test-removal-criteria
- test-run-summary-author
- test-strategy-author
- test-suite-health-audit
- testcontainers
- timezone-test-matrix-builder
- toxiproxy-chaos
- trace-spec-author
- traceability-matrix-builder
- trivy-config
- trivy-image
- tui-snapshot-tester
- unity-test-framework
- unity-test-framework-c
- unreal-automation-system
- varnish-test-vtc-syntax
- vector-search-recall-tests
- vex-author
- visual-baseline-conventions
- visual-baseline-gate
- wcag-color-contrast
- wcag-compliance-reporter
- wcag-keyboard-navigation
- web-e2e-overview
- web-push-tests
- web-vitals-inp-deep
- webdriverio-testing
- webhook-delivery-tester
- websocket-tests
- winappdriver
- wiremock-stubs
- workbox-tests
- xcuitest-suite
- zap-baseline