askill
context-aware-debugging

context-aware-debuggingSafety 95Repository

Accelerate debugging by providing diagnostic context that enables agent reasoning through problem spaces. Use when encountering errors, unexpected behavior, or when standard debugging produces circular results.

6 stars
1.2k downloads
Updated 2/18/2026

Package Files

Loading files...
SKILL.md

Context-Aware Debugging Loops

Core Principle

Errors are symptoms. Context reveals causes. Feed the agent what it needs to reason, not just react.

The Diagnostic Triad

Every debug prompt needs three elements:

  1. What happened (error/symptom)
  2. What should have happened (intended behavior)
  3. What changed (recent modifications, if known)

Context Surfacing Patterns

Minimal Context (Quick Fixes)

"Error: Cannot read property 'map' of undefined in UserList.jsx line 42. 
Expected: render array of users from API. 
The API returns { data: { users: [...] } }"

Full Context (Complex Bugs)

"Authentication flow breaks after login redirect.
- Error: 401 on /api/profile after successful /api/login
- Expected: JWT in cookie should authorize subsequent requests
- Recent change: Added sameSite cookie attribute
- Relevant files: auth.middleware.js, login.controller.js
- Browser: Cookie IS being set (verified in DevTools)"

Diagnostic Questions to Answer First

Before prompting the agent:

  • Can I reproduce it consistently?
  • What's the smallest input that triggers it?
  • What was the last working state?
  • What assumptions am I making about the data?

Anti-Patterns

WeakStrong
"It doesn't work""Returns null instead of user object when..."
"Fix this error" + stack traceStack trace + expected behavior + recent changes
"Why is this broken?""This breaks when X but works when Y"

Power Move

When stuck in a loop: "Explain three different hypotheses for why this could fail, then tell me what evidence would confirm or eliminate each."

The agent becomes a reasoning partner, not just a fix-generator.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

78/100Analyzed 2/25/2026

Solid skill providing structured debugging methodology. Well-organized with clear examples, diagnostic patterns, and anti-patterns table. Covers when to use via description. Located in dedicated skills folder which indicates reusability focus. Slightly higher-level prompting guide rather than step-by-step instructions, but provides actionable frameworks. Tags enhance discoverability.

95
85
75
70
82

Metadata

Licenseunknown
Version-
Updated2/18/2026
Publisherpingwu

Tags

apipromptingsecurity