senior-frontend
davila7/claude-code-templates
Comprehensive frontend toolkit for React, Next.js, and TypeScript with component scaffolding, bundle analysis, and performance optimization.
What is senior-frontend?
Senior-frontend is a complete toolkit for building modern, performant web applications using React, Next.js, TypeScript, and Tailwind CSS. Use it when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.
- Generate React components with automated scaffolding and built-in best practices
- Analyze and optimize bundle size with performance metrics and recommendations
- Scaffold frontend projects with production-grade configurations
- Review and apply React and Next.js optimization patterns
- Validate code quality and security practices
How to install senior-frontend
npx skills add https://github.com/davila7/claude-code-templates --skill senior-frontend- Python 3.x installed
- Node.js and npm installed
- Existing React or Next.js project (or willingness to scaffold one)
How to use senior-frontend
- 1.Run the component generator to scaffold new components: python scripts/component_generator.py <project-path>
- 2.Use the bundle analyzer to identify performance issues: python scripts/bundle_analyzer.py <target-path>
- 3.Review reference documentation in references/ for React patterns and Next.js optimization strategies
- 4.Apply recommended fixes and best practices from the analysis output
- 5.Run quality checks and tests before deploying
Use cases
- Building new React or Next.js applications with consistent patterns
- Analyzing bundle size and identifying performance bottlenecks
- Generating reusable component libraries with TypeScript
- Optimizing existing frontend applications for performance
- Reviewing frontend code against established best practices
- Senior frontend engineers
- Full-stack developers building React/Next.js applications
- Teams implementing TypeScript and modern frontend tooling
- Developers focused on performance optimization and code quality
senior-frontend FAQ
Primarily React and Next.js with TypeScript. It also references React Native and Flutter in the tech stack, but core capabilities focus on React/Next.js web applications.
Yes. The bundle analyzer and component generator can work with existing projects. Run the analyzer on your project path to get optimization recommendations.
It performs deep analysis of your bundle, provides performance metrics, identifies optimization opportunities, and offers automated fixes and recommendations.
Yes. The skill includes three comprehensive reference documents: react_patterns.md, nextjs_optimization_guide.md, and frontend_best_practices.md covering patterns, optimization, and best practices.
Check the troubleshooting section in references/frontend_best_practices.md, review script output messages, and consult the tech stack documentation.
Full instructions (SKILL.md)
Source of truth, from davila7/claude-code-templates.
name: senior-frontend description: Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.
Senior Frontend
Complete toolkit for senior frontend with modern tools and best practices.
Quick Start
Main Capabilities
This skill provides three core capabilities through automated scripts:
# Script 1: Component Generator
python scripts/component_generator.py [options]
# Script 2: Bundle Analyzer
python scripts/bundle_analyzer.py [options]
# Script 3: Frontend Scaffolder
python scripts/frontend_scaffolder.py [options]
Core Capabilities
1. Component Generator
Automated tool for component generator tasks.
Features:
- Automated scaffolding
- Best practices built-in
- Configurable templates
- Quality checks
Usage:
python scripts/component_generator.py <project-path> [options]
2. Bundle Analyzer
Comprehensive analysis and optimization tool.
Features:
- Deep analysis
- Performance metrics
- Recommendations
- Automated fixes
Usage:
python scripts/bundle_analyzer.py <target-path> [--verbose]
3. Frontend Scaffolder
Advanced tooling for specialized tasks.
Features:
- Expert-level automation
- Custom configurations
- Integration ready
- Production-grade output
Usage:
python scripts/frontend_scaffolder.py [arguments] [options]
Reference Documentation
React Patterns
Comprehensive guide available in references/react_patterns.md:
- Detailed patterns and practices
- Code examples
- Best practices
- Anti-patterns to avoid
- Real-world scenarios
Nextjs Optimization Guide
Complete workflow documentation in references/nextjs_optimization_guide.md:
- Step-by-step processes
- Optimization strategies
- Tool integrations
- Performance tuning
- Troubleshooting guide
Frontend Best Practices
Technical reference guide in references/frontend_best_practices.md:
- Technology stack details
- Configuration examples
- Integration patterns
- Security considerations
- Scalability guidelines
Tech Stack
Languages: TypeScript, JavaScript, Python, Go, Swift, Kotlin Frontend: React, Next.js, React Native, Flutter Backend: Node.js, Express, GraphQL, REST APIs Database: PostgreSQL, Prisma, NeonDB, Supabase DevOps: Docker, Kubernetes, Terraform, GitHub Actions, CircleCI Cloud: AWS, GCP, Azure
Development Workflow
1. Setup and Configuration
# Install dependencies
npm install
# or
pip install -r requirements.txt
# Configure environment
cp .env.example .env
2. Run Quality Checks
# Use the analyzer script
python scripts/bundle_analyzer.py .
# Review recommendations
# Apply fixes
3. Implement Best Practices
Follow the patterns and practices documented in:
references/react_patterns.mdreferences/nextjs_optimization_guide.mdreferences/frontend_best_practices.md
Best Practices Summary
Code Quality
- Follow established patterns
- Write comprehensive tests
- Document decisions
- Review regularly
Performance
- Measure before optimizing
- Use appropriate caching
- Optimize critical paths
- Monitor in production
Security
- Validate all inputs
- Use parameterized queries
- Implement proper authentication
- Keep dependencies updated
Maintainability
- Write clear code
- Use consistent naming
- Add helpful comments
- Keep it simple
Common Commands
# Development
npm run dev
npm run build
npm run test
npm run lint
# Analysis
python scripts/bundle_analyzer.py .
python scripts/frontend_scaffolder.py --analyze
# Deployment
docker build -t app:latest .
docker-compose up -d
kubectl apply -f k8s/
Troubleshooting
Common Issues
Check the comprehensive troubleshooting section in references/frontend_best_practices.md.
Getting Help
- Review reference documentation
- Check script output messages
- Consult tech stack documentation
- Review error logs
Resources
- Pattern Reference:
references/react_patterns.md - Workflow Guide:
references/nextjs_optimization_guide.md - Technical Guide:
references/frontend_best_practices.md - Tool Scripts:
scripts/directory
Related skills
More from davila7/claude-code-templates and the wider catalog.

