Audit a vibe-coded project for the failure modes that make it collapse in production, score it 0-100, and drive fixes. Use when the user says "vibe code doctor", "is this vibe-coded project production-ready", "audit this AI-generated codebase", "why might this break", "harden my vibe-coded app", or inherits a codebase nobody fully understands. Complements react-doctor (React health/security) and deepsec (deep vuln scan) with the comprehension / integration / architecture / ops lens those miss.
Vibe-coded projects don't fail because the demo doesn't work — they fail because nobody can make sense of the code, it breaks at integration points, the architecture was never decided, and ops/security were skipped. This doctor scores those failure modes 0-100 and drives them to green. [Source: r/Anthropic "why vibe coded projects fail," 2026; doctor-pattern]
Follows the doctor-pattern: score on unique failing rules (a rule broken 200× costs the same as once → fix systemically), errors weigh 2× warnings, then a fix loop re-scores until 100. See wiki/concepts/doctor-pattern.md. This doctor is the umbrella audit — it delegates layer-specific work to react-doctor (React), deepsec (vulns), og-metadata-audit (OG), and the project's own doctor.ts where they exist, and adds the lens those miss.
score = 100 − 1.5 × (unique error rules failed) − 0.75 × (unique warn rules failed) # clamp ≥ 0Run all six categories; report a per-category and overall score, then fix loop.
"What defines vibe coding is not being able to make sense of the code." If the author can't explain a module, it's unmaintainable.
AGENTS.md/README explaining structure, dead/unreachable code, inconsistent patterns for the same job."Each module looks solid in isolation, breaks at integration points."
tsc/mypy) in the pipeline; no lint; no CI gate before merge.NEXT_PUBLIC_* secret, .env shipped to client); auth missing on a mutating route / server action; SQL built by string concat; dangerouslySetInnerHTML on user input; unvalidated input reaching a sink.stripe-webhook-hardening)..nvmrc); unpinned or supply-chain-risky deps."There are a lot of architectural decisions you have to make."
npx react-doctor@latest (+ React Security Doctor), deepsec, project doctor.ts. Fold their findings into categories 3–5.--min-score gate upward.## Vibe-Code Doctor — <project>
**Overall: XX / 100** · Comprehension X / Integration X / Verification X / Security X / Data&Ops X / Architecture X
### Will-break-first (squint test)
- [the 1-3 things that fail when this leaves the demo]
### Fix (by severity)
1. **[rule]** — ⚠️ Critical / ⚡ Important / 💡 Polish · Current → Why it fails in prod → Concrete fix
### Quick wins (if you have 30 min)
- [ ] highest-impact fixesreact-doctor/deepsec already own — cite and delegate.