YAMLResume

rendercv2yamlresume

Convert an existing RenderCV YAML file to YAMLResume format with rendercv2yamlresume, including section, field, and vocabulary mapping.

rendercv2yamlresume is a command-line tool to convert a RenderCV YAML file to YAMLResume format.

RenderCV and YAMLResume share the same idea — a resume is a text file — but they model the data differently. RenderCV lets every section title be an arbitrary string and infers an entry type per section, while YAMLResume has a fixed set of section keys, stable field names and a controlled vocabulary for values such as degree. This tool bridges the two.

Features

  • Section mapping: experience → work, selected_honors → awards, and the other names RenderCV's own samples use
  • Field mapping: company/position → name/position, journal → publisher, label/details → skill name/keywords, and more
  • Vocabulary mapping: free-form degrees (PhD, BS, M.Sc.) and social networks (X, StackOverflow) are mapped onto YAMLResume's fixed lists
  • Date handling: start_date/end_date ranges become startDate/endDate, a single date becomes the range start, and present is dropped because an empty endDate already renders as "Present"
  • Best-effort conversion with a report: anything YAMLResume cannot express is listed rather than silently dropped
  • Validation: the result is checked against YAMLResume's own schema before it is written

Installation

npm install -g rendercv2yamlresume
pnpm add -g rendercv2yamlresume
yarn global add rendercv2yamlresume
bun add -g rendercv2yamlresume

Usage

# Convert and write alongside the input file
rendercv2yamlresume John_Doe_CV.yaml

# Or choose the output path
rendercv2yamlresume John_Doe_CV.yaml resume.yml

# Write even if the result does not validate
rendercv2yamlresume John_Doe_CV.yaml --force

When you omit output-file, the result is written next to the input with a .yml extension, so John_Doe_CV.yaml becomes John_Doe_CV.yml. An input that already ends in .yml resolves to the same path, so pass an explicit output path — or --force to overwrite the input — in that case.

The command exits with 0 on success and 1 when the input cannot be read, has no cv block, uses an unsupported locale, produces a resume that fails validation, or would overwrite its input without --force. --force permits invalid output and identical input/output paths, but not unsupported locales.

CodeMeaning
0Converted and written (possibly with reported issues)
1Input missing, unparseable, has no cv block, uses an unsupported locale, failed validation, or would overwrite the input without --force

Example

Input:

John_Doe_CV.yaml
cv:
  name: John Doe
  headline: Backend Engineer
  email: [email protected]
  location: San Francisco, CA
  social_networks:
    - network: LinkedIn
      username: rendercv
  sections:
    education:
      - institution: Princeton University
        area: Computer Science
        degree: PhD
        start_date: 2018-09
        end_date: 2023-05
    experience:
      - company: Nexus AI
        position: Co-Founder & CTO
        start_date: 2023-06
        end_date: present
        highlights:
          - Built foundation model infrastructure serving 2M+ monthly API requests
    selected_honors:
      - bullet: Forbes 30 Under 30 in Enterprise Technology (2024)

Output:

resume.yml
---
content:
  basics:
    name: John Doe
    headline: Backend Engineer
    email: [email protected]
  location:
    city: San Francisco
    region: CA
  profiles:
    - network: LinkedIn
      username: rendercv
  education:
    - institution: Princeton University
      area: Computer Science
      degree: Doctor
      startDate: 2018-09
      endDate: 2023-05
  work:
    - name: Nexus AI
      position: Co-Founder & CTO
      startDate: 2023-06
      summary: '- Built foundation model infrastructure serving 2M+ monthly API requests'
  awards:
    - title: Forbes 30 Under 30 in Enterprise Technology
      awarder: Unknown
      date: '2024'

Conversion Rules

Sections

RenderCV section titles are arbitrary. Titles that match a known alias are mapped; anything else is dropped and reported. Underscores, repeated spaces and full-width Unicode characters are normalized, so selected_honors and Selected Honors both work. Canonical section titles from every locale supported by YAMLResume are recognized automatically in addition to the English aliases below.

RenderCV titleYAMLResume key
education, education_and_trainingeducation
experience, work, employment, professional_experience, work_experiencework
projects, personal_projectsprojects
publicationspublications
skills, technical_skillsskills
languageslanguages
interestsinterests
awards, honors, selected_honors, honors_and_awardsawards
certificates, certificationscertificates
volunteer, volunteer_experiencevolunteer
referencesreferences

