# cvfit

Adopt this skill: https://proskills.md/skills/other/martinpuli-cvfit

Page: https://proskills.md/skills/other/martinpuli-cvfit
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: SKILL.md
size: 8079
upstream: https://github.com/martinpuli/cvfit/blob/HEAD/SKILL.md

````text
---
name: cvfit
description: "Use when someone points at a job, hackathon, fellowship or program application and wants a resume for it. Triggers: a posting URL, a screenshot of a posting, pasted posting text, a company plus role name, or phrasings like 'adapt my CV to this', 'tailor my resume for this role', 'Harvard format resume', 'make a CV for this application', 'one-page resume'. The skill reads the posting, assembles the person's material from whatever exists (the conversation, an Obsidian vault, markdown notes, an old resume, public repos), decides the right shape for that person and that posting, renders a one-page Harvard-format PDF, and evaluates it against a rubric until it passes or the gap is explained. Don't use for cover letters, LinkedIn profiles or portfolio sites."
---

# cvfit

One posting and one person in; one page out, aimed at that posting, honest, and
checked.

The split that makes it work: **the model decides what goes on the page; the
code decides how it looks and whether it may ship.** Judgement isn't
automatable and layout isn't worth improvising. Everything below is the
judgement, written down so it's done the same way every time.

```
posting (url | screenshot | text) ──→ target.json ─────┐
                                                        ├─→ tailored profile ─→ build ─→ pdf + png
person (conversation, vault, notes, ──→ master profile ─┘         ▲                       │
        old resume, repos)                                        │                       ▼
                                                                  └──── fix ◄──── evaluate (verify, look, rubric)
```

## Inputs

| Posting | How to read it |
|---|---|
| URL | Fetch it. Greenhouse, Lever, Ashby and Workday render client-side; a plain fetch returns the page title and nothing else. When that happens, open it in a browser and read the rendered text. |
| Screenshot | Read the image. |
| Pasted text | Use as is. |
| Company and role only | The posting is missing. Ask for it. Requirements are never guessed. |

| Person | Order of trust |
|---|---|
| What they say in this conversation, including corrections | 1 |
| An existing resume or profile file | 2 |
| An Obsidian vault or markdown notes: project, company and decision notes | 3 |
| Public repos and sites they name | 4 |

Every number, title and date on the page traces to one of these. Uncertain
means ask or leave out. A figure is never rounded up to make a bullet land.

## Step 1: read the position

Write `target.json`: company, what they build, role, seniority, location,
must-haves quoted in the posting's own words, responsibilities, keywords, and
`honest_fit_assessment` on this scale:

- **strong**: the person has done this job or its nearest neighbour
- **partial**: real overlap on some must-haves, clear gaps on others
- **weak**: the overlap is a stretch

The assessment is written before tailoring, not after, so it can't be talked
into a better grade by a nicely worded page. A weak fit is reported as weak;
applying anyway is the person's call.

## Step 2: read the person

Build or update the master profile: everything, untailored, YAML
(`examples/ada-lovelace.yaml` is commented field by field). Skills go in
`items`. `priority` fields can stay at default here; they are set per posting in
step 4.

Ask what is missing before writing. The four things that most often are: the
domain and stakes of each role (a bank, an SME lender, a hospital), who the end
users were, one number per role, and what each unfamiliar organisation actually
is.

## Step 3: decide the shape

This is where the skill adapts to the person rather than the person to a
template.

| The person has | Shape |
|---|---|
| Two or more roles and projects | Standard: Experience, Projects, Education, Skills |
| Roles, no projects | Drop Projects. Three bullets per role carry the depth |
| Projects, no roles (student, self-taught, changing career) | Education first, Projects with two bullets each, Skills, Leadership. The summary leads with what was built and shipped |
| Only study | Education with coursework and awards as entries, Leadership, Skills. Report that the page is thin and name the one thing that would fix it |
| Far more than fits | Caps by kind keep the top N by priority. The rest stays in the master; nothing is deleted |

Never fake a section. A "Projects" entry that's a tutorial, an "Experience"
entry that was a two-week trial, an empty heading: each reads as exactly what
it's. Three true sections beat five where two are padding.

## Step 4: pick the kind and tailor to the position

`kinds.json` holds job, hackathon and competition. Each sets
section order, priority shifts, caps, whether the summary renders, and the
reasoning in a `notes` field. Read the notes before writing a single bullet: a
hiring manager, a hackathon organiser and a selection committee read the same
career from opposite ends.

