Awesome-omni-skill build-and-test
Build, test, lint, and validate the Phoenix Agentic Website Frontend. Use when user asks to build, compile, test, lint, run checks, fix test failures, or validate changes in the Website Frontend repo.
install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/development/build-and-test" ~/.claude/skills/diegosouzapw-awesome-omni-skill-build-and-test && rm -rf "$T"
manifest:
skills/development/build-and-test/SKILL.mdsource content
Build & Test — Phoenix Agentic Website Frontend (Next.js)
Mandatory first step: terminal scope check
Before build/test commands, verify terminal scope:
Set-Location "C:\Users\rivie\vsCodeProjects\Phoenix-Agentic-Website-Frontend"Get-Locationgit rev-parse --show-toplevelgit branch --show-current
If scope is wrong, open a fresh Website Frontend-scoped terminal and retry.
Repo Identity
This is the public website frontend. Next.js app with TypeScript, React, and Tailwind CSS.
Quick Commands
| Task label | Command | Purpose |
|---|---|---|
| | Install dependencies |
| | Start dev server |
| | Run ESLint |
| | Run tsc --noEmit |
| | Run vitest |
| | Production build |
| lint + typecheck + test + build | Full validation |
| Remove .next, coverage, dist | Clean artifacts |
Using VS Code Tasks
Prefer using
run_task or create_and_run_task to execute these tasks. Task IDs:
shell: website: dev: setupshell: website: dev: runshell: website: dev: lintshell: website: dev: typecheckshell: website: dev: testshell: website: dev: buildshell: website: dev: checkshell: website: dev: clean
Manual Commands (if needed)
# Install npm install # Lint npm run lint # Typecheck npm run typecheck # Test npm run test # Build npm run build
Validation checklist
- Lint passes —
npm run lint - Typecheck passes —
npm run typecheck - Tests pass —
npm run test - Build succeeds —
npm run build - Full check —
npm run lint; npm run typecheck; npm run test; npm run build
Testing rules
- Tests must be deterministic — no network calls, no randomness without seed control
- Use vitest for all tests
- Always run full check before considering work complete
Common issues
| Error | Fix |
|---|---|
failure | Delete and , run |
| ESLint errors | Run and fix violations |
| TypeScript errors | Run locally |
| Next.js build failure | Check for SSR-incompatible imports |
| Test failure | Run locally, check assertions |