Skip to content
KulgaganPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

241 Commits

Folders and files

Repository files navigation

SkillSync

SkillSync is an AI-powered onboarding and recruitment platform (HackED 2025). Paste a GitHub repository URL and get plain-language summaries of its code—useful for hiring managers evaluating candidates and for developers ramping up on unfamiliar codebases.

The live product surface today is the repo summarizer. Practice quizzes and analytics are planned and partially stubbed in the UI.

Features

Feature Status
GitHub repo summarizer Working — paste a repo URL, get per-file summaries via Ollama
GitHub OAuth Backend routes ready; auth button not wired in the current HTML
Practice quizzes In progress — separate quiz API exists but is not mounted in the main app
Analytics Placeholder page

How summarization works

  1. You submit a GitHub repo URL on the Summarizer page.
  2. The backend fetches the repo via the GitHub API.
  3. It collects top-level .py and .js files (not nested directories).
  4. Each file is summarized with Ollama (llama3.1) into a ~400-word paragraph.
  5. Summaries are returned and shown in the UI.

Tech stack

  • Backend: Python, FastAPI, Pydantic, requests / httpx, python-dotenv
  • LLM: Ollama (llama3.1 for summaries; llama3.3 for the quiz module)
  • Auth: GitHub OAuth (optional)
  • Frontend: Static HTML/CSS + TypeScript (compiled to frontend/dist/script.js)

Prerequisites

  1. Python 3.11+
  2. Ollama installed and running, with the model pulled:
    ollama pull llama3.1
    For the quiz module (optional):
    ollama pull llama3.3
  3. A GitHub personal access token (for the GitHub API)
  4. Optional: a GitHub OAuth App if you want /auth/github
  5. Optional: Node.js + TypeScript only if you edit frontend/ts/script.ts

Setup

1. Clone and install Python deps

There is no requirements.txt yet. From the repo root:

cd SkillSync
python -m venv .venv
source .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install fastapi uvicorn pydantic requests httpx python-dotenv ollama

2. Environment variables

Create a .env file in the project root (the file is gitignored):

GITHUB_TOKEN=your_github_personal_access_token

# Optional — GitHub OAuth
Client_ID=your_oauth_client_id
Client_secrets=your_oauth_client_secret

OAuth callback URL (if using OAuth): http://localhost:8000/auth/callback

3. Start Ollama

Make sure the Ollama daemon is running locally before calling /analyze.

Running the app

Backend

Run from the repo root so backend.* imports resolve:

uvicorn backend.main:app --reload --host 127.0.0.1 --port 8000

You should see the API at http://127.0.0.1:8000 with:

{ "message": "Welcome to the AI Onboarding API!" }

Frontend

Serve the static frontend (any static server works):

cd frontend
python -m http.server 5500

Open http://127.0.0.1:5500/index.html.

The Summarizer page calls the backend at http://127.0.0.1:8000.

Rebuild frontend JS (optional)

If you change TypeScript:

cd frontend
npx tsc

Output goes to frontend/dist/script.js.

How to use

  1. Start Ollama, the backend (port 8000), and the frontend (e.g. port 5500).
  2. Open the site and go to Summarizer.
  3. Paste a GitHub URL, e.g. https://github.com/owner/repo.
  4. Click Submit and wait for per-file summaries.

Home introduces the product. Practice Quizzes and Analytics are marked in progress.

API

Method Path Description
GET / Health / welcome message
POST /analyze Summarize a repo. Body: { "repo_url": "https://github.com/owner/repo" }
GET /auth/github Start GitHub OAuth
GET /auth/callback OAuth callback (returns access token JSON)

Example:

curl -X POST http://127.0.0.1:8000/analyze \
  -H "Content-Type: application/json" \
  -d '{"repo_url": "https://github.com/owner/repo"}'

Response shape:

{
  "summaries": {
    "main.py": "…plain-language summary…",
    "app.js": "…"
  }
}

Quiz API (optional, separate)

The quiz generator is its own FastAPI app and is not mounted in main.py. To try it alone:

uvicorn backend.quiz_generator:app --reload --port 8001

Endpoints include /generate-quiz/, /get-quiz/, and /submit-answers/. It currently uses sample summary text, not live /analyze output.

Project structure

SkillSync/
├── backend/
│   ├── main.py                 # FastAPI entry (CORS, /analyze, auth)
│   ├── github_analyzer.py      # Fetch repo metadata and file contents
│   ├── summarizer.py           # Ollama code summarization
│   ├── quiz_generator.py       # Standalone quiz API (not mounted)
│   ├── git_authentication.py   # GitHub OAuth routes
│   └── state.py                # Shared state helper
├── frontend/
│   ├── index.html              # Home
│   ├── page1.html              # Practice Quizzes (stub)
│   ├── page2.html              # Summarizer (main working UI)
│   ├── page3.html              # Analytics (stub)
│   ├── css/style.css
│   ├── images/logo.png
│   ├── ts/script.ts            # Summarizer client logic
│   ├── dist/script.js          # Compiled JS loaded by pages
│   ├── package.json
│   └── tsconfig.json
├── .env                        # Your secrets (not committed)
└── README.md

Notes & limitations

  • Summarization only looks at root-level .py and .js files.
  • Large repos or deep folder trees will not be fully covered.
  • Ensure Ollama is running before analyzing; otherwise summarization will fail.
  • Quizzes and analytics are not fully integrated yet.

License

HackED 2025 project — see repository for any additional licensing details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages