Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Frontend Check?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/kuhlman-labs-frontend-check)
---
name: frontend-check
description: Run the Fishhawk frontend CI checks. Use before pushing frontend changes, or when asked to format, lint, test or build the UI.
---
# Check the Web UI before pushing
CI runs `pnpm format:check` as its own gate. `lint` and `typecheck` do **not** catch formatting, so a change that passes those can still fail CI on prettier.
The repository helper `scripts/check-frontend` runs the installation and all five checks below. `scripts/verify-change` selects it for frontend inputs before the Go gate. Container prerequisites and exit 75 are documented in `scripts/README.md` § "Workflow verification".
## 1. Use the locked dependencies
```sh
cd frontend && pnpm install --frozen-lockfile --ignore-scripts
```
A stale local `node_modules` can carry a different prettier/eslint version than the lockfile. For example, local prettier 3.8 vs locked 3.9 produces opposite formatting verdicts. Reinstall before trusting, or overruling, a format result.
## 2. Run the checks (in `frontend/`)
| Check | Command |
|---|---|
| Format (CI gate) | `pnpm format:check`, and fix with `pnpm format` |
| Lint | `pnpm lint` |
| Types | `pnpm typecheck` |
| Tests | `pnpm test` (vitest run, jsdom at `https://localhost/` so `__Host-` cookies behave) |
| Build | `pnpm build` |
Run them in that order; format first is cheapest. After `pnpm format`, re-run `git diff --stat` so the formatting changes are committed together with the real ones.
## 3. Known traps
- **Inside a run worktree** (`.git/fishhawk-worktrees/run-*`), vitest can fail with a misleading `Cannot find module '/src/test-setup.ts'`. That's Vite's `**/.git/**` fs-deny rule, handled by `frontend/vite-fs-deny.ts`. Don't "fix" it by making `setupFiles` absolute.
- **Dev server:** `make dev-frontend` (`:5173`, proxies `/v0` to fishhawkd on `:8080`). It needs the stack up; see the `deploy-local` skill.
## Report
Pass/fail per check, with the first error verbatim, plus any files `pnpm format` rewrote.