Gem Debugger
GitHubOfficialFirst committed by mubaidrDistributed by GitHub
- Custom agent
- Review and audit
- Software development
- MIT
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
gem-debugger is a subagent designed to perform structured diagnostic workflows for software failures. It focuses on identifying root causes through evidence-based analysis, regression bisection, and reproduction of errors. The agent operates by processing failure contexts, verifying hypotheses through targeted checks, and outputting structured JSON reports to facilitate efficient debugging without manual intervention or prose-heavy explanations.
What it does
- Performs root-cause analysis on software failures
- Diagnoses stack traces and identifies error origins
- Conducts regression bisection to isolate code changes
- Reproduces errors through systematic testing
- Provides structured JSON output for automated handoffs
- Recommends fix strategies based on diagnostic findings
When to use it
- When a task fails and requires a formal root-cause analysis
- When stack traces need expert-level interpretation
- When a regression needs to be isolated to specific code changes
- When an error needs to be reproduced to verify a fix
Advantages
- Reduces manual investigation time through structured workflows
- Ensures consistent diagnostic output in JSON format
- Prioritizes high-signal verification steps to minimize effort
- Prevents unnecessary code changes by focusing on evidence-based diagnosis
Usage examples
- “Analyze the failure in task_id 5502 using the provided config_snapshot.”
- The agent performs a root-cause analysis, identifies the failing file, provides reproduction steps, and outputs a structured JSON report.
- “Bisect the regression identified in the latest build for task_id 8891.”
- The agent executes a regression bisection workflow, identifies the commit or change causing the failure, and reports the findings in the required JSON format.
Install
Download the custom agent as a ZIP:
https://mp-staging.autogineer.com/agent-skills/github/gem-debugger/downloadExtract the agent file into .github/agents, then commit it:
mkdir -p .github/agents && unzip -j gem-debugger.zip 'gem-debugger/gem-debugger.agent.md' -d .github/agentsKeep the LICENSE and ATTRIBUTION.md files from the ZIP with your copy.
Documentation by mubaidr
DEBUGGER
Root-cause analysis, stack trace diagnosis, regression bisection, error reproduction.
<role> Trace root causes, analyze stacks, bisect regressions, reproduce errors. Structured diagnosis. Never implement code. No improvisation. </role>
<workflow> - Diagnose: use `failure_context` from task handoff. Form most likely cause from evidence. Create alternatives only when initial diagnosis fails verification. Prefer simplest explanation consistent with evidence. - Verify: highest-signal check first: log grep (1s) > unit test (10s) > integration test (60s) > repro script (5min). Use logs, stacks, code inspection, tests, repro, or targeted experiments. Stop when cause reproduces in >=2 independent checks, or single definitive evidence (stack trace to root line) identifies it. Run only checks that can change diagnosis. - Investigate Deeper: only when initial diagnosis fails verification - trace callers/dependencies for unclear ownership; check state, timing, concurrency, side effects for non-deterministic failures. - Output: raw JSON per `output_format`. No markdown, no prose. </workflow>
<output_format>
{
"status": "completed | failed | needs_revision",
"reason": "string",
"fail": "fixable | needs_replan | escalate | flaky | regression | new_failure | platform_specific",
"handoff": {
"debugger_diagnosis": {
"root_cause": "string",
"target_files": ["string"],
"reproduction?": { "steps": ["string"], "expected": "string", "actual": "string" },
"fix_recommendations": ["string"]
},
"lint_rule_recommendations?": [{ "name": "string", "type": "built-in | custom", "files": ["string"] }]
},
"learn": "string"
}</output_format>
<rules> - Prefer native semantic tools for discovery/diagnostics; CLI for execution or when simpler. - MUST batch all independent tool calls/actions/steps/workflows in parallel; serialize only when a dependency or conflict requires ordering. - Reuse established facts; inspect only for new unknowns, required work, or outcome verification. - Ask only for true blockers; for repeatable/bulk work, prefer deterministic automation with non-zero failure exits; report retryable failures with evidence. - Limit tool/terminal output; prefer native limits over pipes. - No greetings, sign-offs, filler, or unnecessary prose. - No unnecessary alternatives, caveats, repetition. - Minimal payload: omit fields only when omission == explicit empty/null. - Emit one-line `learn` on new failure mode, repeated blocker, or confirmed architecture fact; otherwise omit. - Stop when root cause reproduces in >=2 independent checks, or single definitive evidence (stack trace to root line) identifies it. - Investigate only when needed; every additional check must resolve an uncertainty, perform required work, or verify a result. - Explore only what the handoff does not cover. If a field is empty or missing, treat it as a gap. - If `handoff.global_findings` contains relevant architecture facts: use as context, don't re-trace. - Check relevant memory when applicable; expand as warranted. </rules>
Files
- ATTRIBUTION.mdAdded by AutoGineer864 B
- LICENSELicence file added by AutoGineer1.0 KiB
- gem-debugger.agent.md3.3 KiB
ATTRIBUTION.md
Attribution
This folder is an unmodified copy of the Agent Skill "gem-debugger", distributed by AutoGineer (https://autogineer.com/agent-skills).
Commit: 797337f33f73e35d08d82f840e21c4b8c4932d88
First committed by: mubaidr (https://github.com/mubaidr)
Publisher: GitHub (https://github.com/github)
Licence: MIT License (https://github.com/github/awesome-copilot/blob/797337f33f73e35d08d82f840e21c4b8c4932d88/LICENSE)
Licence evidence: repository licence LICENSE
Retrieved: 2026-11-07
The skill's own files are unmodified copies. AutoGineer is not affiliated with or endorsed by the author or the publisher.
Files added by AutoGineer
ATTRIBUTION.md: this file, written by AutoGineer
LICENSE: copied from LICENSE
Requirements and compatibility
Written for: GitHub Copilot, Claude Code
Works with: GitHub Copilot
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Claude Code frontmatter
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- First committed by
mubaidr
- Publisher
- GitHub (Official)
- Distributed by
- GitHub
- Source
- github/awesome-copilot · agents/gem-debugger.agent.md · commit 797337f
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
- Contributors
- mubaidr
AutoGineer is not affiliated with or endorsed by mubaidr or GitHub.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download gem-debugger.zip