dare-rust-leptos

dare-rust-leptos is a skill for Claude Code, Codex from dewtech-technologies/dare-method. It costs 64 tokens per session (2,259 once invoked), scanned A, original, MIT.

A development guide for Leptos, a Rust framework that can run web interfaces in the browser through WebAssembly. It covers browser-only apps, full-stack apps, and projects that combine browser and native code.

In plain words
What is it for?
Use it when starting a Leptos project, choosing between CSR and full-stack rendering, connecting Leptos to an Axum backend, or fixing shared-type and workspace target problems.
Why use it?
It helps choose the right app structure and avoid common problems with server code, browser code, and shared types. It also explains when to use CSR, meaning browser-rendered pages, or full-stack rendering.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when starting a Leptos project, choosing between CSR and full-stack rendering, connecting Leptos to an Axum backend, or fixing shared-type and workspace target problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dewtech-technologies/dare-method/dare-rust-leptos
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.

Any agent
npx skills add dewtech-technologies/dare-method --skill dare-rust-leptos
Clone the repo
git clone --depth 1 https://github.com/dewtech-technologies/dare-method

Made for: Claude Code, Codex.

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 dare-rust-leptos

README.md
[![agentmods](https://agentmods.dev/badge/skills/dewtech-technologies/dare-method/dare-rust-leptos/github.svg)](https://agentmods.dev/skills/dewtech-technologies/dare-method/dare-rust-leptos)
Your own site
<a href="https://agentmods.dev/skills/dewtech-technologies/dare-method/dare-rust-leptos"><img src="https://agentmods.dev/badge/skills/dewtech-technologies/dare-method/dare-rust-leptos/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 dare-rust-leptos

Your own site · 80×15
<a href="https://agentmods.dev/skills/dewtech-technologies/dare-method/dare-rust-leptos"><img src="https://agentmods.dev/badge/skills/dewtech-technologies/dare-method/dare-rust-leptos.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,259 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.00064 $0.02259
Opus 5.5 $0.00026 $0.00904
Sonnet 5.5 $0.00013 $0.00452
Haiku 4.5 $0.00006 $0.00226

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

Security

Grade A, and why

dare-rust-leptos 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.

implementations/antigravity/.agents/skills/dare-rust-leptos/SKILL.md · 264 lines

How it starts

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

DARE Rust/Leptos Skill

Você é um especialista em Leptos 0.7+ (framework reativo Rust → WASM). Seu papel é orientar a decisão de variante (CSR vs Fullstack), aplicar idioms obrigatórios, evitar antipatterns clássicos e estruturar tipos compartilhados entre server e WASM.

Quando usar

  • Projeto novo Leptos sendo iniciado
  • Decisão CSR vs Fullstack precisa ser tomada
  • Workspace misto (Leptos + Axum + napi-rs) com problemas de target
  • Tipos compartilhados quebrando entre server e WASM
  • Effect/Resource/Action sendo mal usados

1. Decisão de variante: CSR vs Fullstack

Critério CSR (trunk) Fullstack (cargo-leptos)
SEO necessário ❌ ✅
Time-to-interactive crítico ❌ ✅
Dashboard interno / admin ✅ ✅
Backend Axum existente indiferente ✅ integração direta
Simplicidade de deploy ✅ arquivos estáticos ⚠️ binário Axum
Server functions (#[server]) ❌ não existe ✅

Regra de ouro:

  • Atrás de login e SEO não importa → CSR
  • Precisa SEO, carregamento inicial rápido, ou server functions → Fullstack
  • Já tem Axum no monorepo → Fullstack (workspace unificado)

2. Ferramentas — nunca misturar

Variante Build Dev server Test
CSR trunk build --release trunk serve cargo test --workspace
Fullstack cargo leptos build --release cargo leptos watch cargo test --workspace

cargo leptos test não existe. Use cargo test --workspace. Não use trunk para fullstack nem cargo leptos para CSR.

3. Idioms obrigatórios Leptos 0.7

Estado reativo

// Signals — só re-renderiza o que usa
let (count, set_count) = signal(0);
let doubled = move || count.get() * 2;  // derived (memo inline)

// Para estado compartilhado:
let count = RwSignal::new(0);

Dados assíncronos

// ✅ Resource — declarativo, integra com Suspense
let user = Resource::new(|| user_id(), |id| async move { fetch_user(id).await });

view! {
    <Suspense fallback=|| view! { <p>"Loading..."</p> }>
        {move || user.get().map(|u| view! { <p>{u.name}</p> })}
    </Suspense>
}

// ❌ Effect que faz fetch (re-executa em todo render)

Read the full file on GitHub · 264 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 · 264 lines · 64 tokens per session scan A df7961820d56

Subscribe to this mod's changes

dare-rust-leptos is a skill published in the GitHub repository dewtech-technologies/dare-method (5 stars, last pushed 3mo ago), licensed MIT. It adds 64 tokens to every session and 2,259 once invoked, about $0.0003 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.