Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/web-infra-dev/rsdoctor/write-e2e-casesnpx skills add web-infra-dev/rsdoctor --skill write-e2e-casesgit clone --depth 1 https://github.com/web-infra-dev/rsdoctorWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00039 | $0.00426 |
| Opus 5 | $0.00019 | $0.00213 |
| Sonnet 5 | $0.00008 | $0.00085 |
| Haiku 4.5 | $0.00004 | $0.00043 |
Grade A, and why
write-e2e-cases 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 3d 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.
What it actually says
Write E2E Cases
Rsdoctor E2E tests use Playwright and live under e2e/cases/. Each bundler has its own directory:
e2e/cases/doctor-rspack/— tests using Rspack compilatione2e/cases/doctor-rsbuild/— tests using Rsbuilde2e/cases/doctor-rspeedy/— tests using Rspeedy
Steps
-
Review uncommitted git changes to define test scope and target behavior.
-
Read
e2e/README.mdand follow its conventions. -
Use helpers from
@scripts/test-helper(for examplecompileByRspack) to compile fixtures. Do not call bundler APIs directly. -
Add Playwright test files under the appropriate
e2e/cases/doctor-*directory, following existing patterns. -
Test fixtures (source files, loaders, configs) go in
fixtures/subdirectories inside each case directory. -
Keep assertions focused and readable; avoid redundant setup and checks.
-
Run
pnpm e2efrom the repository root to validate.
Case Structure
- Each test file creates an Rsdoctor plugin instance (e.g.,
createRsdoctorPluginfrom a localtest-utils.ts), compiles a fixture viacompileByRspack, and asserts on the SDK store data. - Fixtures are plain JS/TS files and loaders in
fixtures/— not full application directories. - Use
@rsdoctor/core/pluginsforgetSDK/setSDKwhen inspecting analysis results.
Constraints
- If tests can pass only after source-code changes, do not change source code directly. Explain the required source change and ask the user before proceeding.
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.
- 3d ago First seen · 39 lines · 39 tokens per session scan A 99fd0fbbb722
write-e2e-cases is a skill published in the GitHub repository web-infra-dev/rsdoctor (1,139 stars, last pushed 3d ago), licensed MIT. It adds 39 tokens to every session and 426 once invoked, about $0.0002 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-30.
Other skills, from other repositories
write-ui-tests
Creates UI tests for a GitHub issue and verifies they reproduce the bug. Iterates until tests actually fail (proving they catch the issue). Use when PR lacks tests or tests need to be created for an issue.
analyze-and-plan
Standalone Phase 1 of SAP UI testing. Discovers the configured test folder and target system, downloads one complete ABAP source snapshot, then READS that source and captures the full picture in three reference artifacts — flow.md (functional flow), units.md (per-unit input/output inventory), and findings.md (the…
build-scripts
Standalone Phase 6 of SAP UI testing. Rediscovers the configured test folder, program, approved cases, and primary system from disk; validates upstream inputs; then writes one tests/ /test-scripts/TC-XXX.spec.ts per case using @sap-testing/runtime. Use when the user asks to write, generate, or convert Playwright…
explore-ui
Standalone Phase 2 of SAP UI testing. Opens the target transaction in a real browser (SAP WebGUI) and explores it live to produce tests/ /test-cases/screens.md — the authoritative map of every on-screen control, its accessible name/label as Playwright will see it, and its initial state. This is about how the UI…
prepare-data
Standalone Phase 5 of SAP UI testing. Rediscovers the configured test folder, program, approved cases, and target system from the request and upstream artifacts; then resolves TC-XXX.data.md requirements into per-system data.json caches. Works in a new chat without prior conversation context. Use when the user asks to…
run-scripts
Standalone Phase 7 of SAP UI testing. Rediscovers the configured test folder, program/specs, test cases, prepared data, and target system from disk; then runs Playwright via SAP Testing tools, generates .docx evidence, and diagnoses test script failures. Use when the user asks to execute tests, run TC-XXX, generate…