Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills Aโ€“Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Auto Debug

ASecurity

--- name: auto-debug description: Automatically detect bugs from terminal output and suggest/apply fixes without manual intervention ---

33 stars
0 votes
2 copies
3 views
Added 2/10/2026
developmentjavascripttypescriptpythonjavabashtestingdebuggingdatabase

Works with

terminal

Security Analysis

A96/100
mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned 2/12/2026

$npx -y skills add lovedragonball/power-ranger-toolkit --skill auto-debug --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Auto Debug?

Add the live security badge to your README โ€” it updates automatically with every re-scan.

Security grade badge for Auto Debug
[![Security: A โ€” Skills Directory](https://www.skillsdirectory.com/api/skills/lovedragonball-auto-debug/badge)](https://www.skillsdirectory.com/skills/lovedragonball-auto-debug)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
# ๐Ÿ› Auto Debug Skill

---
name: auto-debug
description: Automatically detect bugs from terminal output and suggest/apply fixes without manual intervention
---

## ๐ŸŽฏ Purpose

เธ•เธฃเธงเธˆเธˆเธฑเธš errors เธˆเธฒเธ terminal output เธญเธฑเธ•เน‚เธ™เธกเธฑเธ•เธด เนเธฅเธฐเนเธ™เธฐเธ™เธณเธซเธฃเธทเธญเนเธเน‰เน„เธ‚เธ›เธฑเธเธซเธฒเธ—เธฑเธ™เธ—เธต เธฅเธ”เน€เธงเธฅเธฒ debug เธฅเธ‡เธญเธขเนˆเธฒเธ‡เธกเธฒเธ

## ๐Ÿ“‹ When to Use

- เน€เธกเธทเนˆเธญ terminal เนเธชเธ”เธ‡ error messages
- เน€เธกเธทเนˆเธญ build/compile fail
- เน€เธกเธทเนˆเธญ tests fail
- เน€เธกเธทเนˆเธญ runtime errors occur
- เน€เธกเธทเนˆเธญ linting errors เน€เธเธดเธ”เธ‚เธถเน‰เธ™

## ๐Ÿ”ง Capabilities

### 1. Error Detection
| Error Type | Detection Pattern |
|------------|-------------------|
| TypeScript | `TS\d+:`, `Type error:` |
| ESLint | `error:`, `warning:` |
| Runtime | `Error:`, `Exception:` |
| Build | `ENOENT`, `Cannot find module` |
| Test | `FAIL`, `Expected.*but received` |

### 2. Common Error Fixes

#### TypeScript Errors
```typescript
// TS2322: Type 'string' is not assignable to type 'number'
// Fix: Change variable type or value

// TS2339: Property does not exist
// Fix: Add property to interface or use optional chaining

// TS7006: Parameter implicitly has 'any' type
// Fix: Add explicit type annotation
```

#### Module Errors
```bash
# Cannot find module 'xyz'
# Fix 1: npm install xyz
# Fix 2: Check import path spelling
# Fix 3: Add to tsconfig paths

# Module not found: Can't resolve './component'
# Fix: Check file exists, check extension, check case sensitivity
```

#### Runtime Errors
```javascript
// TypeError: Cannot read property 'x' of undefined
// Fix: Add null check or optional chaining

// ReferenceError: variable is not defined
// Fix: Declare variable or check scope

// SyntaxError: Unexpected token
// Fix: Check JSON format, missing brackets
```

## ๐Ÿ“ Auto-Debug Process

```
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Error Occurs   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚
         โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Parse Error Msg โ”‚ โ† Extract error type, location, message
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚
         โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Identify Cause  โ”‚ โ† Match patterns, analyze context
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚
         โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Generate Fix    โ”‚ โ† Create solution based on error type
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚
         โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Apply & Verify  โ”‚ โ† Apply fix, re-run to verify
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚
         โ–ผ
   Fixed? โ”€โ”€โ”€โ”€Noโ”€โ”€โ”€โ”€โ–ถ Try alternative fix
         โ”‚
        Yes
         โ”‚
         โ–ผ
      Done! โœ…
```

## ๐Ÿ”„ Auto-Fix Loop

```python
MAX_ATTEMPTS = 5
attempt = 0

while error_exists and attempt < MAX_ATTEMPTS:
    error = parse_error(terminal_output)
    fix = generate_fix(error)
    apply_fix(fix)
    result = run_command_again()
    
    if result.success:
        log_solution(error, fix)  # Save for future
        break
    else:
        attempt += 1
        try_alternative_fix()
```

## ๐Ÿ“š Error Pattern Database

### Build Errors
| Pattern | Cause | Auto-Fix |
|---------|-------|----------|
| `ENOENT` | File not found | Check path, create file |
| `EACCES` | Permission denied | Check permissions |
| `EADDRINUSE` | Port in use | Kill process or change port |

### Dependency Errors
| Pattern | Cause | Auto-Fix |
|---------|-------|----------|
| `peer dep` | Version mismatch | Update package |
| `ERESOLVE` | Conflict | Use --legacy-peer-deps |
| `not found` | Missing package | npm install |

### Syntax Errors
| Pattern | Cause | Auto-Fix |
|---------|-------|----------|
| `Unexpected token` | Typo, missing bracket | Add missing syntax |
| `Unterminated string` | Missing quote | Add closing quote |
| `Invalid JSON` | Malformed JSON | Fix JSON syntax |

## โœ… Self-Check

- [ ] Error correctly identified
- [ ] Root cause understood
- [ ] Fix is safe (won't break other code)
- [ ] Fix verified by re-running
- [ ] Solution logged for future reference

## ๐Ÿ“ข Announcement Format

```
[๐Ÿ› Auto-Debug] Detected: {error type}
[๐Ÿ› Auto-Debug] Cause: {root cause}
[๐Ÿ› Auto-Debug] Fixing: {applying fix}
[๐Ÿ› Auto-Debug] โœ… Fixed: {summary}
```

## ๐Ÿ”— Related Skills

- `debugging` - Manual debugging
- `error-recovery` - Graceful error handling
- `testing` - Prevent errors with tests

Attribution

lovedragonballlovedragonball
View sourceSee grades on GitHubMore from lovedragonball โ†’
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Clean Code

Pragmatic coding standards - concise, direct, no over-engineering, no unnecessary comments

304955 votes

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

286712 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2222 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Writing Plans

Use when you have a spec or requirements for a multi-step task, before touching code

2927051 votes
View all in development โ†’