SkillGraph maps applicant skill profiles to Indian technology roles, predicts readiness with qualitative bands, and recommends prioritized skill additions with co-occurrence companions. The system is built from 12,872 labelled Indian tech job postings, association rule mining with FP-growth, and a calibrated logistic regression classifier.
| Service | URL |
|---|---|
| Web Application | skillgraph-exp.vercel.app |
| Video Walkthrough | tella.tv/video/skillgraph-are-you-ready-for-your-tech-role-f2uz |
| API Health | skillgraph-api-notionatul.vercel.app/api/health |
| API Documentation | skillgraph-api-notionatul.vercel.app/docs |
| Data Release | GitHub Release data-v4 |
| Model Release | GitHub Release model-v4 |
| Rules Release | GitHub Release rules-v2 |
- Readiness scoring with qualitative bands: Probability outputs pair with role top-20 skill coverage to place applicants in Ready, Close, or Not yet.
- Top 3 role family matches: Softmax probabilities rank the closest career tracks from 10 calibrated role distributions.
- Ranked skill gap recommendations: Counterfactual probability gains multiplied by empirical posting frequency identify the top 5 skills to learn next.
- Companion skill discovery: Mined association rules surface co-occurring tools at lift >= 1.50 for combined learning.
- Fast autocomplete over aliases: Prefix search indexes 800 canonical vocabulary skills and 834 synonyms from
taxonomy/skill_aliases.csv. - Immediate input validation: Unrecognized skills and out-of-domain inputs return structured feedback before analysis.
- Single-request evaluation: The
/api/analyzeendpoint executes matching, readiness calibration, and gap ranking in one round trip. - One-command pipeline rebuild: A single
make allcommand runs extraction, cleaning, normalization, training, and rule generation.
flowchart TD
subgraph ETL["ETL Pipeline (Atul)"]
Raw["Raw Data (XLSX)"] --> Clean["Clean Postings"]
Clean --> Norm["Normalize Skills (800 Vocab)"]
Norm --> Label["Role Labelling (10 Families)"]
Norm --> Baskets["Market Baskets"]
end
subgraph ML["Machine Learning (Aditya)"]
Label --> Split["Stratified Split (8,941 Train)"]
Split --> Aug["Data Augmentation (26,039 Rows)"]
Aug --> Train["L2 Logistic Regression"]
Train --> Export["Export model.json"]
end
subgraph Mining["Association Mining (Aryan)"]
Baskets --> FPG["FP-Growth (Support 0.5%)"]
FPG --> Rules["Rule Mining (231 Rules)"]
Rules --> ExportRules["Export rules.json"]
end
Export --> Artifacts["Committed Artifacts"]
ExportRules --> Artifacts
Norm --> ExportVocab["Export skill_vocab.json"]
ExportVocab --> Artifacts
flowchart LR
Browser["User Browser"] --> Client["React UI (Vercel)"]
Client --> Rewrite["Vercel Rewrite (/api/*)"]
Rewrite --> API["FastAPI (Vercel Serverless)"]
API --> NormRuntime["Normalize Skills"]
NormRuntime --> Predict["NumPy Softmax (model.json)"]
NormRuntime --> Gap["Gap Ranking (rules.json)"]
Predict --> Response["JSON Response"]
Gap --> Response
Response --> Client
Readiness bands require satisfying both a probability threshold and a role coverage threshold (ml/predict.py). The final band is the minimum of the two.
| Band | Probability Requirement | Role Top-20 Coverage Requirement | Interpretation |
|---|---|---|---|
| Ready | Probability >= 0.60 | Coverage >= 0.20 | Strong fit across both model probability and core skills |
| Close | Probability >= 0.30 | Coverage >= 0.10 | Within reach, 1 to 2 skills away from target role expectations |
| Not yet | Probability < 0.30 | Coverage < 0.10 | Early starting point, foundational skills missing |
Skill gaps rank candidate competencies by potential impact on readiness (mining/gap.py).
| Component | Rule / Cutoff | Source File |
|---|---|---|
| Gap Score | Score = Delta Readiness Γ Empirical Role Coverage | mining/gap.py |
| Readiness Gain | Counterfactual probability delta via ml.predict.delta_readiness |
ml/predict.py |
| Companion Lift | Lift >= 1.50 for co-occurring gap skills | mining/gap.py |
| Non-Learnable Filter | Excludes non-learnable tokens from taxonomy/non_learnable.txt |
taxonomy/non_learnable.txt |
| Redundancy Filter | Prunes synonyms and word subsets via _is_redundant_skill |
mining/gap.py |
The table below summarizes dataset, model, mining, and latency metrics across the repository.
| Metric | Value | Source |
|---|---|---|
| Labelled Postings | 12,872 | data/stats/label.json |
| Role Families | 10 | taxonomy/role_families.csv |
| Vocabulary Size | 800 | artifacts/skill_vocab.json |
| Mapped Mass | 65.4% (177,432 / 271,108) | docs/stats.json |
| Test Macro F1 | 0.7499 | artifacts/metrics.json |
| Test Accuracy | 0.7527 | artifacts/metrics.json |
| Test Top-3 Accuracy | 0.9254 | artifacts/metrics.json |
| Majority Baseline Accuracy | 0.1774 | artifacts/metrics.json |
| Short-Input Test Macro F1 | 0.6116 | artifacts/metrics.json |
| ECE (Pooled OvR) | 0.0120 | artifacts/metrics.json |
| ECE (Top-Label) | 0.0614 | artifacts/metrics.json |
| Mined Association Rules | 231 | artifacts/rules.parquet |
| Apriori Mining Time (0.5% Sup) | 43.6936 s | docs/bench.json |
| FP-Growth Mining Time (0.5% Sup) | 0.3454 s | docs/bench.json |
| Mining Speedup | 126.49x | docs/bench.json |
| Production Latency (p50) | 454.4 ms | docs/deploy.md |
| Production Latency (p95) | 728.8 ms | docs/deploy.md |
| Production Cold Start | 2521.1 ms | docs/deploy.md |
Logistic regression shipped over LightGBM because LightGBM scored 0.7648 test macro F1 against logistic regression at 0.7499, a difference of 1.49 percentage points that fell short of the required 3.0-point threshold.
Detailed documentation is available in docs/model.md, docs/mining.md, and docs/deploy.md.
- Splits: 8,941 raw train rows expanded to 26,039 via data augmentation (
ml/augment.py), 1,916 validation rows, and 1,917 test rows. - Augmentation: Subsampling 2 copies per posting with random subsets of size between 2 and
n-1skills to reflect partial resumes. - Short-Input Test Set: Constructed by pruning test postings down to 2 to 3 skills, testing classification on sparse user input.
# Reproduce model training and metrics
make train- Dataset: 34,569 baskets extracted from
data/clean.parquet. - Threshold: Minimum support 0.005 (0.50%), minimum confidence 0.30, minimum lift 1.20.
- Results: Both algorithms found identical 501 itemsets. Apriori required 43.6936 seconds, while FP-growth finished in 0.3454 seconds (126.49x speedup). Hardware environment was not recorded in
docs/bench.json.
# Reproduce mining benchmark
make bench- Environment: Vercel Serverless Function running Python 3.12, measured on 2026-10-05.
- Procedure: 20 sequential POST requests to
https://skillgraph-exp.vercel.app/api/analyzeusingcurlwith payload{"skills":["python","sql","pandas"],"desired_role":"Data / BI Analyst"}. - Metrics: Cold start latency measured at 2521.1 ms; warm sequential requests recorded p50 of 454.4 ms and p95 of 728.8 ms.
# Run production smoke verification
bash scripts/smoke.sh https://skillgraph-exp.vercel.app- Python 3.12
- Node.js 22 (or Node.js 18+)
- GitHub CLI (
gh) authenticated viagh auth login
To run the application locally using prebuilt artifacts:
# 1. Setup virtual environment and frontend packages
make setup
# 2. Download prebuilt data and model artifacts
make fetch-data
# 3. Start local API server (prints http://127.0.0.1:8000)
make api
# 4. In a separate terminal, start frontend dev server (prints http://localhost:5173)
make webTo rebuild the dataset, vocabulary, model, and association rules from raw data:
# Place raw XLSX into data/raw/indian-job-market-dataset-2025.xlsx
make allPipeline wall clock execution times recorded in data/stats/: clean stage 4.14 seconds (data/stats/clean.json), labelling stage 1.70 seconds (data/stats/label.json), training stage 8.84 seconds (data/stats/train.json). Total rebuild time completes in under 20 seconds.
SkillGraph/
βββ .github/workflows/ci.yml # GitHub Actions CI workflow
βββ AGENTS.md # Engineering guidelines and ownership contracts
βββ Makefile # Top-level pipeline automation targets
βββ README.md # Project documentation and results overview
βββ app.py # Vercel Serverless entrypoint
βββ requirements.txt # Pinned runtime dependencies
βββ requirements-dev.txt # Build-time dependencies for training and mining
βββ api/ # Serving layer (Archit)
β βββ artifacts.py # In-memory artifact loader and validator
β βββ main.py # FastAPI route definitions and handlers
β βββ schemas.py # Pydantic request and response models
βββ artifacts/ # Committed model, rules, and vocabulary JSON files
β βββ metrics.json # Evaluation metrics, confusion matrix, calibration
β βββ model.json # Exported logistic regression weights and classes
β βββ role_profiles.json # Top skills and empirical frequencies per role
β βββ rules.json # Mined association rules for inference
β βββ skill_vocab.json # Ordered 800 canonical skill strings
β βββ skills_autocomplete.json # Autocomplete list with synonyms
βββ docs/ # Detailed architecture, benchmarks, and audits
β βββ api.md # Endpoint documentation with live request/response examples
β βββ bench.json # Apriori vs FP-growth itemset benchmark data
β βββ contracts.md # Inter-module data schemas and persona contracts
β βββ deploy.md # Vercel deployment settings and latency records
β βββ mining.md # Market basket mining and gap ranking details
β βββ model.md # Classification model architecture and metrics
β βββ numbers_audit.md # Numbers reconciliation table and audit log
β βββ stats.json # Unified repository statistics
βββ etl/ # Extraction, normalization, and labelling (Atul)
β βββ clean.py # Deduplication and tech keyword filtering
β βββ label.py # Role assignment and market basket generation
β βββ normalize.py # Skill string cleaning, alias lookup, RapidFuzz
β βββ paths.py # File paths and artifact directory constants
β βββ pipeline.py # End-to-end data pipeline orchestrator
β βββ tech_terms.txt # Keyword list for initial tech subset selection
βββ frontend/ # React web application (Shashank)
β βββ package.json # Frontend package dependencies
β βββ vercel.json # API route rewrites for Vercel deployment
β βββ vite.config.js # Vite bundler configuration
β βββ src/ # Application components, hooks, and styles
β βββ App.jsx # Main application interface and view manager
β βββ animations.js # Framer Motion animation configurations
β βββ components/ # ReadinessPanel, GapPanel, MatchPanel, inputs
β βββ hooks/ # Count-up and scroll reveal hooks
βββ mining/ # Association mining and gap scoring (Aryan)
β βββ apriori.py # Level-wise Apriori implementation from scratch
β βββ fpgrowth_bench.py # Benchmark comparing Apriori and FP-growth
β βββ gap.py # Counterfactual gap ranking and companion rules
β βββ rules.py # FP-growth execution and rule export pipeline
βββ ml/ # Machine learning and evaluation (Aditya)
β βββ augment.py # Training data skill subsampling augmentation
β βββ evaluate.py # Calibration analysis and short-input evaluation
β βββ export_runtime.py # JSON serialization of trained model weights
β βββ features.py # Multi-hot vector transformation utilities
β βββ predict.py # Serving path softmax inference and readiness logic
β βββ train.py # Logistic regression training and evaluation
βββ scripts/ # Utilities and smoke verification
β βββ collect_stats.py # Metrics aggregator emitting docs/stats.json
β βββ persona_check.py # Persona validation and junk recommendation audit
β βββ smoke.sh # Production smoke test script
βββ taxonomy/ # Skill and role definitions (Aryan)
β βββ display_overrides.csv # Capitalization overrides for UI presentation
β βββ non_learnable.txt # Tokens excluded from recommendations
β βββ role_families.csv # Regex patterns and priority rules for 10 roles
β βββ skill_aliases.csv # 834 alias mappings to canonical skills
βββ tests/ # Automated test suite
βββ test_api.py # FastAPI route status and response contract tests
βββ test_apriori.py # Apriori correctness and pruning logic tests
βββ test_normalize.py # Fuzzy matching and token cleaning tests
βββ test_predict.py # Model inference, readiness, and dimension tests
βββ test_runtime.py # Lightweight serving layer parity and persona checks
Full request and response samples are available in docs/api.md and docs/SkillGraph.postman_collection.json.
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/health |
Service health status, artifact metadata, posting count, and model version |
GET |
/api/roles |
List 10 role families, training posting counts, and top 20 skills |
GET |
/api/skills?q={q} |
Prefix search over 800 canonical skills and 834 synonyms |
POST |
/api/match |
Predict top 3 roles from input skills |
POST |
/api/readiness |
Compute role readiness probability, qualitative band, and skill coverage |
POST |
/api/gap |
Recommend top 5 skills to learn next with companion pairings |
POST |
/api/analyze |
Unified match, readiness, and gap recommendations in a single call |
curl -s -X POST "https://skillgraph-api-notionatul.vercel.app/api/analyze" \
-H "Content-Type: application/json" \
-d '{"skills":["python","sql","pandas"],"desired_role":"Data / BI Analyst"}'{
"match": {
"matches": [
{ "role": "Backend", "probability": 0.4906 },
{ "role": "Data Science / ML", "probability": 0.1957 },
{ "role": "Data / BI Analyst", "probability": 0.108 }
],
"unrecognized": []
},
"readiness": {
"probability": 0.108,
"band": "Not yet",
"coverage": 0.1,
"covered": ["Python", "SQL"],
"missing_count": 18
},
"gap": {
"recommendations": [
{ "skill": "Power BI", "coverage_pct": 0.1447, "readiness_gain": 0.4881, "learn_with": [] },
{ "skill": "Data Engineering", "coverage_pct": 0.1583, "readiness_gain": 0.4357, "learn_with": [] },
{ "skill": "PySpark", "coverage_pct": 0.1593, "readiness_gain": 0.3163, "learn_with": [] },
{ "skill": "Data Analysis", "coverage_pct": 0.1583, "readiness_gain": 0.2766, "learn_with": [] },
{ "skill": "Snowflake", "coverage_pct": 0.0943, "readiness_gain": 0.4271, "learn_with": [] }
]
}
}- Maximum 30 skills per request.
- Maximum 60 characters per skill string.
- Requests with zero skills return HTTP 400.
- Requests where all skills fail normalization return HTTP 400 with the unrecognized terms.
- Requests specifying an invalid or unknown
desired_rolereturn HTTP 400.
| Layer | Technology | Version | Purpose |
|---|---|---|---|
| Serving Runtime | Python | 3.12 | Base environment for API execution |
| API Framework | FastAPI | 0.142.2 | High-performance ASGI REST endpoints |
| ASGI Server | Uvicorn | 0.54.0 | Local development and server process |
| Inference Math | NumPy | 2.4.6 | Vector multiplications and softmax |
| String Normalization | RapidFuzz | 3.14.6 | Levenshtein ratio matching for fuzzy tokens |
| ML Training | Scikit-learn | 1.9.1 | L2 Logistic Regression classifier |
| Gradient Boosting | LightGBM | 4.7.0 | Validation baseline for 3-point rule comparison |
| Association Mining | MLxtend | 0.25.0 | High-speed FP-growth itemset generation |
| Data Processing | Pandas | 3.0.6 | Data cleaning and tabular profiling |
| Columnar Storage | PyArrow | 25.0.1 | Parquet serialization for datasets and rules |
| Frontend Framework | React | 18.3.1 | Declarative component UI |
| Build Tool | Vite | 6.0.7 | Fast bundle assembly and local HMR |
| Styling | Tailwind CSS | 4.0.0 | Design tokens and responsive utilities |
| Animation Engine | Framer Motion | 14.1.0 | Micro-interactions and count-up animations |
| Icons | Lucide React | 0.468.0 | Vector interface icons |
| HTTP Client | Axios | 1.7.9 | Frontend API communication |
| Cloud Hosting | Vercel | Serverless | Zero-server hosting with edge rewrites |
The test suite covers data normalization, Apriori correctness, model inference dimensions, serving parity against pickled classifiers, and end-to-end persona evaluations.
# Run code formatting checks and full test suite
make testTest output from execution:
30 passed, 1 warning in 3.54s
- Slow first request (cold start): The first API call after an idle period takes approximately 2521.1 ms because Vercel Serverless initializes a fresh Python runtime and deserializes model JSON artifacts into memory. Subsequent calls execute in warm state (p50: 454.4 ms).
- Skill marked as "Not recognized": If a typed skill shows dashed borders or returns in
unrecognized, the string did not match any canonical skill or alias with RapidFuzz ratio >= 88. Verify standard naming againstartifacts/skill_vocab.json. make allfails on missing dataset: The full pipeline rebuild requiresdata/raw/indian-job-market-dataset-2025.xlsx. If the raw XLSX file is not present, usemake fetch-datato download prebuilt Parquet artifacts directly from GitHub Releases.make fetch-datafails: Ensure GitHub CLI is logged in. Rungh auth loginand re-runmake fetch-data.
- 8-tag ceiling: Source postings frequently truncate skill tags at 8 items, limiting observed basket size.
- Exclusion of generic and unmatched titles: 16,142 unmatched titles and 5,555 generic Software Engineer postings were excluded during labelling, restricting trained roles to 12,872 postings (42.2% of clean rows).
- Posted demand vs hiring reality: Postings capture advertised requirements rather than final hired skills or salary outcomes.
- Lack of posting dates: Source dates contain relative strings like "6 Days Ago", preventing chronological time-based validation splits.
- Short-input performance drop: Test macro F1 drops from 0.7499 on complete descriptions to 0.6116 on 2 to 3 skill inputs.
- Non-tech skill leakage: 69 of 231 rules contain zero tech skills because broad job titles like "HR Recruiter for Engineering" passed initial keyword filtering.
- Persona 1 instability:
python, sql, pandaspredicts Backend (0.4906) over Data / BI Analyst (0.1080) because pandas appears in only 36 of 8,941 training rows and received a negative coefficient (-0.7813). - Geographic focus: Postings reflect the Indian job market exclusively.
| Name | GitHub | Module |
|---|---|---|
| Atul | AtulACleaver | ETL |
| Aditya | real-aditya-kumar | ML |
| Aryan | eccentricAryan404 | Mining and Taxonomy |
| Archit | Archit1302-wolf | API |
| Shashank | ssp0009 | Frontend |
SkillGraph readiness percentages and qualitative bands are statistical model estimates derived from job posting text patterns. They do not constitute hiring guarantees, formal qualifications, or career advice.
