# Project Doctor: Debug Why Your App Won't Start

> Your project won't start and the error tells you nothing. Project Doctor debugs it deterministically — runtime versions, missing dependencies, .env gaps, port conflicts, stale builds — verdict BLOCKED, DEGRADED or HEALTHY, every blocker with its exact fix command. Secret values never printed.

Project Doctor: Debug Why Your App Won't Start is a free AI agent skill on Agensi by Mas Boy, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Mas Boy](https://www.agensi.io/creators/masboyalexandria)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Version: 1.0
- Last updated: 2026-12-02
- Security: scan passed (2026-12-01); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/project-doctor-debug-why-your-app-won-t-start
- Tags: python, debugging, env, troubleshoot, project-setup, devtools, nodejs

## About this skill

Your project won't start and the error tells you nothing. Project Doctor checks runtime versions, missing dependencies, .env gaps, port conflicts and stale builds — every blocker with its exact fix command. Secret values are never printed.

### How it works

Project Doctor runs a deterministic health check on your project and reports exactly what is stopping it from starting:

- **Runtime vs engines pins:** compares your active Node.js or Python version against the `engines` / `requires-python` pins in your project metadata.
- **Dependency install check:** verifies that declared dependencies are actually installed and that a lockfile is present for reproducible installs.
- **.env key-name parity:** compares key names only between `.env` and `.env.example` — names only, never values. Secret values are never read or printed.
- **Port conflicts:** checks whether the ports your project needs are already taken.
- **Stale build artifacts:** checks for missing or stale build output such as `.next`, `dist`, or `build`.
- **Git hygiene:** flags a dirty working tree and sensitive files tracked by git.

The verdict is 🔴 BLOCKED, 🟡 DEGRADED, or 🟢 HEALTHY — and every blocker ships its exact fix command, so you run one command instead of guessing.

### Proof

Proof — run on real projects, 2 Dec 2026. PredArena, a real Next.js + Solana app: 🔴 BLOCKED, 1 blocker, 4 pass. The blocker: .env missing while .env.example declares 2 variables (PREDARENA_BUILDER_SECRET, NEXT_PUBLIC_SOLANA_RPC_URL). Fix printed: cp .env.example .env. Passes: pnpm lockfile present, all 16 declared dependencies installed, .next build output present, clean git tree. Token Launch Radar scripts: 🟡 DEGRADED — Node v24.22.1 satisfies engines >=22.18, build output present, but no lockfile, so installs are not reproducible. Every verdict ships its fix command; secret values are never read or printed — .env checks compare key names only.

Project Doctor gets your app running; Review Lite (free) checks the code that runs — secrets, silent catches, oversized files — in 60 seconds, and Code Review Pro gives the full severity-ranked review before you merge. Start with the doctor, ship with the review.

## Requires

- Python

## Known limitations

Verifies env key existence, not value validity. Limited to localhost port probing. Does not debug application logic. Exotic version ranges may be reported as unproven.

## 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 Project Doctor: Debug Why Your App Won't Start 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

### How does this skill help me fix a project that refuses to start?

This skill performs a systematic health check on projects that fail to start, diagnosing issues like runtime version mismatches, missing dependencies, port conflicts, and environment variable gaps. Unlike generic prompts, it uses deterministic logic to provide the exact shell commands needed to resolve every identified blocker.

### What files or software do I need to have ready for this skill to work?

To use this skill, your project must be based on Node.js (version 22 or higher) or Python. Your AI agent will use the project manifest files, such as package.json or pyproject.toml, and any environment templates like .env.example to conduct its audit.

### What kind of output will I receive after a diagnostic run?

You will receive a categorized status verdict of BLOCKED, DEGRADED, or HEALTHY, followed by a list of specific issues. For every blocker found, the skill provides a precise fix command you can run immediately to clear the path for your project to boot.

### Are there specific technical issues that this skill cannot detect?

The skill verifies that environment keys exist but it cannot validate if the values within them, such as API keys, are actually correct. Additionally, its port probing is limited to localhost and will not detect remote networking issues like VPC or IAM configuration errors.

### Is it safe to use this skill with my private environment variables and secrets?

This skill is built with security hygiene in mind and never reads or prints the actual secret values contained in your .env files. It only compares the key names against your example templates to ensure nothing is missing and checks if sensitive files have been accidentally tracked by Git.

### How should I ask my AI agent to perform a diagnosis using this skill?

Simply point your AI agent to your project directory and ask it to run a health check to find out why the project won't start. You can specifically request it to check for missing dependencies, environment parity, or port conflicts to get a detailed diagnostic report.

---

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.
