# nilay-n-dhruv/skillsetra-ai architecture

> Architecture diagram of the GitHub repository nilay-n-dhruv/skillsetra-ai, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nilay-n-dhruv/skillsetra-ai
- Repository: https://github.com/nilay-n-dhruv/skillsetra-ai

## Overview

SkillSetra AI is a career-skills development application. Its apparent user journey is to assess skills, collect evidence of competency, and use that evidence to explore career fit and learning progress. The tree also shows distinct capabilities for interviews, job and resume analysis, challenges, and analytics. The README contains no architectural detail, and most feature endpoints and pages were not sampled, so feature links are shown only where supported; dashed links indicate unverified product-flow connections.

Main entry points: [`backend/app/main.py`](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/main.py) (API application), [`backend/app/api/routes.py`](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/routes.py) (Profile and career API), [`backend/app/api/search.py`](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/search.py) (Search API), [`backend/app/api/exam.py`](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/exam.py) (Exam API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_assessment_ui["Assessment UI<br/>[page.js]"]
  node_evidence_ui["Evidence graph UI<br/>[page.js]"]
  node_career_ui["Career and growth UI<br/>[page.js]"]
  node_interview_ui["Interview UI<br/>[page.js]"]
  node_job_ui["Job and resume UI<br/>[page.js]"]
  node_analytics_ui["Analytics UI<br/>[page.jsx]"]
end

subgraph group_api["API features"]
  node_api_entry["API application<br/>[main.py]"]
  node_general_api["Profile and career API<br/>[routes.py]"]
  node_assessment_api["Exam API<br/>[exam.py]"]
  node_challenge_api["Challenges API<br/>[challenges.py]"]
  node_interview_api["Interviews API<br/>[interviews.py]"]
  node_jobs_api["Jobs API<br/>[jobs.py]"]
  node_jobcheck_api["Job check API<br/>[jobcheck.py]"]
  node_resume_api["Resume API<br/>[resume.py]"]
  node_analytics_api["Analytics API<br/>[analytics.py]"]
  node_other_features["Learning and insights APIs<br/>[learning.py]"]
  node_search_api["Search API<br/>[search.py]"]
  node_notifications["Notifications API<br/>[notifications.py]"]
end

subgraph group_domain["Domain services"]
  node_competency["Competency service<br/>[competency.py]"]
  node_search_service["Search service<br/>[search.py]"]
  node_evidence_graph_service["Evidence graph service<br/>[evidence_graph.py]"]
  node_question_bank["Assessment question bank<br/>[questions.py]"]
  node_extra_questions["Extended question bank<br/>[questions_extra.py]"]
end

subgraph group_platform["Core platform"]
  node_catalog["Role and learning catalog<br/>[catalog.py]"]
  node_ai_provider["AI provider<br/>[provider.py]"]
  node_database[("Database access<br/>[db.py]")]
  node_security["Authentication and security<br/>[security.py]"]
end

node_user(("User"))

node_user -.->|"starts assessment"| node_assessment_ui
node_assessment_ui -.->|"submits assessment"| node_assessment_api
node_assessment_api -.->|"uses questions"| node_question_bank
node_question_bank -->|"includes extras"| node_extra_questions
node_assessment_api -->|"registered by"| node_api_entry
node_api_entry -->|"registers router"| node_general_api
node_api_entry -->|"registers router"| node_assessment_api
node_api_entry -->|"registers router"| node_challenge_api
node_api_entry -->|"registers router"| node_interview_api
node_api_entry -->|"registers router"| node_jobs_api
node_api_entry -->|"registers router"| node_jobcheck_api
node_api_entry -->|"registers router"| node_resume_api
node_api_entry -->|"registers router"| node_analytics_api
node_api_entry -->|"registers router"| node_other_features
node_api_entry -->|"registers router"| node_notifications
node_general_api -->|"reads catalog"| node_catalog
node_general_api -->|"reads and writes"| node_database
node_general_api -->|"queries competency"| node_competency
node_general_api -->|"checks users"| node_security
node_search_api -->|"calls search"| node_search_service
node_search_api -->|"loads user data"| node_database
node_search_api -->|"passes roles"| node_catalog
node_search_api -->|"checks users"| node_security
node_search_service -->|"uses source labels"| node_evidence_graph_service
node_user -.->|"explores evidence"| node_evidence_ui
node_user -.->|"reviews career path"| node_career_ui
node_user -.->|"practices interviews"| node_interview_ui
node_user -.->|"checks opportunities"| node_job_ui
node_user -.->|"reviews progress"| node_analytics_ui
node_user -.->|"searches own data"| node_search_api
node_user -.->|"sends API requests"| node_api_entry
node_api_entry -.->|"uses AI features"| node_ai_provider

click node_assessment_ui "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/frontend/app/(app)/assessment/page.js"
click node_evidence_ui "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/frontend/app/(app)/evidence-graph/page.js"
click node_career_ui "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/frontend/app/(app)/career/page.js"
click node_interview_ui "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/frontend/app/(app)/interviewer/page.js"
click node_job_ui "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/frontend/app/(app)/job-check/page.js"
click node_analytics_ui "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/frontend/app/(app)/analytics/page.jsx"
click node_api_entry "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/main.py"
click node_general_api "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/routes.py"
click node_assessment_api "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/exam.py"
click node_challenge_api "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/challenges.py"
click node_interview_api "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/interviews.py"
click node_jobs_api "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/jobs.py"
click node_jobcheck_api "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/jobcheck.py"
click node_resume_api "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/resume.py"
click node_analytics_api "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/analytics.py"
click node_other_features "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/learning.py"
click node_competency "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/services/competency.py"
click node_search_api "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/search.py"
click node_search_service "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/services/search.py"
click node_evidence_graph_service "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/services/evidence_graph.py"
click node_catalog "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/core/catalog.py"
click node_question_bank "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/core/questions.py"
click node_extra_questions "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/core/questions_extra.py"
click node_ai_provider "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/ai/provider.py"
click node_database "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/core/db.py"
click node_security "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/core/security.py"
click node_notifications "https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/notifications.py"

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_assessment_ui,node_evidence_ui,node_career_ui,node_interview_ui,node_job_ui,node_analytics_ui,node_user toneBlue
class node_api_entry,node_general_api,node_assessment_api,node_challenge_api,node_interview_api,node_jobs_api,node_jobcheck_api,node_resume_api,node_analytics_api,node_other_features,node_search_api,node_notifications toneAmber
class node_competency,node_search_service,node_evidence_graph_service,node_question_bank,node_extra_questions toneMint
class node_catalog,node_ai_provider,node_database,node_security toneRose
```

## Components

### User experience

- [Assessment UI](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/frontend/app/(app)/assessment/page.js): `frontend/app/(app)/assessment/page.js`
- [Evidence graph UI](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/frontend/app/(app)/evidence-graph/page.js): `frontend/app/(app)/evidence-graph/page.js`
- [Career and growth UI](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/frontend/app/(app)/career/page.js): `frontend/app/(app)/career/page.js`
- [Interview UI](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/frontend/app/(app)/interviewer/page.js): `frontend/app/(app)/interviewer/page.js`
- [Job and resume UI](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/frontend/app/(app)/job-check/page.js): `frontend/app/(app)/job-check/page.js`
- [Analytics UI](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/frontend/app/(app)/analytics/page.jsx): `frontend/app/(app)/analytics/page.jsx`

### API features

- [API application](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/main.py): `backend/app/main.py`
- [Profile and career API](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/routes.py): `backend/app/api/routes.py`
- [Exam API](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/exam.py): `backend/app/api/exam.py`
- [Challenges API](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/challenges.py): `backend/app/api/challenges.py`
- [Interviews API](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/interviews.py): `backend/app/api/interviews.py`
- [Jobs API](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/jobs.py): `backend/app/api/jobs.py`
- [Job check API](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/jobcheck.py): `backend/app/api/jobcheck.py`
- [Resume API](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/resume.py): `backend/app/api/resume.py`
- [Analytics API](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/analytics.py): `backend/app/api/analytics.py`
- [Learning and insights APIs](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/learning.py): `backend/app/api/learning.py`
- [Search API](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/search.py): `backend/app/api/search.py`
- [Notifications API](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/api/notifications.py): `backend/app/api/notifications.py`

### Domain services

- [Competency service](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/services/competency.py): `backend/app/services/competency.py`
- [Search service](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/services/search.py): `backend/app/services/search.py`
- [Evidence graph service](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/services/evidence_graph.py): `backend/app/services/evidence_graph.py`
- [Assessment question bank](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/core/questions.py): `backend/app/core/questions.py`
- [Extended question bank](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/core/questions_extra.py): `backend/app/core/questions_extra.py`

### Core platform

- [Role and learning catalog](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/core/catalog.py): `backend/app/core/catalog.py`
- [AI provider](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/ai/provider.py): `backend/app/ai/provider.py`
- [Database access](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/core/db.py): `backend/app/core/db.py`
- [Authentication and security](https://github.com/nilay-n-dhruv/skillsetra-ai/blob/main/backend/app/core/security.py): `backend/app/core/security.py`

### Other components

- **User**

## Connections

- User → Assessment UI: starts assessment
- Assessment UI → Exam API: submits assessment
- Exam API → Assessment question bank: uses questions
- Assessment question bank → Extended question bank: includes extras (evidence: `backend/app/core/questions.py`)
- Exam API → API application: registered by (evidence: `backend/app/main.py`)
- API application → Profile and career API: registers router (evidence: `backend/app/main.py`)
- API application → Exam API: registers router (evidence: `backend/app/main.py`)
- API application → Challenges API: registers router (evidence: `backend/app/main.py`)
- API application → Interviews API: registers router (evidence: `backend/app/main.py`)
- API application → Jobs API: registers router (evidence: `backend/app/main.py`)
- API application → Job check API: registers router (evidence: `backend/app/main.py`)
- API application → Resume API: registers router (evidence: `backend/app/main.py`)
- API application → Analytics API: registers router (evidence: `backend/app/main.py`)
- API application → Learning and insights APIs: registers router (evidence: `backend/app/main.py`)
- API application → Notifications API: registers router (evidence: `backend/app/main.py`)
- Profile and career API → Role and learning catalog: reads catalog (evidence: `backend/app/api/routes.py`)
- Profile and career API → Database access: reads and writes (evidence: `backend/app/api/routes.py`)
- Profile and career API → Competency service: queries competency (evidence: `backend/app/api/routes.py`)
- Profile and career API → Authentication and security: checks users (evidence: `backend/app/api/routes.py`)
- Search API → Search service: calls search (evidence: `backend/app/api/search.py`)
- Search API → Database access: loads user data (evidence: `backend/app/api/search.py`)
- Search API → Role and learning catalog: passes roles (evidence: `backend/app/api/search.py`)
- Search API → Authentication and security: checks users (evidence: `backend/app/api/search.py`)
- Search service → Evidence graph service: uses source labels (evidence: `backend/app/services/search.py`)
- User → Evidence graph UI: explores evidence
- User → Career and growth UI: reviews career path
- User → Interview UI: practices interviews
- User → Job and resume UI: checks opportunities
- User → Analytics UI: reviews progress
- User → Search API: searches own data
- User → API application: sends API requests
- API application → AI provider: uses AI features (evidence: `backend/app/main.py`)
