Make setup script executable

This commit is contained in:
Irek 2025-02-23 17:51:40 +01:00
parent 8435bcc530
commit b38c91f940
10 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,9 @@
{
"defaultModel": "claude-3.5-sonnet-20240620",
"fallbackModel": "gpt-4-turbo-2024-04-09",
"temperature": {
"codeGeneration": 0.3,
"errorDebugging": 0.7
},
"contextWindow": 16000
}

View File

@ -0,0 +1,13 @@
# CV Enhancement Workflow
1. **Structural Analysis**
- Identify missing sections using industry benchmarks
- Check chronological consistency of employment history
2. **ATS Optimization**
- Cross-reference with 50+ tracking systems
- Generate keyword gap report
3. **LLM Enhancement**
- Rewrite summaries using power verbs
- Convert responsibilities to measurable achievements

View File

@ -0,0 +1,5 @@
**Debugging Process**
1. Reproduce the error in isolation
2. Analyze stack trace with @backend/logger.js
3. Propose 3 potential solutions with pros/cons
4. Implement safest option with rollback plan

View File

@ -0,0 +1,13 @@
**CV Platform Development Protocol**
1. Security First:
- Always sanitize user input using DOMPurify
- Encrypt resume files with AES-256-GSM during storage
2. LLM Implementation Rules:
- Use OpenAI text-embedding-3-small for semantic analysis
- Maintain 0.7 temperature for balance between creativity/accuracy
- Verify ATS keyword suggestions against JobCopilot's latest data
3. Task Management:
- Reference .notes/task_list.md before making changes
- Create atomic Git commits per feature using Conventional Commits

View File

@ -0,0 +1,13 @@
# CV Optimization Platform
## Key Features
- AI-powered resume analysis
- ATS compliance checking
- Real-time editing suggestions
- GDPR-compliant storage
## Tech Stack
- React.js frontend
- Node.js/Express.js backend
- MongoDB database
- OpenAI/Cline LLM integration

10
.notes/task_list.md Normal file
View File

@ -0,0 +1,10 @@
## P-0: Critical Path (Current Sprint)
- [ ] Implement PDF parser using PyPDF2 and @breezypdf/pdf-extract
- [ ] Create ATS keyword mapping system (Due: 2025-03-01)
## P-1: Near-Term Backlog
- [ ] Design premium subscription flow
- [ ] Research GDPR-compliant storage solutions
## P-X: Innovation Pipeline
- [ ] Experiment with Claude 3 Opus for cover letter generation

13
scripts/setup-environment.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/zsh
# Install core dependencies
brew install poppler
npm install -D eslint @types/node
# Configure Cline models
curl -O https://raw.githubusercontent.com/instructa/ai-prompts/main/cline-defaults.json
# Setup Python virtualenv
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

0
setup-project.sh Normal file → Executable file
View File

8
utils/pdf.worker.js vendored Normal file
View File

@ -0,0 +1,8 @@
const { PDFDocument } = require('pdf-lib');
self.addEventListener('message', async (e) => {
const pdfDoc = await PDFDocument.load(e.data);
const pages = pdfDoc.getPages();
const textContent = pages.map(p => p.getTextContent());
self.postMessage(textContent);
});

16
utils/resume_analysis.py Normal file
View File

@ -0,0 +1,16 @@
from openai import OpenAI
from pdfminer.high_level import extract_text
client = OpenAI()
def analyze_resume(file_path):
text = extract_text(file_path)
response = client.chat.completions.create(
model="gpt-4-turbo",
messages=[{
"role": "system",
"content": "Analyze resume for:\n1. Missing ATS keywords\n2. Skill gaps\n3. Achievement opportunities"
},
{"role": "user", "content": text}]
)
return response.choices[0].message.content