Skip to content

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

301 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SkillSync β€” AI-Powered Placement Copilot

Next.js TypeScript Tailwind CSS Drizzle ORM License: MIT

SkillSync is an intelligent, high-performance placement management platform designed to bridge the gap between students and recruitment drives. By leveraging a multi-model AI orchestration engine, SkillSync provides resilient, cost-effective, and highly accurate career tools for students and faculty alike.


✨ Core Features

🧠 Antigravity Router (Multi-tier AI)

SkillSync’s backbone is the Antigravity Router, an intelligent fallback system that optimizes for cost, speed, and accuracy across multiple providers (Google Gemini, Groq, and Local).

  • Tier 1 (Reliable): Google Gemini 1.5/2.0 Flash for complex resume/JD parsing.
  • Tier 2 (Pro): Google Gemini 2.0 Pro for advanced reasoning.
  • Tier 3 (Speed): Groq Llama 3 (70B/8B) for ultra-fast chat and ranking.
  • Tier 0 (Local): Local Transformers for zero-latency, private embeddings.

πŸ“„ Intelligent Resume Processing

  • AI-Driven Parsing: High-fidelity extraction of skills, projects, and education from PDF/DOCX.
  • Smart Upload: Optimized flow that preserves existing data for returning students.
  • Structure Score: Evaluates resume quality based on semantic depth and industry standards.

🎯 Smart Ranking & Matching

  • Hybrid Scoring Engine: Matches students to Job Descriptions (JDs) using a weighted algorithm (70% Semantic Vector Search + 30% Structured Skill Overlap).
  • Missed Opportunities: Provides granular feedback on which skills are missing for a specific role.

πŸ§ͺ Recruitment Sandbox v2

  • Simulation Environment: Test "what-if" scenarios by uploading custom resumes against specific JDs.
  • Real-time Feedback: Instant semantic scoring and improvement suggestions.

πŸ—ΊοΈ System Diagrams

1. High-Level Architecture

flowchart TB
    subgraph Clients
        C_Web[Web Client - React/Next.js]
        C_Mob[Mobile Client - Responsive]
    end

    subgraph Next.js Server App Router
        API[API Routes / Server Actions]
        RSC[React Server Components]
        Cron[Cron Endpoints - Vercel]
    end

    subgraph Database Supabase
        DB[(PostgreSQL)]
        Vector[pgvector]
        JobsTable[(Jobs Queue Table)]
    end

    subgraph External Services
        Auth[NextAuth - Azure AD / Credentials]
        Store[Cloudinary - Resume PDFs]
        Redis[Upstash Redis - Rate Limiting]
        AI[Antigravity Router - Groq / Gemini]
    end

    C_Web <-->|HTTP/JSON| API
    C_Web <-->|Fetch| RSC
    C_Mob <-->|HTTP/JSON| API
    
    API <--> Auth
    API <--> Store
    API <--> Redis
    API --> JobsTable
    
    RSC --> DB
    
    Cron --> JobsTable
    Cron <--> AI
    AI --> Vector
Loading

2. Primary Use Case Diagram

flowchart LR
    %% Actors
    Student([Student])
    Faculty([Faculty / Admin])
    
    %% Use Cases
    subgraph SkillSync Platform
        UC_Auth[Login / SSO]
        UC_Profile[Manage Profile & Skills]
        UC_Resume[Upload Resume for AI Parsing]
        UC_Dash[View Dashboard & AMCAT]
        UC_Drive[Create & Manage Drives]
        UC_Rank[Rank & Match Students]
    end
    
    Student --> UC_Auth
    Student --> UC_Profile
    Student --> UC_Resume
    Student --> UC_Dash
    
    Faculty --> UC_Auth
    Faculty --> UC_Drive
    Faculty --> UC_Rank
Loading

3. Database Entity Relationship (ER) Diagram

