Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

senior-frontend

БесплатноЗапускает вложенные скриптыНе проверен

Scaffold Next.js 16 or React + Vite 8 apps, generate components with tests and stories, and flag heavy bundle dependencies. Use when starting a React project…

borgheiот borghei★ 1 250 звёзд на GitHub

Об этом скилле

Senior Frontend

Frontend development patterns, performance optimization, and automation tools for React/Next.js applications. Scaffold projects, generate components and hooks, analyze bundle sizes, and apply React/Next.js patterns with accessibility and testing built in.

Core Capabilities

  • Project scaffolding — generate Next.js 16 (App Router) or React+Vite projects with TypeScript, Tailwind, and optional auth/api/forms/testing/storybook features.
  • Component generation — client/server components, custom hooks, with test and Storybook story files following established patterns.
  • Bundle analysis — static package.json + import scanning that scores bundle health and flags heavy dependencies with lighter alternatives.
  • React patterns — compound components, custom hooks, render props, and reusable state-sharing patterns.
  • Next.js optimization — Server vs Client Components, image optimization, parallel/streaming data fetching with Suspense.
  • Accessibility & testing — semantic HTML, ARIA, keyboard nav, focus, and React Testing Library component/a11y tests.

When to Use

  • Starting a new React/Next.js project that needs a best-practice baseline.
  • Adding components, hooks, or test/story scaffolding to an existing app.
  • Optimizing bundle size or diagnosing heavy dependencies.
  • Implementing accessible, performant Server/Client Component architecture.
  • Reviewing frontend code against React/TypeScript/a11y best practices.

Clarify First

Before scaffolding or generating, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

  • Template: Next.js (App Router) vs React+Vite (--template; produces a different project structure).
  • Features: auth / api / forms / testing / storybook (--features; decides what gets generated).
  • Generation target: a new project vs a component/hook in an existing app (selects frontend_scaffolder vs component_generator).

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

Quick Start

# Scaffold a Next.js 16 app with auth (writes proxy.ts) and the API client feature
python3 engineering/senior-frontend/scripts/frontend_scaffolder.py my-app \
  --dir /tmp/web --template nextjs --features auth,api

# Add a client component with a test and a Storybook story
python3 engineering/senior-frontend/scripts/component_generator.py ProductCard \
  --type client --with-test --with-story --framework next --dir /tmp/web/my-app/components

# Bundle check on the bundled samples: sound passes, flawed fails the gate (exit 1)
python3 engineering/senior-frontend/scripts/bundle_analyzer.py \
  engineering/senior-frontend/assets/sample-project-sound --verbose --min-score 80
python3 engineering/senior-frontend/scripts/bundle_analyzer.py \
  engineering/senior-frontend/assets/sample-project-flawed --verbose --min-score 80 --format json

Tools Overview

Tool Purpose Key flags
frontend_scaffolder.py Scaffold Next.js 16 (App Router) or React + Vite 8 with React 19, TypeScript and Tailwind CSS v4 --template, --features auth,api,forms,testing,storybook, --dir, --dry-run, --list-templates, --list-features (no name needed)
component_generator.py Component or hook with optional Vitest test and Storybook 10 story --type client|server|hook, --with-test, --with-story, --framework next|vite, --no-index, --flat, --force, --dry-run
bundle_analyzer.py Flag heavy or misplaced dependencies from package.json and imports, with a health score; detects Next vs Vite and runs next.config checks only on Next --verbose (import scan), --min-score N (gate)
  • Output: all three take --format text|json; --json still works on the scaffolder and the analyzer.
  • Exit codes: 0 ok; 1 bundle score below --min-score (only with that flag); 2 bad input: target folder exists, a project name that is not a lowercase npm package name or escapes --dir, a component file that already exists (without --force), unknown feature or type, missing project or package.json, missing template files.
  • Naming: hook names drop a leading use, so useCart --type hook writes useCart.ts, not useUseCart.ts.
  • Analyzer limits: it reads dependency names and import statements, not real bundle sizes, tree-shaking or code splitting. For ground truth, run @next/bundle-analyzer or vite-bundle-visualizer on a production build.
  • Versions (November 2026): Next 16.4, React 19.3, Tailwind 4.3, Vite 8.3. The Next auth feature writes proxy.ts, which replaced middleware.ts in Next 16.
  • Lint and types: next lint is gone, so both templates use ESLint flat config: ESLint 9 for Next (its plugins stop at 9), ESL
Полный SKILL.md на GitHub

Установить senior-frontend в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/sample-project-flawed/package.jsonassets/sample-project-flawed/src/App.tsxassets/sample-project-sound/app/page.tsxassets/sample-project-sound/next.config.jsassets/sample-project-sound/package.jsonassets/templates/component/client.tsx.tmplassets/templates/component/hook.ts.tmplassets/templates/component/index.ts.tmplassets/templates/component/index_hook.ts.tmplassets/templates/component/server.tsx.tmplassets/templates/component/story.tsx.tmplassets/templates/component/test.tsx.tmplassets/templates/scaffold/config/eslint.config.mjs.tmplassets/templates/scaffold/config/gitignore.tmplassets/templates/scaffold/config/next.config.js.tmplassets/templates/scaffold/config/postcss.config.js.tmplassets/templates/scaffold/config/prettierrc.tmplassets/templates/scaffold/config/tailwind.config.ts.tmplassets/templates/scaffold/config/tsconfig.json.tmplassets/templates/scaffold/config/vite/eslint.config.js.tmplassets/templates/scaffold/config/vite/index.html.tmplassets/templates/scaffold/config/vite/postcss.config.js.tmplassets/templates/scaffold/config/vite/tsconfig.app.json.tmplassets/templates/scaffold/config/vite/tsconfig.json.tmplassets/templates/scaffold/config/vite/tsconfig.node.json.tmplassets/templates/scaffold/config/vite/vite.config.ts.tmplassets/templates/scaffold/files/api_client.tsassets/templates/scaffold/files/auth_client.tsassets/templates/scaffold/files/auth_lib.tsassets/templates/scaffold/files/auth_page.tsxassets/templates/scaffold/files/auth_proxy.tsassets/templates/scaffold/files/constants.tsassets/templates/scaffold/files/empty.txtassets/templates/scaffold/files/form_field.tsxassets/templates/scaffold/files/form_utils.tsassets/templates/scaffold/files/globals_css.cssassets/templates/scaffold/files/health_route.tsassets/templates/scaffold/files/home_page.tsxassets/templates/scaffold/files/hook_debounce.tsassets/templates/scaffold/files/hook_local_storage.ts

FAQ

Что делает скилл senior-frontend?

Scaffold Next.js 16 or React + Vite 8 apps, generate components with tests and stories, and flag heavy bundle dependencies. Use when starting a React project, adding components or hooks, or reviewing frontend code or performance.

Как установить скилл senior-frontend?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл senior-frontend запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить senior-frontend с