Loading...
Loading...
Recommends and scaffolds frontend technology stack for new projects. Use when starting a new frontend project, selecting a framework, setting up a web app from scratch, or when the user asks about frontend tech stack, scaffolding, or architecture selection. Covers React/Next.js/Astro/Vue, TypeScript, Tailwind CSS, state management, data fetching, UI components, testing, and monorepo setup.
npx skill4agent add hicker-kin/ai-context frontend-architecture| Question | Options | Impact |
|---|---|---|
| Rendering mode | SPA / SSR / SSG / Hybrid | Determines framework |
| Content type | Dashboard / Landing / Docs / App | Determines UI library |
| SEO required? | Yes / No | SSR vs SPA decision |
| Backend API | REST / GraphQL / gRPC-Web | Data layer strategy |
| Team size | Solo / Small / Large | Monorepo strategy |
| Backend stack | Go / Node / Other | Type-safe client gen |
Framework: Next.js 15 (App Router) # SSR + SPA hybrid, SEO-friendly
Language: TypeScript 5.x (strict) # Non-negotiable
Build: Turbopack (built-in Next.js) / Vite (standalone SPA)
Styling: Tailwind CSS v4
UI Components: Ant Design v5
Global State: Zustand
Server State: TanStack Query v5
Forms: React Hook Form + Zod
Package Mgr: pnpm (preferred)
Testing: Vitest + Testing Library + Playwright (E2E)
Linting: ESLint v9 (flat config) + PrettierNew Frontend Project
│
├─ SEO / SSR required? ──────▶ Next.js 15 (App Router)
│
├─ Content / Docs / Blog? ───▶ Astro 5
│
├─ Vue team? ────────────────▶ Nuxt 3 (mirrors Next.js)
│
└─ General SPA ──────────────▶ React 19 + Vite + Ant Design v5README.md## Tech Stack
| Layer | Choice |
|-------|--------|
| Framework | <!-- e.g. Next.js 15 (App Router) --> |
| Language | TypeScript 5.x (strict) |
| Build | <!-- e.g. Turbopack / Vite --> |
| Styling | <!-- e.g. Tailwind CSS v4 --> |
| UI Components | <!-- e.g. Ant Design v5 --> |
| Global State | <!-- e.g. Zustand --> |
| Server State | <!-- e.g. TanStack Query v5 --> |
| Forms | <!-- e.g. React Hook Form + Zod --> |
| Package Manager | pnpm |
| Testing | Vitest + Testing Library + Playwright |
| Linting | ESLint v9 + Prettier |README.mdREADME.mddefaultOptionssrc/
├── app/ # App-level setup: providers, router, global styles
├── pages/ # Route-level components (or Next.js app/ dir)
├── features/ # Feature modules: each has ui/, model/, api/
├── shared/ # Reusable: ui components, lib, types, hooks
└── entities/ # Domain models (aligned with backend domain layer)strict: true@/env.d.tst3-envqueryKeys.ts