본문으로 건너뛰기
cccskills
무료GitHub에 공개

power-debug

Use when encountering any bug, test failure, or unexpected behavior, before proposing any fix

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md3.1 KB
  • agents/openai.yaml183 B

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Find the Root Cause First

The iron law

No fix without root cause investigation first.

A fix applied to a symptom you have not explained is a guess. Guesses that happen to work are worse than guesses that fail, because they hide the real defect until it returns somewhere more expensive.

Phase 0 — Has this already been documented?

If .planning/power/context/pitfalls.md exists, read it before anything else. It is where previously observed failure modes were recorded with evidence, and the cheapest possible investigation is discovering that someone already did it.

A match there is a lead, not a verdict: confirm it against the current failure before acting on it.

Phase 1 — Root cause

  1. Read the entire error. All of it — the message, the type, every frame of the stack, the lines before it. The answer is in there more often than not.
  2. Reproduce it consistently. An intermittent failure you cannot trigger is not yet understood. Find the condition that makes it deterministic.
  3. Check what changed recently. git log, git diff. Most breakage is recent.
  4. In a multi-component system, instrument every boundary before proposing anything. Add logging at each hand-off — caller, transport, handler, storage — and run once to learn where it breaks. Guessing which layer is wrong and fixing that layer is how three fixes go by without touching the defect.
  5. Trace the data backwards from where it is wrong to where it was right. The bug is between those two points.

Phase 2 — Pattern analysis

Find something in this same codebase that works and does the same kind of thing. Read it completely — not a skim, not the parts you expect to matter. List every difference between it and the broken path, including the ones that look irrelevant. The irrelevant-looking one is frequently the answer.

Phase 3 — One hypothesis at a time

Write it down: "I think X is the cause, because Y." Design the smallest test that would prove it wrong. Change one variable.

If the hypothesis was wrong, form a new one. Do not stack another fix on top of the previous attempt — a codebase with three speculative fixes in it is harder to debug than the original bug.

Phase 4 — Fix

  1. Write the failing test first (pwdev-power:power-tdd).
  2. Fix the root cause, once. No "while I'm here" — an unrelated improvement in a bugfix commit makes the bisect useless.
  3. Verify with pwdev-power:power-verify.

Three strikes

If three fixes have failed, stop. The problem is not where you are looking, and the architecture is now the suspect. Bring it to your human partner with what you tried and what each attempt ruled out. Continuing costs more than asking.

Signals you have already gone wrong

When your human partner says any of these, they are telling you that you skipped Phase 1:

  • "Is that actually happening?"
  • "Stop guessing."
  • "Think about this properly."

Go back to reading the error.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Accessibility auditing and remediation skill for Vue 3 + Reka UI. Use when reviewing components, verifying WCAG 2.1 AA, fixing ARIA issues, or validating keyboard navigation in Reka UI components.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

pwdev-solucoes/pwdev-claude-marketplace32026년 10월 15일 업데이트

ai-infra

무료

Infraestrutura para IA — GPU, servidores MCP, gateway de LLM, pipeline de inferência, custo de token, cache semântico e observabilidade de modelo. Use quando o usuário disser "GPU", "MCP server", "LLM", "inferência", "modelo", "gateway de IA", "custo de token", "rate limit da API de IA", "self-host de modelo".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

pwdev-solucoes/pwdev-claude-marketplace32026년 10월 15일 업데이트

alt-text

무료

Escreve texto alternativo e descrição de imagem para peças de rede social. Use quando o usuário disser "alt text", "texto alternativo", "descrição da imagem", "acessibilidade da peça", "descrever para leitor de tela", ou automaticamente antes de qualquer publicação. Obrigatório em todas as peças — em carrossel, um por slide.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

pwdev-solucoes/pwdev-claude-marketplace32026년 10월 15일 업데이트

Organiza, compara e seleciona entre as variações geradas, e publica a grade de comparação como Artifact para aprovação do time. Use quando o usuário disser "qual dessas", "comparar as variações", "escolher a melhor", "mostrar as opções", "montar grade de aprovação", ou após qualquer lote de geração. Selecionar é trabalho, não detalhe.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

pwdev-solucoes/pwdev-claude-marketplace32026년 10월 15일 업데이트

Aumenta resolução e qualidade de imagem via Freepik/Magnific, ou orienta o processo manual quando não há chave. Use quando o usuário disser "upscale", "melhorar a resolução", "a imagem está pixelada", "Magnific", "Freepik", "aumentar a imagem", "imagem pequena demais". Gasta crédito — exige confirmação.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

pwdev-solucoes/pwdev-claude-marketplace32026년 10월 15일 업데이트

CI/CD e automação — GitHub Actions, Terraform, OpenTofu, Ansible, n8n. Use quando o usuário disser "pipeline", "CI/CD", "GitHub Actions", "workflow", "terraform", "ansible", "n8n", "automatizar", "deploy automático", "IaC".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

pwdev-solucoes/pwdev-claude-marketplace32026년 10월 15일 업데이트

pwdev-solucoes의 스킬 모두 보기

이 스킬의 문제 신고