# Verify Build

> Runs npm run build to catch Vite/Rollup failures before merge. Use when validating frontend changes or in CI pre-merge loops.

- Skill: `heyeddi-com/verify-build-2` (Agent Skill, multi-file: 7 files)
- Install (CLI): `npx skillmds@latest add heyeddi-com/verify-build-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/heyeddi-com/verify-build-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: HeyEddi-com (https://skillmd.com/u/heyeddi-com)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/heyeddi-com/verify-build-2

---


# Verify Build

## When to use

- Before opening or approving a PR with frontend changes
- After refactoring imports, routes, or Vite config
- When static generation or bundle errors are suspected

## Instructions

1. Ensure dependencies are installed (`npm ci` or `npm install`).
2. Run `bash scripts/verify_build.sh --project-root <root>`.
3. If build fails, read the Rollup/Vite stack trace and fix imports or types.
4. Re-run until output shows success.

## Scripts

- `verify_build.sh` — executes `npm run build` and returns combined output

