Resume tailor

From tam159/next-role · View interactive version

Resume tailor is an AI agent skill from the GitHub repository tam159/next-role. Rewrite a candidate's resume tailored to one specific JD using a hiring-recon report, emit it as a rendercv YAML, then render to PDF. Reorders jobs/bullets and adjusts language to incorporate JD keywords without inventing experience. Outputs one YAML (source of truth, user-editable) plus a .pdf publ

How to use this skill

Skill file

Resume Tailor

Rewrite the candidate's resume to land an interview for one specific role at one specific company, using the hiring-recon report as the priority signal, then render it to a typeset PDF.

Inputs

The caller passes exact paths in the task description:

Read all input files in full with read_file(path, limit=1000).

Workflow (3 steps, in order)

  1. Decide theme and locale.
  1. Write the YAML to yaml_path via write_file. Include cv:, design: (just theme:), and locale: (just language:). Prepend a # changes: comment block summarising what you tailored. Do NOT write a settings: section — the next step injects it.

Quoting rule (the #1 render-failure source): double-quote ANY string value that contains a colon followed by a space — headlines, summaries, highlights, titles, everywhere (- "Strongest where AI meets execution: reusable patterns"). Unquoted, YAML silently parses the entry as a mapping and rendercv fails with Input should be a valid string. Same for strings ending in : and bare numbers (label: "2022", phone: "+15551234567"). When in doubt, quote — quoted strings are never wrong.

  1. Render & publish: call render_resume_pdf(yaml_path) with the same backend path you wrote to in step 2. One call does the whole pipeline — it injects the canonical settings: block into an internal render copy (never into your YAML), runs rendercv render, and publishes <stem>.pdf next to the YAML. Do NOT run rendercv via execute and do NOT write a settings: block yourself. If the result starts with Error (render):, read the rendercv output it contains, fix the YAML with edit_file or write_file, then call render_resume_pdf(yaml_path) again (idempotent — the PDF is overwritten).

The tool auto-repairs the mechanical string defects (unquoted mid-string : , trailing :, bare numbers in bullet lists) in its internal render copy — a success result may note auto-repaired N invalid string entries; take that as a prompt to quote properly next time. Structural errors still need your fix. When an error names one entry, sweep the ENTIRE YAML for the same pattern and fix every occurrence in one pass — validation reports only what it reached, and fixing one at a time wastes render loops.

Common rendercv validation errors and their fixes:

Final reply (single line, no preamble):

Wrote tailored resume PDF to: <yaml_path with .pdf extension>

Tailoring philosophy

You are not lying or fabricating — you are highlighting the most relevant parts of the candidate's true experience. The original resume is the source of truth. Treat the JD's must-have keywords and the research report's "Match analysis" section as your priority signals.

Three strategies

  1. Reorder jobs if a less-recent role is more relevant to this JD.
  2. Swap bullet order so the bullet most relevant to the JD leads each role.
  3. Adjust bullet language to incorporate JD keywords naturally — keep all metrics, titles, dates, and certifications EXACTLY as in the source.

For the lead bullet of each role, prefer the transformation framing: Inherited [situation] → Implemented [change] → Achieved [outcome].

Truth-vs-tailoring guardrail

Acceptable: reordering true information, emphasizing relevant experience, using industry-standard terminology, adding context to vague statements, matching language style to the JD.

Unacceptable — absolute (truth / fabrication; user can override only if they confirm they really want):

Unacceptable by default (preservation; the user CAN explicitly override on a per-item basis):

If the intake file mentions skills/projects not on the CV, you MAY incorporate them — but only those, and only as additions to existing roles.

YAML structure

Emit three top-level sections, in this order:

# changes:
# - reordered: <Role A> moved above <Role B> (more relevant)
# - keywords added: <keyword>, <keyword>
# - bullet rewrite (<Role>): "<before>" → "<after>"
cv:
  name: ...
  headline: ...             # role / tagline under the name (e.g. "Senior AI/ML Engineer"). NOT `label`, NOT `title`.
  email: ...
  phone: "+15551234567"     # quoted string, E.164 only; omit if unknown
  location: ...
  website: ...              # full https URL or omit
  social_networks:          # ONLY networks from the allowlist below
    - network: LinkedIn
      username: ...
  custom_connections:       # for anything not in the social_networks allowlist
    - fontawesome_icon: graduation-cap
      placeholder: Pluralsight
      url: https://app.pluralsight.com/profile/your-username
  sections:
    <section_title>:
      - <entry>
      - <entry>
design:
  theme: classic            # or engineeringclassic / sb2nov / moderncv / engineeringresumes / classic_legacy
locale:
  language: english         # or another built-in

Rules:

Entry-type mapping

Skills preservation rule (default): carry every skill category and every bullet from the source resume into the YAML. Reorder so JD-relevant skills lead each category, and rewrite to incorporate JD keywords where natural — but do NOT prune. Missing skills are the single most common defect; double-check the YAML against the processed resume before step 3. Exception: if the user explicitly asks to drop a specific skill or category, drop only what they named.

| Source section | rendercv entry type | Required fields | Notes |

|---|---|---|---|

| Objective / Summary | TextEntry | (plain string) | One TextEntry per paragraph in a summary (or objective, about) section. |

| Professional Experience | ExperienceEntry | company, position | Optional: start_date, end_date, location, summary, highlights. |

| Education | EducationEntry | institution, area | Optional: degree, dates, location, highlights. |

| Certifications | OneLineEntry | label, details | E.g. label: "2022", details: "[AWS ML – Specialty](https://...)". Put each certification in its own entry in a certifications section. Cert names often embed a colon (NVIDIA Certified Associate: Generative AI LLMs) — quote the whole details value on the first write (details: "NVIDIA Certified Associate: Generative AI LLMs"), else rendercv fails with mapping values are not allowed here and forces an edit_file round-trip. |

| Skills (compact, one line per category) | OneLineEntry | label, details | Use when the source resume has just a comma-separated list per category. E.g. label: "AI/ML & Data Science", details: "Multi-agent design, RAG, fine-tuning, …". All under one skills section. |

| Skills (detailed, bullets per category) | NormalEntry | name, highlights | Use when the source resume has a sub-list of substantive bullets under each skill area — don't flatten substance into a one-liner. Each category becomes its OWN - name: entry; do NOT add a second highlights: block to an existing entry (see worked example below). All under one skills section. |

| Publications / Articles | PublicationEntry | title, authors | Optional: journal, url, doi, date. Use *Author Name* (italic) to highlight the candidate. |

| Honours / Awards | BulletEntry | bullet | One entry per award. |

| Patents | NumberedEntry | number | E.g. number: "Adaptive Quantization … (US Patent 11,234,567)". |

| Invited Talks / Highlights | ReversedNumberedEntry | reversed_number | Reverse-chronological. |

Worked example: detailed skills as `NormalEntry`s

If the source resume has N categories with bullets, the YAML must have N entries, each starting with its own - name:. The most common defect is grafting a second highlights: block onto the previous entry (which silently shadows or duplicates a key and drops every later category).

# RIGHT — one `- name:` per category, ALL categories from the source preserved
cv:
  sections:
    skills:
      - name: AI/ML & Data Science
        highlights:
          - Design multi-agent and long-term memory architectures …
          - Boost LLM apps with prompt engineering, RAG, fine-tuning, …
      - name: MLOps & LLMOps
        highlights:
          - Design LLM prompt and pipeline evaluation systems …
          - Build the ML workflow with MLflow, SageMaker, …
      - name: Data Engineering
        highlights:
          - Collect data from OLTP, user activities, third-party tools, …
          - Schedule optimal ETL/ELT pipelines using Airflow …
# WRONG — second `highlights:` under the same `- name:`
# YAML treats it as a duplicate key and drops categories.
cv:
  sections:
    skills:
      - name: AI/ML & Data Science
        highlights:
          - ...
        highlights:           # <-- BUG: missing `- name:` for MLOps & LLMOps
          - Design LLM prompt and pipeline evaluation systems …

Shared fields (ExperienceEntry / EducationEntry / NormalEntry / PublicationEntry)

| Field | Type | Notes |

|---|---|---|

| start_date | YYYY / YYYY-MM / YYYY-MM-DD | Strict format. |

| end_date | same as start_date, or "present" | Defaults to "present" if start_date set and end_date omitted. |

| date | free-form string or int | Mutually exclusive with start_date/end_date. Use for "Fall 2023" etc. |

| location | string | |

| summary | string | Renders as a paragraph above highlights. |

| highlights | list of strings | Bullet points. ≤2 levels deep. |

Markdown cleanup rules (CRITICAL)

URL preservation rule: before stripping anything, scan the processed resume for [text](url) Markdown links — these usually carry URLs that were clickable in the source PDF but invisible in the rendered text (company names → company sites, project names → repos, certifications → credential pages, article titles → posts, profile names → social pages). Every such URL must end up in the YAML. Put each URL where it belongs:

Never drop a URL just because the visible text reads cleanly without it. Treat URL omission with the same severity as dropping a skill. Exception: if the user explicitly asks to drop a specific URL or social/custom connection, drop only what they named.

The processed resume usually contains formatting that rendercv cannot render. Strip / convert ALL of the following before writing the YAML:

YAML pitfalls (one line each)

Theme allowlist (rendercv 2.8 built-ins)

classic, classic_legacy, sb2nov, moderncv, engineeringclassic, engineeringresumes. If the user names anything else, fall back to classic (or engineeringclassic for engineering resumes).

Locale allowlist (rendercv 2.8 built-ins)

english, french, german, italian, spanish, portuguese, dutch, turkish. If the detected language is not in this list, use english.

Output contract

Updates

When the caller's task says "Update the existing tailored resume at …" (rather than create a new one):

  1. read_file(yaml_path, limit=1000) first — your context is fresh; you have no memory of the prior YAML. Note the existing # changes: block.
  2. Identify the surgical change the caller named. The user's explicit request takes priority over the preservation defaults (skills, URLs, single-file output, length) — if they asked to drop a skill / link / section, do it, and only touch what they named. Truth/fabrication rules (don't invent skills, change metrics, claim untrue titles) still apply with user confirmation.
  3. Use edit_file(yaml_path, old_string=..., new_string=...) for targeted edits (a single bullet, one skill, a phone update, the # changes: header). Use write_file only when restructuring most of the YAML.
  4. Append one line to the # changes: block describing what you just did (so the next update has a history).
  5. Re-run render_resume_pdf(yaml_path) to refresh the .pdf. Skipping this leaves the PDF stale.
  6. Reply with the update-mode contract: Updated tailored resume PDF at: <pdf_path>.

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.