Make debugging debug draft tracker issues instead of filing them unasked

未关闭 适合新手
#20,502 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
76/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
markdown, shell

调研方向

从 plugins/debugging/skills/debug/SKILL.md 开始,找到 issue 中引用的三条向 tracker 提交内容的指令。更新这些指令,说明在 post-mortem 中起草 issue,并且只有在用户同意或调用方姿态符合允许条件时才提交;说明无人值守运行会报告草稿但不会提交。然后检查指定的 grader,并添加一条 debugging changelog 片段;验收标准通过且 codify 和 retro 的路由保持不变,即为完成。

由索引模型根据 Issue 内容生成。

描述

Problem

plugins/debugging/skills/debug/SKILL.md tells the model to file tracker issues three times, with no posture gate and no ask (verified on origin/main at 6f9409abe9):

  • :341: "File it with your issue tracker instead when fixing it needs a module, owner or seam this change does not touch" (sibling defects found in Phase 6).
  • :389: "File it with your issue tracker as an architectural finding" (Prevention).
  • :392: "When neither route applies or its plugin is not enabled, file it with your issue tracker as its own prevention finding."

A tracker write is an external, shared-state action. Many consumers require their own explicit go for one, and the skill's own eval does not require filing: plugins/debugging/evals/check-shaped-prevention-without-owner-plugins/graders/check-filed-as-prevention.md:5 passes when the run "files that check with the issue tracker ... (drafting the issue counts, since nothing can be sent from this run)". So the skill text demands more than the eval checks, and the model follows the skill text.

Evidence

  • Verified this pass: the three lines above via git show origin/main:plugins/debugging/skills/debug/SKILL.md, and the grader text via git grep on plugins/debugging/evals.
  • The plugin has no filing-posture setting: git grep -i "posture\|tracker" origin/main -- plugins/debugging/README.md plugins/debugging/reference finds only the "optional adjacent capability" line (README.md:50, mirrored at SKILL.md:57).
  • Duplicate search (gh issue list --state all --search "debugging tracker file prevention finding"): none.

Proposed work

Recommended: change the three directives to draft-then-ask. Each says to write the finding as a ready-to-file issue draft in the post-mortem (title and body), and to file it only when the user says to, or when the caller passed a posture that allows filing. Under --unattended, the draft goes in the output and nothing is filed. One shared sentence in Phase 6 can carry the rule, with the three sites pointing to it.

Alternative: add a filing_posture setting like bugs (plugins/bugs/reference/config.md "Filing posture", default manual-only). That is heavier (a config key, resolver and docs) for a skill that files only as a by-product. Choose it only if a consumer needs debug to file unattended.

Files: plugins/debugging/skills/debug/SKILL.md; the grader above if its wording should now require a draft and forbid an unasked file; a debugging changelog fragment.

Acceptance criteria

  • git grep -n -i "file it with your issue tracker" -- plugins/debugging/skills returns nothing.
  • Each of the three sites tells the model to draft the issue in the post-mortem and file only on the user's go.
  • Under --unattended the skill states that drafts are reported and nothing is filed.
  • The check-shaped-prevention-without-owner-plugins case still passes; its grader accepts a drafted issue and fails a run that files without being asked.
  • A debugging changelog fragment exists (scripts/new-changelog-fragment.sh).

Constraints and gotchas

  • Keep the skill consumer-agnostic (.claude/rules/consumer-agnostic-plugins.md): a consumer who wants auto-filing must still be able to get it (by saying so, or through the alternative setting above), so do not remove filing outright.
  • Keep the routing to /corrections:codify and /session-flow:retro at :392 unchanged.
  • Eval cases follow .claude/rules/eval-case-transcripts.md.

Context

Source: local handoff item 20261201-165535-debugging-prompt-audit-findings.md (retired into this issue), from a report-only prompt audit (harness-config audit-instructions, Claude Opus 5.5, 2026-11-30 to 2026-12-01; finding P10-5, upheld by its verifier against installed debugging 3.2.7). Related: the bugs plugin's filing_posture gate as prior art.

主要语言
Shell
星标
22
派生
2
平均合并
1 小时 54 分钟
30 天内合并 PR
938

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

melodic-software/claude-code-plugins 的其他 Issue

查看 melodic-software/claude-code-plugins 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。