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

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.

agentmods
npx agentmods add skills/dewtech-technologies/dare-method/dare-rust-leptos
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00064 $0.02259
Opus 5 $0.00032 $0.01130
Sonnet 5 $0.00013 $0.00452
Haiku 4.5 $0.00006 $0.00226

Measured 4d ago against content hash df7961820d56, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

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. 4d 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 1mo ago), licensed MIT. It adds 64 tokens to every session and 2,259 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

axum-idioms

Axum HTTP framework patterns — routing, extractors, middleware, state management. For Rust see rust-idioms.

irahardianto/awesome-agv · 30 tokens

inbound-triage

Maintainer-only. Use when triaging inbound GitHub issues and pull requests on skyf0xx/hedgehog — "triage the issues", "check the PRs", "review inbound", "what's in the queue". Reads each item read-only, judges it for security and for whether it is real, then fixes and closes or comments and closes. Not part of the…

skyf0xx/hedgehog · 102 tokens

setup-background-job

Set up scheduled background jobs using Quartz.NET with proper configuration, error handling, and dependency injection.

andresharpe/dotbot · 22 tokens

conventional-commits

Use when uncommitted changes need to be split into atomic, conventional commits ordered for review. Triggers on "commit this", "make commits", "clean up commits", "commit the changes". In Hedgehog, each Loop step is already meant to be its own commit — this skill matters most when a Correction Protocol fast-forward…

skyf0xx/hedgehog · 88 tokens

pr-writing

Use whenever writing a PR title/description, a commit message body, a code review comment, or an issue — in Hedgehog's own repo or any consuming project. Triggers on "open a PR", "write the PR description", "comment on this PR", "file an issue". Covers writing style (terse, info-dense, Simplified Technical English)…

skyf0xx/hedgehog · 107 tokens

hedgehog-daily

Use when a change request lands on a project that already has .hedgehog/ and no build in flight — a finished build being adjusted, or an adopted repo's next piece of work. Triggers on any "change this", "fix this", "add this" on such a project. Sizes the request against the installed core's own layers and routes it to…

skyf0xx/hedgehog · 0 tokens