Pular para o conteúdo
Skillpedia
Código em geral70 mil · #3144

fix-root-cause

O que ela faz

Esta skill orienta a depuração em direção à causa real de um problema, e não ao lugar onde ele aparece primeiro. Ela é para desenvolvedores que querem correções que continuem corrigidas.

Quando usar

  • ✓Quando um bug continua voltando em outro lugar depois de uma correção rápida.
  • ✓Quando alguém quer adicionar uma proteção, uma nova tentativa ou um contorno para esconder um erro.
  • ✓Quando um problema só acontece depois de um reinício e a causa não está clara.

Link da skill

https://github.com/remotion-dev/remotion/blob/main/.agents/skills/fix-root-cause/SKILL.md

Copie 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

Use esta skill para me ajudar: https://github.com/remotion-dev/remotion/blob/main/.agents/skills/fix-root-cause/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Toda vez que reiniciamos o app aparece um erro diferente. Você pode encontrar a causa real, em vez de remendar cada sintoma?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente reproduz o problema e pergunta por que em cada passo, até encontrar a primeira decisão errada. Depois corrige essa causa e procura o mesmo padrão em outros lugares.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do GitHub.

Fix Root Causes

When debugging, fix the fault, not the place where it surfaced. The symptom is where a wrong state became visible. The root cause is the first place the system did something it should not do, or failed to handle a state it should handle.

Why: A symptom fix hides the evidence and leaves the fault free to surface somewhere else. Each one makes the system harder to reason about, because the code now carries a workaround for a bug that nobody named.

Pattern:

  • Reproduce first.
  • Ask "why" at each step until the answer is a wrong decision in the code, not a consequence of an earlier one.
  • When stuck, instrument. Read the actual error and the actual state. Do not guess.
  • Ask whether the state that triggered the symptom is legitimate. If the system may be in that state, the code that broke on it is the root cause, and handling the state there is the fix. If the state should never exist, a check where it broke hides the bug. Find what produced the state. Guards, retries, swallowed errors, clamped values, and discarded state are the usual ways to hide a bug.
  • When something fails only after a restart, suspect persisted state first: config files, caches, lock files, serialized state.
  • Check for the pattern, not just the instance. Find every place with the same fault and fix them all.
  • If a workaround needs a paragraph-long comment to justify it, the code is wrong. Fix the code, not the comment.
  • If the deciding fact took a deep dig to find, propose the cheap, always-on signal that would have shown it at first look.
Perguntas frequentes

Qual é a diferença entre sintoma e causa raiz?

O sintoma é onde um estado errado se torna visível. A causa raiz é o primeiro lugar em que o código fez algo que não deveria ter feito.

Quando uma proteção é uma correção de verdade?

A skill diz que uma proteção só é correção quando o estado que ela trata é legítimo. Se o estado nunca deveria existir, a proteção esconde o bug.

E se o problema só aparecer após um reinício?

A skill diz para suspeitar primeiro de estados salvos, como arquivos de configuração, caches, arquivos de lock e dados serializados.

Detalhes

Descrição original do autor

Apply when debugging. Trace each symptom back to the first place the system went wrong and fix it there. A guard is a fix only when the state it handles is legitimate.

repo: remotion-dev/remotion

Popularidade

Estrelas no GitHub
70 mil
Posição no ranking
#3144
Licença
—
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas