# Verify Build Works

> Smoke-test that the project still builds, the dev server starts, and the main user flow loads after a change. Run after every non-trivial edit, after a rollback, before a commit, and before pushing to remote.

- **Type:** Skill
- **Install:** `agentstack add skill-lglucas-ai-dev-operating-system-verify-build-works`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [lglucas](https://agentstack.voostack.com/s/lglucas)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [lglucas](https://github.com/lglucas)
- **Source:** https://github.com/lglucas/ai-dev-operating-system/tree/main/.claude/skills/verify-build-works
- **Website:** https://github.com/lglucas/ai-dev-operating-system

## Install

```sh
agentstack add skill-lglucas-ai-dev-operating-system-verify-build-works
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Verify Build Works

## When to run this skill

- After applying a fix from `bug-triage-agent`.
- After a `rollback-safe` operation.
- Before any commit larger than a single docs change.
- Before pushing to remote.
- Before opening a PR.
- Before tagging a release.

## Verification ladder (run all that apply, in order)

### Step 1 — Static checks (cheap, fast)

```bash
npm run typecheck
npm run lint
```

Stop and report at first failure. Don't continue if static layer is broken.

### Step 2 — Build

```bash
npm run build
```

If build fails, hand off to `bug-triage-agent`.

### Step 3 — Dev server starts

```bash
npm run dev
```

Confirm: process alive after 15s, HTTP 200 on `http://localhost:/`, no fatal stderr.

### Step 4 — Smoke test the golden path

For UI: load homepage + most critical authenticated page.
For API: hit `GET /health` (or main endpoint) → 2xx.

```bash
npm run test:smoke   # if exists
```

### Step 5 — Visual sanity (UI only)

- Open the affected page in a real browser.
- Confirm change is visible and not regressed.
- Confirm at least one adjacent feature didn't break.

## Output format

```
🧪 verify-build-works

Step 1 — Static checks:    ✅ typecheck OK, lint OK
Step 2 — Build:            ✅ build succeeded in 14s
Step 3 — Dev server:       ✅ ready on :3000, GET / → 200
Step 4 — Smoke tests:      ⚠️  no test:smoke script — skipped
Step 5 — Visual sanity:    ✅ home renders, login renders

Verdict: SAFE TO COMMIT.
```

If any step fails:

```
🧪 verify-build-works — ❌ FAIL at Step 2 (build)

Erro principal: src/features/auth/sign-in.ts(23,7): TS2322 ...

Próximo passo: invoco o bug-triage-agent.
```

## Tone for the vibe coder

> Antes de avisar que terminou, eu sempre testo. Se algo está quebrado, eu falo agora — não na frente do primeiro usuário.

## Do NOT

- Don't claim success without running the steps.
- Don't suppress errors with `|| true`.
- Don't skip step 3 because "build passed".
- Don't run destructive commands (DB migrations, file deletions) as part of verification.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [lglucas](https://github.com/lglucas)
- **Source:** [lglucas/ai-dev-operating-system](https://github.com/lglucas/ai-dev-operating-system)
- **License:** MIT
- **Homepage:** https://github.com/lglucas/ai-dev-operating-system

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-lglucas-ai-dev-operating-system-verify-build-works
- Seller: https://agentstack.voostack.com/s/lglucas
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
