senior-frontend

Generates React and Next.js components, scaffolds frontend projects, and analyzes bundle sizes.

1|Updated Dec 29, 2025
One-click install
npx skills add https://github.com/ratnesh-maurya/tracker.ratnesh-maurya.com --skill senior-frontend-ratnesh-maurya
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: senior-frontend
Source: https://github.com/ratnesh-maurya/tracker.ratnesh-maurya.com/tree/main/.claude/skills/senior-frontend
Command: npx skills add https://github.com/ratnesh-maurya/tracker.ratnesh-maurya.com --skill senior-frontend-ratnesh-maurya

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Frontend developers repeatedly write boilerplate for components, project setups, and bundle audits. This Skill automates scaffolding Next.js/React projects, generating typed components with tests and stories, and detecting heavy dependencies that inflate bundle size. ## Core Features & Use Cases - Project Scaffolding: Generate complete Next.js 14+ or React+Vite projects with TypeScript, Tailwind CSS, and optional features like auth, React Query, forms, testing, and Storybook. - Component Generation: Create client components, server components, or custom hooks with optional test files and Storybook stories following best practices. - Bundle Analysis: Score project bundle health, flag heavy packages like moment or lodash with lighter alternatives, and detect dev dependencies misplaced in production. - Use Case: When starting a new dashboard, scaffold a Next.js project with auth and API features, generate UI components with tests, then run the bundle analyzer to keep dependencies lean. ## Quick Start Ask the assistant to scaffold a new Next.js project named my-app with TypeScript and Tailwind CSS using the frontend scaffolder script.

Frequently Asked Questions about senior-frontend

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

FAQPage Schema
How do I scaffold a Next.js project with TypeScript and Tailwind CSS?▼

Run the frontend_scaffolder.py script with your project name and the nextjs template flag. It generates the App Router structure, UI components, hooks, Tailwind config, and package.json. Add --features auth,api to include NextAuth and React Query setup.

How to generate a React component with tests and Storybook stories?▼

Use component_generator.py with the component name and the --with-test and --with-story flags. It creates a TypeScript component file, a Testing Library test file, and a Storybook story, plus an index.ts barrel export.

What are lighter alternatives to moment and lodash for bundle size?▼

Replace moment (290KB) with date-fns (12KB) or dayjs (2KB), and replace lodash with lodash-es using tree-shaking or individual imports like lodash/get. The bundle analyzer script detects these packages and suggests alternatives automatically.

Does the bundle analyzer work with React Vite projects or only Next.js?▼

The analyzer works with any project containing a package.json, including Vite-based React apps. Next.js-specific checks like next.config.js suggestions are skipped gracefully when no config file is found.

When should I use Server Components vs Client Components in Next.js?▼

Use Server Components by default for data-heavy, non-interactive content. Add 'use client' only when you need event handlers, useState, useEffect, or browser APIs. The references guide covers mixing both patterns in one page.

Why does the component generator fail on existing directories?▼

The scaffolder returns an error if the target project directory already exists to prevent overwriting files. Use --dry-run first to preview the generated structure, or choose a different project name or output directory.