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 ejirocodes/agent-skills --skill svelte5-best-practicesgit clone --depth 1 https://github.com/ejirocodes/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/ejirocodes/agent-skills/svelte5-best-practices)<a href="https://agentmods.dev/skills/ejirocodes/agent-skills/svelte5-best-practices"><img src="https://agentmods.dev/badge/skills/ejirocodes/agent-skills/svelte5-best-practices/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/ejirocodes/agent-skills/svelte5-best-practices"><img src="https://agentmods.dev/badge/skills/ejirocodes/agent-skills/svelte5-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket pass
- Snyk 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.00142 | $0.00764 |
| Opus 5.5 | $0.00057 | $0.00306 |
| Sonnet 5.5 | $0.00028 | $0.00153 |
| Haiku 4.5 | $0.00014 | $0.00076 |
Grade A, and why
svelte5-best-practices 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 3mo 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 — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Svelte 5 Best Practices
Quick Reference
| Topic | When to Use | Reference |
|---|---|---|
| Runes | $state, $derived, $effect, $props, $bindable, $inspect | runes.md |
| Snippets | Replacing slots, {#snippet}, {@render} | snippets.md |
| Events | onclick handlers, callback props, context API | events.md |
| TypeScript | Props typing, generic components | typescript.md |
| Migration | Svelte 4 to 5, stores to runes | migration.md |
| SvelteKit | Load functions, form actions, SSR, page typing | sveltekit.md |
| Performance | Universal reactivity, avoiding over-reactivity, streaming | performance.md |
Essential Patterns
Reactive State
<script>
let count = $state(0); // Reactive state
let doubled = $derived(count * 2); // Computed value
</script>
Component Props
<script>
let { name, count = 0 } = $props();
let { value = $bindable() } = $props(); // Two-way binding
</script>
Snippets (replacing slots)
<script>
let { children, header } = $props();
</script>
{@render header?.()}
{@render children()}
Event Handlers
<!-- Svelte 5: use onclick, not on:click -->
<button onclick={() => count++}>Click</button>
Callback Props (replacing createEventDispatcher)
<script>
let { onclick } = $props();
</script>
<button onclick={() => onclick?.({ data })}>Click</button>
Common Mistakes
- Using
letwithout$state- Variables are not reactive without$state() - Using
$effectfor derived values - Use$derivedinstead - Using
on:clicksyntax - Useonclickin Svelte 5 - Using
createEventDispatcher- Use callback props instead - Using
<slot>- Use snippets with{@render} - Forgetting
$bindable()- Required forbind:to work - Setting module-level state in SSR - Causes cross-request leaks
- Sequential awaits in load functions - Use
Promise.allfor parallel requests
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.
- 3mo ago First seen · 82 lines · 142 tokens per session scan A eeb2be3e3208
svelte5-best-practices is a skill published in the GitHub repository ejirocodes/agent-skills (6 stars, last pushed 5mo ago), licensed MIT. It adds 142 tokens to every session and 764 once invoked, about $0.0006 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.
svelte5-best-practices compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| svelte5-best-practicesejirocodes/agent-skills | Skill | 6 | 5mo ago | MIT | A | 142 | Claude Code |
| shadcn-sveltevercel-labs/json-render | Skill | 20k | 7d ago | Apache-2.0 | A | 63 | Claude Code, Codex |
| add-localizationmicrosoft/power-platform-skills | Skill | 1.2k | today | MIT | A | 69 | Claude Code |
| moai-domain-uiuxmodu-ai/moai-adk | Skill | 1.3k | today | Apache-2.0 | A | 49 | Claude Code |
| moai-domain-frontendmodu-ai/moai-adk | Skill | 1.3k | today | Apache-2.0 | A | 54 | Claude Code |
| vue-router-best-practicesvuejs-ai/skills | Skill | 3.4k | 1mo ago | MIT | A | 25 | Claude Code, Codex |
| weapp-vite-vue-sfc-best-practicesweapp-vite/weapp-vite | Skill | 529 | today | MIT | A | 107 | Codex |