If two titles map onto the same key (for example both experience and work), their entries are appended rather than overwritten.

Entries

RenderCV entryBehaviour
ExperienceEntry→ work or volunteer item; company → name/organization, position kept
EducationEntry→ education item; degree mapped onto the fixed list
PublicationEntry→ publication item; title → name, journal → publisher
NormalEntry→ project or certificate item; a [Name](url) name is split into name + url
OneLineEntry→ skill, language, interest or reference item, depending on the section
BulletEntry / string→ award item in an awards section, otherwise reported

Values

  • Degrees are mapped case- and punctuation-insensitively: PhD, Ph.D., Doctorate → Doctor; BS, BSc, Bachelor of Science → Bachelor; MSc, M.S., MBA → Master.
  • Social networks are matched against YAMLResume's list: X → Twitter, StackOverflow → Stack Overflow. Networks with no counterpart (ORCID, ResearchGate, Mastodon) are dropped and reported.
  • Locales map RenderCV names (english, mandarin_chinese) onto YAMLResume codes (en, zh-hans). If YAMLResume does not support the requested locale, conversion stops with a warning and no output file is written.
  • Languages and fluency are matched case-insensitively against YAMLResume's fixed lists, with aliases such as Native and Fluent. Unsupported values are dropped and reported.
  • Dates pass through unchanged, except that present is dropped.
  • Headline, email, phone and website are copied; if RenderCV supplies a list for email/phone/website, the first value is used and the rest are reported.

Limitations

This is a migration aid, not a lossless round-trip. The two data models are not equivalent, and some information cannot cross the boundary. Nothing is ever dropped without a report, and every drop names the field that caused it.

Cannot be represented at all — dropped with a report:

  • Arbitrary sections. patents, invited_talks, Things I Did — anything without a YAMLResume counterpart.
  • Per-element styling. The whole RenderCV design block: per-element colors, fonts, sizes, spacing, header alignment, photo placement, section title styles and Jinja2 template overrides. YAMLResume configures layout per engine under layouts[].
  • settings. pdf_title, current_date, bold_keywords and render-command options describe a rendering run rather than resume data.
  • The profile photo. YAMLResume has no photo field.
  • Custom header connections. custom_connections with their Font Awesome icons have no slot in YAMLResume's header.
  • Entry locations. YAMLResume supports a header location but has no location field on education, work, project, or volunteer items.
  • Typst math and commands. $inline math$ and #emph[...] inside text fields survive as literal text, not as typeset output.

Represented, but with a loss you should review — reported for each case:

  • OneLineEntry → skills loses the proficiency level. YAMLResume requires a level, so the converter writes level: Intermediate. Adjust every skill entry.
  • Bare bullets → awards invent an awarder. The converter writes awarder: Unknown, and lists each award so you can fill it in.
  • Certificates invent an issuer. Converted certificates use issuer: Unknown and are reported for review.
  • NormalEntry → projects requires a start date. An entry with neither start_date nor date is dropped and reported.
  • Highlights become Markdown bullets inside summary. RenderCV keeps summary and highlights separate; YAMLResume has one rich-text field.
  • summary has a minimum length. Entries whose merged summary is shorter than 16 characters are converted but reported so you can expand them.
  • Publication publisher is derived. The converter uses journal, then the author list, then Unknown. Authors are dropped when a journal is available.
  • A single date becomes a startDate. YAMLResume has no single-date field, so an undated-by-range entry starts rather than floats.
  • Free-form degrees outside the vocabulary are dropped. Habilitation, Licentiate and similar have no counterpart in YAMLResume's seven degrees. Add the entry by hand with a mapped degree such as Doctor.
  • location is a single string in RenderCV. The converter splits on commas, treats the last segment as the country when it matches YAMLResume's list, and otherwise as the region. Verify the result.
  • Multiple email/phone/website values. Only the first value is kept, and discarded values are reported.

Not converted by design:

  • RenderCV's locale.phrases, month_names and month_abbreviations. YAMLResume ships its own translations for the locales it supports; use its locale block.
Edit on GitHub

Last updated on

On this page