debugging
Use when the user says 'diagnose', 'debug this', reports something broken/throwing/failing/slow, when encountering a bug/test failure/unexpected behavior and a fix is not yet obvious, or when CI is failing and the cause needs to be found across builds, jobs, or environments.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- debugging
- triggers
- [ "user", "model" ]
- description
- Use when the user says 'diagnose', 'debug this', reports something broken/throwing/failing/slow, when encountering a bug/test failure/unexpected behavior and a fix is not yet obvious, or when CI is failing and the cause needs to be found across builds, jobs, or environments.
02 资源文件 6
- 参考文档modes/ci.md5.2 KB
- 参考文档modes/local.md14.3 KB
- 参考文档reference/condition-based-waiting.md3.4 KB
- 参考文档reference/defense-in-depth.md3.6 KB
- 参考文档reference/root-cause-tracing.md5.2 KB
- 脚本scripts/hitl-loop.template.py1.2 KB
03 SKILL.md 正文
Debugging
Core principle: ALWAYS find root cause before attempting fixes. Symptom
fixes are failure. NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.
Two modes; full detail in modes/<mode>.md — read it when you enter.
| Mode | When | Detail |
|---|---|---|
| Local | Bug/test failure/slowness in the codebase, fix not obvious | modes/local.md |
| CI | Pipeline failing across builds/jobs/environments | modes/ci.md |
Escalation tier: when a failure survives an ordinary pass, is
intermittent, or needs an audit-grade trail of every hypothesis and
experiment, use skills/forensic-debugging (trace ledger, invariant
map, three-axis bisection).
Local — the discipline (summary)
- Phase 1 — build a feedback loop FIRST. A tight pass/fail signal that goes red on this bug is the whole skill; bisection and instrumentation just consume it. Spend disproportionate effort here. Without it you cannot propose fixes — that is the Iron Law.
- Then trace data flow, form hypotheses, test one at a time, fix root cause.
- Redact every secret in shown output (
<REDACTED>); quote only signal lines.
Red flags — return to Phase 1: "quick fix for now", "just try changing X", "add multiple changes", proposing before tracing, 3+ fix attempts, each fix revealing a new problem elsewhere.
Reference: reference/root-cause-tracing.md,
reference/condition-based-waiting.md, reference/defense-in-depth.md,
scripts/hitl-loop.template.py.
CI — essentials
- Access:
gh run list/view(GitHub),glab ci list/view(GitLab), CircleCI MCP, jenkins-cli, or parse the dashboard/logs manually. - Flow: identify project+CI → check pipeline status (skip if green) →
fetch failure logs (
gh run view <id> --log-failed) → check for flaky tests (intermittent across runs/seeds) → reproduce locally → fix → verify by re-running the workflow. - Distinguish real failures from flaky: same test failing intermittently or on retry → flag as flakiness, not the fix target.
- Never push "fixes" to make CI green without a reproduced local failure.
Cross-skills
gates— verification evidence before declaring fixed.researchdeep-mode — when the bug spans modules you can't trace in a pass.computer-use— when the failure is in a GUI/desktop app and needs screen evidence (screenshot, UIA tree) the shell can't see.
04 同仓库更多 Skills
montador-de-ideias
Use when assembling, expanding, or elevating a raw project idea or initial prompt into an ultra-detailed, first-principles dossier and compiled master prompt with journalistic OSINT market research, Tech Lead and Staff Architect justifications, atomic and modular hardening/optimization, and high-impact contact surfaces.
git-github-adaptive-engineering
Use when any task touches git history, GitHub issues/PRs/releases/CI, repo governance, or branch and merge decisions. Runs the Fase Zero situational-awareness battery, picks one of five delivery flows via the adaptive decision engine, and enforces commit/PR information-density standards. Orchestrates the gh, git-workflows, github-actions, pr, and debug/finish skills.
adaptive-agenda-calendar-routine-engine
Use when planning or executing work across hours, days, weeks, or sprints. Turns the calendar into a strict time-blocked agenda (HH:MM-HH:MM blocks carrying a routine profile, expected inputs, and a handoff output artifact), runs the 5-stage cognitive flow (Radar and Hunt -> Triage plus Steve Jobs conception -> workbench manifest -> >=32-cycle loop -> Close plus Open-Minded Scrum), and unfolds macro calendar milestones into micro agenda blocks through extensions/gcal/wrapper.py.
demo
Use when demonstrating a skill in a fixture project.
duplicate-skill
Use when testing duplicate skill name detection.
duplicate-skill
Use when testing duplicate skill name detection.