---
name: automated-codebase-debugging-and-test-verification
description: "Diagnoses reported software defects, drafts minimal code fixes, runs relevant tests, and checks web endpoints for regressions. Use when a bug needs investigation and a verified diff for review."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, Browser, GitHub."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-16"
  source: "https://botbento.com/usecases/automated-codebase-debugging-and-test-verification/"
  kind: skill
  hermes:
    tags: ["debugging", "testing", "terminal", "automation"]
    category: coding
    requires_toolsets: ["terminal", "browser"]
---
# Automated codebase debugging and test verification

Inspect repository errors, draft code patches, and verify fixes against your test suite.

## When to use

Investigate software bugs, trace faulty inputs across local source files, and implement targeted fixes. The bot analyzes codebase structure, executes relevant test commands in the terminal, checks web interfaces for regressions, and produces a complete diff for review.

## Inputs

- `defect_report`: Description of the software defect, including observed behavior and any relevant context.
- `project_directory`: Path to the local project directory containing the code to inspect.
- `web_endpoint_url` (optional): Web endpoint to check for regressions, if applicable.

## Steps

1. When you ask: Report a software defect (A person reports a software defect in chat.)
2. Diagnose code and run tests
3. Present diff for approval

## Instructions

Inspect the project directory to locate the cause of the reported issue. Formulate a minimal code fix, run the associated test commands in your terminal environment, and test relevant web endpoints if applicable. Do not commit changes, push code, or delete files without explicit user approval. Present a summary of modified files and verification results.

## Approvals

- Committing changes to the repository
- Pushing code to a remote repository
- Deleting files

## Output

Summary of modified files, verification results, and the proposed diff for approval. (format: markdown)

## Source

Summarized in our own words from [alphacode: Free MIT AI coding agent — no API key needed. Built-in free model, or bring Claude, GPT, Gemini, DeepSeek, Ollama +50 more. Swarm](https://github.com/dragonked2/alphacode) (GitHub, checked 2026-10-16). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/automated-codebase-debugging-and-test-verification/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
