# prod-bug-hunter

> Systematic runtime bug detection and automated patching for Firebase, Next.js, and Vercel stacks.

prod-bug-hunter is a free AI agent skill on Agensi by Shippers, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Shippers](https://www.agensi.io/creators/mrmanhattan)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Rating: 4.0 out of 5 from 1 review
- Uses: 23
- Version: 1.0
- Last updated: 2026-04-10
- Security: scan passed (2026-04-10); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/production-bug-hunter
- Tags: testing, debugging, firebase, race-conditions

## About this skill

### Stop Production Fires Before They Start

The Production Bug Hunter is a specialized diagnostic skill designed to bridge the gap between "tests pass" and "production works." It targets the complex runtime failures—race conditions, stale states, and listener leaks—that static analysis and unit tests often miss in high-load environments.

### What it does

This skill performs a priority-ordered sweep of your repository to identify and fix critical infrastructure bugs tailored to the **Firebase, Next.js, and Vercel** stack. It specifically hunts for:

- **P0 Auth Race Conditions:** Detects simultaneous Firebase initialization and unguarded auth state access.

- **P1 Stale State Drift:** Identifies UI/database desyncs and missing optimistic update rollbacks.

- **P2 Listener Leaks:** Finds uncleaned `onSnapshot` subscriptions that cause memory bloat and stale data.

- **P3 Environment Mismatches:** Cross-references source code with CI/CD YAML files to catch missing secrets and version drifts.

### Why use this skill?

Unlike general-purpose coding assistants, this skill employs a systematic "hunter-killer" methodology. It doesn't just look for clean code; it looks for architectural patterns that break under real-world stress. For a developer, it's like having a senior SRE perform a deep-dive audit of your app's reactivity and auth patterns in seconds, providing ready-to-apply patches for every vulnerability found.

## Known limitations

- Requires manual verification of file paths.
- Cannot trigger live deployment tasks.
- Limited to scanning 50k tokens per sweep.

## 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 prod-bug-hunter 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 specific types of bugs does prod-bug-hunter find that standard linters miss?

This skill identifies and patches complex runtime issues specific to the Firebase/Next.js stack, such as auth race conditions, memory leaks from uncleaned Firebase listeners, and environment variable mismatches that unit tests often miss.

### Which frameworks and platforms are supported by this skill?

This skill is optimized for environments using Next.js (Pages or App Router), Firebase (Firestore, Auth, Functions), and Vercel hosting, ensuring it understands the specific lifecycle hooks and deployment configurations of this stack.

### How do I trigger a bug hunt in my project?

Once added to your AI agent, simply provide the path to your repository or specific directory; the skill will perform a systematic sweep and generate a list of identified vulnerabilities along with ready-to-merge patches.

### Does the skill automatically push changes to my production branch?

No, this skill is designed for non-destructive analysis; it identifies vulnerabilities and provides suggested code patches that you can review and approve before they are applied to your codebase.

### What is included with my purchase and are updates covered?

Your purchase includes the full investigative logic for the current version, along with free lifetime updates to include new detection patterns as Firebase and Next.js APIs evolve.

### Can it detect issues related to my Vercel environment variables?

Yes, the skill cross-references your source code against CI/CD configuration files (like GitHub Actions or Vercel YAMLs) to ensure your cloud environments have the necessary secrets and matching versions for your code to run.

---

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.
