debugging-patterns

debugging-patterns is a skill for Claude Code from thapaliyabikendra/ai-artifacts. It costs 63 tokens per session (1,538 once invoked), scanned A, original, Apache-2.0.

A structured guide for finding the causes of bugs in .NET, ABP Framework, and React applications. It covers gathering error details, narrowing the failing code, testing an explanation, and checking the fix.

In plain words
What is it for?
Use it to analyze stack traces, investigate N+1 database queries, diagnose authorization failures, fix async issues, and resolve React state bugs.
Why use it?
It replaces guesswork with a repeatable way to investigate errors, failed tests, slow database queries, asynchronous deadlocks, and state problems.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to analyze stack traces, investigate N+1 database queries, diagnose authorization…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thapaliyabikendra/ai-artifacts/debugging-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add thapaliyabikendra/ai-artifacts --skill debugging-patterns
Clone the repo
git clone --depth 1 https://github.com/thapaliyabikendra/ai-artifacts

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for debugging-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/thapaliyabikendra/ai-artifacts/debugging-patterns.svg)](https://agentmods.dev/skills/thapaliyabikendra/ai-artifacts/debugging-patterns)
Your own site
<a href="https://agentmods.dev/skills/thapaliyabikendra/ai-artifacts/debugging-patterns"><img src="https://agentmods.dev/badge/skills/thapaliyabikendra/ai-artifacts/debugging-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,538 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.01538
Opus 5 $0.00032 $0.00769
Sonnet 5 $0.00013 $0.00308
Haiku 4.5 $0.00006 $0.00154

Measured 3d ago against content hash ee6443a1f214, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

debugging-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/debugging-patterns/SKILL.md · 269 lines

How it starts

The opening of the file, as written. The whole thing — 269 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Debugging Patterns

Systematic debugging patterns for ABP Framework and React applications.

When to Use

  • Investigating bugs or test failures
  • Analyzing stack traces and error messages
  • Diagnosing database query issues (N+1, tracking conflicts)
  • Fixing async/await deadlocks
  • Resolving React state management bugs

Debugging Process

1. Capture Information

  • Error message and full stack trace
  • Reproduction steps (reliable vs intermittent)
  • Environment (dev/staging/prod)
  • Recent code changes

2. Isolate the Problem

  • Identify failing component (backend/frontend)
  • Narrow down to specific file/function
  • Check logs and network requests

3. Form Hypothesis

  • Match error pattern to known issues
  • Check similar past issues
  • Review recent commits

4. Verify and Fix

  • Test hypothesis with minimal change
  • Verify fix doesn't break other things
  • Add test to prevent regression

ABP Framework Issues

Authorization Failure

Error: Authorization failed for the request

Diagnosis Checklist:

  1. Is permission defined in {Project}Permissions.cs?
  2. Is permission granted to role in PermissionDefinitionProvider?
  3. Is [Authorize] attribute using correct permission constant?
// Check permission definition
public static class ClinicPermissions
{
    public static class Patients
    {
        public const string Default = "Clinic.Patients";
        public const string Create = "Clinic.Patients.Create"; // Missing?
    }
}

// Check attribute matches
[Authorize(ClinicPermissions.Patients.Create)]  // Not .Default
public async Task<PatientDto> CreateAsync(...)

Entity Not Found

Error: Entity of type Patient with id X was not found

Diagnosis:

// Debug: Verify entity exists
var exists = await _repository.AnyAsync(x => x.Id == id);
_logger.LogDebug("Patient {Id} exists: {Exists}", id, exists);

// Fix: Use FirstOrDefaultAsync for graceful handling
var patient = await _repository.FirstOrDefaultAsync(x => x.Id == id);
if (patient == null)
{
    throw new UserFriendlyException("Patient not found");
}

Read the full file on GitHub · 269 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 269 lines · 63 tokens per session scan A ee6443a1f214

Subscribe to this mod's changes

debugging-patterns is a skill published in the GitHub repository thapaliyabikendra/ai-artifacts (24 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 63 tokens to every session and 1,538 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

dump-collect

Configure and collect crash dumps for modern .NET applications. USE FOR: enabling automatic crash dumps for CoreCLR or NativeAOT, capturing dumps from running .NET processes, setting up dump collection in Docker or Kubernetes, using dotnet-dump collect or createdump. DO NOT USE FOR: analyzing or debugging dumps…

exceptionless/Exceptionless · 96 tokens

dotnet-trace-collect

Guide developers through capturing diagnostic artifacts to diagnose production .NET performance issues. Use when the user needs help choosing diagnostic tools, collecting performance data, or understanding tool trade-offs across different environments (Windows/Linux, .NET Framework/modern .NET…

exceptionless/Exceptionless · 59 tokens

graphics-api-hooking

Guide for graphics API interception, overlay rendering, and render-pipeline analysis across DirectX, OpenGL, and Vulkan. Use this skill when working with Present or SwapBuffers hooks, DXGI swap chains, shader or draw-call interception, screenshot-sensitive overlays, or graphics debugging in game security research.

gmh5225/awesome-game-security · 64 tokens

run-tests

Runs .NET tests with dotnet test. Use when user says "run tests", "execute tests", "dotnet test", "test filter", "tests not running", or needs to detect the test platform (VSTest or Microsoft.Testing.Platform), identify the test framework, apply test filters, or troubleshoot test execution failures. Covers MSTest…

exceptionless/Exceptionless · 114 tokens

upgrade-stripe

Guide for upgrading Stripe API versions and SDKs.

exceptionless/Exceptionless · 13 tokens

analyze-logs

Analyze application logs from the .evlog/logs/ directory. Use when debugging errors, investigating slow requests, understanding request patterns, or answering questions about application behavior. Reads structured NDJSON wide events written by evlog's file system drain.

HugoRCD/evlog · 53 tokens