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 agentmods add commands/dewtech-technologies/dare-method/dare-frontend-designgit clone --depth 1 https://github.com/dewtech-technologies/dare-methodWrote 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/commands/dewtech-technologies/dare-method/dare-frontend-design)<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>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.00000 | $0.01023 |
| Opus 5 | $0.00000 | $0.00511 |
| Sonnet 5 | $0.00000 | $0.00205 |
| Haiku 4.5 | $0.00000 | $0.00102 |
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.
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() });
}
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.
- 2d ago First seen · 150 lines · 0 tokens per session scan A a54b4b242a25
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.
Other commands, from other repositories
media-sketch-to-code
Gemini-only command that turns sketches, wireframes and mockups into framework-specific component code or Mermaid diagrams.
component-gen
Generate React or Vue components with prop types, styling, accessibility, and tests.
kim-form
Kim表单生成命令 - 根据字段描述生成React/Vue表单组件(含校验逻辑).
log
SoDamAgentic 안전 기록 조회(F6). 사용자가 /sodam-agentic:log 로 실행하면, 지금까지 안전장치가 막거나 확인받은 내역을 쉬운 한국어로 요약해 보여준다.
review
SoDamAgentic "변경점 검토". 사용자가 /sodam-agentic:review 로 직접 실행하거나, 파일 변경 직후 자동으로 발동해(skills/review) 무엇을·왜 바꿨고 위험은 없는지 쉬운 한국어로 요약한다.
checklist
Generate a custom checklist for the current feature based on user requirements.