Skip to main content

prp-debug

Diagnoses a bug, error, stack trace, regression, or unexplained behavior and publishes the evidence-backed root cause to GitHub. Use when the user says "debug this", "find the root cause", provides a bug report or stack trace, asks to investigate a GitHub issue, or invokes $prp-debug. Defaults to commenting on the matching open issue or creating one when none exists.

소스 정보

저장소
Wirasm/prp
최근 소스 활동
2026년 8월 20일 10:33
감지된 SKILL.md 언어
영어
스타
2,262
포크
604

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
prp-debug
description
Diagnoses a bug, error, stack trace, regression, or unexplained behavior and publishes the evidence-backed root cause to GitHub. Use when the user says "debug this", "find the root cause", provides a bug report or stack trace, asks to investigate a GitHub issue, or invokes $prp-debug. Defaults to commenting on the matching open issue or creating one when none exists.
> **Arguments:** `$ARGUMENTS` (and `$1`, `$2`, ...) refer to the arguments given when this skill was invoked. Take them from the user's request; if absent, infer them from the conversation. # PRP Debug Diagnose broken current behavior through the `root-cause-analyzer`, then make the finding durable in the appropriate GitHub issue. Do not implement the fix. **Input**: $ARGUMENTS (if absent, use the conversation). ## 1. Resolve the report and publication target Read repository guidance and establish the complete report: symptom, expected behavior, environment, reproduction, logs, and any supplied stack trace. When the input points to a GitHub issue, read its body, relevant comments, linked issues, duplicates, pull requests, and attachments before diagnosing. Treat the body as historical context, not verified causality. When no issue is specified, search open issues in the current GitHub repository using the symptom, distinctive errors, affected feature, and likely underlying behavior. Inspect candidate bodies and discussion; title similarity alone is not a duplicate. - One clear match → use it. - Several plausible matches → ask the user which issue should own the finding. - No clear match → plan to create an issue after diagnosis. If GitHub access or the repository cannot be resolved, complete the diagnosis but stop before publication and state what access is missing. Honor `--no-publish` or an equivalent explicit request without treating publication as a failure. ## 2. Run the root-cause analysis Spawn `root-cause-analyzer` with the original report, complete tracker context, repository path, and any decisive runtime evidence already available. Do not give it a preferred cause or fix. Require: - reproduction at the cheapest authoritative boundary when reasonably possible; - competing hypotheses and focused falsification; - a causal chain from observed symptom to the smallest fixable cause; - the violated invariant and its smallest responsible fix boundary: the existing or missing primitive that should own it, not merely the smallest patch; - rejected alternatives and explicit uncertainty; - a regression check that fails before the fix and passes after it. Do not publish a `UNRESOLVED` diagnosis as fact. Report the missing evidence and the next investigation step instead. Publish a `CONDITIONAL` diagnosis only with its condition prominent. ## 3. Reconcile duplicates with the diagnosis For an unspecified issue, re-check the open candidates against the diagnosed behavior and cause. Reuse an issue only when it represents the same underlying problem, not merely a similar symptom. If the diagnosis reveals that a supplied issue is a duplicate, comment on the issue the user supplied with the evidence and link the canonical open issue. Do not silently move the conversation elsewhere. ## 4. Publish the durable artifact Unless publication was disabled or the current harness says its driver owns external publication: - **Existing issue:** add a concise comment containing the corrected problem statement, reproduction evidence, root cause or explicit condition, causal chain, fix boundary, regression proof, and remaining uncertainty. - **No matching issue:** create one with a concise problem-oriented title that states the observed impact and the same evidence as its body. Include expected and actual behavior and a reproducible procedure. - **Wrong assumptions in an existing body:** correct them in the comment. Rewrite the body only when the user explicitly requests `--rewrite-body` or its natural-language equivalent; preserve still-useful original report details. Do not create a separate local RCA document. The GitHub issue or comment is the artifact. Read the created or updated issue back to verify the content and capture its URL. Report the diagnosis status, one-sentence cause, publication action, issue URL, fix boundary, regression proof, and any remaining uncertainty.
GitHub에서 보기