bug-reproduction-brief
Skill này làm gì
Công cụ này giúp biến các mô tả lỗi mơ hồ thành hướng dẫn đơn giản, rõ ràng từng bước, cho thấy chính xác lỗi xảy ra ở đâu và như thế nào. Mục tiêu là có bằng chứng tối thiểu về vấn đề trước khi cố gắng sửa.
Khi nào nên dùng
- ✓Khi một lỗi chỉ xảy ra đôi khi.
- ✓Khi một lỗi chỉ xảy ra trên một máy tính hoặc một cấu hình cụ thể.
- ✓Khi mô tả lỗi không rõ ràng hoặc chưa đầy đủ.
Liên kết skill
https://github.com/github/awesome-copilot/blob/main/skills/bug-reproduction-brief/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
“Biến lỗi thanh toán này thành hướng dẫn từng bước tối giản để tái hiện nó. Cho tôi thấy điều gì lẽ ra phải xảy ra, điều gì thực sự xảy ra và những phần nào vẫn chưa rõ.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ yêu cầu bạn ghi lại lỗi chính xác, môi trường xảy ra lỗi (như phiên bản chương trình) và điều lẽ ra phải xảy ra so với điều thực sự xảy ra. Sau đó, nó hướng dẫn bạn đơn giản hóa các bước càng nhiều càng tốt cho đến khi tìm được chuỗi ngắn nhất vẫn gây ra lỗi, mà không cố sửa lỗ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.
Bug Reproduction Brief
Use this skill when a bug report is incomplete, intermittent, environment-specific, or mixed with an assumed cause. The goal is to prove the smallest observable failure before diagnosis or repair begins.
1. Record the observed failure
Capture the exact error, incorrect output, timestamp, affected route or command, and the smallest known input. Preserve relevant logs without secrets or personal data. Label second-hand descriptions as unverified.
2. Identify the environment
Record only facts you can inspect:
- repository and commit;
- runtime and package-manager versions;
- operating system or container;
- dependency lockfile;
- relevant feature flags;
- whether the target is local, test, staging, or production.
Never guess credentials or production configuration.
3. Separate expected from actual behaviour
Write two explicit observable statements:
Expected: [observable result]
Actual: [observable result, including status or error]
Do not put the suspected cause in either statement.
4. Reduce the reproduction
Start from the reported path, then remove unrelated data, services, and steps one at a time. Keep the smallest fixture that still fails. If the failure stops, restore the last removed condition and record it.
Prefer an isolated test, minimal script, or smallest safe request over reproducing against production.
5. Prove repeatability
Run the minimal reproduction at least twice where safe. Record commands and outputs. If the failure is intermittent, report the observed frequency and duration instead of calling it deterministic.
6. Stop before repair
A verified reproduction is the deliverable. Do not edit implementation code while building the brief because that can destroy the evidence or mix diagnosis with remediation.
Output
# Bug Reproduction Brief
- Target and commit:
- Environment:
- Expected:
- Actual:
- Minimal steps:
- Minimal fixture:
- Reproduced: yes / no / intermittent
- Evidence:
- Unknowns:
- Safe next hypothesis to test:
Safety boundaries
- Do not change production data merely to reproduce a bug.
- Do not publish secrets, customer records, or private source.
- Do not claim a root cause from correlation alone.
- Use read-only or reversible discovery first.
- Stop after a verified reproduction; diagnosis and repair are separate workflows.
Example prompt
Use the Bug Reproduction Brief skill on the failing checkout test. Do not fix it yet. Reduce it to the smallest safe failing fixture and report the exact command evidence, expected result, actual result, and remaining unknowns.
Source and licence
Adapted from the MIT-licensed workflow at https://github.com/skyestrela/ai-agent-skill-preview.
Câu hỏi thường gặp
“Bug report” là gì?
Đó là mô tả một vấn đề hoặc lỗi trong chương trình hoặc hệ thống.
“Minimal reproduction” nghĩa là gì?
Đó là chuỗi hành động nhỏ nhất hoặc tập dữ liệu nhỏ nhất có thể làm lỗi xuất hiện lại một cách đáng tin cậy.
Vì sao tôi không nên thử sửa lỗi khi dùng công cụ này?
Vì mục tiêu trước hết là có bằng chứng rõ ràng, đơn giản về lỗi. Cố sửa trước có thể làm thay đổi vấn đề và khiến việc tìm nguyên nhân thật sự khó hơn.
Chi tiết
Mô tả gốc của tác giả
Turn a vague, intermittent, or environment-specific bug report into a minimal evidence-backed reproduction before proposing a fix.
repo: github/awesome-copilot
Độ phổ biến
- Sao GitHub
- 40k
- Vị trí xếp hạng
- #7103
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
acquire-codebase-knowledge
40kGiúp agent của bạn hiểu và ghi tài liệu cho một dự án mã nguồn có sẵn. Hữu ích khi đón thành viên mới hoặc nắm tổng quan về kiến trúc.
acreadiness-assess
40kGiúp agent của bạn đánh giá mức độ sẵn sàng cho AI của dự án và tạo báo cáo. Hữu ích để biết dự án đã sẵn sàng dùng công cụ AI đến đâu.
acreadiness-generate-instructions
40kGiúp agent của bạn tạo hướng dẫn cho công cụ AI dựa trên kết quả đánh giá. Hữu ích để cải thiện cách AI làm việc với mã và khắc phục các khoảng trống.
acreadiness-policy
40kGiúp agent của bạn xác định hoặc áp dụng chính sách đánh giá dự án bằng AI. Hữu ích để chuẩn hóa cách đánh giá dự án và đảm bảo tuân thủ.
Skill tương tự
obsidian-vault-maintainer
394kGiúp agent của bạn giữ gọn kho ghi nhớ kiểu Obsidian, với liên kết wiki hoạt động tốt, thuộc tính nhất quán và các phần tự tạo an toàn.
wiki-maintainer
394kGiúp agent của bạn duy trì wiki bộ nhớ OpenClaw với các trang có thể lặp lại, khối được quản lý an toàn và kiểm tra mâu thuẫn hoặc thiếu sót.
obsidian
394kCho phép agent của bạn đọc, tìm, tạo và sửa ghi chú, công việc, liên kết và thuộc tính trong Obsidian bằng dòng lệnh Obsidian chính thức.