Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ngxccc-ag-debug
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing, devops
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/ag-debug
What's inside
- Skill name
ag-debug- Description
- Debug systematically with root-cause analysis before fixes. Use for bugs, test failures, unexpected behavior, performance issues, CI failures, or system investigation.
- License
- MIT
- Instructions
- 126 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (13)
- SKILL.md
- defense-in-depth.md · references/
- frontend-verification.md · references/
- investigation-methodology.md · references/
- log-and-ci-analysis.md · references/
- performance-diagnostics.md · references/
- reporting-standards.md · references/
- root-cause-tracing.md · references/
- systematic-debugging.md · references/
- task-management-debugging.md · references/
- verification.md · references/
- find-polluter.sh · scripts/
- find-polluter.test.md · scripts/
SKILL.md (first lines)
# Debugging & System Investigation > **Output style:** Follow `process/development-protocols/communication-standards.md` — answer-first, plain language, no unexplained jargon, TL;DR on long responses. Comprehensive framework combining systematic debugging, root cause tracing, defense-in-depth validation, verification protocols, and system-level investigation (logs, CI/CD, databases, performance). ## Core Principle **NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST** Random fixes waste time and create new bugs. Find root cause, fix at source, validate at every layer, verify before claiming success. ## When to Apply **Code-level:** Test failures, bugs, unexpected behavior, build failures, integration problems **System-level:** Server errors, CI/CD pipeline failures, performance degradation, database issues, log analysis ## How to Use Refer to the workflow instructions and command references detailed below. **Always:** Before claiming work complete ## Techniques ### 1. Systematic Debugging (`references/systematic-debugging.md`) Four-phase framework: Root Cause Investigation → Pattern Analysis → Hypothesis Testing → Implementation. Complete each phase before proceeding. No fixes without Phase 1. **Load when:** Any bug/issue requiring investigation and fix ### 2. Root Cause Tracing (`references/root-cause-tracing.md`) Trace bugs backward through call stack to find original trigger. Fix at source, not symptom. Includes `scripts/find-polluter.sh` for bisecting test pollution. **Load when:** Error deep in call stack, unclear where invalid data originated ### 3. Defense-in-Depth (`references/defense-in-depth.md`) Validate at every layer: Entry validation → Business logic → Environment guards → Debug instrumentation **Load when:** After finding root cause, need comprehensive validation ### 4. Verification (`references/verification.md`) **Iron law:** NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE. Run command. Read output. Then claim result. **Load when:** About to claim work complete, fixed, or passing ### 5. Investigation Methodology (`references/investigation-methodology.md`) Five-step structured investigation for system-level issues: Initial Assessment → Data Collection → Analysis → Root Cause ID → Solution Development **Load when:** Server incidents, system behavior analysis, multi-component failures ### 6. Log & CI/CD Analysis (`references/log-and-ci-analysis.md`) Collect and analyze logs from servers, CI/CD pipelines (GitHub Actions), application layers. Tools: `gh` CLI, structured log queries, correlation across sources. **Load when:** CI/CD pipeline failures, server errors, deployment issues ### 7. Performance Diagnostics (`references/performance-diagnostics.md`) Identify bottlenecks, analyze query performance, develop optimization strategies. Covers database queries, API response times, resource utilization. **Load when:** Performance degradation, slow queries, high latency, resource exhaustion ### 8. Reporting Standards (`references/reporting-standards.md`) Structured diagnostic reports: Executive Summary → Technical Analysis → Recommendations → Evidence **Load when:** Need to produce investigation report or diagnostic summary ### 9. Task Management (`references/task-management-debugging.md`) Track investigation pipelines via Claude Native Tasks (TaskCreate, TaskUpdate, TaskList). Hydration pattern for multi-step investigations with dependency chains and parallel evidence collection. **Fallback:** Task tools are CLI-only — if unavailable (VSCode extension), use `TodoWrite` for tracking. Debug workflow remains fully functional. **Load when:** Multi-component investigation (3+ steps), parallel log collection, coordinating debugger subagents ### 10. Frontend Verification (`references/frontend-verification.md`) Visual verification of frontend implementations via Chrome MCP (Claude Chrome Extension) or `ag-agent-browser` skill fallback. Detect if frontend-related → check Chrome MCP availability → screenshot + console error check → report. Skip if not frontend. **Load when:** Implementation touches frontend files (tsx/jsx/vue/svelte/html/css), UI bugs, visual regressions ## Quick Reference ``` Code bug → systematic-debugging.md (Phase 1-4) Deep in stack → root-cause-tracing.md (trace backward) Found cause → defense-in-depth.md (add layers) Claiming done → verification.md (verify first) System issue → investigation-methodology.md (5 steps) CI/CD failure → log-and-ci-analysis.md Slow system → performance-diagnostics.md Need report → reporting-standards.md Frontend fix → frontend-verification.md (Chrome/devtools) ``` ## Tools Integration - **Database:** `sqlite3` CLI and `drizzle-kit studio` for SQLite/libSQL diagnostics - **CI/CD:** `gh` CLI for GitHub Actions logs and pipeline debugging - **Codebase:** `ag-docs-seeker` skill for package/plugin docs; `ag-scout` skill for codebase exploration - **Scouting:** `/ag-scout` or `/ag-scout ext` for finding relevant files - **Frontend:** Chrome browser or `ag-agent-browser` skill for visual verification (screenshots, console, network) - **Skills:** Activate `ag-problem-solving` skill when stuck on complex issues ## Red Flags Stop and follow process if thinking: - "Quick fix for now, investigate later" - "Just try changing X and see if it works" - "It's probably X, let me fix that" - "Should work now" / "Seems fixed" - "Tests pass, we're done"
From ngxccc/agent-skills-kit, MIT.
More from ngxccc/agent-skills-kit
- 0.529score
ag-feasibility-test
ngxccc
Use when a SPEC, INNOVATE, or VALIDATE (Layer 2) approach hinges on an unverified runtime/library/external mechanism: run a probe from the 8-family taxonomy…
SkillBFreshness: BClaude Code +9 - 0.529score
ag-generate-context
ngxccc
Generate or update the project's authoritative repository context at process/context/all-context.md.
SkillBFreshness: BClaude Code +9 - 0.529score
ag-generate-plan
ngxccc
Create or update implementation plans in the repo's SIMPLE, COMPLEX, or PHASE PROGRAM format.
SkillBFreshness: BClaude Code +9 - 0.529score
ag-docs
ngxccc
Trigger keywords: docs, README, document codebase, ADR, architectural decision, decision record, design doc, architecture record, RFC, request for comments…
SkillBFreshness: BClaude Code +9 - 0.529score
ag-audit-plans
ngxccc
Audit active project plan files for staleness, completion, and routing truth.
SkillBFreshness: BClaude Code +9 - 0.529score
ag-brainstorming
ngxccc
Use when starting creative work, building components, or modifying behavior.
SkillBFreshness: BClaude Code +9 - 0.529score
ag-generate-spec
ngxccc
Create or update a product-discovery SPEC (requirements doc) for user review.
SkillBFreshness: BClaude Code +9 - 0.529score
ag-audit-context
ngxccc
Audit project context routing, shared-skill discoverability, and Claude/Codex wiring.
SkillBFreshness: BClaude Code +9 - 0.528score
ag-audit-ag
ngxccc
Use when auditing agent harness health, Claude/Codex agent parity, skill registry consistency, and protocol wiring.
SkillBFreshness: BClaude Code +9 - 0.526score
ag-generate-closeout
ngxccc
Generate the post-EXECUTE closeout packet for a plan or phase.
SkillBFreshness: BClaude Code +9 - 0.526score
ag-autoresearch
ngxccc
Loop: find gaps → fix → repeat until agents find no gaps or a metric goal is hit.
SkillBFreshness: BClaude Code +9 - 0.526score
ag-code-interrogation
ngxccc
Socratic Code Interrogation skill for conducting deep 5-Layer Cognitive Stack Q&A on AI-generated code, verifying developer mental models, and enforcing…
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 2, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/ngxccc/agent-skills-kit
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ngxccc
- 0.570score
git-flow
ngxccc
Shape branches, slice atomic commits, create pull requests via the 3-Tier PR Matrix, or create sub-issues.
SkillAFreshness: AClaude Code +9 - 0.544score
domain-modeling
ngxccc
Build and sharpen a project's domain model.
SkillAFreshness: AClaude Code +9 - 0.544score
diagnosing-bugs
ngxccc
Diagnosis loop for hard bugs and performance regressions.
SkillAFreshness: AClaude Code +9 - 0.544score
codebase-design
ngxccc
Shared vocabulary for designing deep modules.
SkillAFreshness: AClaude Code +9 - 0.544score
tdd
ngxccc
Test-driven development.
SkillAFreshness: AClaude Code +9 - 0.541score
improve-codebase-architecture
ngxccc
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
SkillAFreshness: AClaude Code +9
Cite this page
ag-debug skill. Agent Mart. https://agentmart.dev/skills/ngxccc-ag-debug (last updated 2026-10-24)