senior-fullstack
Fullstack development toolkit with project scaffolding for Next.js/FastAPI/MERN/Django stacks and code quality analysis. Use when scaffolding new projects, analyzing codebase quality, or implementing fullstack architecture patterns.
What this skill does
# Senior Fullstack Fullstack development skill with project scaffolding and code quality analysis tools. --- ## Table of Contents - [Trigger Phrases](#trigger-phrases) - [Tools](#tools) - [Workflows](#workflows) - [Reference Guides](#reference-guides) --- ## Trigger Phrases Use this skill when you hear: - "scaffold a new project" - "create a Next.js app" - "set up FastAPI with React" - "analyze code quality" - "check for security issues in codebase" - "what stack should I use" - "set up a fullstack project" - "generate project boilerplate" --- ## Tools ### Project Scaffolder Generates fullstack project structures with boilerplate code. **Supported Templates:** - `nextjs` - Next.js 14+ with App Router, TypeScript, Tailwind CSS - `fastapi-react` - FastAPI backend + React frontend + PostgreSQL - `mern` - MongoDB, Express, React, Node.js with TypeScript - `django-react` - Django REST Framework + React frontend **Usage:** ```bash # List available templates python scripts/project_scaffolder.py --list-templates # Create Next.js project python scripts/project_scaffolder.py nextjs my-app # Create FastAPI + React project python scripts/project_scaffolder.py fastapi-react my-api # Create MERN stack project python scripts/project_scaffolder.py mern my-project # Create Django + React project python scripts/project_scaffolder.py django-react my-app # Specify output directory python scripts/project_scaffolder.py nextjs my-app --output ./projects # JSON output python scripts/project_scaffolder.py nextjs my-app --json ``` **Parameters:** | Parameter | Description | |-----------|-------------| | `template` | Template name (nextjs, fastapi-react, mern, django-react) | | `project_name` | Name for the new project directory | | `--output, -o` | Output directory (default: current directory) | | `--list-templates, -l` | List all available templates | | `--json` | Output in JSON format | **Output includes:** - Project structure with all necessary files - Package configurations (package.json, requirements.txt) - TypeScript configuration - Docker and docker-compose setup - Environment file templates - Next steps for running the project --- ### Code Quality Analyzer Analyzes fullstack codebases for quality issues. **Analysis Categories:** - Security vulnerabilities (hardcoded secrets, injection risks) - Code complexity metrics (cyclomatic complexity, nesting depth) - Dependency health (outdated packages, known CVEs) - Test coverage estimation - Documentation quality **Usage:** ```bash # Analyze current directory python scripts/code_quality_analyzer.py . # Analyze specific project python scripts/code_quality_analyzer.py /path/to/project # Verbose output with detailed findings python scripts/code_quality_analyzer.py . --verbose # JSON output python scripts/code_quality_analyzer.py . --json # Save report to file python scripts/code_quality_analyzer.py . --output report.json ``` **Parameters:** | Parameter | Description | |-----------|-------------| | `project_path` | Path to project directory (default: current directory) | | `--verbose, -v` | Show detailed findings | | `--json` | Output in JSON format | | `--output, -o` | Write report to file | **Output includes:** - Overall score (0-100) with letter grade - Security issues by severity (critical, high, medium, low) - High complexity files - Vulnerable dependencies with CVE references - Test coverage estimate - Documentation completeness - Prioritized recommendations **Sample Output:** ``` ============================================================ CODE QUALITY ANALYSIS REPORT ============================================================ Overall Score: 75/100 (Grade: C) Files Analyzed: 45 Total Lines: 12,500 --- SECURITY --- Critical: 1 High: 2 Medium: 5 --- COMPLEXITY --- Average Complexity: 8.5 High Complexity Files: 3 --- RECOMMENDATIONS --- 1. [P0] SECURITY Issue: Potential hardcoded secret detected Action: Remove or secure sensitive data at line 42 ``` --- ## Workflows ### Workflow 1: Start New Project 1. Choose appropriate stack based on requirements 2. Scaffold project structure 3. Run initial quality check 4. Set up development environment ```bash # 1. Scaffold project python scripts/project_scaffolder.py nextjs my-saas-app # 2. Navigate and install cd my-saas-app npm install # 3. Configure environment cp .env.example .env.local # 4. Run quality check python ../scripts/code_quality_analyzer.py . # 5. Start development npm run dev ``` ### Workflow 2: Audit Existing Codebase 1. Run code quality analysis 2. Review security findings 3. Address critical issues first 4. Plan improvements ```bash # 1. Full analysis python scripts/code_quality_analyzer.py /path/to/project --verbose # 2. Generate detailed report python scripts/code_quality_analyzer.py /path/to/project --json --output audit.json # 3. Address P0 issues immediately # 4. Create tickets for P1/P2 issues ``` ### Workflow 3: Stack Selection Use the tech stack guide to evaluate options: 1. **SEO Required?** → Next.js with SSR 2. **API-heavy backend?** → Separate FastAPI or NestJS 3. **Real-time features?** → Add WebSocket layer 4. **Team expertise** → Match stack to team skills See `references/tech_stack_guide.md` for detailed comparison. --- ## Reference Guides ### Architecture Patterns (`references/architecture_patterns.md`) - Frontend component architecture (Atomic Design, Container/Presentational) - Backend patterns (Clean Architecture, Repository Pattern) - API design (REST conventions, GraphQL schema design) - Database patterns (connection pooling, transactions, read replicas) - Caching strategies (cache-aside, HTTP cache headers) - Authentication architecture (JWT + refresh tokens, sessions) ### Development Workflows (`references/development_workflows.md`) - Local development setup (Docker Compose, environment config) - Git workflows (trunk-based, conventional commits) - CI/CD pipelines (GitHub Actions examples) - Testing strategies (unit, integration, E2E) - Code review process (PR templates, checklists) - Deployment strategies (blue-green, canary, feature flags) - Monitoring and observability (logging, metrics, health checks) ### Tech Stack Guide (`references/tech_stack_guide.md`) - Frontend frameworks comparison (Next.js, React+Vite, Vue) - Backend frameworks (Express, Fastify, NestJS, FastAPI, Django) - Database selection (PostgreSQL, MongoDB, Redis) - ORMs (Prisma, Drizzle, SQLAlchemy) - Authentication solutions (Auth.js, Clerk, custom JWT) - Deployment platforms (Vercel, Railway, AWS) - Stack recommendations by use case (MVP, SaaS, Enterprise) --- ## Quick Reference ### Stack Decision Matrix | Requirement | Recommendation | |-------------|---------------| | SEO-critical site | Next.js with SSR | | Internal dashboard | React + Vite | | API-first backend | FastAPI or Fastify | | Enterprise scale | NestJS + PostgreSQL | | Rapid prototype | Next.js API routes | | Document-heavy data | MongoDB | | Complex queries | PostgreSQL | ### Common Issues | Issue | Solution | |-------|----------| | N+1 queries | Use DataLoader or eager loading | | Slow builds | Check bundle size, lazy load | | Auth complexity | Use Auth.js or Clerk | | Type errors | Enable strict mode in tsconfig | | CORS issues | Configure middleware properly | --- ## Troubleshooting | Problem | Cause | Solution | |---------|-------|----------| | Scaffolder creates empty files | Template name misspelled or unsupported | Run `python project_scaffolder.py --list-templates` to verify available templates | | Quality analyzer reports 0 files analyzed | Project path points to wrong directory or contains only non-code files | Confirm the path contains `.ts`, `.tsx`, `.js`, `.jsx`, `.py`, `.go`, `.java`, `.rb`, `.php`, or `.cs` files outside `node_modules/`, `.git/`, `dist/`, and other skip directories | | False-positive hardcoded secret warnings | Regex matches long strings assigned to variables named `password`, `secret`
Related in Web Dev
generating-lwc-components
IncludedLightning Web Components with PICKLES methodology and 165-point scoring. Use this skill when the user creates or edits LWC components, builds wire service patterns, or writes Jest tests for LWC. TRIGGER when: user creates/edits LWC components, touches lwc/**/*.js, .html, .css, .js-meta.xml files, or asks about wire service, SLDS, or Jest LWC tests. DO NOT TRIGGER when: Apex classes (use generating-apex), Aura components, or Visualforce.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Set up queries with useQuery, mutations with useMutation, configure QueryClient caching strategies, implement optimistic updates, and handle infinite scroll with useInfiniteQuery. Use when: setting up data fetching in React projects, migrating from v4 to v5, or fixing object syntax required errors, query callbacks removed issues, cacheTime renamed to gcTime, isPending vs isLoading confusion, keepPreviousData removed problems.
document-processor-api
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
nutrient-document-processing
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Covers useMutationState, simplified optimistic updates, throwOnError, network mode (offline/PWA), and infiniteQueryOptions. Use when setting up data fetching, fixing v4→v5 migration errors (object syntax, gcTime, isPending, keepPreviousData), or debugging SSR/hydration issues with streaming server components.
accelint-nextjs-best-practices
IncludedNext.js performance optimization and best practices. Use when writing Next.js code (App Router or Pages Router); implementing Server Components, Server Actions, or API routes; optimizing RSC serialization, data fetching, or server-side rendering; reviewing Next.js code for performance issues; fixing authentication in Server Actions; or implementing Suspense boundaries, parallel data fetching, or request deduplication.