# samruth07/careercraft-ai- architecture

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

- Interactive diagram: https://gitdiagram.com/samruth07/careercraft-ai-
- Repository: https://github.com/samruth07/careercraft-ai-

## Overview

CareerCraft AI is a Streamlit career-intelligence dashboard whose main workflow validates a resume, extracts a profile, analyzes role-specific skill gaps, and produces a learning roadmap, tailored resume, interview preparation, and synthesized career reasoning. LangGraph supervision coordinates the agents; RAG grounds analysis and preparation in a knowledge base, while persistence supports analysis history and conversation memory. The README documents the user-facing flow and capabilities; several implementation files, including the UI and some agents, were not sampled, so those links are omitted or marked unverified.

Main entry points: [`agents/supervisor.py`](https://github.com/samruth07/careercraft-ai-/blob/main/agents/supervisor.py) (Workflow supervisor), [`agents/gap_analyzer.py`](https://github.com/samruth07/careercraft-ai-/blob/main/agents/gap_analyzer.py) (Skill gap analysis), [`streamlit_app.py`](https://github.com/samruth07/careercraft-ai-/blob/main/streamlit_app.py) (Career dashboard), [`agents/roadmap_generator.py`](https://github.com/samruth07/careercraft-ai-/blob/main/agents/roadmap_generator.py) (Learning roadmap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Dashboard &amp; Memory"]
  node_dashboard["Career dashboard<br/>[streamlit_app.py]"]
  node_history["Analysis history<br/>[persistence.py]"]
  node_conversation["Conversation memory<br/>[conversation.py]"]
  node_db[("SQLite records<br/>[models.py]")]
end

subgraph group_orchestration["Agent Workflow"]
  node_supervisor["Workflow supervisor<br/>[supervisor.py]"]
  node_guardrails["Resume guardrails<br/>[guardrails.py]"]
  node_parser["Resume parser<br/>[resume_parser.py]"]
  node_gap["Skill gap analysis<br/>[gap_analyzer.py]"]
  node_roadmap["Learning roadmap"]
  node_tailor["Resume tailoring<br/>[resume_tailor.py]"]
  node_coach["Interview coaching<br/>[interview_coach.py]"]
  node_reasoning["Career reasoning<br/>[reasoning_agent.py]"]
  node_matchmaker["Job matching<br/>[matchmaker.py]"]
end

subgraph group_knowledge["Knowledge &amp; Retrieval"]
  node_knowledge_data["Career knowledge base"]
  node_ingest["Knowledge ingestion<br/>[ingest.py]"]
  node_embeddings["Text embeddings<br/>[embeddings.py]"]
  node_retriever["Context retrieval<br/>[retriever.py]"]
  node_vectorstore[("Vector store<br/>[vectorstore.py]")]
end

subgraph group_integrations["Career Tools"]
  node_web_search["Market web search<br/>[web_search.py]"]
  node_github["GitHub profile analysis<br/>[github_analyzer.py]"]
  node_pdf["Resume PDF parsing<br/>[pdf_parser.py]"]
  node_skill_matcher["Skill matching<br/>[skill_matcher.py]"]
end

subgraph group_foundation["LLM &amp; Configuration"]
  node_settings["Model settings<br/>[settings.py]"]
  node_prompts["Agent prompts<br/>[prompts.py]"]
end

node_user(("CareerCraft user"))

node_user -.->|"provides resume"| node_dashboard
node_dashboard -.->|"starts analysis"| node_supervisor
node_supervisor -->|"routes validation"| node_guardrails
node_supervisor -->|"routes parsing"| node_parser
node_supervisor -->|"routes analysis"| node_gap
node_supervisor -->|"routes planning"| node_roadmap
node_supervisor -->|"routes tailoring"| node_tailor
node_supervisor -->|"routes coaching"| node_coach
node_supervisor -->|"routes synthesis"| node_reasoning
node_supervisor -->|"routes matching"| node_matchmaker
node_supervisor -.->|"saves results"| node_history
node_history -->|"writes records"| node_db
node_conversation -.->|"persists messages"| node_db
node_dashboard -.->|"views trends"| node_history
node_dashboard -.->|"consults memory"| node_conversation
node_knowledge_data -->|"loads documents"| node_ingest
node_ingest -->|"uses embeddings"| node_embeddings
node_ingest -->|"stores chunks"| node_vectorstore
node_retriever -->|"queries vectors"| node_vectorstore
node_gap -->|"retrieves context"| node_retriever
node_roadmap -->|"retrieves resources"| node_retriever
node_coach -->|"retrieves questions"| node_retriever
node_gap -->|"searches market"| node_web_search
node_gap -->|"analyzes profile"| node_github
node_roadmap -->|"finds resources"| node_web_search
node_matchmaker -->|"searches jobs"| node_web_search
node_parser -.->|"parses documents"| node_pdf
node_gap -->|"gets model"| node_settings
node_gap -->|"uses templates"| node_prompts
node_coach -->|"uses templates"| node_prompts
node_roadmap -->|"uses templates"| node_prompts

click node_dashboard "https://github.com/samruth07/careercraft-ai-/blob/main/streamlit_app.py"
click node_history "https://github.com/samruth07/careercraft-ai-/blob/main/memory/persistence.py"
click node_conversation "https://github.com/samruth07/careercraft-ai-/blob/main/memory/conversation.py"
click node_db "https://github.com/samruth07/careercraft-ai-/blob/main/memory/models.py"
click node_supervisor "https://github.com/samruth07/careercraft-ai-/blob/main/agents/supervisor.py"
click node_guardrails "https://github.com/samruth07/careercraft-ai-/blob/main/agents/guardrails.py"
click node_parser "https://github.com/samruth07/careercraft-ai-/blob/main/agents/resume_parser.py"
click node_gap "https://github.com/samruth07/careercraft-ai-/blob/main/agents/gap_analyzer.py"
click node_roadmap "https://github.com/samruth07/careercraft-ai-/blob/main/agents/roadmap_generator.py"
click node_tailor "https://github.com/samruth07/careercraft-ai-/blob/main/agents/resume_tailor.py"
click node_coach "https://github.com/samruth07/careercraft-ai-/blob/main/agents/interview_coach.py"
click node_reasoning "https://github.com/samruth07/careercraft-ai-/blob/main/agents/reasoning_agent.py"
click node_matchmaker "https://github.com/samruth07/careercraft-ai-/blob/main/agents/matchmaker.py"
click node_knowledge_data "https://github.com/samruth07/careercraft-ai-/tree/main/data/knowledge_base"
click node_ingest "https://github.com/samruth07/careercraft-ai-/blob/main/rag/ingest.py"
click node_embeddings "https://github.com/samruth07/careercraft-ai-/blob/main/rag/embeddings.py"
click node_retriever "https://github.com/samruth07/careercraft-ai-/blob/main/rag/retriever.py"
click node_vectorstore "https://github.com/samruth07/careercraft-ai-/blob/main/rag/vectorstore.py"
click node_web_search "https://github.com/samruth07/careercraft-ai-/blob/main/tools/web_search.py"
click node_github "https://github.com/samruth07/careercraft-ai-/blob/main/tools/github_analyzer.py"
click node_pdf "https://github.com/samruth07/careercraft-ai-/blob/main/tools/pdf_parser.py"
click node_skill_matcher "https://github.com/samruth07/careercraft-ai-/blob/main/tools/skill_matcher.py"
click node_settings "https://github.com/samruth07/careercraft-ai-/blob/main/config/settings.py"
click node_prompts "https://github.com/samruth07/careercraft-ai-/blob/main/config/prompts.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_dashboard,node_history,node_conversation,node_db,node_user toneBlue
class node_supervisor,node_guardrails,node_parser,node_gap,node_roadmap,node_tailor,node_coach,node_reasoning,node_matchmaker toneAmber
class node_knowledge_data,node_ingest,node_embeddings,node_retriever,node_vectorstore toneMint
class node_web_search,node_github,node_pdf,node_skill_matcher toneRose
class node_settings,node_prompts toneIndigo
```

## Components

### Dashboard & Memory

- [Career dashboard](https://github.com/samruth07/careercraft-ai-/blob/main/streamlit_app.py): `streamlit_app.py`
- [Analysis history](https://github.com/samruth07/careercraft-ai-/blob/main/memory/persistence.py): `memory/persistence.py`
- [Conversation memory](https://github.com/samruth07/careercraft-ai-/blob/main/memory/conversation.py): `memory/conversation.py`
- [SQLite records](https://github.com/samruth07/careercraft-ai-/blob/main/memory/models.py): `memory/models.py`

### Agent Workflow

- [Workflow supervisor](https://github.com/samruth07/careercraft-ai-/blob/main/agents/supervisor.py): `agents/supervisor.py`
- [Resume guardrails](https://github.com/samruth07/careercraft-ai-/blob/main/agents/guardrails.py): `agents/guardrails.py`
- [Resume parser](https://github.com/samruth07/careercraft-ai-/blob/main/agents/resume_parser.py): `agents/resume_parser.py`
- [Skill gap analysis](https://github.com/samruth07/careercraft-ai-/blob/main/agents/gap_analyzer.py): `agents/gap_analyzer.py`
- [Learning roadmap](https://github.com/samruth07/careercraft-ai-/blob/main/agents/roadmap_generator.py): `agents/roadmap_generator.py`
- [Resume tailoring](https://github.com/samruth07/careercraft-ai-/blob/main/agents/resume_tailor.py): `agents/resume_tailor.py`
- [Interview coaching](https://github.com/samruth07/careercraft-ai-/blob/main/agents/interview_coach.py): `agents/interview_coach.py`
- [Career reasoning](https://github.com/samruth07/careercraft-ai-/blob/main/agents/reasoning_agent.py): `agents/reasoning_agent.py`
- [Job matching](https://github.com/samruth07/careercraft-ai-/blob/main/agents/matchmaker.py): `agents/matchmaker.py`

### Knowledge & Retrieval

- [Career knowledge base](https://github.com/samruth07/careercraft-ai-/tree/main/data/knowledge_base): `data/knowledge_base`
- [Knowledge ingestion](https://github.com/samruth07/careercraft-ai-/blob/main/rag/ingest.py): `rag/ingest.py`
- [Text embeddings](https://github.com/samruth07/careercraft-ai-/blob/main/rag/embeddings.py): `rag/embeddings.py`
- [Context retrieval](https://github.com/samruth07/careercraft-ai-/blob/main/rag/retriever.py): `rag/retriever.py`
- [Vector store](https://github.com/samruth07/careercraft-ai-/blob/main/rag/vectorstore.py): `rag/vectorstore.py`

### Career Tools

- [Market web search](https://github.com/samruth07/careercraft-ai-/blob/main/tools/web_search.py): `tools/web_search.py`
- [GitHub profile analysis](https://github.com/samruth07/careercraft-ai-/blob/main/tools/github_analyzer.py): `tools/github_analyzer.py`
- [Resume PDF parsing](https://github.com/samruth07/careercraft-ai-/blob/main/tools/pdf_parser.py): `tools/pdf_parser.py`
- [Skill matching](https://github.com/samruth07/careercraft-ai-/blob/main/tools/skill_matcher.py): `tools/skill_matcher.py`

### LLM & Configuration

- [Model settings](https://github.com/samruth07/careercraft-ai-/blob/main/config/settings.py): `config/settings.py`
- [Agent prompts](https://github.com/samruth07/careercraft-ai-/blob/main/config/prompts.py): `config/prompts.py`

### Other components

- **CareerCraft user**

## Connections

- CareerCraft user → Career dashboard: provides resume (evidence: `README.md`)
- Career dashboard → Workflow supervisor: starts analysis
- Workflow supervisor → Resume guardrails: routes validation (evidence: `agents/supervisor.py`)
- Workflow supervisor → Resume parser: routes parsing (evidence: `agents/supervisor.py`)
- Workflow supervisor → Skill gap analysis: routes analysis (evidence: `agents/supervisor.py`)
- Workflow supervisor → Learning roadmap: routes planning (evidence: `agents/supervisor.py`)
- Workflow supervisor → Resume tailoring: routes tailoring (evidence: `agents/supervisor.py`)
- Workflow supervisor → Interview coaching: routes coaching (evidence: `agents/supervisor.py`)
- Workflow supervisor → Career reasoning: routes synthesis (evidence: `agents/supervisor.py`)
- Workflow supervisor → Job matching: routes matching (evidence: `agents/supervisor.py`)
- Workflow supervisor → Analysis history: saves results (evidence: `README.md`)
- Analysis history → SQLite records: writes records (evidence: `memory/persistence.py`)
- Conversation memory → SQLite records: persists messages (evidence: `memory/conversation.py`)
- Career dashboard → Analysis history: views trends (evidence: `README.md`)
- Career dashboard → Conversation memory: consults memory (evidence: `README.md`)
- Career knowledge base → Knowledge ingestion: loads documents (evidence: `rag/ingest.py`)
- Knowledge ingestion → Text embeddings: uses embeddings (evidence: `rag/ingest.py`)
- Knowledge ingestion → Vector store: stores chunks (evidence: `rag/ingest.py`)
- Context retrieval → Vector store: queries vectors (evidence: `rag/retriever.py`)
- Skill gap analysis → Context retrieval: retrieves context (evidence: `agents/gap_analyzer.py`)
- Learning roadmap → Context retrieval: retrieves resources (evidence: `agents/roadmap_generator.py`)
- Interview coaching → Context retrieval: retrieves questions (evidence: `agents/interview_coach.py`)
- Skill gap analysis → Market web search: searches market (evidence: `agents/gap_analyzer.py`)
- Skill gap analysis → GitHub profile analysis: analyzes profile (evidence: `agents/gap_analyzer.py`)
- Learning roadmap → Market web search: finds resources (evidence: `agents/roadmap_generator.py`)
- Job matching → Market web search: searches jobs (evidence: `agents/matchmaker.py`)
- Resume parser → Resume PDF parsing: parses documents
- Skill gap analysis → Model settings: gets model (evidence: `agents/gap_analyzer.py`)
- Skill gap analysis → Agent prompts: uses templates (evidence: `agents/gap_analyzer.py`)
- Interview coaching → Agent prompts: uses templates (evidence: `agents/interview_coach.py`)
- Learning roadmap → Agent prompts: uses templates (evidence: `agents/roadmap_generator.py`)