senior-fullstack
Comprehensive fullstack development skill for building complete web applications with React, Next.js, Node.js, GraphQL, and PostgreSQL. Includes project scaffolding, code quality analysis, architecture patterns, and complete tech stack guidance. Use when building new projects, analyzing code quality, implementing design patterns, or setting up development workflows.

senior-ml-engineer
World-class ML engineering skill for productionizing ML models, MLOps, and building scalable ML systems. Expertise in PyTorch, TensorFlow, model deployment, feature stores, model monitoring, and ML infrastructure. Includes LLM integration, fine-tuning, RAG systems, and agentic AI. Use when deploying ML models, building ML platforms, implementing MLOps, or integrating LLMs into production systems.

senior-prompt-engineer
World-class prompt engineering skill for LLM optimization, prompt patterns, structured outputs, and AI product development. Expertise in Claude, GPT-4, prompt design patterns, few-shot learning, chain-of-thought, and AI evaluation. Includes RAG optimization, agent design, and LLM system architecture. Use when building AI products, optimizing LLM performance, designing agentic systems, or implementing advanced prompting techniques.

senior-qa
Comprehensive QA and testing skill for quality assurance, test automation, and testing strategies for ReactJS, NextJS, NodeJS applications. Includes test suite generation, coverage analysis, E2E testing setup, and quality metrics. Use when designing test strategies, writing test cases, implementing test automation, performing manual testing, or analyzing test coverage.

senior-security
Comprehensive security engineering skill for application security, penetration testing, security architecture, and compliance auditing. Includes security assessment tools, threat modeling, crypto implementation, and security automation. Use when designing security architecture, conducting penetration tests, implementing cryptography, or performing security audits.

SEO Optimizer
Search Engine Optimization specialist for content strategy, technical SEO, keyword research, and ranking improvements. Use when optimizing website content, improving search rankings, conducting keyword analysis, or implementing SEO best practices. Expert in on-page SEO, meta tags, schema markup, and Core Web Vitals.