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 fubits1/svelte-skills --skill testing-sveltegit clone --depth 1 https://github.com/fubits1/svelte-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/fubits1/svelte-skills/testing-svelte)<a href="https://agentmods.dev/skills/fubits1/svelte-skills/testing-svelte"><img src="https://agentmods.dev/badge/skills/fubits1/svelte-skills/testing-svelte/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/fubits1/svelte-skills/testing-svelte"><img src="https://agentmods.dev/badge/skills/fubits1/svelte-skills/testing-svelte.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00051 | $0.01994 |
| Opus 5.5 | $0.00020 | $0.00798 |
| Sonnet 5.5 | $0.00010 | $0.00399 |
| Haiku 4.5 | $0.00005 | $0.00199 |
Grade A, and why
testing-svelte 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 12d 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 — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Svelte Testing
Quick Start
// browser component test
import { render } from "vitest-browser-svelte";
import { expect, test } from "vitest";
import { page } from "vitest/browser";
// button.svelte: <button onclick={() => count++}>Clicked: {count}</button>
import Button from "./button.svelte";
test("button click increments counter", async () => {
await render(Button);
const button = page.getByRole("button");
// or from the result: const screen = await render(Button); screen.getByRole(...)
await button.click();
await expect.element(button).toHaveTextContent("Clicked: 1"); // exact full text
});
Interaction Tests Are Mandatory
Every test for an interactive component (inputs, autocompletes, buttons, forms) MUST interact with it and assert the result: a render-only test proves only that the component mounts.
- Interact: click, type, select, submit
- Assert the outcome: the selected value text, the callback data content, the DOM state change
- Never silently skip: assert the precondition instead of guarding it with an
if (items.length > 0)that skips the interaction when it fails - Verify callback data: capture what a callback received and assert it; a fixture component that renders the payload into an output element works (give it an accessible name, or comment why a test id is used). "The callback was called" misses an
onChangethat passes objects instead of strings
Core Principles
- Prefer locators:
page.getBy*()methods first. A rawquerySelectorordata-testidneeds a one-line comment saying why no accessible locator works (svelte-5:vitestquery rule) - Multiple elements: use
.first(),.nth(),.last()to avoid strict mode violations - Real API objects: test with
FormDataandRequest, with minimal mocking - Mock at the right seam:
vi.mockfor module boundaries,mswfor the network boundary.mswis this rule applied to HTTP: keep the real component and the realfetch, swap only what crosses the wire (svelte-5:msw) vi.mock/vi.hoisted/vi.unmockat the top level only: insidedescribe,test, or a function they throw in Vitest 5 (was defined outside of the module's top level scope).vi.doMockmay go anywhere. Factories, SvelteKit$app/*stubs, component swaps:svelte-5:vitestmocking reference
What ships with it
7 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.
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.
- 12d ago Changed · -6 lines · +2 tokens per session 26ea8d84c6c1
- 1mo ago Changed · -22 lines 1df3d59399c3
- 2mo ago First seen · 109 lines · 49 tokens per session scan A bee350768a7f
testing-svelte is a skill published in the GitHub repository fubits1/svelte-skills (10 stars, last pushed 12d ago), licensed MIT. It adds 51 tokens to every session and 1,994 once invoked, about $0.0002 per session on Opus 5.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.
testing-svelte compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| testing-sveltefubits1/svelte-skills | Skill | 10 | 12d ago | MIT | A | 51 | Claude Code |
| test-masterJeffallan/claude-skills | Skill | 12k | 7d ago | MIT | A | 104 | Claude Code |
| axiom-testingCharlesWiltgen/Axiom | Skill | 1.3k | yesterday | MIT | A | 38 | Claude Code |
| test-generatorrshankras/claude-code-apple-skills | Skill | 864 | 2d ago | MIT | A | 33 | Claude Code |
| testing-blocksadobe/skills | Skill | 319 | yesterday | Apache-2.0 | A | 61 | Claude Code |
| designing-testsCloudAI-X/claude-workflow-v2 | Skill | 1.4k | 1mo ago | MIT | A | 48 | Claude Code |
| test-automation-expertcuriositech/some_claude_skills | Skill | 263 | yesterday | MIT | A | 133 | Claude Code |