Comprehensive standards and best practices for building modern web applications (React, Next.js, TypeScript, Tailwind).
This skill defines the mandatory standards, conventions, and workflows for all web development tasks.
npm run dev) locally. Dockerfiles are for remote production only..env only).| Type | Format | Example |
|---|---|---|
| Directories | kebab-case | components/auth-wizard/ |
| Files | kebab-case | user-profile.tsx, api-utils.ts |
| Components | PascalCase | UserProfile, SubmitButton |
| Interfaces/Types | PascalCase | UserData, AuthResponse |
| Variables/Props | camelCase | isLoading, userData, handleClick |
| Constants/Env | UPPER_CASE | API_URL, MAX_RETRIES |
Specific Patterns:
handleClick, handleSubmitisLoading, hasError, canSubmituseAuth, useFormerr, req, res, props, ref.===.if. Else on same line as closing brace.'use client' only for interactivity (hooks, listeners).useCallback/useMemo for expensive ops.React.lazy / Dynamic imports for code splitting.Next/Image for images.useEffect.interface for objects (extensibility). Use type for unions/mappings.any: Use unknown or strict checks. Use Type Guards.createSlice. Normalize state (flat structure).eslint-disable. Fix errors immediately.NEXT_PUBLIC_API_URL etc..env.example.AI_MODELS.md in the project root.| Service/Feature | Model Name | File Location | Purpose | Est. Cost (per 1k tokens) |
|---|---|---|---|---|
| Example: Chat | gemini-3.0-pro | server/services/chat.ts:45 | User conversation handling | $0.00025 input / $0.0005 output |
swagger-jsdoc + swagger-ui-express (Node/Express) or equivalent for your stack./api/docs or /swagger.<a> tag or router navigation) MUST point to a functional destination. 404s are unacceptable.#) in production-ready code without explicit approval.README.md file in the root directory..env.example).npm install).npm run dev).npm test).browser tool to navigate to the local development environment (npm run dev) and capture screenshots or videos of the rendered UI.