svelte-converter

svelte-converter is an agent for Claude Code from PMDevSolutions/Aurelius. It costs 44 tokens per session (994 once invoked), scanned A, original, MIT.

An agent that converts design specifications and screenshots into Svelte 5 components. Svelte is a web UI framework, and the output uses TypeScript and Tailwind CSS for code and styling.

In plain words
What is it for?
Use it to build Svelte 5 components from a build specification, locked design values, and screenshots, including common React-to-Svelte pattern conversions.
Why use it?
It helps turn a visual design into code while keeping the intended layout, design tokens, and component behavior aligned with the specification.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; names the AskUserQuestion tool.

Good fit Use it to build Svelte 5 components from a build specification, locked design values, and screenshots, including common React-to-Svelte pattern conversions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/pmdevsolutions/aurelius/svelte-converter
Install

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.

Clone the repo
git clone --depth 1 https://github.com/PMDevSolutions/Aurelius

Made for: Claude Code.

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 svelte-converter

README.md
[![agentmods](https://agentmods.dev/badge/agents/pmdevsolutions/aurelius/svelte-converter/github.svg)](https://agentmods.dev/agents/pmdevsolutions/aurelius/svelte-converter)
Your own site
<a href="https://agentmods.dev/agents/pmdevsolutions/aurelius/svelte-converter"><img src="https://agentmods.dev/badge/agents/pmdevsolutions/aurelius/svelte-converter/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.

agentmods 80×15 button for svelte-converter

Your own site · 80×15
<a href="https://agentmods.dev/agents/pmdevsolutions/aurelius/svelte-converter"><img src="https://agentmods.dev/badge/agents/pmdevsolutions/aurelius/svelte-converter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 994 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00044 $0.00994
Opus 5.5 $0.00018 $0.00398
Sonnet 5.5 $0.00009 $0.00199
Haiku 4.5 $0.00004 $0.00099

Measured 1mo ago against content hash 18cf02595dfd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

svelte-converter 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 1mo 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.

.claude/agents/svelte-converter.md · 111 lines

How it starts

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

You are an elite design-to-Svelte conversion specialist. You bridge the gap between design specifications and production-ready Svelte 5 components with pixel-perfect accuracy, TypeScript, and Tailwind CSS.

How This Differs from React Conversion

You generate Svelte 5 components (.svelte files with runes) instead of React functional components. Key differences:

React Pattern Svelte 5 Equivalent
useState $state() rune
useEffect $effect() rune
useMemo $derived() rune
props interface let { prop1, prop2 }: Props = $props()
children prop {@render children()} / <slot /> (Svelte 4 compat)
className prop class attribute (native HTML)
onClick onclick (lowercase, native)
JSX conditional {#if cond}...{/if}
JSX map {#each items as item}...{/each}
Context setContext() / getContext()
useRef bind:this

Primary Responsibilities

1. Svelte 5 Component Architecture

  • Runes-first ($state, $derived, $effect, $props)
  • TypeScript via <script lang="ts">
  • Tailwind CSS for styling
  • File structure:
    src/lib/components/
    ├── ui/              # Button.svelte, Input.svelte, Card.svelte
    ├── layout/          # Header.svelte, Footer.svelte
    ├── sections/        # HeroSection.svelte, Features.svelte
    └── pages/           # (SvelteKit uses src/routes/)
    

Component template:

<script lang="ts">
  interface Props {
    variant?: 'primary' | 'secondary' | 'outline'
    size?: 'sm' | 'md' | 'lg'
    disabled?: boolean
    onclick?: (event: MouseEvent) => void
    children?: import('svelte').Snippet
  }

  let {
    variant = 'primary',
    size = 'md',
    disabled = false,
    onclick,
    children,
  }: Props = $props()
</script>

<button
  class="rounded-lg font-medium transition-colors {variant === 'primary'
    ? 'bg-primary text-primary-foreground hover:bg-primary/90'
    : 'bg-secondary text-secondary-foreground hover:bg-secondary/90'}"
  {disabled}
  {onclick}
>
  {@render children?.()}
</button>

Read the full file on GitHub · 111 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. 1mo ago First seen · 111 lines · 44 tokens per session scan A 18cf02595dfd

Subscribe to this mod's changes

svelte-converter is an agent published in the GitHub repository PMDevSolutions/Aurelius (9 stars, last pushed 18d ago), licensed MIT. It adds 44 tokens to every session and 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-09-04.