debug-with-sentry
Skill này làm gì
Skill này dùng dữ liệu lỗi của Sentry để giải thích vì sao một thứ đang làm người dùng bị crash. Dành cho lập trình viên muốn hiểu lỗi production trước khi sửa code.
Khi nào nên dùng
- ✓Khi bạn có liên kết hoặc ID issue Sentry và muốn biết điều gì sai.
- ✓Khi người dùng báo lỗi và bạn muốn tìm nguyên nhân của nó.
- ✓Khi một crash xuất hiện sau một bản phát hành và bạn cần biết đoạn code nào gây ra.
Liên kết skill
https://github.com/ParadevAI/Paradev/blob/main/plugins/sentry/skills/debug-with-sentry/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Đây là liên kết Sentry cho lỗi crash thanh toán. Hãy tìm nguyên nhân gốc từ stack trace trước khi chúng ta thay đổi bất cứ thứ gì.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent lấy issue và sự kiện mới nhất, rồi đọc stack trace từ trên xuống cho đến khi gặp khung đầu tiên trong code của bạn. Nó đối chiếu file đó với bản phát hành đã tạo ra lỗi, vì số dòng có thể đã thay đổi.
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.
Root-cause with the evidence, not the guess
A Sentry issue is a claim about what broke. The job is to turn it into a claim about why it broke, backed by the event data, before anyone edits code.
1. Get the real issue, not the search hit
A pasted URL or short ID (PROJECT-123) goes straight to get_sentry_resource
(pass the URL, or resourceType: 'issue' with the short ID).
A described error ("users can't check out") goes through search_issues first,
but treat the results as candidates: match on the error type and the affected
code path, not on title similarity. If two issues share a message but differ in
stack trace, they are two bugs.
2. Read the stack trace like a diff
Stack traces, breadcrumbs, tag values and releases are catalog tools: find
them with search_sentry_tools, then call execute_sentry_tool with name
set to get_event_stacktrace, get_issue_breadcrumbs, get_issue_tag_values
or find_releases.
Fetch the newest event's stack trace. The top frame is where it crashed, not
where it broke — walk down until you leave library code and hit the first
frame owned by this repo. That frame and its local variables are the starting
point. Cross-check the file against the working tree: production runs a
release, and the line numbers may belong to code that has since changed.
find_releases tells you which version the events come from.
3. Use the distribution before the theory
Before proposing a cause, check what the events have in common:
- Tags (
get_issue_tag_values): one browser, one endpoint, one tenant, one release? A bug scoped to a dimension names its own trigger. - Breadcrumbs: what the user did right before. A crash after a retry storm is a different bug than the same crash on first click.
- First seen / volume: an issue that started with a release points at that release's diff. One that grew slowly points at data or traffic.
Seer (analyze_issue_with_seer) is worth running for a second opinion, but
verify its suggested cause against the frames yourself before repeating it.
4. Report cause, scope, and blast radius
The finding is three sentences: what fails, why, and who it hits (volume,
affected users, releases). Link the issue. If the user asks for a fix, fix the
frame you identified — and only then consider update_issue to assign or
resolve, never as a way to make the dashboard quiet.
Anti-patterns
- Fixing the top frame. The top frame is often a library that faithfully threw on bad input from three frames below.
- Trusting the issue title. Sentry titles are the exception message; two different bugs can share one, and grouping is heuristic.
- Reading one event. One event is an anecdote; the tag distribution is the evidence.
- Resolving without a shipped fix. A resolved issue that regresses comes back as a new-looking issue and erases its history.
Câu hỏi thường gặp
Vì sao không bắt đầu từ đầu stack trace?
Khung trên cùng là nơi crash xảy ra, không nhất thiết là nơi có lỗi, nên skill đi xuống đến code của bạn.
Nó có biết hai issue có cùng lỗi không?
Có. Hai issue cùng thông báo nhưng khác stack trace được coi là hai lỗi riêng biệt.
Nó có tự thay đổi code không?
Không. Mục tiêu là giải thích nguyên nhân bằng bằng chứng trước khi chạm vào code.
Chi tiết
Mô tả gốc của tác giả
Root-cause a production error with Sentry's evidence before touching code — pull the issue, read the stack trace and breadcrumbs, and separate the crash from its trigger. Use when the user pastes a Sentry link or issue ID, reports a production error, or asks why something is crashing for users.
repo: ParadevAI/Paradev
Độ phổ biến
- Sao GitHub
- 16k
- Vị trí xếp hạng
- #10849
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
decide
16kHướng dẫn bạn từng quyết định về thiết kế hoặc code, mỗi lần một việc, có lựa chọn rõ ràng và khuyến nghị. Ghi lại mọi câu trả lời và đưa ra bản tóm tắt cuối.
mobile-demo-film
16kBiến video quay màn hình điện thoại thành video demo gọn gàng, có thẻ tiêu đề, khung điện thoại và thẻ kết thúc. Hợp với demo tính năng và clip ra mắt.
redesign
16kXem xét một thành phần giao diện và đề xuất cách sửa cụ thể về khoảng cách, độ tương phản, thứ bậc và bố cục. Cũng có thể áp dụng thay đổi.
superset-settings
16kCho phép agent xem và thay đổi cài đặt ứng dụng desktop Paradev, như giao diện, phông chữ và thông báo, từ dòng lệnh.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.