Logo de Investigating Anomalous Results

Investigating Anomalous Results

Organização
K-Dense-AI
investigating-anomalous-results

Use when a result is surprising, impossible, contradicts a sanity check, a pipeline fails, a model won't converge, or a replication fails - before adjusting anything

Add to TypingMind

Visão geral

Publicado porK-Dense-AI
Repositórioscience-superpowers
Nome da habilidadeinvestigating-anomalous-results
Estrelas
360
Forks
37
Arquivos incluídos
Somente instruções
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por K-Dense-AI no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Investigating Anomalous Results no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/K-Dense-AI/science-superpowers/tree/main/skills/investigating-anomalous-results
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/K-Dense-AI/science-superpowers.git /tmp/science-superpowers
mkdir -p .claude/skills
cp -r /tmp/science-superpowers/skills/investigating-anomalous-results .claude/skills/investigating-anomalous-results
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Investigating Anomalous Results em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Investigating Anomalous Results automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Investigating Anomalous Results não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Investigating Anomalous Results

Overview

Random tweaks waste time and manufacture false findings. Quietly dropping the inconvenient data point, nudging the cutoff, or re-running until it "works" doesn't fix the problem — it fabricates a result.

Core principle: ALWAYS find the root cause before adjusting anything. An adjustment made before you understand the cause is, at best, noise and, at worst, fraud.

Violating the letter of this process is violating the spirit of it.

The first question for any anomaly: is this a code bug, a data issue, or a real finding? You cannot answer by guessing, and you must not "fix" it until you know — because a real finding is not something to fix.

The Iron Law

NO ADJUSTMENTS WITHOUT ROOT-CAUSE INVESTIGATION FIRST

No dropping data, changing a test, transforming a variable, re-running with new parameters, or "cleaning" until Phase 1 is complete. If you haven't found the cause, you cannot justify the adjustment.

When to Use

  • A result is surprising, too good, or contradicts what's known
  • An impossible value (negative count, probability > 1, age of 500)
  • A pipeline errors or a model won't converge
  • A result contradicts a sanity check or a simple cross-tab
  • A replication or robustness check disagrees with the primary result
  • Performance that's suspiciously high (often leakage)

Use this ESPECIALLY when:

  • The anomaly is convenient (it supports your hypothesis) — that's when the urge to skip investigation is strongest
  • Under time pressure
  • You've already tried one quick adjustment

The Four Phases

Complete each before the next.

Phase 1: Characterize the Anomaly

Before any adjustment:

  1. Read the output/error carefully. The exact value, the exact message, the stack trace. Note shapes, counts, and where in the pipeline it appears.
  2. Reproduce it deterministically. Fixed seed, same data version. Does it happen every time? If not reproducible, gather more data — don't guess.
  3. Check recent changes. What changed in the code, the data version, or the environment since it last looked right? git diff, data provenance, package versions.
  4. Gather evidence at each pipeline stage. Instrument raw → cleaned → derived → result. Print shapes, ranges, null counts, and key summaries at each boundary. This reveals where the anomaly enters.
raw:     N=10342, outcome mean=0.31, nulls=0
cleaned: N=10298, outcome mean=0.31, nulls=0      <- 44 dropped, expected
derived: N=10298, feature mean=4e7                <- WRONG: unit blew up here
result:  coefficient enormous                     <- symptom; cause is upstream
  1. Classify the cause with the evidence: code bug, data issue, or real finding. Do not proceed assuming one without evidence.

Phase 2: Pattern Analysis

  1. Find a working comparison. A subset, variable, site, or time period that behaves as expected. What's different about the anomalous one?
  2. Compare against a reference. A known correct result, a textbook expectation, a prior estimate from the survey. Read the reference method completely — don't skim.
  3. List every difference between working and anomalous, however small. Don't assume "that can't matter."

Phase 3: Hypothesis and Test

  1. Form a single hypothesis: "The anomaly is caused by X because Y." Write it down. Be specific.
  2. Test minimally on the smallest slice that exhibits it. One variable at a time.
  3. Verify before continuing. Confirmed → Phase 4. Not confirmed → new hypothesis. Don't stack adjustments.
  4. When you don't know, say so. "I don't understand why the derived feature inflates" — then investigate or ask. Don't pretend.