Then follow `TAILORING.md`: weight the posting's requirements, score
every bullet as evidence against them, turn scores into priorities, apply the
kind, and cut by hand anything the reader for this posting would not miss.

Write to the posting's vocabulary where the work is real and nowhere else.

## Language

The resume is written in whichever language the person asks for, and the same
rules apply in all of them. What changes and what doesn't:

- **Headings** go in the target language (`Experiencia`, `Formación`,
  `Compétences`). The builder recognises them by alias for ordering, caps and
  the Education-first rule, and renders exactly what was written. Unknown
  headings are kept and simply not reordered.
- **Dates**: the local convention, `2023 – Actualidad`, `2023 – Presente`,
  `2023 – Aujourd'hui`. Never mix languages inside one document.
- **Proper nouns and technology names stay as they are.** `Spring Boot` isn't
  translated; `Universidad Nacional de Córdoba` isn't translated into English
  either, but what it's gets explained when the reader won't know it.
- **Pronouns**: fragments, no first person, in every language. Run
  `verify_cv.py --lang es` (or `pt`, `fr`) so the check uses the right words.
- **The recognition rule works in reverse too.** A Spanish resume for a Spanish
  reader still has to say what an unknown foreign employer is.
- Don't translate a finished English resume word for word. Write it in the
  target language from the profile; the sentence rhythm is different and a
  literal translation reads as one.

`examples/tomas-rivera.es.yaml` is the Spanish version of the student example.

## Step 5: write

- Bullets: past-tense verb, what was built, the domain and stakes, the outcome,
  digits not words, no first-person pronouns, no period at the end. The verifier
  rejects pronouns and em dashes.
- **Name what the reader won't recognise.** `Script S.A.` is a wasted line;
  `Script S.A. (BBVA, Volkswagen Financial Services)` is the fact that mattered.
  `TAILORING.md` section 5 has the rule and its source; it's the most
  common failure in cross-border applications and the cheapest to fix.
- Summary last, only for `kind: job`, two or three lines: the role in the
  reader's words, then the one result that proves it.

## Step 6: build

```bash
pip install typst pyyaml pypdf          # once, and only if the machine lacks them
python3 scripts/build_cv.py profile.yaml -o out/cv.pdf --kind job --max-pages 1 --preview
```

Those three cover the whole toolchain with no system packages. When the machine
already has the `typst` binary or poppler, cvfit uses those instead.

The builder applies the kind, applies caps, fits to the page limit by dropping
the lowest-priority items and then restoring what fits back in highest-priority
first, measures page fill, and opens the vertical rhythm a little when the page
is between 70% and the target. It prints everything it capped and dropped and
writes the effective profile beside the PDF, so what is on the page is always
inspectable. Under 70% it refuses to polish and say
````

## File: README.md
upstream: https://github.com/martinpuli/cvfit/blob/HEAD/README.md

````text
# cvfit

Point it at a job posting, give it whatever you've got about yourself, and it
writes a one-page resume aimed at that posting. Then it checks the result and
won't hand it over if something's wrong.

Two halves. `SKILL.md` is the judgement, written down so it's done the same way
every time, and any agent can follow it: Claude Code, Codex, Cursor, Gemini
CLI, or a chat window where you paste the file. The two scripts do the part
that shouldn't be improvised: rendering and checking.

## The idea

A model should decide what goes on the page, because that's judgement and nobody
has automated it well. Code should decide how the page looks and whether it's
allowed to ship, because those are the parts where improvising costs you.

So every bullet in your profile carries a priority. When the page overflows, the
lowest ones go first; then the tool walks the dropped ones back in from the top
and keeps whatever still fits. It prints every drop. When the page comes up short
it tells you how many lines are missing and won't stretch the whitespace to hide
it, since a page that's 41% full with big gaps reads worse than one that's
honestly short.

And there's a guard. If tailoring moved a date, grew a job title, or added an
employer that isn't in your master profile, the build fails. Tailoring gets to
choose and reorder. It doesn't get to promote you.

## Install

Python 3.9 or newer, plus:

```bash
pip install typst pyyaml pypdf
```

No system packages, so this is the same on macOS, Linux and Windows. If you'd
rather use the native tools, `brew install typst poppler` (or your package
manager) works too and is a little faster; cvfit takes whichever it finds.

```bash
git clone https://github.com/MartinPuli/cvfit.git
cd cvfit && python3 tests/run.py
```

Green means the pipeline works on your machine.

## Use it from

