Skip to main content
Glama
cv-agent

cv-agent

by zeiado
README.md
# cv-agent

[![CI](https://github.com/zeiado/cv-agent/actions/workflows/ci.yml/badge.svg)](https://github.com/zeiado/cv-agent/actions/workflows/ci.yml)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

**Your AI already knows your career. cv-agent turns that into a CV, reviews it, and tailors it to each job, without
inventing a single fact.**

cv-agent is an open-source MCP server and CLI that runs *inside* the AI agent you already use (Claude Desktop, Claude
Code, Cursor, or any MCP client). Your agent does the writing. cv-agent stores your profile, checks the CV, blocks
made-up claims and renders an ATS-friendly PDF. You don't need an API key or an account, and your data stays on your
machine.

![cv-agent demo: import, review, job match, catching invented claims, PDF](docs/demo.gif)

*Real CLI output. In step 4 an AI "tailored" the CV by inventing a 70% improvement and Kubernetes experience.
cv-agent rejects all of it. In normal use your agent calls these as MCP tools, so you never type the commands.*

## Why another CV tool?

|                                          | cv-agent | Typical AI resume builders |
| ---------------------------------------- | :------: | :------------------------: |
| Starts from what your AI already knows   | ✅       | Blank form or CV upload    |
| Runs in your existing agent, no API key  | ✅       | Their app, your API key or a subscription |
| **Blocks invented numbers, employers, skills** | ✅ | ❌ (happily writes "improved X by 40%") |
| Open data format (JSON Resume)           | ✅       | Often proprietary          |
| ATS-safe PDF with clean text order       | ✅       | Varies                     |

If you want a visual drag-and-drop editor, use [Reactive Resume](https://github.com/AmruthPillai/Reactive-Resume).
It's excellent, and cv-agent's `profile.json` is JSON Resume, so you can import it there.

## How it works

1. **Bring your context.** Run `cv-agent prompt` (or ask your agent) and paste the prompt into the AI you talk to most.
   It writes your profile as JSON Resume, using only facts it actually knows and marking anything it guessed.
2. **Import and confirm.** cv-agent saves it as your *master profile* and lists the guessed items for you to confirm.
3. **Review.** Deterministic checks (weak verbs, missing metrics, dates, length, ATS formatting) plus a rubric your
   agent uses for a real critique.
4. **Tailor.** Paste a job description. You get keyword matches and honest gaps. Your agent selects, reorders and
   rewords. `tailor_cv` then checks every bullet against your master profile and **rejects any number, technology,
   employer, title, date or skill that isn't in it**.
5. **Render** to PDF and Markdown.

## Install

Requires Node 20+.

**Claude Code**

```bash
claude mcp add cv-agent -- npx -y cv-agent-mcp serve
```

**Claude Desktop / Cursor / other MCP clients:** add to your MCP config:

```json
{ "mcpServers": { "cv-agent": { "command": "npx", "args": ["-y", "cv-agent-mcp", "serve"] } } }
```

Optional: copy `skill/cv-agent` into `~/.claude/skills/` so Claude follows the full workflow automatically.

Then just ask: *"Build my CV with cv-agent"* or *"Tailor my CV to this job: …"*

<details>
<summary>From source</summary>

```bash
git clone https://github.com/zeiado/cv-agent && cd cv-agent
npm install && npm run build
claude mcp add cv-agent -- node "$(pwd)/dist/cli.js" serve
```

</details>

## CLI

```bash
npm i -g cv-agent-mcp               # installs the `cv-agent` command
cv-agent prompt                     # the context-import prompt
cv-agent import answer.txt          # or: pbpaste | cv-agent import -
cv-agent lint                       # review the master profile
cv-agent match job.txt              # keyword match vs a job description
cv-agent verify tailored.json       # check a tailored CV for invented facts
cv-agent render -o cv.pdf --md      # PDF (+ Markdown); --letter for US Letter
```

Try it on the bundled examples: `cv-agent verify examples/tailored-overclaimed.json --dir /tmp/demo` after
`cv-agent import examples/profile.json --dir /tmp/demo`.

Data lives in `~/.cv-agent` (override with `--dir` or `CV_AGENT_HOME`).

## MCP tools

| Tool | What it does |
| --- | --- |
| `get_context_prompt` | The prompt for exporting your profile from another AI |
| `import_profile` | Validate and save the master profile; returns items to confirm |
| `get_profile` / `update_profile` | Read / edit the master profile |
| `review_cv` | Deterministic checks and a review rubric |
| `analyze_job` | Keywords, gaps and match score for a job description |
| `tailor_cv` | Save a tailored CV, but only if it invents nothing |
| `render_cv` | PDF and Markdown output |
| `list_tailored` | Saved tailored CVs |

## How the "no invention" check works

For each tailored entry and bullet:

- Employers, projects, institutions, titles and dates must match the master profile.
- Every **number** (`40%`, `$2M`, `3x`, `10k`) must appear somewhere in the master profile.
- Every **technology or proper noun** (`Kubernetes`, `Node.js`, `Google`) must appear somewhere in it.
- Every **skill** must be evidenced in it.
- Bullets that can't be traced to any source get a warning for you to confirm.

It's deliberately strict. If the AI found something true that isn't in your profile yet, add it to the profile
first, then tailor.

## Contributing

New Typst templates are the easiest way to help. See `templates/classic.typ`. They must stay single-column and
ATS-safe. Run tests with `npm test`.

## License

MIT