跳到正文
FunCoding

vibe-resume-editor

Use when editing VibeResume templates, turning resume facts and a target role into a one-page or two-page HTML resume, and validating the generated PDF.

Star
797
许可证
MIT
最近提交
2026年11月5日

skills/vibe-resume-editor/SKILL.md

在 GitHub 上查看

VibeResume Editor

Purpose

Use this skill to help a user maintain a resume in the VibeResume templates. The PDF is generated by scripts/export-pdf.mjs.

Template sources:

  • Standard one-page template: templates/internship-employment/standard-one-page/index.html + styles.css
  • Dense one/two-page technical template: templates/internship-employment/dense-two-page/index.html + templates/internship-employment/dense-two-page/styles.css
  • Research application template: templates/research-application/research-classic/index.html + templates/research-application/research-classic/styles.css

Generation Mode

Open the live preview before editing. If the user asks for quick generation, or asks you not to open the preview, skip the launch and edit the files directly.

  • Default: at step 3, start or reuse the preview and send the URL.
  • Quick: skip that launch.

If the user later asks to see the page or select something on it, start the preview for the same HTML.

Core Rules

  • Keep the resume credible and specific. Do not invent degrees, employers, dates, awards, metrics, or project claims when editing a real resume.
  • Use templates/internship-employment/standard-one-page/ by default when the user does not specify length.
  • When the user explicitly asks for two pages, a dense resume, or has substantial technical experience that clearly needs two pages, default to templates/internship-employment/dense-two-page/.
  • When the user is applying for a PhD, research internship, research assistant role, or needs to foreground publications and a representative research contribution, use templates/research-application/research-classic/.
  • The dense template is backward compatible: keep one .resume-page for a one-page version, or two .resume-page elements for a two-page version.
  • The research template intentionally exports as a continuous long page. Do not force it into A4 unless the user explicitly requires A4.
  • Prefer concise, formal resume wording with strong verbs, concrete scope, and measurable outcomes.
  • Keep the selected template's semantic HTML structure unless a section truly needs to be added or removed.
  • Keep AI-authored visual edits scoped to styles.css, and preserve the screen-to-PDF export mechanism. The live preview's direct per-element edits intentionally use inline CSS; preserve them unless the user requests a conflicting change.
  • Treat company/project logos as optional. Use SVG/vector icons when useful, but keep text-only names when no suitable asset is available.
  • When a company logo is needed, proactively ask the user to manually search and download an SVG from https://www.iconfont.cn/, verify that it is the intended company mark, and attach it for the Agent to copy into assets/logos/. An official company brand/media library is also preferred. For AI model/product/provider icons, read https://lobehub.com/icons/skill.md, inspect @lobehub/icons toc, and use getLobeIconCDN. Production resumes must reference local files and never hotlink.

Demo And Easter Egg Policy

For template/demo mode:

  • Treat the profile, education, roles, project details, dates, contact data, awards, and skills as mock content.
  • The avatar at assets/avatar.png is AI-generated and should be described that way in docs.
  • The dense demo uses user-provided Iconfont SVGs for ByteDance, Kuaishou, and Meituan, plus Bilibili.Color for Bilibili. Label every company with Mock 模拟经历, keep all role details fictional, and match each role bar's background/accent color to the selected icon's primary color.
  • In the dense template, render company logos directly on the role bar with transparency. Do not add a white tile, white border, extra outline, or decorative radius around a logo. Calibrate each SVG separately because artwork canvases contain different amounts of whitespace: target a perceived mark height near 75–80% of the 44px role bar, using roughly 35–39px display boxes in the current template. Preserve aspect ratio and never crop or stretch the artwork.
  • Preserve the dense template's reference typography: A3 portrait proportions; 12pt-equivalent body; 22.5pt-equivalent name; 18pt-equivalent section headings; 13.5–15pt-equivalent project and role headings; PingFang SC for Chinese with the repository's local EB Garamond files for Latin text. Do not casually substitute an all-sans or all-serif font stack.
  • Demo company logos are optional local SVG assets under assets/logos/; remove or replace them if they would misrepresent a real resume.
  • MiniCode may remain as a real open-source easter egg: https://github.com/LiuMengxuan04/MiniCode.

For personal-resume mode:

  • Replace mock personal details with user-provided facts.
  • Ask for missing high-impact facts only when they are necessary; otherwise use placeholders that are visibly marked.
  • Remove or replace easter eggs if they would misrepresent the user's experience.

