audit-context-building
O que ela faz
Orienta uma leitura cuidadosa de código desconhecido antes de qualquer busca de bugs, para que a equipe entenda como as partes se encaixam. É para revisores de segurança que começam a trabalhar em código novo.
Quando usar
- ✓Quando um revisor de segurança começa uma auditoria de código que nunca viu.
- ✓Quando uma equipe planeja uma revisão de arquitetura ou um modelo de ameaças para um sistema existente.
- ✓Quando uma revisão anterior produziu achados que ninguém conseguiu avaliar porque o sistema não estava claro.
Link da skill
https://github.com/trailofbits/skills/blob/main/plugins/audit-context-building/skills/audit-context-building/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Estou começando uma auditoria de segurança em uma base de código que não conheço. Me ajude a mapear como ela funciona primeiro.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill constrói o entendimento sem apontar bugs nem classificar riscos. Ela registra o que cada função assume e de que depende, e salva anotações detalhadas em arquivos para que o trabalho principal continue focado.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Audit Context Building
Build understanding, not verdicts. This runs before anyone hunts for bugs, and feeds that work.
When to Use
At the start of an audit, a threat model, or an architecture review, when the code is unfamiliar. Also when an earlier pass produced findings nobody could judge, because no one had mapped out how the system fits together.
When NOT to Use
Do not name vulnerabilities, suggest fixes, write proofs-of-concept, or rate severity. Those belong to the hunting phase, which runs next and with the whole picture in hand. When the code counts on something and nothing checks it, record that plainly and move on — whether it matters is decided later.
Not worth the tokens on code you already understand.
Do not analyze in this context
The analysis is long, and this context needs to survive to use it. Dispatch it:
- A codebase, or more than one function — run
/audit-context-building:audit-context <path>. It orients, analyzes each function in its own subagent, and writesaudit-context/DOSSIER.mdplus one file per function underaudit-context/functions/. Only compact records return here. - A single function — dispatch the
audit-context-building:function-analyzeragent at it. It writes its prose to disk and returns a record.
Then work from what comes back: the index, the unenforced assumptions, the open questions. Read a function's file when you need its detail.
The workflow is what enforces this, not this text: a subagent bound to a return schema cannot return prose. Treat this section as routing, and route.
What comes back, and how to read it
Each record lists what must always be true (with the line that shows it), what the function takes on faith (with whatever establishes it), which functions it calls and what it needs from each, and anything still unclear. The dossier adds the rules that span several functions, who can reach what, and where the complicated parts cluster.
Two things matter more than the rest:
- Assumptions marked
nothing found. The code counts on something being true and nothing anywhere makes it true. This is the most useful thing to hand the hunting phase. - The open questions. An honest list of what is still unclear beats a confident answer that turns out to be wrong. Carry them forward instead of closing them out.
Where two records disagree, both are quoted rather than quietly reconciled. That is a fact about the code, not a flaw in the analysis.
The format
ANALYSIS_FORMAT.md defines it, and FUNCTION_MICRO_ANALYSIS_EXAMPLE.md works through examples in C and Solidity. Read them when extending this plugin or deciding whether a record can be trusted.
The format is the same whatever the target. What changes is what fills each slot, and what counts as a call you cannot see inside. DOMAIN_NOTES.md maps that across smart contracts, C and C++, decompiled firmware, and web services — read it when the target is not plain source code.
The rule that matters most: follow the calls. Whether a function is correct usually depends on something
another function does, and you cannot see that from the caller alone. A limit looks enforced because the
value came back from a function whose name suggests it was checked. So read the function being called, follow
every path through it rather than only the one that succeeds, and say what makes each assumption true. When
nothing does, use those words: nothing found. Every claim cites a line, or becomes an open question.
Perguntas frequentes
Ela procura vulnerabilidades?
Não. A skill serve para entender o código antes. Encontrar bugs fica para uma etapa posterior.
Ela analisa a base de código inteira de uma vez?
Para uma base inteira ou várias funções, a skill envia a análise para subagentes e grava os resultados em um arquivo de dossiê.
O que ela produz?
Um índice, uma lista de premissas não garantidas e perguntas em aberto, além de uma nota para cada função.
Detalhes
Descrição original do autor
Understand a codebase before looking for bugs in it - what each function assumes, what it guarantees, and what it depends on elsewhere. Use when starting an audit, threat model, or architecture review on unfamiliar code, and before any vulnerability-hunting pass.
repo: trailofbits/skills
Popularidade
- Estrelas no GitHub
- 8,0 mil
- Posição no ranking
- #12655
- Licença
- CC-BY-SA-4.0
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
algorand-vulnerability-scanner
8,0 milAjuda seu agente a analisar contratos inteligentes da Algorand, escritos em TEAL ou PyTeal, em busca de 11 problemas comuns de segurança, como ataques de rekeying e taxas não verificadas.
audit-prep-assistant
8,0 milAjuda seu agente a preparar uma base de código para uma revisão de segurança externa, com análise estática, cobertura de testes, limpeza de código morto e documentação clara.
cairo-vulnerability-scanner
8,0 milAjuda seu agente a analisar contratos inteligentes em Cairo na StarkNet em busca de 6 problemas graves, incluindo estouro aritmético, mensagens arriscadas entre camadas e replay de assinatura.
code-maturity-assessor
8,0 milAjuda seu agente a dar uma nota de maturidade a um contrato inteligente ou a uma base de código de blockchain em 9 áreas, com evidências e uma lista priorizada de melhorias.
Skills parecidas
reverse-engineer-anything
422 milAjuda seu agente a analisar apps e pacotes já publicados para explicar recursos, comparar versões ou orientar uma reconstrução, usando a ferramenta REA.
1password
394 milAjuda seu agente a configurar a CLI do 1Password, fazer login e ler ou injetar segredos sem imprimir seus valores no chat.
healthcheck
394 milAjuda seu agente a auditar o computador ou servidor que roda o OpenClaw em busca de riscos como SSH, firewall, atualizações e backups, com correções seguras.