CV Builder - Product Requirements Document¶
Build a comprehensive CV/resume builder that leverages LaTeX templating for professional formatting with AI-powered CV parsing and multiple export options.
Experience Qualities: 1. Professional - Clean, formal interface that reflects the quality of CVs it produces 2. Intelligent - AI-powered features that save time and improve content quality 3. Flexible - Multiple templates and export formats to suit different needs
Complexity Level: Light Application (multiple features with basic state) - Manages user CV data with structured forms and templates, includes AI integration for parsing, but doesn't require complex user accounts or advanced workflows
1.1 Missions¶
CV Pro's direction is to become the ultimate open home for all things professional CVs — data, tools, resources and transparency, gathered in one place that anyone can inspect and reuse.
- Provide data, tools, resources and transparency for all stakeholders, job seekers, hiring professionals and the general public. Authors, reviewers and anyone presenting their work are first-class audiences. The aim is a shared, inspectable commons: the same CV data, the same contract, and the same renders for everyone.
- Treat the CV as code: a single canonical data contract that feeds professional LaTeX typesetting and multi-format export (PDF, Markdown, ASCII and LaTeX source), with a builder that edits that contract rather than a one-off document. The data, the contract and the renders live together so the builder and the published CV cannot silently drift.
- Make getting a CV into that contract effortless and honest: parse an existing CV with AI, then always leave the author in control to review, edit and fall back to manual entry when parsing fails. Intelligence should save time without inventing a career, and every export should stay complete and professional.
These missions set the course; they do not claim the work is finished. They serve the PRD's essential features: CV data management, a LaTeX template system, an AI CV parser, multi-format export and a template gallery.
Requirement
- MR1: Constitution §1 states one direction statement and exactly three numbered missions, and the README and AGENTS.md taglines match that direction and link to constitution §1.
Feature CVPRO-007 traces to requirement MR1.
Essential Features¶
CV Data Management¶
- Functionality: Structured form interface for entering personal info, experience, education, skills, projects
- Purpose: Central data store that feeds all export formats and templates
- Trigger: User clicks "Edit CV" or starts new CV
- Progression: Dashboard → CV Form → Section Selection → Data Entry → Save → Preview
- Success Criteria: Data persists between sessions, validation prevents incomplete entries
LaTeX Template System¶
- Functionality: Generate LaTeX code from CV data using professional templates
- Purpose: Provides high-quality typesetting foundation for all export formats
- Trigger: User saves CV data or requests LaTeX export
- Progression: CV Data → Template Selection → LaTeX Generation → Export/Preview
- Success Criteria: Valid LaTeX code generated, template switching works seamlessly
AI CV Parser¶
- Functionality: Upload existing CV (PDF/text) and extract structured data using AI
- Purpose: Eliminates manual data entry for users with existing CVs
- Trigger: User uploads CV file or pastes text
- Progression: File Upload → AI Processing → Data Extraction → Review/Edit → Save
- Success Criteria: Accurately extracts 90%+ of CV content into structured format
Multi-Format Export¶
- Functionality: Export CV as PDF, Markdown, ASCII text, or LaTeX source
- Purpose: Flexibility for different application requirements and platforms
- Trigger: User clicks export button and selects format
- Progression: CV Data → Format Selection → Generation → Download
- Success Criteria: All formats maintain professional appearance and completeness
Template Gallery¶
- Functionality: Multiple LaTeX templates (Academic, Corporate, Creative, Minimal)
- Purpose: Customization for different industries and personal preferences
- Trigger: User browses templates or changes template
- Progression: Template Browser → Preview → Apply → Regenerate Exports
- Success Criteria: Templates apply correctly, previews are accurate
Feature catalog¶
Every user-facing capability has a stable id in the feature catalog features/features.yml. Each entry names the PRD requirements it serves (prd:); the trace below is the reverse view.
| ID | Feature | Status | Where | Requirements |
|---|---|---|---|---|
| CVPRO-001 | CV data management | shipped | app/src/components/cv · app/PRD.md |
CV Data Management |
| CVPRO-002 | LaTeX template system | shipped | app/src/lib/latex-templates.ts · app/PRD.md |
LaTeX Template System |
| CVPRO-003 | AI CV parser | shipped | app/src/components/cv/AIParser.tsx · app/PRD.md |
AI CV Parser |
| CVPRO-004 | Multi-format export | shipped | app/src/components/cv/ExportSection.tsx · app/PRD.md |
Multi-Format Export |
| CVPRO-005 | Template gallery | tbd | app/src/lib/latex-templates.ts · app/PRD.md |
Template Gallery |
| CVPRO-006 | Page feedback widget | shipped | app/index.html · app/README.md |
TBD |
| CVPRO-007 | Constitution missions | planned | docs/constitution.md · app/PRD.md |
MR1 |
Requirement → feature trace
| Requirement | Features |
|---|---|
| CV Data Management | CVPRO-001 |
| LaTeX Template System | CVPRO-002 |
| AI CV Parser | CVPRO-003 |
| Multi-Format Export | CVPRO-004 |
| Template Gallery | CVPRO-005 |
| TBD | CVPRO-006 |
| MR1 | CVPRO-007 |
Edge Case Handling¶
- Empty CV Data: Display guided onboarding with sample data and clear next steps
- AI Parsing Failures: Graceful fallback with manual entry options and error explanations
- Large File Uploads: Progress indicators and file size limits with helpful messaging
- LaTeX Compilation Errors: Error reporting with suggested fixes and template fallbacks
- Missing Sections: Smart defaults and optional section handling
Design Direction¶
The design should feel professional and trustworthy like a high-end consulting firm's tools - clean typography, subtle shadows, and confident use of whitespace that conveys expertise and attention to detail.
Color Selection¶
Complementary (opposite colors) - Using a sophisticated blue-gray primary with warm accent touches to balance professionalism with approachability.
- Primary Color: Deep Blue-Gray
oklch(0.25 0.05 240)- Conveys professionalism and trust - Secondary Colors: Light Gray
oklch(0.95 0.01 240)for backgrounds, Medium Grayoklch(0.7 0.02 240)for borders - Accent Color: Warm Coral
oklch(0.65 0.15 25)- For CTAs and important highlights, adds warmth to the professional palette - Foreground/Background Pairings:
- Background (Light Gray #F8F9FA): Dark Blue-Gray text (#2B3A42) - Ratio 12.8:1 ✓
- Card (White #FFFFFF): Dark Blue-Gray text (#2B3A42) - Ratio 14.1:1 ✓
- Primary (Deep Blue-Gray #2B3A42): White text (#FFFFFF) - Ratio 14.1:1 ✓
- Accent (Warm Coral #E8965A): White text (#FFFFFF) - Ratio 4.8:1 ✓
Font Selection¶
Inter for its exceptional readability and professional appearance in both digital interfaces and PDF exports, with clear hierarchy through weight variations.
- Typographic Hierarchy:
- H1 (Page Titles): Inter Bold/32px/tight letter spacing
- H2 (Section Headers): Inter SemiBold/24px/normal spacing
- H3 (Subsections): Inter Medium/20px/normal spacing
- Body Text: Inter Regular/16px/relaxed line height
- Labels: Inter Medium/14px/tracking wide
- Captions: Inter Regular/12px/muted color
Animations¶
Subtle and purposeful animations that enhance workflow clarity - smooth transitions between form sections and gentle feedback for actions, avoiding anything that feels frivolous in a professional context.
- Purposeful Meaning: Motion reinforces the structured, step-by-step nature of CV building
- Hierarchy of Movement: Form transitions and save confirmations get priority, decorative elements are minimal
Component Selection¶
- Components: Cards for CV sections, Forms with react-hook-form, Dialogs for confirmations, Tabs for template switching, Progress indicators for AI processing, Dropzone for file uploads
- Customizations: Custom CV preview component, specialized LaTeX code display with syntax highlighting
- States: Clear loading states for AI processing, success confirmations for saves, error states with actionable feedback
- Icon Selection: Phosphor icons - Document for CVs, Upload for file import, Download for exports, User for profile, Settings for templates
- Spacing: Consistent 4/6/8/12 spacing scale for tight professional layout
- Mobile: Stack form sections vertically, collapsible sidebar for templates, responsive preview with zoom controls