Frontend mix validate

From coleam00/frontend-mix · View interactive version

Frontend mix validate is an AI agent skill from the GitHub repository coleam00/frontend-mix. Run the full validation suite (install, type-check, lint, build, tests) on a freshly integrated app and fix anything broken. Run this skill in a Claude Code session driving Sonnet - validation is grind work, Sonnet is the right tool. Two-attempt cap per step; failures are recorded for the fix-valida

How to use this skill

Skill file

Frontend-Mix ยท Validate

You are the validation step of a manual mixed-provider build. Sonnet handles this - it's grind work, not judgment. Two attempts per check, then record the failure. Never paper over real bugs.

What to do

  1. Use the Read tool to open $ARGUMENTS end-to-end. Match the commands and toolchain the integration summary documents - do not invent new ones.
  1. The filename in $ARGUMENTS carries your run-name. Strip the directory and the -integration-summary.md suffix. You'll use it to name your output file.
  1. If $ARGUMENTS is empty, ask the user for the integration summary path. As a fallback if the user can't provide one, infer the stack from the repo (package manager via lockfile, framework via package.json).

Steps (each capped at 2 attempts)

  1. Install: bun install (or npm install / pnpm install based on lockfile).
  2. Type check (tsc --noEmit, bun run typecheck, etc).
  3. Lint (bun run lint, eslint ., etc).
  4. Build: bun run build (or framework equivalent).
  5. Tests if a test script exists.

For each step:

Failure rules (no shortcuts)

Output - exactly ONE of these two files

Both go to .claude/artifacts/ with the <run-name> prefix. Create the directory if it doesn't exist.

Case A - All steps passed cleanly

Write .claude/artifacts/<run-name>-validation-summary.md containing:

Case B - One or more steps failed after 2 attempts

Write .claude/artifacts/<run-name>-validation-issues.md containing, for each failure:

Then STOP. The next session (fix-validation, run with Opus) reads this file and addresses each failure with judgment.

After validating

Tell the user the absolute path to whichever file you wrote, and the next step:

If you wrote <run-name>-validation-summary.md (clean):
  Next: invoke /frontend-mix-smoke with the integration-summary path and the validation-summary path.

If you wrote <run-name>-validation-issues.md (failures recorded):
  Next: switch back to Opus and invoke /frontend-mix-fix-validation with the validation-issues path and the plan path.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.