# cyril-p-jose/skillgap-ai architecture

> Architecture diagram of the GitHub repository cyril-p-jose/skillgap-ai, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cyril-p-jose/skillgap-ai
- Repository: https://github.com/cyril-p-jose/skillgap-ai

## Overview

SkillGap AI is a client-side placement-readiness assessment for college students. The main journey is to choose a branch and company, select a target role and existing skills, answer a short test, then view a readiness report and seven-day roadmap; users can share through WhatsApp. App.tsx owns page state and report generation, while data.ts supplies assessment choices and aiEngine.ts computes results. The README documents the product capabilities; unsampled modules are included only where their role is supported, and no backend or persistent store is evidenced.

Main entry points: [`src/App.tsx`](https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/App.tsx) (Flow Controller), [`src/data.ts`](https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/data.ts) (Assessment Catalog), [`src/components/ReportPage.tsx`](https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/components/ReportPage.tsx) (Results & Roadmap), [`src/lib/aiEngine.ts`](https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/lib/aiEngine.ts) (Readiness Scoring)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_journey["Assessment Journey"]
  node_app["Flow Controller<br/>[App.tsx]"]
  node_selection["Branch &amp; Company<br/>[SelectPage.tsx]"]
  node_skills["Role &amp; Skills<br/>[SkillsPage.tsx]"]
  node_test["Skill Test<br/>[TestPage.tsx]"]
end

subgraph group_results["Scoring &amp; Results"]
  node_engine["Readiness Scoring<br/>[aiEngine.ts]"]
  node_report["Results &amp; Roadmap<br/>[ReportPage.tsx]"]
  node_share["WhatsApp Share"]
  node_gemini["Gemini Module<br/>[gemini.ts]"]
end

subgraph group_shell["App Experience"]
  node_home["Home<br/>[HomePage.tsx]"]
  node_header["Header Navigation<br/>[Header.tsx]"]
  node_about["About Page<br/>[AboutPage.tsx]"]
  node_loading["Loading Screen<br/>[LoadingScreen.tsx]"]
  node_confetti["Success Effect<br/>[Confetti.tsx]"]
  node_entry["React Entry<br/>[main.tsx]"]
end

subgraph group_reference["Assessment Data"]
  node_data["Assessment Catalog<br/>[data.ts]"]
end

node_student(("Student"))

node_student -->|"starts assessment"| node_home
node_home -->|"requests start"| node_app
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_home
node_app -->|"renders"| node_selection
node_app -->|"renders"| node_skills
node_app -->|"renders"| node_test
node_app -->|"renders"| node_loading
node_app -->|"renders"| node_report
node_app -->|"renders"| node_header
node_app -->|"renders"| node_about
node_app -->|"renders"| node_confetti
node_app -->|"gets questions"| node_data
node_app -->|"generates report"| node_engine
node_app -->|"gets roadmap"| node_engine
node_selection -->|"gets companies"| node_data
node_skills -->|"gets roles and skills"| node_data
node_test -->|"renders"| node_share
node_report -->|"renders"| node_share
node_engine -->|"gets required skills"| node_data
node_report -->|"presents results"| node_student
node_share -->|"offers sharing"| node_student

click node_app "https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/App.tsx"
click node_home "https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/components/HomePage.tsx"
click node_selection "https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/components/SelectPage.tsx"
click node_skills "https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/components/SkillsPage.tsx"
click node_test "https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/components/TestPage.tsx"
click node_data "https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/data.ts"
click node_engine "https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/lib/aiEngine.ts"
click node_report "https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/components/ReportPage.tsx"
click node_share "https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/components/WhatsAppShareButton.tsx"
click node_header "https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/components/Header.tsx"
click node_about "https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/components/AboutPage.tsx"
click node_loading "https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/components/LoadingScreen.tsx"
click node_confetti "https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/components/Confetti.tsx"
click node_entry "https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/main.tsx"
click node_gemini "https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/lib/gemini.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_selection,node_skills,node_test toneBlue
class node_engine,node_report,node_share,node_gemini toneAmber
class node_home,node_header,node_about,node_loading,node_confetti,node_entry toneMint
class node_data toneRose
class node_student toneIndigo
```

## Components

### Assessment Journey

- [Flow Controller](https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/App.tsx): `src/App.tsx`
- [Branch & Company](https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/components/SelectPage.tsx): `src/components/SelectPage.tsx`
- [Role & Skills](https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/components/SkillsPage.tsx): `src/components/SkillsPage.tsx`
- [Skill Test](https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/components/TestPage.tsx): `src/components/TestPage.tsx`

### Scoring & Results

- [Readiness Scoring](https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/lib/aiEngine.ts): `src/lib/aiEngine.ts`
- [Results & Roadmap](https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/components/ReportPage.tsx): `src/components/ReportPage.tsx`
- [WhatsApp Share](https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/components/WhatsAppShareButton.tsx): `src/components/WhatsAppShareButton.tsx`
- [Gemini Module](https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/lib/gemini.ts): `src/lib/gemini.ts`

### App Experience

- [Home](https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/components/HomePage.tsx): `src/components/HomePage.tsx`
- [Header Navigation](https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/components/Header.tsx): `src/components/Header.tsx`
- [About Page](https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/components/AboutPage.tsx): `src/components/AboutPage.tsx`
- [Loading Screen](https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/components/LoadingScreen.tsx): `src/components/LoadingScreen.tsx`
- [Success Effect](https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/components/Confetti.tsx): `src/components/Confetti.tsx`
- [React Entry](https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/main.tsx): `src/main.tsx`

### Assessment Data

- [Assessment Catalog](https://github.com/cyril-p-jose/skillgap-ai/blob/main/src/data.ts): `src/data.ts`

### Other components

- **Student**

## Connections

- Student → Home: starts assessment (evidence: `README.md`)
- Home → Flow Controller: requests start (evidence: `src/App.tsx`)
- React Entry → Flow Controller: renders (evidence: `src/main.tsx`)
- Flow Controller → Home: renders (evidence: `src/App.tsx`)
- Flow Controller → Branch & Company: renders (evidence: `src/App.tsx`)
- Flow Controller → Role & Skills: renders (evidence: `src/App.tsx`)
- Flow Controller → Skill Test: renders (evidence: `src/App.tsx`)
- Flow Controller → Loading Screen: renders (evidence: `src/App.tsx`)
- Flow Controller → Results & Roadmap: renders (evidence: `src/App.tsx`)
- Flow Controller → Header Navigation: renders (evidence: `src/App.tsx`)
- Flow Controller → About Page: renders (evidence: `src/App.tsx`)
- Flow Controller → Success Effect: renders (evidence: `src/App.tsx`)
- Flow Controller → Assessment Catalog: gets questions (evidence: `src/App.tsx`)
- Flow Controller → Readiness Scoring: generates report (evidence: `src/App.tsx`)
- Flow Controller → Readiness Scoring: gets roadmap (evidence: `src/App.tsx`)
- Branch & Company → Assessment Catalog: gets companies (evidence: `src/components/SelectPage.tsx`)
- Role & Skills → Assessment Catalog: gets roles and skills (evidence: `src/components/SkillsPage.tsx`)
- Skill Test → WhatsApp Share: renders (evidence: `src/components/TestPage.tsx`)
- Results & Roadmap → WhatsApp Share: renders (evidence: `src/components/ReportPage.tsx`)
- Readiness Scoring → Assessment Catalog: gets required skills (evidence: `src/lib/aiEngine.ts`)
- Results & Roadmap → Student: presents results (evidence: `README.md`)
- WhatsApp Share → Student: offers sharing (evidence: `README.md`)
