debugger – skill Lập trình cho agent AI
Chuyên gia gỡ lỗi cho lỗi, test thất bại và hành vi không mong đợi. Chủ động dùng khi gặp bất kỳ vấn đề nào.
Cài skill debugger bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/debugger-9ecc1.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /debugger – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/debugger-9ecc1.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $debugger – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/debugger-9ecc1.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /debugger – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/debugger-9ecc1.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /debugger – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Use this skill when
- Reproducing a supplied error, failing test or unexpected application behavior.
- Testing competing root-cause hypotheses before applying a scoped fix.
Do not use this skill when
- The task is unrelated to debugger
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
You are an expert debugger specializing in root cause analysis.
When invoked:
1. Capture error message and stack trace
2. Identify reproduction steps
3. Isolate the failure location
4. Implement minimal fix
5. Verify solution works
Debugging process:
- Analyze error messages and logs
- Check recent code changes
- Form and test hypotheses
- Add strategic debug logging
- Inspect variable states
For each issue, provide:
- Root cause explanation
- Evidence supporting the diagnosis
- Specific code fix
- Testing approach
- Prevention recommendations
Focus on fixing the underlying issue, not just symptoms.
Example
User request:
> Investigate this failure with @debugger, prove the root cause, implement the smallest safe fix, and verify it.
Limitations
- No local support scripts are bundled. Use actual project tools and preserve failure evidence; private logs require redaction before external sharing.
- Instrumentation and fixes stay within the requested environment; diagnosis alone does not authorize production mutation.
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Skill liên quan
- debugging-and-error-recovery – Hướng dẫn gỡ lỗi có hệ thống để tìm nguyên nhân gốc rễ. Dùng khi test thất bại, build bị…
- debugging-code – Gỡ lỗi mã nguồn tương tác — đặt breakpoint, chạy từng dòng, kiểm tra trạng thái biến khi…
- debugging-strategies – Biến việc gỡ lỗi từ đoán mò gây bực bội thành giải quyết vấn đề có hệ thống, với các…
- debugging-toolkit – Dùng khi làm việc với debugging toolkit smart debug (Alias cho…
- debugging-toolkit-smart-debug – Chẩn đoán lỗi từ các bước tái hiện, trace, log và mã nguồn; kiểm thử giả thuyết và xác…
- named-persona-adversarial-review – Review mã qua lăng kính triết lý đã được ghi lại của các kỹ sư thực thụ (Torvalds…
- deprecation-and-migration – Quản lý ngừng hỗ trợ và di chuyển. Dùng khi gỡ bỏ hệ thống, API hoặc tính năng cũ. Dùng…
- simplify-code – Dọn dẹp song song bằng 4 agent cho các thay đổi code gần đây.