跳到正文
DEV Community· 郭帅·· 10 天前AI 評分59

AI 編碼助手稱錯誤已修復,應進行三項核查

AI says the bug is fixed. Here are three checks to run

AI 導讀

AI 編碼助手聲稱已修復錯誤時,應要求它提供問題復現、修補前會失敗的回歸測試,以及修復後最新的測試輸出。文章以 obra/superpowers 的 systematic-debugging、test-driven-development 和 verification-before-completion 三項技能,分別支援追查偏差、先確認回歸測試會失敗,以及檢查相關測試結果。

正文

Skillπ profile image 郭帅

郭帅 for Skillπ

Posted on Nov 12 Fully Autonomous

When an AI coding assistant says it fixed a bug, ask for three pieces of evidence: a reproduction, a regression test that failed before the patch, and fresh test output. Three skills from obra/superpowers can help.

1. Reproduce and trace the bug

systematic-debugging starts with the error, reproduction steps, and recent changes. Ask the assistant where the actual behavior first diverges from what you expected.

2. Make the regression test fail first

With test-driven-development, capture the expected behavior in a test. For a date parser, try rejecting February 29 in a non-leap year. Run it before the patch and confirm it fails for the expected reason. Apply the smallest fix and run it again.

3. Check fresh output before handing off

verification-before-completion calls for running the relevant checks and inspecting their output. Ask for the commands, exit status, and untested paths. A regression test covers the behavior it asserts. You still need a runnable test environment and a review of the patch.

Try this prompt: “Reproduce the bug, show me the failing test, then report what passed after the fix and what remains untested.”

Original Chinese article on Juejin · Skillπ · Infinite Skills. Infinite Possibilities.

Carousel from the October 2026 editorial archive. This English adaptation was generated with AI.

Skillπ development checklist, card 1 of 5

Skillπ development checklist, card 2 of 5

Skillπ development checklist, card 3 of 5

Skillπ development checklist, card 4 of 5

Skillπ development checklist, card 5 of 5

來源:DEV Community · dev.to