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 skills add rstackjs/agent-skills --skill migrate-to-rstestgit clone --depth 1 https://github.com/rstackjs/agent-skillsWrote 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.
[](https://agentmods.dev/skills/rstackjs/agent-skills/migrate-to-rstest)<a href="https://agentmods.dev/skills/rstackjs/agent-skills/migrate-to-rstest"><img src="https://agentmods.dev/badge/skills/rstackjs/agent-skills/migrate-to-rstest.svg" alt="Measured on agentmods" height="20"></a>- Socket pass
- Snyk warn
- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00124 | $0.01053 |
| Opus 5 | $0.00062 | $0.00526 |
| Sonnet 5 | $0.00025 | $0.00211 |
| Haiku 4.5 | $0.00012 | $0.00105 |
Grade A, and why
migrate-to-rstest 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 44 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Migrate to Rstest
Goal
Migrate the smallest runnable Jest, Vitest, or Playwright Test scope with minimal behavior change. Use documentation and types that match the installed Rstest version; use latest online docs only after the capability gate confirms they apply.
Workflow
- Detect the runner, environment, Rstack integration, and smallest runnable scope with
references/detect-test-framework.md. - Run
references/dependency-install-gate.mdbefore choosing Rstest, coverage, adapter, or plugin APIs. - Before editing, record the exact command, Node and runner versions, environment, files/tests/skips/snapshots, and failures. Capture the pre-migration test manifest and follow
references/discovery-parity.mdthroughout the migration. - For Jest read
references/jest-migration-deltas.md; for Vitest readreferences/vitest-migration-deltas.md; for global APIs also readreferences/global-api-migration.md; for a detected Playwright Test runner readreferences/playwright-migration-deltas.md. Do not load the Playwright path for a browser-only request whose runner is not Playwright Test. Migrate scripts, config, and setup before editing test bodies; prefer adapter or Rsbuild/Rspack fixes over broad test rewrites. - If config loading emits
[MODULE_TYPELESS_PACKAGE_JSON], usereferences/config-module-type.md. Do not suppress the warning or change the whole package module type without an audit. - Get the migrated scope semantically green. Fix failures in this order: dependency skew, config/resolver, discovery, setup/environment/coverage, mocks/timers/snapshots, then test bodies.
- Compare the post-migration manifest and execution counts with the baseline. Classify every added, removed, skipped, or excluded test explicitly; do not call a run equivalent merely because it is green. For Jest snapshot migrations, also complete the snapshot cleanup and
uncheckedvalidation inreferences/jest-migration-deltas.md. - Remove temporary aliases, diagnostic hooks, and copied legacy workarounds that are no longer required. Keep only configuration proven necessary by behavior or measurement.
- If wall time, build, test runtime, logs, or memory materially regress, load and follow the
rstest-debuggingskill when available. Otherwise use the migration fallback inreferences/performance-diagnosis.md, then readreferences/dependency-bundling-performance.mdand/orreferences/mocked-module-build-graph.mdaccording to the measured bottleneck. Change one variable at a time. - After correctness and performance validation, remove only legacy files and dependencies owned by the migrated scope. Summarize behavior parity, discovery differences, unsupported fields, retained compatibility config, performance tradeoffs, and TODOs.
What ships with it
11 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/config-module-type.md 2.6 KB
- references/dependency-bundling-performance.md 5.2 KB
- references/dependency-install-gate.md 4.8 KB
- references/detect-test-framework.md 3.6 KB
- references/discovery-parity.md 2.7 KB
- references/global-api-migration.md 2.9 KB
- references/jest-migration-deltas.md 4.9 KB
- references/mocked-module-build-graph.md 4.3 KB
- references/performance-diagnosis.md 5.0 KB
- references/playwright-migration-deltas.md 14 KB
- references/vitest-migration-deltas.md 5.8 KB
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.
- 4d ago Changed d23666c2fb04
- 8d ago First seen · 44 lines · 124 tokens per session scan A 9559bb003473
migrate-to-rstest is a skill published in the GitHub repository rstackjs/agent-skills (93 stars, last pushed 3d ago), licensed MIT. It adds 124 tokens to every session and 1,053 once invoked, about $0.0006 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
research-engineer
An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.
tika-eval-compare
Compare extracts from two Tika builds over a corpus to detect regressions in content, encoding, exceptions, and embedded-document handling. Use for "compare before/after extracts", "eval this change against the corpus".
neuron-evaluation-engineer
Create and run AI evaluations with datasets, assertions, and output drivers in Neuron AI. Use this skill whenever the user mentions evaluation, testing AI systems, creating evaluators, dataset-driven testing, assertion-based validation, or wants to measure AI system performance. Also trigger for tasks involving…
jetson-validate-image
Use after jetson-flash-image to run static BSP checks, on-target smoke/regression tests on a flashed DUT, or both. Not for build or flash steps. Triggers: validate bsp, on-target validation.
atmos-validation
Validate Atmos projects, components, arbitrary JSON Schema inputs, EditorConfig, and GitHub Actions; use affected-file selection and native CI annotations.
skill-benchmark
Benchmark AI skill effectiveness by measuring implementation quality against legacy constraints.