bugs-are-annoying
Skill này làm gì
AI agent này tìm lỗi trong mã lập trình. Nó cố gắng “phá” mã để tìm các lỗi logic, vấn đề bảo mật hoặc các vấn đề khác mà mã có thể gặp phải.
Khi nào nên dùng
- ✓Khi bạn muốn chắc chắn mã đang hoạt động đúng.
- ✓Để tìm các lỗi tiềm ẩn mà các công cụ khác bỏ sót.
- ✓Trước khi dùng mã trong một dự án quan trọng.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/bugs-are-annoying/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
“Kiểm tra đoạn mã này để tìm tất cả lỗi có thể có.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent phân tích mã từng dòng, mô phỏng các tình huống lỗi và kiểm tra xem mã có hoạt động đúng trong những tình huống bất ngờ hay không.
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.
Bugs Are Annoying
An adversarial QA pass for any codebase, in any language. AI IDEs are optimized to produce code that looks finished — they are not optimized to produce code that is correct. This skill exists to close that gap by actively trying to break the code instead of confirming it works.
Core Mindset
Treat all code as guilty until proven innocent. The default question when reading a builder agent's output is not "does this look right?" — it's "how would this break, and what did the author not think of?"
This is an adversarial pass, not a confirmatory one. Do not skim and approve. Do not skip a category because it "seems fine." Every category in the taxonomy below must be actively checked against the actual code, not assumed clean.
When To Use
Trigger on: "find bugs," "audit this code/codebase," "run bug hunter," "check for errors," "find flaws," "review this for bugs," "is this code solid," or any request for a deep correctness pass rather than a style/readability review.
Process — Run These Phases In Order
Do not skip phases or collapse them into a single skim. Each phase catches things the others miss.
- Determine scope — If the user named a specific file or folder, scope to that. Otherwise, ask before starting: confirm whether to audit the whole codebase, just files changed vs. the main branch (
git diff), or a specific area. Never silently guess the scope on a codebase of unknown size — an unscoped "exhaustive" pass on a large repo can blow context mid-audit. Within scope, always exclude generated and dependency directories (node_modules,vendor,dist,build,.git) and minified/bundled files — this isn't the user's authored code and auditing it wastes the pass. Lockfiles are excluded by default, but must be inspected when checking for Dependency Issues. - Map the codebase — Identify entry points, the overall data flow, and what calls what before hunting for anything. You can't find a cross-file bug without first knowing the file relationships.
- Static line-by-line pass — Read every relevant/changed file fully, not a skim. Check each line against the taxonomy below.
- Trace critical data paths — Follow data from input to output across file/function boundaries. Most real bugs live at the seams between functions and files, not inside a single function.
- Adversarial simulation — Mentally execute the code against hostile/edge inputs: null, undefined, empty string, empty array, zero, negative numbers, max-length input, duplicate calls, concurrent calls, malformed input, missing fields.
- Cross-reference pass — When a bug is found, actively check if the same mistake was repeated elsewhere. AI IDEs frequently copy-paste the same flawed pattern into multiple files.
- Severity triage — Classify every finding using the definitions below. Do not invent new severity labels.
- Write/update
bugs.md— Use the exact format below. This is the only output of a hunt — do not also narrate a long summary in chat; point the user to the file.
Bug Taxonomy
Language-agnostic. Check every category — these are patterns, not syntax, so they apply regardless of stack.
- Logic errors — off-by-one errors, inverted conditionals, wrong operator precedence, incorrect boolean logic
- Null/type safety — unhandled null/undefined, unsafe casts, missing optional-chaining, wrong assumed type
- Edge cases — empty input, zero, negative numbers, single-item vs multi-item collections, first/last iteration of a loop
- Error handling — swallowed exceptions, missing try/catch around fallible calls, errors caught but not logged or surfaced, wrong error propagated up the stack
- Concurrency/async — race conditions, unawaited promises, stale closures, state updated after a component/process has already torn down
- Security — injection points, hardcoded secrets/keys, auth or permission bypass, unsafe deserialization
- Resource leaks — unclosed file handles/streams/connections, listeners or subscriptions never removed
- Cross-file consistency — a function/type/field changed in one file but call sites elsewhere not updated (the single most common AI-IDE failure mode, since builder agents tend to edit one file at a time)
- API/contract mismatches — caller and callee disagree on a field name, type, or required parameter
- State management — mutation of state that should be immutable, derived state that goes stale, double-updates
…
Câu hỏi thường gặp
Công cụ có tìm được mọi loại lỗi không?
Nó được thiết kế để tìm nhiều loại lỗi, như lỗi logic, vấn đề bảo mật và các trường hợp hiếm gặp (edge cases).
Công cụ có kiểm tra hình thức của mã không?
Không, nó chỉ tập trung vào việc mã có hoạt động đúng hay không, không phải mã có đẹp hay được viết tốt về mặt phong cách không.
Điều gì xảy ra nếu nó tìm thấy lỗi?
Nó liệt kê các lỗi tìm được, phân loại mức độ nghiêm trọng và chỉ ra vị trí của chúng trong mã, thường là trong một tệp có tên bugs.md.
Chi tiết
Mô tả gốc của tác giả
Adversarial code auditor that hunts down bugs, logic errors, and security flaws. Use for deep correctness passes, not style reviews.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #4079
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.