erDiagram
    colleges ||--o{ users : "hosts"
    users ||--o| students : "is-a"
    users ||--o| staff_profiles : "is-a"
    colleges ||--o{ drives : "owns"
    students ||--o{ rankings : "receives"
    drives ||--o{ rankings : "generates"
    
    users {
        uuid id PK
        string role "student, faculty, admin"
        uuid college_id FK
    }
    students {
        uuid id PK,FK
        jsonb skills
        vector embedding "768-dim"
    }
    drives {
        uuid id PK
        jsonb parsed_jd
        vector jd_embedding "768-dim"
    }
    rankings {
        uuid student_id FK
        uuid drive_id FK
        float match_score
        jsonb explanation
    }
    jobs {
        uuid id PK
        string type "parse_resume, etc"
        jsonb payload
    }
Loading

4. Frontend Component Architecture

flowchart TD
    Root[Root Layout - Providers]
    
    subgraph Route Groups
        Admin[(admin)]
        Faculty[(faculty)]
        Student[(student)]
    end
    
    Root --> Admin
    Root --> Faculty
    Root --> Student
    
    subgraph Student Layout Shell
        Top[Top Header]
        Side[Sidebar Shell - Desktop]
        Bottom[Bottom Tab Bar - Mobile]
    end
    
    Student --> Top
    Student --> Side
    Student --> Bottom
    
    subgraph State Management
        Zustand[(Zustand - useProfileStore)]
        Context[(React Context - StudentProvider)]
    end
    
    subgraph Key Pages
        Dash[Dashboard Page]
        Prof[Profile Page]
        Onb[Onboarding Flow]
    end
    
    Student --> Dash
    Student --> Prof
    Student --> Onb
    
    Context --> Dash
    Zustand --> Prof
Loading

5. AI Background Job Pipeline (Sequence Diagram)

sequenceDiagram
    actor User
    participant NextJS as Next.js API
    participant DB as Jobs Table
    participant Cron as Vercel Cron
    participant AI as Antigravity Router
    
    User->>NextJS: Upload Resume
    NextJS->>DB: Insert 'parse_resume' job
    NextJS-->>User: Return status (Pending)
    
    loop Every minute
        Cron->>DB: Poll for pending jobs
        DB-->>Cron: Return 'parse_resume'
        Cron->>AI: Send Resume text
        AI-->>Cron: Return Structured JSON
        Cron->>DB: Update student profile & mark job 'completed'
    end
Loading

πŸ› οΈ Technological Foundation

Layer Technology
Framework Next.js 14 (App Router)
Database PostgreSQL (Supabase) + Drizzle ORM
AI Orchestration Custom Antigravity Module
Auth NextAuth.js (Microsoft OAuth + Role-based access)
Styling Tailwind CSS + shadcn/ui
State Zustand (Lightweight & Reactive)
Validation Zod + React Hook Form

πŸš€ Getting Started

1. Prerequisites

  • Node.js 20.x
  • A Supabase project (PostgreSQL)
  • API Keys for Google Gemini and Groq

2. Installation

git clone https://github.com/prachi7104/Skill-sync.git
cd Skill-sync
npm install

3. Environment Configuration

Create a .env.local file:

# Database
DATABASE_URL="postgres://user:pass@host:5432/db"

# AI Configuration
GOOGLE_GENERATIVE_AI_API_KEY="your-key"
GROQ_API_KEY="your-key"

# Auth
NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_SECRET="your-generated-secret"

4. Database Setup

SkillSync uses a manual schema management approach for production safety:

# Push schema changes (blocked by default, use with caution)
npm run drizzle:push 

# Apply indexes for vector search
npm run db:index

5. Running the App

npm run dev

Visit http://localhost:3000


πŸ“‚ Project Structure

β”œβ”€β”€ app/               # Next.js App Router (Admin, Faculty, Student routes)
β”œβ”€β”€ components/        # Shared UI components (shadcn/ui + custom)
β”œβ”€β”€ lib/               # Core business logic (Antigravity engine, DB, AI)
β”œβ”€β”€ drizzle/           # Schema definitions and migrations
β”œβ”€β”€ scripts/           # Management utilities (RLS tests, ranking, seeding)
└── types/             # Shared TypeScript interfaces

πŸ›‘οΈ Architecture & Security

  • Row-Level Security (RLS): Enforced via Supabase for granular data protection between Students and Faculty.
  • Multi-Tenant Isolation: Ensures sensitive student data is only accessible to authorized personnel.
  • Resilient AI: Automatic provider fallback ensures 99.9% availability even on free-tier quotas.

πŸ“„ Documentation


βœ… Pre-Deploy Checklist

  • β–‘ npx tsc --noEmit β†’ 0 errors
  • β–‘ npm run test β†’ all pass
  • β–‘ npm run lint β†’ 0 warnings
  • β–‘ Supabase: verify RLS policies (scripts/verify-rls.ts)
  • β–‘ Supabase: verify indexes (pg_indexes)
  • β–‘ Test student login: no college_id null errors in Vercel logs
  • β–‘ Test drive creation: verify public.drives.college_id is set
  • β–‘ Test ranking trigger: wait for cron, verify rankings appear
  • β–‘ Test sandbox: submit JD, verify scores and card feedback appear

🀝 Contributing

Please read our Contributing Guidelines before submitting pull requests.

βš–οΈ License

Distributed under the MIT License. See LICENSE for more information.

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages