Resume Craft (简历工坊)
Turn a static resume into a 6-slide full-screen interactive web resume (React + Vite + Tailwind CSS v4 + Anime.js + Framer Motion + Lucide Icons). Avoid generic dark-neon templates.
Workflow
1. Intake & Interactive Preference Discovery
- Read the resume (PDF/file path or pasted text) and extract:
- Identity & contact (name, role, location, phone, email)
- 3–4 headline quantified metrics (e.g.
1000+contracts,50+cases,16deals) - Chronological work/internship history grouped into sub-tracks
- Core projects / case highlights
- 6 radar dimensions, proficiency bars, and a 2×2 domain matrix
- Education, credentials, honors & awards
- Infer the candidate's profession and seniority.
- Unless the user has already specified exact styling, ask before building. Use
ask_questionif available; otherwise give a numbered multiple-choice list in chat.- Color & aesthetic preset: list the presets from style-presets.md, put the best fit for the candidate first and mark it
(Recommended), and add a "Custom palette" option.- A — Neo-Brutalist Swiss Tech
- B — Executive Glassmorphism
- C — Warm Editorial Paper
- D — Linen & Forest Botanical
- E — Swiss International Signal
- F — Quiet Luxury Monochrome
- Language: bilingual 中文 / EN toggle (recommended), Chinese only, or English only.
- Background motion: industry-matched flowing canvas tokens (recommended — dynamically derived from the candidate's field), custom keywords, or plain geometric grid (no floating text).
- Color & aesthetic preset: list the presets from style-presets.md, put the best fit for the candidate first and mark it
- If the user later says the colors look wrong, re-ask with the remaining presets rather than guessing. If they supply their own colors, follow the Custom Palette Guardrails in the presets file.
Industry-Adaptive Presentation
Tailor FlowingCanvas tokens, Slide 02/03 framing, section labels, and icons to the candidate's real domain — never default to coding or legal jargon for unrelated fields:
- Engineering / AI / Data: code snippets & systems primitives (
async/await,O(log n),SQL,CI/CD), architecture & benchmark cards, GitHub/live demo CTAs. - Product / Design / Creative: design tokens & craft metrics (
8pt Grid,Design System,UX Flow,Typography), case-study cards & visual hierarchy. - Finance / Consulting / Management: business & capital metrics (
ARR,EBITDA,M&A,CAGR,GTM), deal/KPI bar charts & horizontal executive stepper. - Healthcare / Biotech / Research / Academia: clinical & scientific terms (
Clinical Trial,Peer-Reviewed,GMP,R&D Pipeline), publication/grant highlights. - Legal / Compliance: governance & statutory concepts (
Governance,Compliance,Contract Audit,Dispute Resolution), structured dossier timeline. - Other industries (Marketing, Architecture, Operations, Education, etc.): extract 12–18 authentic domain keywords directly from the user's resume.
2. Scaffold Project
Create a Vite + React + TypeScript project:
- dependencies:
react@^18.3.1,react-dom@^18.3.1,animejs@^3.2.2,framer-motion@^11.15.0,lucide-react@^0.469.0 - devDependencies:
@tailwindcss/vite@^4.0.0,tailwindcss@^4.0.0,@vitejs/plugin-react@^4.3.4,typescript@^5.7.2,@types/react@^18.3.0,@types/react-dom@^18.3.0 - Start from the typed data model in resume.schema.ts and populate it only from the resume.
- Add
src/vite-env.d.tswithdeclare module 'animejs' { const anime: any; export default anime }sotsc -bpasses. - Render
<App />directly insrc/main.tsxwithout<StrictMode>(see animation-checklist.md).
3. Build the 6-Slide Deck
Use a full-viewport (h-screen h-dvh overflow-hidden) deck with a top progress bar, a floating header (brand, slide pills, language toggle), a bottom dot capsule with Prev/Next buttons, and ←/→ keyboard navigation:
- Hero & Overview: 3D
rotateXtitle flip, character-by-character bio reveal (.hero-bio-char), 3 clickable stat cards, right column with TOC or vertical bar chart, core tags, and privacy-first copy buttons. - Data Charts & Core Cases: animated bar charts plus 2×2 mouse-tracking
TiltCardproject/case cards. - Career Trajectory: vertical timeline or horizontal 4-stage stepper with a 3D detail card.
- Capability Radar: elastic 6-axis SVG radar, horizontal proficiency bars, 2×2
[01]–[04]watermark matrix. - Credentials, Honors & Education: stacked rows with hover curtain sweep, icon spin, badge inversion.
- Contact: centered accent card with character-by-character intro and 3 tilted CTA buttons.
Starter components: use TiltCard.tsx for tilt cards and FlowingCanvas.tsx for the background canvas.
Slide 05 depends on the resume: if it contains no awards/honors, rename it "Skills, Certifications & Education" or drop to 5 slides (see the boundary section below).
Navigation: besides buttons and ←/→, support horizontal touch swipe (onTouchStart/onTouchEnd) on mobile. Gate any custom cursor behind @media (pointer: fine) so touch devices never get a stuck cursor (see animation-checklist.md).
Apply the chosen preset's tokens (canvas, cards, shadows, accents, canvas text colors) consistently on every slide.
4. Mandatory UX & Privacy Standards
- Privacy-first contacts: never show the raw phone or email on buttons. Label them
复制邮箱/复制电话(Copy Email/Copy Phone), copy on click, and show已复制feedback. - 1-page A4 PDF modal: a
简历 PDFbutton on slides 1 and 6 opens a single-page resume overlay with a打印 / 导出 PDFbutton (window.print()) and@media printrules that hide all chrome. - Background depth: a fixed
<canvas>of flowing text that respectsprefers-reduced-motion. - AI-friendly metadata: generate
public/llms.txtand Schema.org JSON-LD inindex.html.
Anti-Hallucination & Privacy Boundary
- Never invent metrics, companies, cases, roles, dates or awards that are not in the resume. If a headline metric is missing, use a non-numeric highlight instead of fabricating a number.
- If the resume has no awards/honors, adapt Slide 05 to "Skills, Certifications & Education", or use 5 slides.
- Never render sensitive fields on the public site: home address, birth date, national ID/passport numbers, or similar. Show the city only.
- Phone and email stay behind copy buttons (see above); do not place them in plain text,
llms.txt, or JSON-LD. - When unsure whether a detail is sensitive or real, omit it or ask the user.
5. Build, Preview & Verify
- Run
npm installandnpm run build(tsc -b && vite build); fix every error. - Start
npx vite --port <PORT> --strictPortas a background process. - Open
http://localhost:<PORT>/in a browser (use a browser subagent if available), step through all 6 slides, test the PDF modal and language toggle, and confirm 0 console errors and 0 failed requests. - To hand the project to another agent or folder, copy the source excluding
node_modulesanddist, and add aREADME.mdwithnpm install && npm run dev.