Debugger Sistematico Causa Raiz logo

Debugger Sistematico Causa Raiz

Community
tiagopgr
debugger-sistematico-causa-raiz

Aplicar um framework sistemático de debugging para isolar a causa raiz de bugs — ao invés de 'ficar tentando coisas' — reduzindo o tempo de resolução, evitando correções superficiais e documentando o processo para prevenir recorrência.

Overview

Publishertiagopgr
Repositoryskills-ia
Skill namedebugger-sistematico-causa-raiz
Stars
33
Forks
12
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by tiagopgr on GitHub. Read the source before you install it.

Installation

Install the Debugger Sistematico Causa Raiz AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/tiagopgr/skills-ia/tree/main/skills/codigo/skills/debugger-sistematico-causa-raiz
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/tiagopgr/skills-ia.git /tmp/skills-ia
mkdir -p .claude/skills
cp -r /tmp/skills-ia/skills/codigo/skills/debugger-sistematico-causa-raiz .claude/skills/debugger-sistematico-causa-raiz
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Debugger Sistematico Causa Raiz in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Debugger Sistematico Causa Raiz on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Debugger Sistematico Causa Raiz is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Debugger Sistemático (Causa Raiz)

Objetivo

Aplicar um framework sistemático de debugging para isolar a causa raiz de bugs — ao invés de 'ficar tentando coisas' — reduzindo o tempo de resolução, evitando correções superficiais e documentando o processo para prevenir recorrência.

Quando usar

  • Quando um bug persiste e as tentativas ad-hoc não resolvem
  • Em bugs intermitentes ou difíceis de reproduzir
  • Quando precisa de abordagem estruturada (não tentativa e erro)
  • Para treinar a equipe em debugging metódico

Como usar

  1. Copie o prompt abaixo no Claude ou ChatGPT
  2. Descreva o bug, comportamento esperado vs real e o que já tentou
  3. Receba o plano de investigação estruturado
  4. Execute passo a passo até isolar a causa raiz

O Prompt

Você é um engenheiro de software sênior especialista em debugging sistemático. Você sabe que: (1) 90% do tempo de debugging é gasto procurando no lugar errado, (2) reproduzir o bug de forma confiável é metade da solução, (3) a causa raiz raramente está onde parece, (4) bisect (dividir pela metade) é a técnica mais poderosa de debugging. Seu método é científico: hipótese → teste → conclusão → próxima hipótese.

Ajude a debugar o seguinte problema:

**Tecnologia/Stack:** [linguagem, framework, infra]
**Descrição do bug:** [o que está acontecendo de errado]
**Comportamento esperado:** [o que deveria acontecer]
**Comportamento real:** [o que está acontecendo]
**Frequência:** [sempre, intermitente, só em produção, só com X dados]
**Quando começou:** [sempre existiu, após deploy X, após mudança Y]
**Ambiente:** [local, staging, produção, todos]
**O que já tentou:** [soluções que não funcionaram]
**Logs/Erros:** [mensagens de erro, stack traces, logs relevantes]
**Última mudança antes do bug:** [deploy, config change, migração]

Entregue o plano de investigação:

**1. Reprodução**
Como reproduzir o bug de forma confiável:
- Passos mínimos para reproduzir
- Dados/condições necessárias
- Se intermitente: como aumentar a frequência

**2. Isolamento (onde está o bug)**
Técnica de bisect para isolar:
- Dividir o sistema em camadas (frontend, backend, banco, infra)
- Em qual camada o bug ocorre?
- Testes para confirmar cada camada

**3. Árvore de hipóteses**
Top 5 hipóteses de causa raiz, ordenadas por probabilidade:
Para cada:
- Hipótese
- Como testar (em 5 min ou menos)
- O que confirma / descarta a hipótese

**4. Plano de investigação passo a passo**
Sequência de ações ordenada do mais provável ao menos provável:
1. [Verificar X — se verdade, causa é Y. Se falso, ir para 2.]
2. [Verificar A — se verdade, causa é B. Se falso, ir para 3.]
...

**5. Ferramentas de debugging**
Ferramentas específicas para investigar esse tipo de bug:
- Logs: [onde olhar, o que filtrar]
- Debugger: [breakpoints sugeridos]
- Profiler: [se performance]
- Network: [se comunicação]

**6. Correção sugerida**
Para cada hipótese, a correção correspondente + como testar se resolveu.

**7. Prevenção**
O que fazer para esse bug nunca mais acontecer:
- Teste automatizado
- Monitoramento/alerta
- Documentação

Exemplo de uso

Input

Stack: Next.js + Node.js + PostgreSQL Bug: Página de checkout mostra preço errado para 5% dos usuários Esperado: Preço do carrinho = soma dos itens Real: Às vezes o total é menor que a soma dos itens Frequência: Intermitente, mais comum em horários de pico Já tentei: Limpar cache, verificar cálculo no frontend

Output

Hipóteses (top 3):

  1. Race condition no cálculo do carrinho (80% probabilidade)

    • Em pico de tráfego, duas requisições simultâneas (add + calculate) causam conflito
    • Teste: Reproduzir com 2 requests simultâneas ao carrinho
  2. Cache do preço desatualizado (60%)

    • Se preço foi atualizado recentemente, cache pode servir preço antigo
    • Teste: Verificar se os itens com preço errado tiveram alteração recente
  3. Float precision no cálculo (30%)

    • Cálculos com float em JS podem dar 0.1 + 0.2 = 0.30000000000000004
    • Teste: Verificar se a diferença é sempre centavos

Passo 1: Logar request + response do endpoint de cálculo com timestamp. Comparar timestamp de add-to-cart vs calculate. Se overlap < 100ms → confirma race condition.


Tags: Intermediário | Análise | Código, Dev & Automação

Frequently asked questions

What does the Debugger Sistematico Causa Raiz AI skill do?

Aplicar um framework sistemático de debugging para isolar a causa raiz de bugs — ao invés de 'ficar tentando coisas' — reduzindo o tempo de resolução, evitando correções superficiais e documentando o processo para prevenir recorrência.

Why use Debugger Sistematico Causa Raiz on TypingMind?

Because you install it once and use it with any model. Debugger Sistematico Causa Raiz is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Debugger Sistematico Causa Raiz in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/tiagopgr/skills-ia/tree/main/skills/codigo/skills/debugger-sistematico-causa-raiz. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Debugger Sistematico Causa Raiz?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Debugger Sistematico Causa Raiz?

As many as you like. As long as a model supports skills, you can use Debugger Sistematico Causa Raiz with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Debugger Sistematico Causa Raiz AI skill free?

It is published on GitHub by tiagopgr. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