frontend-stack

Scaffold web frontend projects with Astro, React, or Next.js stacks.

1|Updated Mar 18, 2024
One-click install
npx skills add https://github.com/erfianugrah/dotfiles --skill frontend-stack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-stack
Source: https://github.com/erfianugrah/dotfiles/tree/main/.pi/agent/skills/frontend-stack
Command: npx skills add https://github.com/erfianugrah/dotfiles --skill frontend-stack

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the guesswork and repetitive setup needed to start a new web frontend with a coherent, production-oriented stack.

Core Features & Use Cases

  • Framework decisioning: Choose between Astro 6 (content sites) and React via create-tsrouter-app (dashboards and state-heavy apps), or Next.js when you explicitly need app-router capabilities.
  • Opinionated foundation: Establish lint/format, Tailwind v4 styling, shadcn/ui components via the shadcn CLI, zod validation, and TanStack libraries for forms, server state, and routing.
  • Practical project patterns: Apply Astro hydration directives for React islands, and use canonical tanstack-form + zod and tanstack-query defaults for consistent behavior.
  • Use Case: Start a content-heavy site that still needs interactive widgets without overbuilding the architecture.

Quick Start

Tell the assistant: “Scaffold a new website with interactive bits using Astro 6 + React islands, Tailwind v4, shadcn UI, zod, and TanStack libraries.”

Frequently Asked Questions about frontend-stack

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a new frontend with Astro, React, and Tailwind v4?

To scaffold a new frontend with Astro, React, and Tailwind v4, you define your project requirements and the tool generates a foundation using a framework decision tree, applying shadcn UI, zod validation, and TanStack libraries for routing and state management.

What is the best way to choose between Astro and Next.js for a new web app?

Choosing between Astro and Next.js depends on your app's interactivity needs; Astro 6 suits content sites with interactive React islands, while Next.js is selected when you explicitly need app-router capabilities for state-heavy dashboards.

Can I use shadcn UI components with Astro and React islands?

Yes, you can use shadcn UI components with Astro and React islands by utilizing the shadcn CLI to establish UI components, alongside practical Astro hydration directives to manage interactivity without overbuilding the architecture.

How do I set up TanStack router and zod validation in a new React project?

Setting up TanStack router and zod validation in a new React project involves using create-tsrouter-app to establish the foundation, applying canonical tanstack-form with zod schemas and tanstack-query defaults for consistent form and server state behavior.

When should I not use Next.js app-router for a content-heavy website?

You should avoid Next.js app-router for a content-heavy website when the project only needs interactive widgets without complex state, making Astro 6 with React islands a lighter, more appropriate architecture that prevents overbuilding.