Phase 4: Resolution

Resolve according to the cause you established:

  • Code bug: Write a minimal failing check that reproduces it, fix the code at the source (not a downstream patch), re-run the affected steps, confirm the anomaly is gone and other results unchanged.
  • Data issue: Handle it per a documented rule. If the rule was not pre-registered, the decision is a deviation — record it, and the affected analysis becomes exploratory. Dropping observations is legitimate ONLY when root cause shows they are invalid measurements (e.g., a sensor error), and that justification is documented. Never drop data because it's inconvenient.
  • Real finding: It is a result, not a defect. Do NOT "fix" it. If it was not what you pre-registered, it is an exploratory finding — report it as such, and pre-register a fresh confirmatory test (ideally on new/held-out data) before claiming it.

If 3+ adjustments fail: STOP. The pipeline or the design may be wrong — repeated failures that each reveal a new problem indicate a structural issue, not a series of small bugs. Discuss the design with your human partner before another attempt. Re-opening the design or pre-registration must be documented as a deviation.

Red Flags - STOP and Investigate

  • "Let me just drop that outlier and re-run"
  • "I'll nudge the threshold until it's significant"
  • "Probably a fluke, let me re-run with a different seed" (changing the seed to change the result)
  • "The result I want appeared, no need to dig into why the first run didn't"
  • "Quick adjustment now, understand it later"
  • Proposing an adjustment before tracing where the anomaly enters the pipeline
  • An adjustment that happens to make the result support your hypothesis

All of these mean: STOP. Return to Phase 1.

Your Human Partner's Signals You're Doing It Wrong

  • "Is that even possible?" — you reported a value without sanity-checking it
  • "Why did that point get dropped?" — you adjusted without documenting the cause
  • "Did you check leakage?" — suspiciously good performance you didn't investigate
  • "That seems too clean" — question the pipeline, not just the result

Common Rationalizations

ExcuseReality
"It's clearly an outlier, just remove it""Clearly" is a guess. Find why it's extreme; document if you remove it.
"Re-running with a new seed fixed it"You changed the result by chance, not the cause. Investigate.
"The good result is the right one"Convenient results need MORE scrutiny, not less.
"Emergency, no time to investigate"Investigation is faster than retracting a wrong finding.
"Tweak the model, then understand it"The first tweak sets a false trail. Understand first.
"Performance is just high, ship it"Suspiciously high performance is usually leakage. Check.

Quick Reference

PhaseActivitiesSuccess Criteria
1. CharacterizeRead, reproduce, check changes, instrument stages, classifyKnow WHERE and WHICH (bug/data/finding)
2. PatternWorking comparison, reference, list differencesIdentify the difference
3. HypothesisSingle theory, minimal testConfirmed or new hypothesis
4. ResolutionFix bug / document data rule / report real findingAnomaly explained, not just hidden

Related Skills

  • science-superpowers:verifying-results-before-claiming — confirm the resolution actually holds
  • science-superpowers:preregistering-analysis — a real but unregistered finding needs a fresh confirmatory pre-registration
  • science-superpowers:setting-up-reproducible-analysis — deterministic reproduction depends on fixed seeds and pinned environments

Perguntas frequentes

O que a habilidade de IA Investigating Anomalous Results faz?

Use when a result is surprising, impossible, contradicts a sanity check, a pipeline fails, a model won't converge, or a replication fails - before adjusting anything

Por que usar Investigating Anomalous Results no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Investigating Anomalous Results é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Investigating Anomalous Results no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/K-Dense-AI/science-superpowers/tree/main/skills/investigating-anomalous-results. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Investigating Anomalous Results?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Investigating Anomalous Results?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Investigating Anomalous Results com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Investigating Anomalous Results é gratuita?

A habilidade é publicada no GitHub por K-Dense-AI. Consulte os termos de licenciamento no repositório. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