discover

discover is a skill for Claude Code from philchen00/verefi. It costs 70 tokens per session (4,930 once invoked), scanned A, original, MIT.

A browser-based discovery step that checks whether the selectors used by a test plan actually exist in a running app. Selectors are the attributes, roles, or visible text that tests use to find page elements.

In plain words
What is it for?
Use it to inspect a live app with agent-browser and record verified selectors in discovery.md for later tests.
Why use it?
It catches incorrect test assumptions before test code is written, reducing failures caused by elements that cannot be found.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the verefi plugin — 5 skills shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add philchen00/verefi
Claude Code
/plugin install verefi

Made for: Claude Code.

Or install verefi, the plugin that ships this one along with the rest of its 5 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for discover

README.md
[![agentmods](https://agentmods.dev/badge/skills/philchen00/verefi/discover.svg)](https://agentmods.dev/skills/philchen00/verefi/discover)
Your own site
<a href="https://agentmods.dev/skills/philchen00/verefi/discover"><img src="https://agentmods.dev/badge/skills/philchen00/verefi/discover.svg" alt="Measured on agentmods" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,930 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00070 $0.04930
Opus 5 $0.00035 $0.02465
Sonnet 5 $0.00014 $0.00986
Haiku 4.5 $0.00007 $0.00493

Measured 6d ago against content hash bcc3ca72b508, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

discover scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/discover/SKILL.md · 194 lines

How it starts

The opening of the file, as written. The whole thing — 194 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Explore the running app and record verified selectors in discovery.md.

Usage

/verefi:discover [--name <run-name>] [--url <base-url>]

What this does

Read test-plan.md, drive the real app with agent-browser to confirm the elements each test case relies on actually exist, and write what you found to discovery.md. This closes the gap testplan can't close on its own — testplan never looks at the live app, so its Implementation Notes selectors are educated guesses, not verified ones. In one real run, skipping this step produced a 15-test suite that failed 14/15 on a selector that was never real; running discovery first and using its output brought the same test cases to 6/6 passing. That's the entire point of this skill — don't let it be optional in spirit even when it's optional in the pipeline.

Run name

<name> defaults to the sanitized current git branch (same rule as every other stage), with --name as an explicit override:

name=$(git branch --show-current 2>/dev/null | sed 's/[^a-zA-Z0-9._-]/-/g')
if ! [[ "$name" =~ ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$ ]]; then name=default; fi

If --name is supplied, reject it unless it exactly matches ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$. Do not sanitize an explicit value. Validate it before reading or writing any .verefi/<name>/ path and use it only as a session name after validation.

Inputs

  • Required: .verefi/<name>/test-plan.md — read the Test Cases section for elements to verify, and Implementation Notes for the default Base URL
  • Optional: .verefi/<name>/audit.md — static selector inventory from /verefi:audit. When present, discovery becomes targeted verification, not blind exploration: confirm audit's inventory rows for the elements the test plan needs first (fast — you already know what to look for), then spend the remaining effort on what only a live run can show — multi-step flows, per-role behavior, elements audit found no evidence for.
  • Optional: --url overrides the Base URL from the test plan (e.g. if the app is running on a different port right now)

Read the full file on GitHub · 194 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 194 lines · 70 tokens per session scan A bcc3ca72b508

Subscribe to this mod's changes

discover is a skill published in the GitHub repository philchen00/verefi (6 stars, last pushed yesterday), licensed MIT. It adds 70 tokens to every session and 4,930 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

cypress

When the user wants to design, implement, debug, stabilize, or scale Cypress tests. Use when the user mentions "Cypress," "cypress.config.js," "cy.intercept," "cy.session," "cy.visit," "component testing in Cypress," "Cypress Cloud," "cypress run," "cypress open," "cy.task," "Mocha," or "Chai." For Playwright-specific…

aks-builds/quality-skills · 118 tokens

playwright

When the user wants to design, implement, debug, stabilize, or scale Playwright tests. Use when the user mentions "Playwright," "playwright.config.ts," "page.locator," "page.getByRole," "browser context," "fixtures," "test.beforeEach," "trace viewer," "codegen," "Playwright Test," "Playwright MCP," "PWT," "WebKit…

aks-builds/quality-skills · 130 tokens

selenium-grid

When the user wants to design, deploy, scale, or troubleshoot a self-hosted Selenium Grid 4 cluster — hub, nodes, distributors, sessions, K8s deployment, autoscaling. Use when the user mentions "Selenium Grid," "Selenium Grid 4," "grid hub," "grid node," "selenium docker-selenium," "session queue," "selenoid," "moon,"…

aks-builds/quality-skills · 121 tokens

selenium

When the user wants to design, implement, debug, or migrate Selenium WebDriver tests. Use when the user mentions "Selenium," "Selenium 4," "WebDriver," "Selenium Grid," "Selenium Manager," "BiDi," "By.id," "By.cssSelector," "WebDriverWait," "ExpectedConditions," "RemoteWebDriver," "DesiredCapabilities," "W3C…

aks-builds/quality-skills · 137 tokens

testcafe

When the user wants to design, implement, debug, or migrate TestCafe tests. Use when the user mentions "TestCafe," ".testcaferc.json," "Selector," "ClientFunction," "fixture," "Role," "t.click," "t.typeText," or "testcafe runner." TestCafe uses a Node-based proxy instead of WebDriver. For modern multi-browser test…

aks-builds/quality-skills · 105 tokens

webdriverio

When the user wants to design, implement, debug, or scale WebdriverIO tests. Use when the user mentions "WebdriverIO," "WDIO," "wdio.conf.js," "wdio.conf.ts," "Appium service," "wdio services," "$()," "$$()," "browser.execute," "wdio runner," "@wdio/cli," or "browser.url." For Selenium-specific guidance see selenium.…

aks-builds/quality-skills · 122 tokens