dare-frontend-design

dare-frontend-design is a command for Claude Code from dewtech-technologies/dare-method. It costs 0 tokens per session (1,023 once invoked), scanned A, original, MIT.

A command set for organizing React and Vue frontends into pages, containers, hooks, and presentational components. It also checks for oversized components and data fetching written directly in templates.

In plain words
What is it for?
Use it to audit a React or Vue project, run architecture checks, or scaffold a page with its supporting components and hook.
Why use it?
It reduces tangled UI code and keeps data loading, application logic, and visual rendering easier to separate.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

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 commands/dewtech-technologies/dare-method/dare-frontend-design
Clone the repo
git clone --depth 1 https://github.com/dewtech-technologies/dare-method

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 dare-frontend-design

README.md
[![agentmods](https://agentmods.dev/badge/commands/dewtech-technologies/dare-method/dare-frontend-design.svg)](https://agentmods.dev/commands/dewtech-technologies/dare-method/dare-frontend-design)
Your own site
<a href="https://agentmods.dev/commands/dewtech-technologies/dare-method/dare-frontend-design"><img src="https://agentmods.dev/badge/commands/dewtech-technologies/dare-method/dare-frontend-design.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,023 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.1 $0.00000 $0.01023
Opus 5 $0.00000 $0.00511
Sonnet 5 $0.00000 $0.00205
Haiku 4.5 $0.00000 $0.00102

Measured 2d ago against content hash a54b4b242a25, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

dare-frontend-design 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 2d 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/claude/.claude/commands/dare-frontend-design.md · 150 lines

How it starts

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

/dare-frontend-design

Arquitetura frontend DARE para projetos React e Vue. Detecta god components, fetch inline em JSX/template, e gera scaffold DARE-compliant.

Como usar

/dare-frontend-design                    # audita projeto atual
/dare-frontend-design lint               # roda checks AP-01 a AP-06
/dare-frontend-design scaffold <página>  # gera Page + Container + Hook + Presentational

Arquitetura

Page  →  Container (lógica)  →  Presentational (puro)
           ↑
        Hook (fetch + cache)

As 4 regras

1. Componente < 300 linhas

Se passar de 300, quebrar em sub-componentes, hooks ou helpers.

2. Zero fetch() em JSX/template

Use TanStack Query (React/Vue), SWR ou similar. Hook devolve { data, isLoading, error }.

3. Error Boundary em cada Page

React: <ErrorBoundary> wrapping rotas. Vue: onErrorCaptured em layout/page-level.

4. Bundle size monitorado

rollup-plugin-visualizer, webpack-bundle-analyzer. Limite por chunk (ex: <300KB inicial).

Métricas obrigatórias

ID Métrica
M-01 100% de componentes < 300 linhas
M-02 0 fetch() direto em JSX/template
M-03 100% de páginas com error boundary
M-04 Bundle config presente

Antipatterns

AP Antipattern Correção
AP-01 God component (>300 linhas) Quebrar em sub-componentes + hooks
AP-02 Fetch em JSX Mover para hook
AP-03 Booleanos isLoading espalhados Discriminated union de estados
AP-04 Sem error boundary Wrap em <ErrorBoundary>
AP-05 Estilo inline pesado CSS module/styled
AP-06 Props drilling profundo Context/Zustand/Pinia

O que fazer

Passo 1: Detectar god components

find src/ -name "*.tsx" -o -name "*.vue" | xargs wc -l | sort -rn | head -20

Passo 2: Detectar fetch inline

grep -rn "fetch(\|axios\." src/components/ src/pages/

Passo 3: Migrar para hooks de dados

// Antes
function UserList() {
  const [users, setUsers] = useState([]);
  useEffect(() => { fetch('/api/users').then(r => r.json()).then(setUsers); }, []);
  return <ul>{users.map(...)}</ul>;
}

// Depois
function UserList() {
  const { data, isLoading, error } = useUsers();
  if (isLoading) return <Spinner />;
  if (error) return <ErrorMessage error={error} />;
  return <ul>{data.map(...)}</ul>;
}

function useUsers() {
  return useQuery({ queryKey: ['users'], queryFn: () => api.users.list() });
}

Read the full file on GitHub · 150 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. 2d ago First seen · 150 lines · 0 tokens per session scan A a54b4b242a25

Subscribe to this mod's changes

dare-frontend-design is a command published in the GitHub repository dewtech-technologies/dare-method (5 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,023 tokens. 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-03.