Chuyển đến nội dung
Skillpedia
Lập trình chung7.6k · #13141

bug-trace

Skill này làm gì

Skill này truy vết một lỗi được báo cáo đến nguyên nhân gốc. Nó đọc báo cáo, theo dõi đường đi code bị lỗi, tìm thay đổi đã làm hỏng nó và loại trừ các giải thích khác. Skill dành cho lập trình viên điều tra một lỗi chưa rõ nguyên nhân.

Khi nào nên dùng

  • ✓Khi một báo cáo lỗi đến và bạn chưa biết điều gì gây ra nó.
  • ✓Khi một lỗi có nhiều triệu chứng và bạn cần xử lý từng cái riêng biệt.
  • ✓Khi bạn muốn loại trừ các giải thích cạnh tranh trước khi quyết định cách sửa.

Liên kết skill

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/bug-trace/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/BuilderIO/agent-native/blob/main/.agents/skills/bug-trace/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

“Bạn có thể tìm ra vì sao thanh toán thất bại với một số người dùng, bắt đầu từ báo cáo lỗi này không?”

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

Cách hoạt động

Agent ghi lại từng bước của đường đi lỗi cùng điều kiện tiên quyết, kiểm tra từng bước với code hiện tại, tìm các thay đổi gần đây chạm vào đường đi đó, và kiểm tra các giải thích cạnh tranh.

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.

Bug trace

This skill finds a root cause. It doesn't judge whether the cause is systemic; investigate-bug adds that judgment on top. Never change product code while tracing.

1. Take in the report

pnpm exec tsx .agents/skills/bug-trace/scripts/bug-intake.ts \
  --issue <N|url> | --jira <KEY|url> | --file <path> | --text "<report>" \
  [--title "<line>"] [--run <id>]

It writes bug.json to the run directory and prints the run id (bug-gh-123, bug-eng-456, or bug-<date>-<hash>). Re-running with the same report reuses the run. Jira intake uses jira-refactor-findings' client and credentials.

2. Split symptoms

A report often lists several. Treat each one on its own, with a short label.

3. Trace each symptom

Follow references/bug-investigation.md:

  1. Write the path as hops, each with file:line and its runtime precondition.
  2. Check every precondition against today's code.
  3. List what changed on the path: system-history analyze.ts --focus with every file on the path, then read each regression candidate with pr.ts.
  4. Hold at least two explanations, and run the check that separates them.
  5. Reproduce in the branch browser when the path runs there.
  6. Check AGENTS.md, skills, and packages/core for a rule or primitive the code bypasses.

When fanning out to sub-agents, give each one the symptom, its entry point, and the whole brief. Don't give it a theory or a short list of files: that list becomes the boundary of its search.

Output

For each symptom:

  • the hop list, and the broken hop;
  • the trigger commit, or none-found and what you checked;
  • the explanations you ruled out, and how;
  • the evidence level: reproduced, traced (a broken hop shown in code), or inferred;
  • the framework rule involved;
  • the sibling sites.
Câu hỏi thường gặp

Nó có thay đổi code sản phẩm không?

Không. Skill chỉ truy vết nguyên nhân và không sửa code trong lúc truy vết.

Báo cáo có thể đến từ đâu?

Nó có thể đến từ một issue, một ticket, một file hoặc văn bản dán vào.

Nếu nguyên nhân vẫn chưa rõ thì sao?

Skill yêu cầu giữ ít nhất hai giải thích và chạy một kiểm tra để phân biệt chúng.

Chi tiết

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

Find the root cause of a reported bug: take in the report (GitHub issue, Jira ticket, file, or pasted text), trace the failing path hop by hop with each hop's runtime precondition, find the recent change that broke it, and rule out rival explanations. Use for any bug investigation where the cause is not yet known.

repo: BuilderIO/agent-native

Độ phổ biến

Sao GitHub
7.6k
Vị trí xếp hạng
#13141
Giấy phép
MIT
Cập nhật
2/11/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ự