Token导航 LogoToken导航

Agent Skill · 研究检索

dev-debug(开发调试)

dev-debug 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

dev-debug 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 59,221。

总安装 392周安装 16GitHub Stars 9下载 125核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dev-debug(开发调试)
来源仓库:https://github.com/edwinhu/workflows
仓库路径:skills/dev-debug
安装命令:
npx skills add https://github.com/edwinhu/workflows --skill dev-debug
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/edwinhu/workflows --skill dev-debug

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

dev-debug 提供系统化调试流程,通过创建假设文件和派遣子代理深入调查问题根源。强调不直接读取项目代码,所有分析均在隔离上下文中完成,避免污染主会话。适用于复杂故障排查和多轮迭代场景,有助于保持推理过程可追溯。首次调用需检查共享约束文件是否存在,确保行为一致性。

dev-debug 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/dev-debug

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/edwinhu/workflows --skill dev-debug;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

dev-debug 怎么安装?

在终端执行 npx skills add https://github.com/edwinhu/workflows --skill dev-debug。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

dev-debug 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

dev-debug 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/edwinhu/workflows --skill dev-debug 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

dev-debug 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

dev-debug 用的人多吗?

公开数据是累计安装 392 次,近一周安装 16 次,下载 125 次,GitHub 9 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

dev-debug 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
dev-debug

开发调试 · 本页

3929执行命令未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Announce: "I'm using dev-debug for systematic debugging."

Load shared enforcement:

Discover and read the shared dev enforcement constraints:

ls -d ~/.claude/plugins/cache/edwinhu-plugins/workflows/*/lib/references/dev-common-constraints.md 2>/dev/null | sort -V | tail -1

Use the output path with Read().

Your first actions are, in order:

  1. Create/update HYPOTHESES.md (the durable memory across iterations)
  2. Spawn the first investigation subagent

Do NOT read project code. Do NOT form hypotheses. Do NOT "gather context." All investigation happens inside subagents with fresh context.

The Cognitive Lock

Until you spawn the first subagent, you cannot: Read files, Edit code, Run commands, Grep for patterns, "Just quickly check" anything, Form hypotheses, or Analyze prior context. All tools LOCKED until first subagent is spawned.

Why This Exists

On March 6-7, 2026, an agent loaded dev-debug TWICE and both times rationalized skipping the loop. Result: 19MB transcript, 15K lines, 30 "root cause found" claims, 6+ theories, zero resolution. The session was killed.

Architecture: Fresh Subagent Loop With Progress Gating

No ralph-loop. No promises. No honor system. The main chat runs its own loop. Each iteration is a fresh subagent. The loop runs autonomously as long as subagents make meaningful progress. The user is only pulled in when the loop stalls.

Main chat (thin orchestrator)
  │
  ├─ Initialize HYPOTHESES.md
  │
  ├─ LOOP:
  │   ├─ Spawn fresh subagent → investigate/fix
  │   ├─ Subagent returns structured report
  │   ├─ Evaluate progress (see stall detection below)
  │   │
  │   ├─ MEANINGFUL PROGRESS?
  │   │   YES → iterate automatically (spawn next subagent)
  │   │   NO  → escalate to user
  │   │
  │   └─ SUBAGENT CLAIMS FIXED?
  │       → Run the test command yourself
  │       → Pass? → DONE
  │       → Fail? → log false positive, iterate
  │
  └─ Max 10 iterations without resolution → escalate to user

Why This Design

  • Fresh subagent per iteration: No context pollution. Each subagent reads state from HYPOTHESES.md, not from 15K lines of prior conversation.
  • No ralph-loop dependency: The exit condition is progress, not a promise the agent can fake.
  • User only involved when needed: Autonomous when making progress, escalates when stuck.
  • Test as structural gate: When the subagent claims FIXED, main chat runs the test. The agent can't lie about test output.

Progress lives in files, not in conversation.

MAIN CHAT MUST NOT TOUCH THE CODEBASE. EVER.

Main chat does exactly four things:

  1. Initialize HYPOTHESES.md
  2. Spawn fresh subagents
  3. Evaluate progress between iterations
  4. Run the regression test when a subagent claims FIXED
ToolMain Chat?Subagent?
Read (project files)NOYES
Read (HYPOTHESES.md)YES — for progress evaluationYES
Edit / WriteNOYES
Grep / GlobNOYES
Bash (project commands)ONLY to run regression testYES
Agent (spawn subagent)YES — this is your job—

Why? The moment you read code, you form opinions. Opinions bias hypotheses. You end up editing directly. This is how the 19MB transcript happened.

Running the test suite IS verification. Reading source code IS investigation. If you need to READ CODE to "verify," you need a SUBAGENT, not verification.

This distinction exists because on March 16, 2026, an agent rationalized reading source code, grepping project files, and running docker exec commands as "verification" after a subagent returned. It was investigation disguised as verification. 71 protocol violations followed.

Verification (main chat CAN do)Investigation (main chat CANNOT do)
vitest run / npm testgrep / rg in source code
git diff HEAD -- '*.test.*'Read() any project source file
Read HYPOTHESES.md / LEARNINGS.mddocker exec into containers
Check test exit codeRead application logs
git status / git logQuery databases (sqlite3, etc.)
curl / wget to test endpoints
Inspect process state / env vars

The test command is the ONLY Bash command main chat runs on the project. Everything else — log reading, container inspection, database queries, curl testing, env var checking — is investigation. Delegate it.

If the user sends a message that is NOT about the current debug bug, you MUST announce the loop pause before responding.

On March 16, 2026, the user asked "What's in spotless db" mid-debug-loop. The assistant silently abandoned the protocol, ran 15+ direct database queries, and never resumed the debug loop. The user had to re-invoke dev-debug.

Protocol:

  1. Announce: "Pausing dev-debug loop to address your request."
  2. Handle the off-topic request (normal tools allowed — you're outside the loop)
  3. Announce: "Resuming dev-debug loop. Reading HYPOTHESES.md for current state."
  4. Read HYPOTHESES.md and spawn the next subagent

If the user's message could be interpreted as EITHER a new topic OR part of the debug:

  • Ask: "Is this related to the current debug, or a separate request?"
  • Do NOT assume it's separate and abandon the loop silently

Silent loop abandonment is NOT HELPFUL — the user invoked dev-debug because they want structured debugging. Silently dropping the structure wastes their explicit request.

The Process

Step 1: Initialize State

Create HYPOTHESES.md if it doesn't exist:

# Debug Hypotheses

## Bug: [SYMPTOM]
Started: [timestamp]

## Iteration Log
(subagents will append here)

If HYPOTHESES.md already exists (resumed session), read it to understand current state.

Step 2: Spawn Investigation Subagent

Each iteration spawns exactly ONE fresh subagent with this prompt (fill in brackets):

Agent(prompt="""
## Your Task

Debug this issue: [SYMPTOM]

## Prior Work

Read HYPOTHESES.md FIRST. It contains all previously tested hypotheses.
Read LEARNINGS.md if it exists for accumulated codebase knowledge.

**Do NOT re-test hypotheses marked REFUTED.** Build on what's known.

## Debug Protocol (5 Phases — Sequential, No Skipping)

### Phase 0: Triage
- Read HYPOTHESES.md — what has been tried?
- Check service status, process state, recent logs
- Inspect config files in the bug path
- Review recent changes: git log --oneline -10, git diff

### Phase 1: Reproduce
- Write a test that reproduces the bug (or identify an existing failing test)
- If you can't reproduce it, document what you tried
- Document: "Reproduced with [test], output: [error]"

### Phase 2: Investigate
- Trace data flow through the code
- Compare working vs broken code paths
- Add targeted debug logging if needed
- Document findings in LEARNINGS.md

### Phase 3: Hypothesize and Test
- Form ONE specific hypothesis based on investigation
- Log it in HYPOTHESES.md BEFORE testing:

  ## Iteration N: [specific hypothesis]
  - Prediction: If correct, then [observable outcome]
  - Test: [exact steps]
  - Result: [CONFIRMED / REFUTED]
  - Evidence: [what you observed]
  - Files changed: [list]
  - New information learned: [what we now know]

- Test with minimal change
- Update HYPOTHESES.md with result

### Phase 4: Fix (ONLY if hypothesis CONFIRMED)

<EXTREMELY-IMPORTANT>
**NO FIX WITHOUT A NEW FAILING REGRESSION TEST FIRST. This is not negotiable.**

Steps in order — no skipping:
1. Write a NEW test that specifically reproduces this bug (in the relevant test file)
2. Run it — it MUST FAIL (proves the test actually catches this bug)
3. ONLY THEN implement the minimal fix
4. Run the test again — it MUST PASS

**"Existing tests already cover this"** is NOT acceptable. If they covered it, the bug wouldn't have shipped. Write a new test. Name it after the bug.

**If you applied the fix before writing the failing test: DELETE the fix entirely. Write the failing test. Confirm it fails. Then re-implement.**
</EXTREMELY-IMPORTANT>

- Write regression test FIRST — run it, confirm output shows FAIL
- Implement minimal fix
- Run regression test — confirm output shows PASS
- Run full test suite — no new failures
- Document fix and test command in LEARNINGS.md

## Output Format

Return this EXACT structure:

STATUS: [INVESTIGATING | FIXED | BLOCKED]
HYPOTHESIS: [what you tested]
RESULT: [CONFIRMED | REFUTED | INCONCLUSIVE]
EVIDENCE: [what you observed — be specific]
NEW INFORMATION: [what we learned that we didn't know before]
REGRESSION TEST: [exact command to run, or 'not yet']
FIX APPLIED: [description, or 'not yet']
REMAINING UNKNOWNS: [what's still unclear]
CONFIDENCE: [LOW | MEDIUM | HIGH — and why]

## Rules
- ONE hypothesis per invocation
- Write to HYPOTHESES.md as you go
- If FIXED: REGRESSION TEST field must name the SPECIFIC NEW TEST written for this bug (e.g., `test_route_strips_internal_tags in src/routing.test.ts`). "Existing tests pass" is not acceptable.
- If BLOCKED: explain specifically what information you need

## Regression Test Rationalizations — STOP If You Think:

| Excuse | Reality |
|--------|---------|
| "Existing tests already cover this behavior" | If they covered it, the bug wouldn't exist. Write a NEW test. |
| "The existing test is close enough" | Close ≠ the same. A test for the right bug must fail before the fix. |
| "The test would be identical to an existing one" | Then show which existing test fails with this bug present. If none fail, none cover it. |
| "The fix is a one-liner, a test is overkill" | One-liners are the regressions that come back silently next month. |
| "I'll add a test in a follow-up" | "Follow-up" means "never." The regression test is part of this fix, not a separate task. |
""")

Step 3: Evaluate Progress

After the subagent returns, read HYPOTHESES.md and evaluate:

Continue autonomously if ANY of these are true:

  • A new hypothesis was tested (not a repeat of a previous one)
  • New information was discovered (files, code paths, behaviors not previously known)
  • A hypothesis was CONFIRMED but fix isn't complete yet
  • The subagent identified a clear next investigation angle

Escalate to user if ANY of these are true:

Stall SignalWhat It Means
Hypothesis repeats a previously REFUTED oneGoing in circles
No new entries in HYPOTHESES.mdSubagent didn't follow protocol
RESULT is INCONCLUSIVE with no new informationSpinning wheels
Subagent reports BLOCKEDNeeds domain knowledge or access
3+ consecutive REFUTED hypothesesDiminishing returns
STATUS is FIXED but test fails when you run itFalse positive — need user judgment
Changes are cosmetic (whitespace, comments, renames)Not making real progress

When escalating, present:

I've run N iterations of debugging. Here's where we are:

HYPOTHESES TESTED:
- [list from HYPOTHESES.md with results]

WHAT WE'VE RULED OUT:
- [summary]

WHAT WE'VE LEARNED:
- [key findings from LEARNINGS.md]

I'm stuck because: [specific stall reason]

Options:
A) Continue investigating [specific new angle]
B) You provide domain knowledge about [specific question]
C) Pair debug — I'll show you what I see, you guide
D) Accept as blocker and document

Step 4: Verify Fix

When a subagent reports STATUS: FIXED:

Gate 1: Verify a NEW regression test was written

  1. Check the REGRESSION TEST field in the subagent report:

- not yet → false positive (skipped TDD). Log in HYPOTHESES.md. Spawn next iteration with explicit instruction: "Phase 4 requires writing a NEW failing test FIRST. Report the specific test name and file." - Vague value (existing tests pass, full suite passes, not applicable) → false positive. Same action. - Must be specific: e.g., test_route_strips_internal_tags in src/routing.test.ts

  1. Verify a test file was actually modified: Bash("cd [project_root] && git diff HEAD -- '*.test.*' '*.spec.*' | head -5")

- No output (no test file changed) → false positive. Revert the fix (git stash), log in HYPOTHESES.md, spawn next iteration: "No regression test was written. Phase 4 requires a new failing test before the fix."

Gate 2: Verify the test passes

  1. Run the test yourself: Bash("[test command from subagent report]")
  2. Did it pass?

- YES → Run the full test suite too. All green? → Bug is fixed. Report to user. - NO → Log in HYPOTHESES.md as false positive. Continue loop.

If a subagent's fix is a false positive, DELETE the fix entirely. Do not patch — revert and spawn a fresh subagent with updated context.

Two structural gates: (1) a new regression test exists in a modified test file; (2) that test passes. The subagent can't fake either — the main chat verifies both independently.

Step 5: Report Resolution

When the bug is confirmed fixed:

Bug fixed after N iterations.

ROOT CAUSE: [from LEARNINGS.md]
FIX: [what changed]
REGRESSION TEST: [path and command]
HYPOTHESES TESTED: [count] ([count] refuted, 1 confirmed)

Hypothesis Discipline

One At A Time

When you test multiple hypotheses simultaneously:

  • If the bug disappears, you don't know which change fixed it
  • If it persists, you haven't cleanly ruled out any hypothesis
  • You learn NOTHING from the iteration

One hypothesis. One subagent. One result. Logged in HYPOTHESES.md.

The "Root Cause Found" Trap

You may NOT claim "root cause found" unless:

  1. You have a regression test that reproduces the bug
  2. Your fix makes that test pass
  3. You can explain WHY the bug occurred (mechanism, not just location)

"I found the line that's wrong" is NOT root cause.

Drive-Aligned Framing

Claiming "root cause found" without a reproducing test that fails before the fix and passes after is NOT HELPFUL — the bug comes back next week and you've wasted the user's time, not saved it. Your hypothesis is not a root cause. Your confidence is not evidence.

GUI Application Debugging

When debugging GUI apps, subagents MUST complete execution gates:

BUILD → LAUNCH (with logging) → WAIT → CHECK PROCESS → READ LOGS → VERIFY

Only after reading logs can you claim "bug reproduced" or "bug fixed."

Rationalization Prevention

If ANY of these thoughts cross your mind, spawn a subagent instead of acting on them.

ThoughtReality
"Let me analyze what we know first"That's the subagent's job. Spawn one.
"I have a strong hypothesis already"You thought that 30 times last time. Spawn a subagent.
"Let me gather context first"Context gathering IS investigation. Subagent.
"Let me just quickly check one thing""One thing" becomes 50 file reads. Subagent.
"This is a simple bug, no loop needed"19MB transcript was a "simple" bug. Loop.
"I already know the codebase"You claimed root cause 30 times. You were wrong 30 times.
"Subagents are slow, I'll do it myself"You lose objectivity and can't revert cleanly
"I can test two hypotheses at once"Neither confirmed nor refuted. You learned nothing.
"Let me verify the subagent's work by reading the code"Running the TEST is verification. Reading CODE is investigation. Subagent.
"This error is urgent/persistent, I need to act now"Urgency is EXACTLY when you need the protocol. You'll do 50 commands and still need a subagent.
"Let me check the logs/container/database real quick"Log reading IS investigation. Docker exec IS investigation. DB queries ARE investigation. Subagent.
"The user asked about something else, I'll just handle it"Announce the pause. Don't silently abandon the loop.
"I'll just check one thing before spawning the subagent"That's what happened on March 16: "one thing" became 50 commands. Spawn first, check never.
"The subagent won't know how to docker exec / curl / read logs"Subagents have full tool access. They CAN do operational debugging. You CANNOT.

The Confidence Trap

The more confident you feel, the MORE you need the protocol. High confidence = strong prior = resistance to disconfirming evidence.

Observed Escape Patterns (March 16, 2026 — nanoclaw audit)

An agent loaded dev-debug and committed 71 protocol violations. The user had to re-invoke dev-debug 3 times. Only 3 of 15 subagent spawns were properly delegated. These are the EXACT patterns that caused the escape:

Escape A: "Verification" Rationalization After a subagent returned, main chat "verified" by grepping source code, reading setup scripts, diagnosing root causes. It called this "verification." It was investigation.

  • STOP trigger: If you're about to Read/Grep/Glob ANY file that isn't HYPOTHESES.md or LEARNINGS.md after a subagent returns → STOP. That's investigation. Spawn a subagent.

Escape B: Silent Loop Abandonment User asked "What's in spotless db" — a different topic. Main chat silently abandoned the debug loop and never resumed.

  • STOP trigger: If the user's message isn't about the current bug → STOP. Announce the pause. Handle request. Announce resume. Read HYPOTHESES.md. Spawn next subagent.

Escape C: Urgency Bypass A new 500 error appeared. Main chat "urgently" checked logs, diagnosed the 14MB session, remediated, and read source code. 20+ direct investigation commands.

  • STOP trigger: If a new error appears and you feel urgency → STOP. Urgency is EXACTLY when you break protocol. Update HYPOTHESES.md with the new symptom. Spawn a subagent.

Escape D: Pre-Delegation Investigation Persistent 400 errors appeared. Main chat ran 50+ lines of docker exec, curl, env inspection, log analysis, source reading BEFORE spawning a subagent. By the time it delegated, it had already done all the investigation.

  • STOP trigger: If you're about to run docker exec, curl, sqlite3, or read logs → STOP. These are investigation tools. Spawn a subagent with the symptom description. Let the subagent investigate.

Why Skipping Hurts the Thing You Care About Most

Your DriveWhy You SkipWhat Actually HappensThe Drive You Failed
Helpfulness"Faster = more helpful"19MB transcript, zero resolutionAnti-helpful
Competence"I already know"30 wrong root cause claimsIncompetent
Efficiency"Protocol is overhead"Protocol: 30 min. Shortcut: 3+ hoursInefficient
Approval"User wants results now"User killed your sessionTrust destroyed

The protocol is not overhead you pay. It is the service you provide.

No Pause Between Iterations

After evaluating a subagent's results, IMMEDIATELY spawn the next iteration or complete. Do NOT:

  • Summarize what was learned (HYPOTHESES.md is the record)
  • Ask "should I continue?" (progress gating decides, not courtesy)
  • Wait for user confirmation between iterations
  • Write status updates before spawning next subagent

Pausing between iterations is procrastination disguised as courtesy.

When Fix Requires Substantial Changes

If root cause reveals need for significant refactoring:

  1. Document root cause in LEARNINGS.md
  2. Report findings to user
  3. Immediately invoke the dev workflow for implementation:

Discover and read the dev workflow skill:

ls -d ~/.claude/plugins/cache/edwinhu-plugins/workflows/*/skills/dev/SKILL.md 2>/dev/null | sort -V | tail -1

Use the output path with Read().

Debug finds the problem. The dev workflow implements the solution.

Do NOT leave the user to manually invoke /dev. Chain to it explicitly.

平台分布

Codex

34.3%
按下载量换算43

Claude

28.95%
按下载量换算36

Cursor

19.42%
按下载量换算24

Gemini CLI

8.99%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/edwinhu/workflows --skill dev-debug 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills