Debug

From adrielp/ai-engineering-harness · View interactive version

Debug is an AI agent skill from the GitHub repository adrielp/ai-engineering-harness. Debug issues during manual testing or implementation by examining logs, state, and git history using Gemini CLI tools.

How to use this skill

Skill file

Debug

You are tasked with helping debug issues during manual testing or implementation. This command allows you to investigate problems by examining logs, state, and git history without editing files.

Initial Response

When invoked WITH a context file:

I'll help debug issues with [file name]. Let me understand the current state.

What specific problem are you encountering?
- What were you trying to test/implement?
- What went wrong?
- Any error messages?

I'll investigate the logs, state, and git history to help figure out what's happening.

When invoked WITHOUT parameters:

I'll help debug your current issue.

Please describe what's going wrong:
- What are you working on?
- What specific problem occurred?
- When did it last work?

I can investigate logs, state, and recent changes to help identify the issue.

Process Steps

Step 1: Understand the Problem

  1. Read any provided context (plan or ticket file)
  2. Quick state check:

Step 2: Investigate the Issue

Perform parallel investigation tasks:

Find and analyze logs for errors

Return: Key errors/warnings with timestamps

Check the current application state

Return: Relevant state findings

Understand what changed recently

Return: Git state and any file issues

Step 3: Present Findings

## Debug Report

### What's Wrong
[Clear statement of the issue]

### Evidence Found

**From Logs**:
- [Error/warning with timestamp]

**From Application State**:
- [Finding from state]

**From Git/Files**:
- [Recent changes that might be related]

### Root Cause
[Most likely explanation]

### Next Steps

1. **Try This First**:
   ```bash
   [Specific command or action]
   ```

2. **If That Doesn't Work**:
   - [Alternative approach]

### Can't Access?
Some issues might be outside my reach:
- Browser console errors
- External service state
- System-level issues

Would you like me to investigate something specific further?

Important Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.