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★ 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_scaffoldervscomponent_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;--jsonstill works on the scaffolder and the analyzer. - Exit codes:
0ok;1bundle score below--min-score(only with that flag);2bad 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 orpackage.json, missing template files. - Naming: hook names drop a leading
use, souseCart --type hookwritesuseCart.ts, notuseUseCart.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-analyzerorvite-bundle-visualizeron a production build. - Versions (November 2026): Next 16.4, React 19.3, Tailwind 4.3, Vite 8.3. The Next
authfeature writesproxy.ts, which replacedmiddleware.tsin Next 16. - Lint and types:
next lintis gone, so both templates use ESLint flat config: ESLint 9 for Next (its plugins stop at 9), ESL
Установить senior-frontend в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic