dare-dna

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

A project-convention tool that turns facts extracted from an existing codebase into practical rules for how new code should be written.

In plain words
What is it for?
Use it after DARE scans a project, especially when adding features to an older codebase without rewriting it.
Why use it?
It helps an agent follow the codebase's established naming, structure, libraries, and testing habits instead of applying generic defaults.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it after DARE scans a project, especially when adding features to an older codebase without rewriting it.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/dewtech-technologies/dare-method/dare-dna"><img src="https://agentmods.dev/badge/commands/dewtech-technologies/dare-method/dare-dna.svg" alt="Reviewed on agentmods" width="80" 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,067 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.00000 $0.01067
Opus 5.5 $0.00000 $0.00427
Sonnet 5.5 $0.00000 $0.00213
Haiku 4.5 $0.00000 $0.00107

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

Security

Grade A, and why

dare-dna 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/claude/.claude/commands/dare-dna.md · 79 lines

How it starts

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

/dare-dna

Camada semântica da extração de DNA do projeto. Roda depois do comando dare dna, que já varreu o código e extraiu os fatos de convenção. Sua função é transformar fatos em regras acionáveis — o "como esse codebase faz as coisas" que uma nova feature deve respeitar.

Equivalente no terminal: dare dna --ai

Como usar

/dare-dna                 # preenche o PROJECT-DNA.md gerado por `dare dna`

Pré-requisito: rodar dare dna antes (gera DARE/PROJECT-DNA.md e DARE/dna-facts.json). Use dare dna --ast para extração híbrida tree-sitter + regex (opt-in, v3.15+). Se não existirem, instrua o usuário a rodar dare dna primeiro.

Quando usar

  • Projeto legado que vai adotar o DARE para novas features, sem reescrever o existente.
  • Acabou de rodar dare dna e o PROJECT-DNA.md tem seções <!-- AGENT --> em aberto.
  • O objetivo é um ruleset que faça o agente seguir o padrão da casa, não o default genérico.

O que fazer

1. Carregar os fatos (não re-varrer tudo)

  • Leia DARE/dna-facts.json — fonte determinística (tooling, naming, camadas, testes, libs, commits).
  • Abra 2-5 arquivos representativos por camada (um controller, um service, um model, um teste) para inferir os padrões que o CLI não detecta (tratamento de erro, validação, estilo de teste).

2. Preencher DARE/PROJECT-DNA.md

Substitua cada bloco <!-- AGENT: ... -->:

  • Convenções de Nomenclatura — confirme o estilo detectado e documente exceções (ex.: componentes em PascalCase, utilitários em kebab).
  • Arquitetura & Camadas — nomeie o padrão com confiança (MVC / Layered / Hexagonal) e escreva as regras de onde cada coisa mora (ex.: "controllers só orquestram; regra de negócio vai em services; acesso a dados só em repositories").
  • Padrões de Teste — onde os testes ficam, naming, assertions reais (não expect(true)), uso de mocks/fixtures.
  • Tratamento de Erros & Validação — como o projeto trata erros (exceptions, Result/Either, try/catch) e valida inputs. Dê exemplos concretos do código real.
  • Regras de Ouro do Projeto — liste o que SEMPRE e o que NUNCA fazer neste codebase.
  • ⚠️ Incertezas / Inconsistências — convenções ambíguas/misturadas que o humano precisa decidir.

Read the full file on GitHub · 79 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 · 79 lines · 0 tokens per session scan A cfdbbb4ed8e1

Subscribe to this mod's changes

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