| Where | How |
|---|---|
| **Claude Code** | `/plugin marketplace add MartinPuli/cvfit` then `/plugin install cvfit@cvfit`. Or copy the repo to `~/.claude/skills/cvfit/` |
| **Codex, Cursor, Gemini CLI, Amp, Zed, Jules** | Clone it into the workspace. They read `AGENTS.md` on their own, which points at `SKILL.md` |
| **ChatGPT, Claude.ai, any chat window** | Paste `SKILL.md` and `TAILORING.md`, paste the posting, answer its questions, then run the two commands yourself |
| **No agent at all** | Copy `examples/ada-lovelace.yaml`, put your own history in it, run the two commands. The fitting, the measuring and the guard are all in the scripts |

## Two commands

```bash
python3 scripts/build_cv.py examples/ada-lovelace.northwind.yaml -o out/cv.pdf --kind job --preview
python3 scripts/verify_cv.py out/cv.pdf --profile out/cv.profile.json --master examples/ada-lovelace.yaml --target examples/posting-northwind.json
```

Build writes the PDF, a PNG of page one so you can actually look at it, and the
effective profile: what landed on the page after caps and fitting. Verify exits
non-zero when anything's off.

## The file you edit

One YAML per person. Open `examples/ada-lovelace.yaml`; every field has a
comment next to it. Don't have a section? Leave it out. Empty sections get
dropped at render time and the tool never invents one. Skills go in `items`,
which render as a bold label followed by plain text, so a person can scan them by
label and an ATS reads them as ordinary lines.

## Kinds

`--kind job`, `hackathon` or `competition`. Same career, three different
documents, because a hiring manager wants to know whether you've done the job
before, a hackathon organiser wants proof a past project survived past Sunday
night, and a selection committee compares ranks. `kinds.json` has each one's
section order, priority shifts, caps, and the reasoning in a `notes` field.

If there's no Experience section at all, Education goes first no matter the
kind. Projects above Education on a student's resume reads like hiding something.

## Language

Write the profile in whatever language the resume should be in. Headings are
matched by alias (`Experiencia`, `Formación`, `Compétences` all count) so
ordering and caps still work, and the page keeps the words you wrote.
`verify_cv.py --lang es` swaps in the Spanish pronoun check.
`examples/tomas-rivera.es.yaml` is the student example in Spanish.

## Format

US Letter, 0.55 inch margins, Georgia at 10.5pt with Palatino and Times New
Roman behind it. Georgia wasn't the first pick. Charter was, until rendering the
same profile in eight faces showed it running 63pt longer than Times, about five
lines, which on a one-pager is a whole bullet. One column, no tables, no
graphics, so an ATS gets plain text. Name centred, one contact line, upper-case
headings with a rule under them, dates in grey on the right.

The spacing is all explicit, and it took four tries to get there. Typst adds
implicit spacing between blocks, and a section whose first entry had no title row
(a skills list, say) sat 12pt lower under its rule than every other section. A
negative `v()` did nothing; an empty grid did nothing. Zeroing every implicit gap
and owning them with named constants is what finally worked. The numbers are in
the comments in `templates/harvard.typ`.

## How it reads the page back

Page count and page fill come from measuring the PDF, never from an estimate.
With poppler installed that's exact. Without it, `pypdf` reads the same numbers
in pure Python off each line's baseline, which lands within 0.2 of a percentage
point on the example resumes. `scripts/toolchain.py` holds both paths, and a
test compares them.

## Examples

Four files, three invented people. `ada-lovelace.yaml` is a standard master
profile with roles and side projects. `ada-lovelace.northwind.yaml` is her
tailored to `posting-northwind.json`, dates and titles untouched, which is what
the guard checks. `tomas-rivera.yaml` is a student with no work history, and
`tomas-rivera.es.yaml` is him in Spanish.

## Prior art

[dabydat/resume-builder-skill](https://github.com/dabydat/resume-builder-skill)
packages the Harvard and ATS rules as prose for an agent; this adds the code.
[RenderCV](https://github.com/rendercv/rendercv) is a far better typesetter and
does no tailoring at all. [Resume Forge](https://github.com/AjayLuhach/resume-forge)
is where the keyword coverage came from, minus the score, since a score turns
into something people write toward.
[silver-dev-cv](https://typst.app/universe/package/silver-dev-cv), by a
recruiter who places Argentine engineers in US startups, and its parent blog
supplied the rule in `TAILORING.md` about employers the reader has never heard of.

MIT.
````
