investigate-production
Skill này làm gì
Skill này dùng log của Sazabi để giải thích một lỗi production bằng bằng chứng thật. Dành cho người phải trả lời điều gì đã hỏng, vì sao và ai bị ảnh hưởng.
Khi nào nên dùng
- ✓Khi người dùng báo lỗi production hoặc một endpoint chậm hay lỗi.
- ✓Khi một cảnh báo kích hoạt và bạn cần biết thực sự đang xảy ra gì.
- ✓Khi bạn cần biết điều gì đã thay đổi trước khi một thứ ngừng hoạt động.
Liên kết skill
https://github.com/ParadevAI/Paradev/blob/main/plugins/sazabi/skills/investigate-production/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
“Người dùng nói thanh toán bị lỗi từ sáng nay. Hãy dùng log production của chúng ta cho tôi biết lỗi gì, vì sao và ai bị ảnh hưởng.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra xem Sazabi đã có issue hoặc luồng thảo luận về vấn đề này chưa, rồi đặt các câu hỏi chính xác cho log. Nó đọc các dòng đứng sau mỗi câu trả lời và đưa ra khẳng định về việc gì bị lỗi và ảnh hưởng đến ai.
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.
Investigate with the logs, not the guess
Sazabi stores your logs, traces and metrics and answers questions about them. The job is to turn "something is broken" into a claim about what fails, why, and who it hits, backed by real log lines, before anyone edits code.
0. How the tools work
The Sazabi MCP server lists only two tools, search and execute. Browse
Sazabi's operations with search and namespace: "sazabi" (an empty query
without a namespace lists connected connectors, not Sazabi operations). Before
calling one, repeat search with namespace: "sazabi", the hit's full name as
the query, and includeInputSchema: true to load its arguments. Then run it
with execute as { name, arguments }, the name copied from the hit (for
example sazabi/logs.ask).
Most operations work on one project. If the user did not name one and more than one exists, ask which, or pick the one whose name matches this repository.
1. Start from what is already known
Run sazabi/issues.search for the symptom. Sazabi opens issues on its own when
it sees new or growing errors, so the bug may already have a title, a severity,
and a first-seen time. Then run sazabi/search.threads for the same words: a
teammate or the Sazabi agent may already have investigated it.
Treat search hits as candidates. Match on the error and the code path, not on title similarity.
2. Ask the logs one precise question at a time
sazabi/logs.ask takes a question in plain language and returns an answer,
an explanation of what it measured, the window, and a queryId.
- Open with an overview when you do not know where to look yet: "what is broken in the last hour", "what changed since yesterday's deploy". It returns the kinds of log lines in the window, with counts against the window before and example lines.
- Then narrow to questions with one answer: "how many 5xx did
POST /api/checkout return per 5 minutes over the last 6 hours", "which
customer IDs saw
PaymentTimeouttoday", "show the 20 most recent lines for trace id abc123". - Read
explanationandwindowevery time. An answer over the wrong service, window or field is confidently wrong.
3. Read the lines, then the code
Pull the actual log lines for the failure, including the requests just before it. Find the first line this repository emits on the failing path, then open that code in the working tree. Production runs a release: check the version or commit in the logs against the branch before you trust line numbers.
Before you propose a cause, check what the failures have in common: one endpoint, one tenant, one region, one release, one upstream? A failure scoped to a dimension names its own trigger. A failure that starts at a deploy points at that deploy's diff.
4. Report cause, scope, and blast radius
Write three sentences: what fails, why, and who it hits (volume, affected customers, since when). Quote the log lines and the question you asked, so the user can rerun it. Only then, if asked, fix the code you found.
Anti-patterns
- Fixing the first error you see. The loudest line is often a downstream retry, not the cause.
- One overview, no follow-up. An overview finds where to look; it is not the evidence.
- Trusting an answer without its window. "No errors" over the last 5 minutes says nothing about the outage an hour ago.
- Pasting secrets from logs. Log lines can hold tokens and personal data. Quote only what the finding needs.
Câu hỏi thường gặp
Nó có thay đổi code trong khi điều tra không?
Không. Skill làm việc từ log và issue trước, và không chạm vào code cho đến khi nguyên nhân rõ ràng.
Nếu có nhiều dự án thì sao?
Nếu bạn không nêu tên một dự án, nó hỏi bạn muốn dùng dự án nào, hoặc chọn dự án khớp với repository này.
Nó có chấp nhận phỏng đoán về nguyên nhân không?
Không. Nó tách triệu chứng khỏi nguyên nhân và dẫn chứng mỗi khẳng định bằng các dòng log.
Chi tiết
Mô tả gốc của tác giả
Find out what is actually happening in production from Sazabi's logs, traces and issues before touching code — ask the logs a precise question, read the lines behind the answer, and separate the symptom from its cause. Use when the user reports a production error, a slow or failing endpoint, a customer complaint, an alert, or asks what is broken, what changed, or why something stopped working.
repo: ParadevAI/Paradev
Độ phổ biến
- Sao GitHub
- 16k
- Vị trí xếp hạng
- #10844
- 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.