一键导入
clawpatch-bugs
Run clawpatch, triage findings, write a prioritized bug list. Trigger on "run clawpatch", "clawpatch bug hunt", "scan for bugs".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run clawpatch, triage findings, write a prioritized bug list. Trigger on "run clawpatch", "clawpatch bug hunt", "scan for bugs".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Wrap up a finished dev task — commit and push.
Explore intent and design before building new features or behavior changes. Skip for clear-scope fixes, refactors, docs, or code questions.
Turn external context into a prioritized, project-grounded suggestion list. Trigger on "suggest improvements", "ideas for X", or pastes of news/PRs/articles.
Audit recent sessions to find repeated workflows worth packaging. Use on "self improve" or "audit my workflows".
| name | clawpatch-bugs |
| description | Run clawpatch, triage findings, write a prioritized bug list. Trigger on "run clawpatch", "clawpatch bug hunt", "scan for bugs". |
| disable-model-invocation | true |
Two-phase bug discovery flow; the deliverable is a curated markdown file under docs/bugs/:
clawpatch produce a raw bug report.The user already has clawpatch installed on PATH. Do not try to install it.
Always start clean so a previous partial run does not contaminate this one:
rm -rf .clawpatch
Compute today's date as YYYY-MM-DD (use date +%Y-%m-%d). Use it for the output filename. Ensure docs/bugs/ exists.
DATE=$(date +%Y-%m-%d)
mkdir -p docs/bugs
clawpatch init
clawpatch map
clawpatch review --limit 20
clawpatch report > docs/bugs/${DATE}-bugs.md
Notes:
clawpatch review --limit 20 may take a while; run it in the foreground and surface a single status line ("clawpatch reviewing…") rather than streaming its output.clawpatch commands exits non-zero, stop and show the user the failing command's stderr. Do not proceed to step 2 on a partial report.Read docs/bugs/${DATE}-bugs.md and parse out each finding (title + file refs + clawpatch's rationale).
For each finding, spawn an Explore (or general-purpose) subagent in parallel with a self-contained prompt:
VERDICT: real-bug | not-a-bug | low-value followed by 2–4 sentences of evidence with path:line references.Batch the subagent spawns: send them all in a single message (one Agent tool call per finding, all in parallel). Wait for all to return before continuing.
Aggregate the verdicts:
real-bug.not-a-bug and low-value outright. Briefly note in the curated file how many were dropped and why (one sentence summary per dropped item is enough).Sort the kept bugs by priority before writing the file. Use three buckets:
Within each bucket, order by your own judgment of impact (highest first). Renumber the kept bugs 1..N in this final priority order (do not preserve clawpatch's emission order).
Write the curated list to:
docs/bugs/${DATE}-bugs-serious.md
Use this structure:
# Serious bugs — <DATE>
Source: `docs/bugs/<DATE>-bugs.md` (clawpatch review, limit 20, <RAW_COUNT> raw findings).
Filtered by parallel subagent triage on <DATE> (one Explore agent per finding).
Kept <N> real bugs, sorted by priority (P0 → P1 → P2). Dropped <M>.
Priority guide:
- **P0** — ship-blocking: data loss, crashes, runaway resource use, fundamental breakage.
- **P1** — real user-facing bug, recoverable: bad UX, silent drops, broken automation.
- **P2** — polish / defense-in-depth / edge case / low-impact perf.
## P0 (<count>)
### 1. <short title>
- **Where:** `path/to/file.ts:LINE`
- **What clawpatch said:** <one-line summary>
- **Why it is real:** <subagent evidence, 2–4 sentences>
- **Suggested fix sketch:** <one or two sentences>
(repeat per finding, continuing the numbering across buckets)
## P1 (<count>)
### <next-number>. <short title>
...
## P2 (<count>)
### <next-number>. <short title>
...
## Dropped (<M>)
- <title> — <one-sentence reason it was dropped>
Tell the user where the file lives, the keep/drop counts, and the P0/P1/P2 split. The curated markdown is the deliverable — stop here.
docs/bugs/..clawpatch/ directory silently changes review/report behavior.clawpatch against unrelated directories. Always invoke from the repo root.docs/bugs/${DATE}-bugs.md already exists from an earlier run today, overwrite it (the Step 0 rm -rf .clawpatch plus a fresh clawpatch report > redirect already implies this — don't preserve the old file).