# diagnose

> Find evidence-backed causes of bugs and slowdowns, with tested fixes or a clear plan to verify the diagnosis.

diagnose is a free AI agent skill on Agensi by Ray Carter, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Ray Carter](https://www.agensi.io/creators/ray-carter)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Uses: 1
- Version: 1.0
- Last updated: 2026-10-05
- Security: scan passed (2026-10-05); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/diagnose
- Tags: testing, debugging, performance, root-cause-analysis

## About this skill

Hard-to-reproduce bugs and unexplained slowdowns can waste hours on fixes that miss the cause. Get an evidence-based diagnosis, with a tested fix when access permits or a clear verification plan when it does not.

### What it does

- **Investigates failures:** Examines available code, logs, traces, tests, and change history.
- **Separates facts from guesses:** Reports likely causes with confidence levels and supporting evidence.
- **Checks performance regressions:** Uses measurements and comparisons to narrow down what became slower.
- **Fixes and validates:** When authorized, tests changes against the reported failure and adds regression coverage where practical.
- **Supports read-only reviews:** Delivers findings and verification steps without changing the repository or running system.

### How it works

1. Describe the failure, expected behavior, and recent changes.
2. Share relevant code or evidence and specify whether changes are allowed.
3. Receive an investigation based on the available access and evidence.
4. Get either a validated fix or a diagnosis report explaining what still needs checking.

### Works with

Code repositories, application logs, HTTP services, browser captures, databases, and test tools such as Playwright or Puppeteer, depending on available access.

### Why use this skill

It helps avoid speculative patches by checking explanations against observable behavior. Validation covers the original failure, not just an isolated test that happens to pass.

### Use cases

- Investigate intermittent checkout errors.
- Trace an API slowdown after deployment.
- Assess a production incident without making changes.

### Known limitations

Verified fixes need a safe way to reproduce the failure and permission to make changes. Limited evidence may leave causes unconfirmed.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the diagnose skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What level of access does this skill need to my codebase?

Use relevant repository files, logs, or traces that you choose to provide. The skill has a read-only assessment mode; code changes and runtime access require your authorization.

### How does this differ from a standard code-generation agent?

Unlike general coding tools, this skill prioritizes evidence-based reasoning, providing confidence levels for each potential cause and ensuring fixes are validated against actual failure conditions.

### What happens if the agent identifies a bug but cannot safely apply a fix?

If the agent cannot safely reproduce the issue or lacks write permissions, it delivers a detailed diagnosis report with a step-by-step verification plan for your team to follow manually.

### Can this skill help with performance-related slowdowns, or is it just for functional bugs?

Yes, it is designed to work with performance data and browser captures to identify bottlenecks and regressions in both backend services and frontend applications.

### Which AI agents and environments are supported?

Designed for Codex. Other SKILL.md-compatible agents may use the workflow, but tool calls and available diagnostics depend on their environment.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
