Senior Frontend
/install kv-senior-frontend
Senior Frontend
React, Next.js, TypeScript, and Tailwind CSS — from scaffold to production.
Activation
Use this skill when the user asks to:
- scaffold a new Next.js or React + Vite project
- generate a React component, custom hook, or Storybook story
- analyze or reduce bundle size
- optimize Next.js (Server vs Client Components, image loading, data fetching)
- implement accessibility (WCAG, ARIA, keyboard navigation)
- review or improve frontend code quality
Workflow
- Classify the request:
scaffold|component|bundle|optimize|accessibility|review. - Load the relevant reference:
- React patterns (compound components, custom hooks, render props) →
{baseDir}/references/react_patterns.md - Next.js optimization (Server Components, Suspense, images, caching) →
{baseDir}/references/nextjs_optimization_guide.md - accessibility, testing strategy, Tailwind conventions →
{baseDir}/references/frontend_best_practices.md
- React patterns (compound components, custom hooks, render props) →
- Run the appropriate script when a project or component name is provided:
# Scaffold a new Next.js or React project python {baseDir}/scripts/frontend_scaffolder.py my-app --template nextjs python {baseDir}/scripts/frontend_scaffolder.py my-app --template nextjs --features auth,api,forms,testing # Generate a component (client | server | hook) with optional test and story python {baseDir}/scripts/component_generator.py Button --dir src/components/ui python {baseDir}/scripts/component_generator.py UserProfile --type server --with-test --with-story # Analyze bundle for heavy dependencies and optimization opportunities python {baseDir}/scripts/bundle_analyzer.py ./project --verbose - Emit the artifact: component file, project structure, bundle report, or optimization recommendation.
Output Contract
- Open with the classification and the primary issue or decision.
- Emit one primary artifact per response (component, config, or report).
- For bundle analysis: grade (A–F), list heavy packages with lighter alternatives.
- Annotate non-obvious TypeScript patterns or accessibility choices.
- Close with the next recommended step (e.g., "add Storybook story", "add
sizesprop to Image").
Key Rules
- Default to Server Components in Next.js. Add
'use client'only when state, effects, or browser APIs are required. - Default to TypeScript for all generated code.
- Use
cn()from@/lib/utilsfor conditional Tailwind classes — not string concatenation. - Every generated component must have explicit prop types; no implicit
any. - Bundle score below 70 (grade C or worse) triggers a dependency replacement recommendation.
Proactive Triggers
Flag these without being asked:
moment→ replace withdate-fnsordayjslodashfull import → switch tolodash-eswith tree-shakingCOPY . .beforenpm installin Dockerfile → reorder (defer todocker-development)- Missing
alton\x3Cimg>or\x3CImage>→ accessibility issue useEffectwith data fetching in Next.js → suggest Server Component oruse()hook- No
sizeson responsive\x3CImage>→ layout shift risk
Guardrails
- Do not generate backend API routes or database schemas — stay within frontend scope.
- Do not add
'use client'to components that only render static markup. - Do not recommend
@mui/material— prefershadcn/uior Radix UI primitives. - For large-scale bundle or architecture concerns refer to
senior-architect.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install kv-senior-frontend - After installation, invoke the skill by name or use
/kv-senior-frontend - Provide required inputs per the skill's parameter spec and get structured output
What is Senior Frontend?
Build, optimize, and review React and Next.js applications with TypeScript and Tailwind CSS. Use when scaffolding a frontend project, generating components,... It is an AI Agent Skill for Claude Code / OpenClaw, with 139 downloads so far.
How do I install Senior Frontend?
Run "/install kv-senior-frontend" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Senior Frontend free?
Yes, Senior Frontend is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Senior Frontend support?
Senior Frontend is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Senior Frontend?
It is built and maintained by felix-antonio-sl (@felix-antonio-sl); the current version is v1.0.0.