AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Ai Debt Detector

skill-adit-jain-srm-skill-forge-ai-debt-detector · by Adit-Jain-srm

>-

— No reviews yet
0 installs
40 views
0.0% view→install

Install

$ agentstack add skill-adit-jain-srm-skill-forge-ai-debt-detector

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • ✓ Prompt-injection patterns
  • ✓ Secret / credential exfiltration
  • ✓ Dangerous shell & filesystem operations
  • ✓ Untrusted network calls
  • ✓ Known-malicious package signatures

What it can access

  • ✓ Network access No
  • ✓ Filesystem access No
  • ✓ Shell / process execution No
  • ✓ Environment & secrets No
  • ✓ Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-adit-jain-srm-skill-forge-ai-debt-detector)

Reliability & compatibility

✓ Security review passed
0 installs to date
— no reviews yet
● 2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Ai Debt Detector? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Overview

AI agents generate code that passes the happy path but hides debt: missing error handling, orphaned resources, ignored failure modes, hallucinated packages, silent architectural drift. This skill forces a targeted audit for the exact patterns AI agents get wrong.

When to Use

  • After any AI code generation session (agent wrote 20+ lines)
  • Before merging AI-generated PRs
  • When code "works" but something feels off
  • After vibe-coding sprints — debt accumulates fastest here
  • When you find yourself saying "the agent said it's done"

Process

After ANY code generation, scan for these AI-specific debt patterns:

1. FAILURE MODES — What happens when this fails?
   - Network timeout? Disk full? Permission denied? Null input?
   - Is there a try/catch? Does it catch SPECIFIC errors or swallow everything?
   - Are resources cleaned up on failure? (streams closed, connections returned, temp files deleted)

2. ORPHANS — What gets created but never cleaned up?
   - Temp files, event listeners, intervals, subscriptions, connections
   - Are there corresponding cleanup/dispose/close calls for every open/create?
   - In React: does every addEventListener have a removeEventListener in cleanup?

3. EDGE CASES — What inputs break this?
   - Empty array/string? null/undefined? Very large input? Unicode? Concurrent calls?
   - Does the code assume the happy path? (hint: AI almost always does)

4. HALLUCINATED DEPS — Do all imports actually exist?
   - Is every package in package.json/requirements.txt?
   - Are API methods real? (AI invents plausible-sounding methods that don't exist)
   - Check: does this library's latest version still export this function?

5. ARCHITECTURAL DRIFT — Does this match the project's patterns?
   - Same error handling style as existing code?
   - Uses the project's established utilities (not reinventing)?
   - Follows the file structure convention?
   - Matches naming patterns (camelCase vs snake_case, etc.)

Red Flags (stop and fix IMMEDIATELY)

  • catch (e) {} or catch (e) { console.log(e) } — swallowed error
  • No finally block when resources were opened
  • // TODO: handle error — AI's way of punting
  • Import from a path that doesn't exist in the project
  • Timeout set but no abort/cleanup on timeout
  • Database connection opened but never released back to pool
  • File opened but no close in error path

Common Mistakes

  • Trusting that "it compiled" means "it works" (compilation checks syntax, not logic)
  • Reviewing only the diff without checking what the AI DIDN'T generate (missing error paths)
  • Assuming the AI used the right library version (it often uses deprecated APIs)
  • Skipping the orphan check because "garbage collection handles it" (it doesn't for connections, listeners, timers)

Rationalizations (countered)

| Excuse | Reality | |--------|---------| | "It works in testing" | Testing only covers happy path. Production has failures. | | "I'll add error handling later" | You won't. And you'll forget which parts need it. | | "The framework handles cleanup" | Does it? Which framework, which version, which method? Verify. | | "It's just a prototype" | Prototypes become production. Debt compounds from day one. | | "The AI generated it, it's probably fine" | AI generates 1.7x more issues than human code (CodeRabbit, 2026). |

Persistence

ACTIVE after every code generation session. Scan silently. Report only actual findings. Don't generate false positives — only flag patterns that genuinely indicate hidden debt.

Depth Levels

| Change Size | Audit Depth | |-------------|-------------| | "It works" is not "it's done." Agent code often passes the happy path and dies on edge cases you haven't thought of yet.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.