Assay
O que ela faz
Esta skill guia a IA no desenho de avaliações que checam respostas de IA com verificações por código e julgamentos feitos por modelos. Ela é para desenvolvedores e equipes que querem medir se um recurso de IA é confiável.
Quando usar
- ✓Quando você quer testar se um recurso de IA dá respostas corretas de forma consistente.
- ✓Quando você quer comparar dois prompts ou modelos no mesmo conjunto de tarefas.
- ✓Quando você precisa de um teste de regressão que detecte uma queda de qualidade da IA após uma mudança.
Link da skill
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Assay/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
“Crie uma avaliação que verifique meu resumidor em vinte artigos de exemplo e informe com que frequência todas as execuções passam.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A IA escreve casos de teste com um prompt e asserções. Verificações simples rodam como código, e verificações de julgamento usam um juiz com nota. Ela executa várias tentativas e informa se todas passaram e se alguma passou.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Assay — Assertion-First AI Evaluation
Contents: Ideal State · Intent Routing · The taxonomy · Choosing a check: tier first, then shape · Selection, acceptance, and unavailable evidence · The canonical path · Doctrine (from Anthropic; encode, don't restate) · The image lane (visual evals) · Harness integration · Judgment-layer question systems · Data & Config · Gotchas · Examples
An eval gives an AI an input, then applies assertions to its output to measure success (Anthropic's definition). A case is {id, prompt, assert:[...]}. Each assertion is either deterministic (code, free) or model-graded (a calibrated judge). Cases run multiple trials and report pass^k (every trial passes; the reliability metric and the regression gate) and pass@k (any trial passes). Proof applies the same tiers to one run's output (the film, image, page, email or document it made) against what was asked, before the principal sees it: Intents/Proof.md, with the whole system in LIFEOS/DOCUMENTATION/Assay/AssaySystem.md. CreateQuestions designs the fast tier itself: it turns a fuzzy decision into a measured judgment-layer question system (LIFEOS/DOCUMENTATION/Assay/AssaySystem.md § Judgment layer).
Sources: Demystifying evals for AI agents (2026-01), A Statistical Approach to Model Evaluations (2024-11), develop tests, the eval-awareness contamination post (2026-03), and the live claude plugin eval surface.
Freshness contract: "aligned to Anthropic's doctrine" is a live claim. When designing a new suite class or touching ## Doctrine, re-fetch the demystifying-evals post and flag where it has moved. Report divergence, never auto-adopt; an unreachable URL never blocks a run.
Ideal State
- Every check sits at the lowest tier that can honestly answer it (code, glance, judge, human), and only code runs on a blocking path.
- Every score ships with pass^k, SEM and a 95% CI from the trials that completed, with the requested and completed trial counts beside it; fewer completed trials than requested never claims pass^k.
- A judged check is calibrated against the principal's labels or reads PROVISIONAL wherever it shows, and a judged suite keeps an adversarial fixture its judge must fail.
- A produced artifact is checked by Proof against what was asked before the principal sees it, and the receipt is bound to its bytes.
- Transport failures, malformed verdicts and missing observations are reported as unavailable evidence, never as a pass, a quality failure or an adversarial catch.
- A fuzzy decision handed to CreateQuestions leaves as a validated question system whose accuracy was measured on held-out cases the designer never saw, with its margin over one holistic baseline question, or as a stated finding that the judgment layer does not fit and what does; a design ends at a saved shadow registry row and never moves a caller toward enforce.
- When Assay builds the eval system for a project, the project's ISA ends current: every criterion it checks names its suite or glance question in Test Strategy, and the hand-rolled eval code, rows and stale criteria it replaced are removed in the same change.
Intent Routing
| Intent | Trigger | File |
|---|---|---|
| Proof | "proof this", "check the output", "did it come out as asked", before showing any produced artifact | Intents/Proof.md |
| RunEval | "run the eval", "run suite", "evaluate this" | Intents/RunEval.md |
| CreateSuite | "new eval", "create a suite", "eval for X" | Intents/CreateSuite.md |
| CreateJudge | "write a judge", "llm-rubric", "grading criteria", "noul, choice or score", "glance question" | Intents/CreateJudge.md |
| Calibrate | "calibrate the judge", "judge agreement", "judged residue", "shrink the judges", "judged miss", "bunker miss" | Intents/Calibrate.md |
| Compare | "compare prompts", "compare models", "A/B this", "with/without", "ablation" | Intents/Compare.md |
| ModelRetro | "which model did we like", "model retro", "compare models looking back", "how did model X do historically" | Intents/ModelRetro.md |
| RunAgentic | "multi-turn eval", "agentic eval", "eval with tools", "plugin eval" | Intents/RunAgentic.md |
| ViewResults | "eval results", "how di |
Perguntas frequentes
O que é pass^k?
Significa que todas as tentativas de um conjunto de execuções passam. É a medida de confiabilidade e a barreira de regressão.
O que é pass@k?
Significa que pelo menos uma tentativa passa, o que mostra o melhor desempenho possível da IA.
Ela consegue verificar o trabalho da IA em uma única tarefa?
Sim. As mesmas verificações podem revisar a resposta de uma execução em relação ao que foi pedido, antes que uma pessoa a veja.
Detalhes
Descrição original do autor
Assertion-first eval framework: code asserts, calibrated judges, pass@k, A/B comparison, agentic evals, judgment-layer question systems and code-extract-decide-write pipelines. USE WHEN eval, evaluate, benchmark, judge, judge prompt, judge panel, regression test, assert, llm-rubric, calibrate judge, judged residue, pass@k, pass^k, grade output, compare prompts or models, A/B test, which model did we like, model retro, ablation, with/without, test agent, agentic eval, noul/choice/score question, glance row, judged miss, proof this, check the output, did it come out as asked, design judgment que
repo: danielmiessler/LifeOS
Popularidade
- Estrelas no GitHub
- 20 mil
- Posição no ranking
- #10404
- Licença
- MIT
- Atualizada em
- 28/10/2026
Comentários
- …
Mais skills deste repositório
LifeOS
20 milAjuda seu agente a configurar o LifeOS, um sistema pessoal que leva do seu estado atual ao estado ideal por meio de uma entrevista e de um painel.
AnnualReports
20 milAjuda seu agente a encontrar e comparar relatórios anuais de cibersegurança de grandes fornecedores, como tendências de vazamentos e ransomware, com uma fonte para cada número.
ApertureOscillation
20 milEnsina seu agente a testar uma questão de design em um escopo restrito e em um escopo amplo, e depois apontar onde as duas respostas se chocam antes de construir.
Aphorisms
20 milPermite que seu agente encontre, compare e acompanhe citações atribuídas a autores de uma coleção selecionada, evitando as usadas recentemente na sua newsletter.
Skills parecidas
test-driven-development
311 milEnsina seu agente a escrever primeiro um teste que falha, ver a falha e depois escrever o menor código que passa, antes de criar qualquer funcionalidade ou correção.
verification-before-completion
311 milEnsina seu agente a rodar verificações reais e ler a saída antes de afirmar que uma tarefa, correção ou build está concluído ou passando.
migrate-to-shoehorn
310 milSubstitui conversões de tipo arriscadas nos seus arquivos de teste pela biblioteca shoehorn, para que os testes usem dados parciais e ainda passem na checagem de tipos.