Fullstack validation

From bejranonda/LLM-Autonomous-Agent-Plugin-for-Claude · View interactive version

Fullstack validation is an AI agent skill from the GitHub repository bejranonda/LLM-Autonomous-Agent-Plugin-for-Claude. Comprehensive validation methodology for multi-component applications including backend, frontend, database, and infrastructure

How to use this skill

Skill file

Overview

This skill provides systematic approaches for validating full-stack applications with multiple interconnected components. It enables automatic detection of project structure, parallel validation workflows, cross-component verification, and identification of integration issues.

When to use: Full-stack projects with backend + frontend, microservices, monorepos, Docker Compose setups, or any multi-technology application.

Key innovation: Parallel validation with cross-component awareness - validates each layer independently while ensuring they work together correctly.

Project Structure Detection

Detection Patterns

Monorepo Indicators:

Separate Repos Indicators:

Technology Stack Detection:

Backend:
- FastAPI: requirements.txt with 'fastapi', main.py with FastAPI app
- Django: manage.py, settings.py present
- Express: package.json with 'express', app.js/index.js
- Spring Boot: pom.xml or build.gradle with spring-boot

Frontend:
- React: package.json with 'react', src/App.tsx or src/App.jsx
- Vue: package.json with 'vue', src/App.vue
- Angular: package.json with '@angular/core', angular.json
- Svelte: package.json with 'svelte', src/App.svelte

Database:
- PostgreSQL: requirements.txt with 'psycopg2', docker-compose.yml with postgres
- MySQL: package.json with 'mysql2', docker-compose.yml with mysql
- MongoDB: package.json with 'mongoose', docker-compose.yml with mongo
- Redis: docker-compose.yml with redis, requirements.txt with 'redis'

Infrastructure:
- Docker: Dockerfile, docker-compose.yml present
- Kubernetes: k8s/ or kubernetes/ directory with .yaml files
- Terraform: .tf files present
- Nginx: nginx.conf present

Validation Workflows

Backend Validation Checklist

Python/FastAPI Projects:

  1. Dependency validation
  1. Type checking
  1. Test validation
  1. API schema validation
  1. Database migration validation

Node.js/Express Projects:

  1. Dependency validation (npm/yarn/pnpm)
  2. ESLint validation
  3. Jest/Mocha test execution
  4. API route validation
  5. Database migration validation (Knex/Sequelize)

Frontend Validation Checklist

React + TypeScript Projects:

  1. TypeScript validation
  1. Dependency validation
  1. Build validation
  1. Code quality
  1. API client validation

Vue/Angular Projects: Similar checklist adapted to framework specifics

Database Validation Checklist

  1. Schema validation
  1. Test isolation validation
  1. Query validation

Infrastructure Validation Checklist

Docker Compose Projects:

  1. Service health checks
  1. Port conflict detection
  1. Volume validation
  1. Environment variable validation

Cross-Component Validation

API Contract Validation

Process:

  1. Extract backend API schema
  1. Extract frontend API client calls
  1. Cross-validate

Auto-fix capabilities:

Environment Variable Consistency

Process:

  1. Collect all env var references
  1. Cross-validate

Authentication Flow Validation

Process:

  1. Identify auth mechanism (JWT, OAuth, Basic, API Key)
  2. Check backend auth implementation
  1. Check frontend auth implementation
  1. Cross-validate

Parallel Validation Strategy

Execution Plan

Phase 1: Detection (Sequential)
├─ Scan project structure
├─ Identify all components
└─ Determine validation workflows

Phase 2: Component Validation (Parallel)
├─ Backend validation (background)
├─ Frontend validation (background)
├─ Database validation (background)
└─ Infrastructure validation (background)

Phase 3: Cross-Component Validation (Sequential)
├─ API contract validation (requires Phase 2 complete)
├─ Environment variable validation
└─ Authentication flow validation

Phase 4: Reporting (Sequential)
├─ Aggregate results
├─ Prioritize issues
└─ Generate recommendations

Priority Levels

Critical (🔴): Blocks deployment, requires immediate fix

Warning (🟡): Should be fixed, doesn't block deployment

Info (🟢): Nice to have, improves quality

Auto-Fix Capabilities

Automatic Fixes (No confirmation needed)

TypeScript:

Python:

Configuration:

Suggested Fixes (Requires confirmation)

TypeScript:

Python:

Database:

Pattern Learning Integration

Patterns to Capture

Project Structure Patterns:

{
  "project_type": "fullstack-monorepo",
  "backend": "fastapi",
  "frontend": "react-typescript",
  "database": "postgresql",
  "infrastructure": "docker-compose",
  "patterns_detected": {
    "api_versioning": "/api/v1",
    "auth_method": "jwt",
    "orm": "sqlalchemy",
    "state_management": "react-query"
  }
}

Common Issue Patterns:

{
  "typescript_unused_imports": {
    "frequency": 12,
    "auto_fix_success_rate": 1.0,
    "common_files": ["src/components/*.tsx"]
  },
  "sqlalchemy_raw_sql": {
    "frequency": 5,
    "auto_fix_success_rate": 1.0,
    "pattern": "execute('SELECT ...') → execute(text('SELECT ...'))"
  },
  "react_query_v4_syntax": {
    "frequency": 3,
    "auto_fix_success_rate": 0.9,
    "pattern": "useQuery(['key'], fn) → useQuery({queryKey: ['key'], queryFn: fn})"
  }
}

Validation Performance Patterns:

{
  "backend_validation_time": "15s",
  "frontend_validation_time": "45s",
  "bottlenecks": ["TypeScript compilation", "npm install"],
  "optimization_opportunities": ["Use turbo for builds", "Cache dependencies"]
}

When to Apply This Skill

Automatic triggers:

Manual triggers:

Integration with Other Skills

Combines with:

Delegates to agents:

Success Metrics

Validation effectiveness:

Quality improvements:

Example Validation Report

✅ Full-Stack Validation Complete (2m 34s)

📊 Component Status:
├─ Backend (FastAPI + PostgreSQL)
│  ├─ ✅ Dependencies: 42 packages, 0 conflicts
│  ├─ ✅ Type hints: 98% coverage
│  ├─ ⚠️  Tests: 45 passing, 42% coverage (target: 70%)
│  └─ ✅ API schema: 23 endpoints documented
│
├─ Frontend (React + TypeScript)
│  ├─ ✅ Type check: 0 errors (auto-fixed 16)
│  ├─ ✅ Build: 882KB bundle (optimized)
│  ├─ ✅ Dependencies: 124 packages, 0 peer warnings
│  └─ ✅ Unused imports: 0 (auto-removed 5)
│
└─ Integration
   ├─ ✅ API contract: 23/23 endpoints matched
   ├─ ✅ Environment vars: 15/15 documented
   └─ ✅ Auth flow: JWT tokens validated

🔧 Auto-Fixed Issues (11):
✓ Removed 5 unused TypeScript imports
✓ Generated vite-env.d.ts
✓ Added text() wrapper to 3 SQL queries
✓ Fixed 2 React Query v5 syntax issues

⚠️  Recommended Actions (2):
1. Increase test coverage to 70% (currently 42%)
2. Add indexes to users.email and projects.created_at

🎯 Overall Score: 87/100 (Production Ready)
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.