Step-by-step rules for web (Next.js) and mobile (Expo) frontend tasks. Build from the designs and the contract. Do not wait for the backend and do not mock it. Used by frontend-engineer only.
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 Impl?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sayeed1999-frontend-impl)
---
name: frontend-impl
description: Step-by-step rules for web (Next.js) and mobile (Expo) frontend tasks. Build from the designs and the contract. Do not wait for the backend and do not mock it. Used by frontend-engineer only.
---
# frontend-impl
Examples use the default stack (Next.js for `web/`, Expo for `mobile/`). If `docs/architecture.md` names another stack, use its folders and commands and keep the same rules.
## Steps
### 1. Read
- Read `docs/tasks/T-NN.md`. It names everything else you read.
- Read `docs/architecture.md`: layout, commands, auth storage.
- Read the screen files under `design/` that the spec names.
- Read the endpoints the spec names in `contracts/api.md`, if the contract exists.
### 2. Plan the files
- Task title has `Foundation`: build `lib/config.ts`, `lib/logger.ts`, `lib/api/` client, and `lib/auth/`.
- One route per design screen. Web: `src/app/<route>/page.tsx`. Mobile: `app/<route>.tsx`.
### 3. Build
- API client: one place for the base URL, the auth header, and error parsing into the contract error format.
- `lib/api/types.ts` mirrors the contract request and response shapes exactly.
- One client function per contract endpoint, named after it.
- Match the design layout. Every screen with data handles loading, empty, and error states.
- Style web screens with Tailwind CSS utility classes. Style Expo screens with NativeWind utility classes.
- Store tokens where the architecture says. Mobile: `expo-secure-store`.
- Keep components small.
### 4. Check
- Run lint and types (`pnpm lint`, `pnpm exec tsc --noEmit`). Web: also `pnpm build`.
- Tick the Done checklist.
## No backend in the architecture
- There is no API client. The screens and local behavior are the whole task.
## When the backend is wrong
- You ran against the real backend and its response differs from `contracts/api.md`:
- Do not adapt the frontend to it.
- Send a handoff to backend-engineer with expected, actual, and steps.
- If the contract itself looks wrong, send it to architect instead.
- A screen is missing or contradicts the story: send a handoff to ui-ux-designer.
- If it stops you, set the task `blocked` (`skills/flow`, Blockers).
## Done checklist
- Every Acceptance line of the spec passes.
- Screens match the design.
- Only contract endpoints are called.
- Loading, empty, and error states are handled.
- Lint, types, and build pass.
- Task is `built`.
## MUST
- Read env only in `lib/config.ts`.
- Log only through `lib/logger.ts`.
- Use Tailwind CSS for web styling and NativeWind for mobile styling; do not replace them with another UI styling system.
- Web: `next.config.ts` has `output: "standalone"` (devops-engineer needs it).
## NEVER
- Mock, stub, or hardcode responses.
- Wait for the backend task.
- Call an endpoint that is not in the contract.
- Put secrets or the AI provider key in client code.