Editing Workflow

  1. Inspect README.md, scripts/export-pdf.mjs, and the HTML/CSS pair for the selected template.
  2. Identify whether the task is demo/template maintenance or a real personal resume.
  3. Select templates/internship-employment/standard-one-page/, templates/internship-employment/dense-two-page/, or templates/research-application/research-classic/ using the rules above. In Default mode, before authoring, start node scripts/live-preview/server.mjs <selected-html> --daemon and report the actual URL. Reuse a running preview for that HTML. In Quick mode, skip this launch. The editor watches the selected HTML and its linked CSS; do not open a different template from the one being edited or exported.
  4. Update resume content in the selected HTML file.
  5. Adjust spacing, width, typography, density, and page balance in the selected CSS file only when needed.
  6. For company logos, ask the user to manually download the intended SVG from https://www.iconfont.cn/ (or an official brand library) and attach it; then copy it into assets/logos/. For AI/model/provider marks, follow https://lobehub.com/icons/skill.md: inspect toc, select a supported variant, use getLobeIconCDN, and store it locally. Do not guess slugs or substitute a product logo for a company logo without explicit user approval.
  7. Keep links, email, phone, and visible labels consistent.
  8. Run the PDF export.
  9. Verify the PDF has the requested page count and contains all major sections.

Live Preview And Submitted Annotations

The live editor follows PPT Master's workflow: direct edits and annotations are staged, Apply changes writes the selected HTML, and the user returns to chat to request AI interpretation or PDF re-export. The browser never invokes a model or the exporter. Unlike PPTX generation, resume annotations do not need an initial PDF export before they can be applied.

When the user says “应用标注”, “apply my annotations”, or quotes the editor's saved message:

  1. Run node scripts/check-annotations.mjs <selected-html>. Read the output as the to-do list: HTML path, page, element id, instruction and content preview. Stop with a concise explanation if none are present.
  2. Edit the targeted element or its containing region in that HTML/CSS. Preserve nested links, emphasis, icons and the user's unrelated direct edits. Handle markup changes in source; the direct text inspector intentionally edits only leaf elements. Do not modify the root compatibility copy when the active source is a categorized template.
  3. Remove data-edit-target and data-edit-annotation from each completed target; leave unfulfilled instructions marked. Append an annotation_applied JSONL record (ts, file, element_id, original instruction) to the history file reported by the annotation checker under live_preview/<template-id>/annotations.jsonl.
  4. Re-export the same HTML through node scripts/export-pdf.mjs <output> <selected-html> and perform the existing PDF checks. Keep the preview running; it reloads after source changes when no browser edits are pending.

If source edits conflict with an unapplied browser draft, do not bypass the digest check or overwrite the draft. Ask the user to apply or discard their browser changes, or restart the preview to preserve the conflicting draft. Stop the preview only when requested; node scripts/live-preview/server.mjs <selected-html> --shutdown closes that template's service.

Export And Validation

Required export path

  • The browser is for HTML preview only. Do not use the browser's Print / Save as PDF output as the deliverable PDF.
  • Always generate the final PDF through the repository's official exporter: node scripts/export-pdf.mjs <output-pdf> <selected-html>, the template-specific npm scripts, or ./export-pdf.sh <output> <input-html>.
  • If a user clicks the in-page print button, treat that result as a preview diagnostic only and regenerate the deliverable with the official script.

For a custom output path, pass the PDF path and the selected HTML to node scripts/export-pdf.mjs or ./export-pdf.sh. The npm scripts export the default files in package.json.

Use:

npm install
npm run export:pdf

For the dense two-page template:

npm run export:pdf:dense-two-page

For the research application template:

npm run export:pdf:research-classic

Then check:

pdfinfo export/vibe-resume-demo.pdf
pdftotext export/vibe-resume-demo.pdf -

Validation expectations:

  • pdfinfo reports the requested page count: one page for the standard template, one or two pages for the dense template, and one continuous page for the research template. If the user names a paper size, check the page dimensions too.
  • The PDF text includes profile, education, internships or research work, projects or publications, and skills.
  • Open the generated PDF and check for clipped or missing content, overlaps, unreadable text, and wrong images.
  • For two pages, both pages have intentional section boundaries and balanced bottom whitespace; a project or role must not be accidentally split across pages.
  • The generated PDF visually matches the browser page closely because the exporter uses Chromium screen layout.

Useful User Prompts

把这份模板改成我的算法实习简历,保持一页 PDF,突出模型部署、推理优化和工程落地。
根据这个 JD 调整我的项目经历,把关键词自然融入简历,但不要编造没有做过的事情。
这个 PDF 底部留白太大,帮我微调页面宽度、字号和间距,保持网页预览和 PDF 一致。

相似的 Skill

精选

canvas-design

按设计理念生成海报和视觉作品,输出 PNG 或 PDF。

ANanthropics/skills203k近 7 天新增 3,265 个 star

精选

xlsx

读写 Excel 和 CSV,处理公式、格式、图表与数据清洗。

ANanthropics/skills203k近 7 天新增 3,265 个 star

精选

docx

创建和编辑 Word 文档,支持目录、页码、页眉等排版。

ANanthropics/skills203k近 7 天新增 3,265 个 star

精选

pdf

提取文本和表格、合并拆分、填写表单,也能对扫描件做 OCR。

ANanthropics/skills203k近 7 天新增 3,265 个 star

精选

doc-coauthoring

按步骤协作撰写技术方案、提案和决策文档,逐轮修改。

ANanthropics/skills203k近 7 天新增 3,265 个 star

精选

pptx

生成、读取和修改演示文稿,也能合并拆分幻灯片。

ANanthropics/skills203k近 7 天新增 3,265 个 star