Chuyển đến nội dung
Skillpedia
Lập trình chung26k · #10026

ce-debug

Skill này làm gì

Skill này làm việc qua một tính năng hoặc lỗi đang hỏng để tìm nguyên nhân thật, dựa trên bằng chứng từ mã. Skill dành cho lập trình viên muốn lỗi được chẩn đoán cẩn thận trước khi sửa.

Khi nào nên dùng

  • ✓Khi có gì đó hỏng và nguyên nhân không rõ ràng.
  • ✓Khi hành vi chậm hoặc chỉ lỗi trong một cấu hình cụ thể, chẳng hạn như production.
  • ✓Khi một công việc pipeline hoặc một kiểm tra pull request liên tục thất bại.

Liên kết skill

https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-debug/SKILL.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-debug/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Trang thanh toán của chúng tôi bị lỗi sau lần triển khai gần nhất. Bạn có thể tìm nguyên nhân gốc và sửa không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill tái hiện vấn đề, kiểm tra từng giả thuyết một và truy ra nguyên nhân tới các dòng mã cụ thể. Khi bạn chọn sửa, nó viết một bài kiểm thử thất bại trước rồi mới sửa.

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.

Debug and Fix

Find the root cause of a failure, then — when the user chooses to — fix it with test-first discipline.

Done when: the causal chain from trigger to symptom is stated with no gaps and file:line evidence, and either a verified fix has been handed off (PR, commit, or the user's chosen stop) or a diagnosis-only summary has been delivered. Escalate rather than persist: 2-3 hypotheses exhausted without confirmation, or 3 failed fix attempts, means diagnose why instead of trying again — that is the smart escalation references/investigate.md describes. One hypothesis, one change at a time; changing several to see what helps is shotgun debugging.

<bug_description> is whatever this skill was invoked with — a failure description, a mode: token, or an issue reference (#123, org/repo#123, an issue URL) — from the user or from a calling skill (ce-babysit-pr / lfg in mode:pipeline pass the failing jobs and log tails; lfg's defect route passes mode:return-to-caller and the user's own reference). Blank if nothing was provided.

Mode

Default is interactive: investigate, run the Phase 2 fix-choice gate, then the Phase 4 handoff.

mode:pipeline (set by an orchestrator such as ce-babysit-pr or lfg): run fully non-interactively and never call the blocking-question tool. Strip the token from <bug_description>, then read references/pipeline-mode.md and follow it — it overrides every "ask the user" point with a conservative default, replaces the Phase 2 fix-gate with "fix convergent bugs, defer divergent ones", and replaces the Phase 4 handoff with a structured return whose status is exactly one of fixed-and-pushed | fixed-not-pushed | diagnosed-no-fix | flaky-infra | needs-human. The caller branches on those exact spellings, so never rename, abbreviate, or add to them.

mode:return-to-caller (set by lfg on its defect route): run non-interactively, but the caller owns everything after the fix. Strip the token, then read references/return-to-caller.md and follow it — it keeps Phases 0-3 and the convergent-or-defer fix boundary, applies the Phase 3 branch rule so the fix lands on a feature branch, commits the fix-owned files without pushing, skips the post-fix polish and review steps, and returns a structured result whose status is exactly one of fixed | diagnosed-no-fix | needs-human | blocked. The same spelling rule applies.

Blocking questions

Wherever this skill asks the user something, use the host's blocking question tool already in the current tool list (match by capability, not by a host-specific name). Presence in the current tool list is proof the tool exists; never call a user-facing question tool to discover whether it exists. If a matching tool is listed but unloaded, use the host's tool-discovery primitive to load that capability — do not search for another host's tool name. Fall back to numbered options on the host's chat surface only when no such tool is in the list or a real question call errors. Never silently skip the question, and never end a phase without a response.

Secrets in evidence

Debugging surfaces raw output constantly — command results, captured payloads, log excerpts — and the harness may render a command's output the moment it runs, so check secrets when you construct the command, not afterward. Keep credentials in env vars rather than on the command line; when a command's output may carry a secret (verbose HTTP traces, dumped headers, config or environment prints), capture it to a file and surface only sanitized excerpts, writing <REDACTED> in place of each secret. No secret (credential, token, auth header, connection string) appears in anything shown, written, or committed. If sanitizing removes what the diagnosis needs, say so and ask the user rather than un-redacting.

Artifact Root

Resolve <root> only when you first compose a <root>/ path — a run that composes none skips this entirely.

<!-- ce-docs-root:start -->

Resolve the CE artifact root <root> before composing any artifact path.

  • Read docs_root from <repo-root>/.compound-engineering/config.yaml only (<repo-root> = git rev-parse --show-toplevel). Do not read it from config.local.yaml. Unset -> <root> is docs, exactly as before.
  • Validate a set value: a repo-relative directory whose real, symlink-resolved path stays inside the repo and is neither the repo root nor under .git/. Otherwise stop with an error n
Câu hỏi thường gặp

Skill có luôn sửa lỗi không?

Không. Bạn có thể chọn chỉ nhận bản tóm tắt chẩn đoán thay vì sửa.

Nếu những phỏng đoán đầu tiên sai thì sao?

Skill dừng lại sau vài giả thuyết thất bại và xem xét vì sao các phỏng đoán đó sai.

Nó có chạy mà không hỏi câu hỏi không?

Có. Ở chế độ pipeline, nó chạy không giám sát và không dừng lại để hỏi bạn.

Chi tiết

Mô tả gốc của tác giả

Diagnosis loop for bugs and failing behavior. Use when asked to debug or fix failing or slow behavior.

repo: EveryInc/compound-engineering-plugin

Độ phổ biến

Sao GitHub
26k
Vị trí xếp hạng
#10026
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự