Chuyển đến nội dung
Skillpedia
Lập trình chung15k · #10973

principle-attack-the-premise

Skill này làm gì

Cung cấp cho agent một phương pháp để thoát khỏi vòng lặp thất bại lặp đi lặp lại. Dành cho kỹ sư có các bản sửa liên tục thất bại vì cùng một lý do.

Khi nào nên dùng

  • ✓Khi hai hoặc nhiều bản sửa có chung một giả định đã thất bại cùng một kiểm tra.
  • ✓Khi bạn chuẩn bị viết thêm một bản sửa khác dựa trên cùng một niềm tin.
  • ✓Khi các bản sửa lặp lại liên tục thất bại và nguyên nhân chưa rõ.

Liên kết skill

https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-attack-the-premise/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-attack-the-premise/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Ba bản sửa đã thất bại cùng một bài test. Trước khi thử thêm một bản nữa, hãy kiểm tra xem giả định cơ bản của chúng ta có sai không.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent ghi lại giả định chung, chạy một kiểm tra sẽ cho kết quả khác nếu giả định sai, rồi đi theo bằng chứng. Nó gỡ bỏ điều kiện gốc thay vì thêm code bù đắp.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Attack the Premise

When two or more fixes that share one premise have failed the same gate, suspect the premise, not the fixes.

Why: Each failed fix is evidence against the belief it assumed. A third fix on the same premise spends effort where the evidence already says the cause is not.

Pattern:

  • Write the premise down. The premise is the one sentence that every failed fix assumed.
  • Test the premise before the next fix. Find an observation that would come out differently if the premise were false, and make it. Look at how the failures are distributed, not only at how large they are. Make the check rerunnable per Build the Lever.
  • Follow the evidence. If it contradicts the premise, the cause is elsewhere. Look for what the failures have in common that the premise did not predict. If it confirms the premise, ask the next "why" per Fix Root Causes. The earlier fixes may have treated a consequence instead of the cause.
  • Remove the condition instead of compensating for it, per the Laziness Protocol. If the evidence shows that one part always lands on the losing side, change what puts it there. A mechanism that cleans up after it leaves the cause in place and adds work on every run.

Stop: Do not start the next fix before the premise is written down and tested.

This principle is distinct from Redesign from First Principles, which rebuilds a design around a new requirement. It questions a fact the current design assumes.

Câu hỏi thường gặp

Vì sao không thử một bản sửa khác?

Mỗi bản sửa thất bại là bằng chứng chống lại niềm tin chung, và thêm một bản sửa khác dựa trên nó là đổ công sức vào chỗ bằng chứng đã chỉ ra hướng khác.

Nếu giả định là đúng thì sao?

Khi đó agent hỏi vì sao thêm lần nữa để tìm nguyên nhân thật, vì các bản sửa trước có thể chỉ xử lý triệu chứng.

Nó tránh điều gì?

Các lớp dọn dẹp làm việc quanh nguyên nhân và để nguyên nhân còn nguyên đó.

Chi tiết

Mô tả gốc của tác giả

Apply when two or more fixes that share one premise have failed the same gate. Write the premise down and test it directly before you write another fix that assumes it.

repo: cursor/plugins

Độ phổ biến

Sao GitHub
15k
Vị trí xếp hạng
#10973
Giấy phép
—
Cập nhật
31/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự