BlitzHash Architecture Review is designed to help applications built with AI tools (such as Lovable, Bolt, Replit, v0, Cursor, Claude Code) obtain a preliminary architecture assessment similar to that of a senior engineer before facing real users, payments, or investors.
Purpose
The tool scans a project with a single command, maps the tech stack and data flows, and generates a plain-English report that includes: a scorecard, what is done right, what is risky (security, scalability, cost, backups, testing), and prioritized fix recommendations. The report uses plain language, avoids jargon, and provides, for each issue, a prompt that can be pasted directly into an AI tool.
Key Capabilities
- Tech stack identification: Supports Next.js (App Router and Pages), React + Vite, Remix, SvelteKit, Nuxt, Astro, Expo, Express, Fastify, Hono, NestJS, Supabase, Firebase, Prisma, Drizzle, MongoDB, Stripe, Lemon Squeezy, Paddle, OpenAI, Anthropic, Gemini, Vercel AI SDK, Vercel, Netlify, Cloudflare, Docker, Railway, Render, Fly.io, and more.
- Heuristic checks: Locates relevant files for confirmation by the user or an AI tool.
- Read-only safety: Only reads files; does not modify code, does not run code, and does not access the network; only when specified
--outdoes it write the report file. - Secret protection: Parses
.envfiles only to obtain variable names and discards values; when secrets are found in code, it reports only the type and location (such asapp/api/checkout/route.ts:3 (Stripe secret key)), output is redacted, and the CLI refuses to write reports that still match secret patterns. - Test assurance: Test cases run the full review on a mock application and assert that fake secret values do not appear in terminal, Markdown, or JSON output.
- AI agent integration: Includes an architecture review skill that lets an AI agent run the scan, check findings in the code, ask three questions the code cannot answer (Is it live? Have backups been restored? Is there a spending cap?), explain the results in plain language, and fix items one by one after the user agrees. Read-only by default, and printing secret values is prohibited.
- GitHub Action: Provides an example workflow that can run on every pull request, upload the report, and fail when the score is below a set value.
Usage
- Quick start: Requires Node 18.17+, no account, API key, or network calls (except the npx download). Run
npx -y github:blitzhash360-web/blitzhash-architecture-review demoto demo on a mock Next.js + Supabase + Stripe + OpenAI application that contains preset issues and fake secrets. See the full report atexamples/sample-report.md. - Using in an AI agent: Paste the provided prompt; suitable for agents such as Cursor, Claude Code, Codex, Copilot, and Windsurf that read
AGENTS.md.AGENTS.mdcontains the full steps, definition of done, and rollback steps. Then ask the agent to "review this app's architecture". - CI integration: Use
examples/github-action/arch-review.ymlRun on pull requests.
When to use
Suitable for developers building apps with AI tools, preparing for real users or payments, or needing a preliminary architecture check before presenting to investors. Also suitable for teams that want to incorporate architecture review into their CI process.
Limitations
- Static scanning only reads code and cannot log in, call APIs, or open dashboards. Therefore, before production, senior engineers will also perform: restoring real backups and timing them, load testing registration/checkout/heavy pages in a staging environment, reviewing settings that exist only in dashboards (Supabase auth, storage buckets, DNS, Cloudflare and firewall rules), checking actual cloud and AI bills, plans and spending caps, walking through business logic (pricing, roles, refunds, edge cases), and scanning dependencies and git history for known vulnerabilities and old secrets.
- Checks are heuristic and require confirmation by the user or AI tool.
- Reports are in English.
- Does not cover dynamic content such as dashboard settings, actual bills, or business logic.
Other information
This tool is an original work by BlitzHash, MIT licensed, contains no third-party code, and has zero dependencies. The skill follows the Agent Skills SKILL.md format; installation targets follow the public documentation for Claude Code skills, Cursor rules, and AGENTS.md. Diagrams use Mermaid, rendered natively by GitHub. Not affiliated with any tool or service mentioned in the text. The idea for founder-friendly architecture diagrams was inspired by cathrynlavery/diagram-design (MIT), but this repository does not contain that project's code. BlitzHash offers paid architecture review services, available at https://blitzhash.com to get a free assessment. Related tools include blitzhash-launch-ready-check, supabase-rls-check, blitzhash-cloud-cost-cutter, blitzhash-context-handoff, blitzhash-arch-diagrams (coming soon).