cv-agent-mcp 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,7 +21,7 @@ cv-agent rejects all of it. In normal use your agent calls these as MCP tools, s
21
21
 
22
22
  | | cv-agent | Typical AI resume builders |
23
23
  | ---------------------------------------- | :------: | :------------------------: |
24
- | Starts from what your AI already knows | ✅ | Blank form or CV upload |
24
+ | Starts from your existing CV *or* what your AI already knows | ✅ | Blank form or CV upload |
25
25
  | Runs in your existing agent, no API key | ✅ | Their app, your API key or a subscription |
26
26
  | **Blocks invented numbers, employers, skills** | ✅ | ❌ (happily writes "improved X by 40%") |
27
27
  | Open data format (JSON Resume) | ✅ | Often proprietary |
@@ -32,9 +32,13 @@ It's excellent, and cv-agent's `profile.json` is JSON Resume, so you can import
32
32
 
33
33
  ## How it works
34
34
 
35
- 1. **Bring your context.** Run `cv-agent prompt` (or ask your agent) and paste the prompt into the AI you talk to most.
36
- It writes your profile as JSON Resume, using only facts it actually knows and marking anything it guessed.
37
- 2. **Import and confirm.** cv-agent saves it as your *master profile* and lists the guessed items for you to confirm.
35
+ 1. **Start from what you have.** Either:
36
+ - **Your existing CV(s):** PDF or Word, and several old versions are fine. Your agent converts them into one profile.
37
+ cv-agent checks the result against the original files, so even this step can't add a number, skill or employer
38
+ that isn't in your CV.
39
+ - **What your AI already knows about you:** run `cv-agent prompt` and paste it into the AI you talk to most. It
40
+ writes your profile using only facts it actually knows, and marks anything it guessed.
41
+ 2. **Confirm.** cv-agent saves your *master profile* and lists anything uncertain for you to check.
38
42
  3. **Review.** Deterministic checks (weak verbs, missing metrics, dates, length, ATS formatting) plus a rubric your
39
43
  agent uses for a real critique.
40
44
  4. **Tailor.** Paste a job description. You get keyword matches and honest gaps. Your agent selects, reorders and
@@ -50,7 +54,7 @@ It's excellent, and cv-agent's `profile.json` is JSON Resume, so you can import
50
54
  | --- | --- | --- |
51
55
  | [cv-agent-windows-x64.mcpb](https://github.com/zeiado/cv-agent/releases/latest/download/cv-agent-windows-x64.mcpb) | [cv-agent-macos-arm64.mcpb](https://github.com/zeiado/cv-agent/releases/latest/download/cv-agent-macos-arm64.mcpb) | [cv-agent-macos-x64.mcpb](https://github.com/zeiado/cv-agent/releases/latest/download/cv-agent-macos-x64.mcpb) |
52
56
 
53
- **Claude Code** (requires Node 20+)
57
+ **Claude Code** (requires Node 22+)
54
58
 
55
59
  ```bash
56
60
  claude mcp add cv-agent -- npx -y cv-agent-mcp serve
@@ -85,6 +89,8 @@ claude mcp add cv-agent -- node "$(pwd)/dist/cli.js" serve
85
89
  ```bash
86
90
  npm i -g cv-agent-mcp # installs the `cv-agent` command
87
91
  cv-agent prompt # the context-import prompt
92
+ cv-agent prompt --from-cv old.pdf # conversion prompt + your CV text, paste into any chatbot
93
+ cv-agent import answer.json --source old.pdf # import, checked against your original CV
88
94
  cv-agent import answer.txt # or: pbpaste | cv-agent import -
89
95
  cv-agent lint # review the master profile
90
96
  cv-agent match job.txt # keyword match vs a job description
@@ -101,8 +107,9 @@ Data lives in `~/.cv-agent` (override with `--dir` or `CV_AGENT_HOME`).
101
107
 
102
108
  | Tool | What it does |
103
109
  | --- | --- |
110
+ | `read_cv_files` | Read your existing CV(s): PDF, DOCX, TXT, MD |
104
111
  | `get_context_prompt` | The prompt for exporting your profile from another AI |
105
- | `import_profile` | Validate and save the master profile; returns items to confirm |
112
+ | `import_profile` | Save the master profile, checked against your original CV files when given |
106
113
  | `get_profile` / `update_profile` | Read / edit the master profile |
107
114
  | `review_cv` | Deterministic checks and a review rubric |
108
115
  | `analyze_job` | Keywords, gaps and match score for a job description |
package/dist/cli.js CHANGED
@@ -4,7 +4,9 @@ import { dirname, join, resolve } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
  import { parseArgs } from "node:util";
6
6
  import { Resume } from "./schema/resume.js";
7
- import { Store, parseImport } from "./core/store.js";
7
+ import { Store } from "./core/store.js";
8
+ import { importProfile } from "./core/importer.js";
9
+ import { extractAll, joinDocs } from "./core/extract.js";
8
10
  import { lint } from "./core/lint.js";
9
11
  import { analyzeJob } from "./core/keywords.js";
10
12
  import { verifyTailored } from "./core/verify.js";
@@ -13,8 +15,12 @@ const ROOT = join(dirname(fileURLToPath(import.meta.url)), "..");
13
15
  const HELP = `cv-agent: agent-native CV builder, reviewer and tailor
14
16
 
15
17
  Usage:
16
- cv-agent prompt Print the prompt to paste into ChatGPT/Claude/Gemini
17
- cv-agent import <file|-> [--force] Save that AI's answer as your master profile
18
+ cv-agent prompt Prompt for ChatGPT/Claude/Gemini to write your profile from memory
19
+ cv-agent prompt --from-cv <cv.pdf>... Prompt + your existing CV text, ready to paste into any chatbot
20
+ cv-agent extract <cv.pdf|docx>... Print the plain text of existing CV files
21
+ cv-agent import <file|-> [--source <cv.pdf>]... [--force]
22
+ Save the AI's answer as your master profile. With --source it is
23
+ checked against your original CV and invented content is rejected
18
24
  cv-agent lint [file] Review a CV (default: master profile)
19
25
  cv-agent match <job.txt> [file] Keyword match against a job description
20
26
  cv-agent verify <tailored.json> Check a tailored CV for invented facts
@@ -32,6 +38,9 @@ const { positionals, values } = parseArgs({
32
38
  force: { type: "boolean" },
33
39
  md: { type: "boolean" },
34
40
  letter: { type: "boolean" },
41
+ "from-cv": { type: "boolean" },
42
+ source: { type: "string", multiple: true },
43
+ "allow-unsourced": { type: "boolean" },
35
44
  help: { type: "boolean", short: "h" },
36
45
  },
37
46
  });
@@ -44,21 +53,42 @@ const printIssues = (issues) => issues.forEach((i) => console.log(` ${ICON[i.se
44
53
  async function main() {
45
54
  switch (cmd) {
46
55
  case "prompt":
47
- process.stdout.write(readFileSync(join(ROOT, "prompts", "context-import.md"), "utf8"));
56
+ if (values["from-cv"]) {
57
+ if (!args.length)
58
+ throw new Error("Usage: cv-agent prompt --from-cv <cv.pdf> [more files...]");
59
+ const text = joinDocs(await extractAll(args));
60
+ process.stdout.write(readFileSync(join(ROOT, "prompts", "cv-import.md"), "utf8") + "\n" + text + "\n");
61
+ }
62
+ else
63
+ process.stdout.write(readFileSync(join(ROOT, "prompts", "context-import.md"), "utf8"));
64
+ break;
65
+ case "extract":
66
+ if (!args.length)
67
+ throw new Error("Usage: cv-agent extract <cv.pdf|cv.docx> [more files...]");
68
+ process.stdout.write(joinDocs(await extractAll(args)) + "\n");
48
69
  break;
49
70
  case "import": {
50
71
  if (!args[0])
51
72
  throw new Error("Usage: cv-agent import <file|->");
52
- const s = store();
53
- if (s.hasProfile() && !values.force)
54
- throw new Error(`A profile already exists at ${s.profilePath}. Use --force to replace it.`);
55
- const { profile, review } = parseImport(readInput(args[0]));
56
- s.saveProfile(profile);
57
- s.saveReview(review);
58
- console.log(`Saved master profile to ${s.profilePath}`);
59
- if (review.length) {
60
- console.log(`\n${review.length} item(s) the AI was not sure about. Check these before using the CV:`);
61
- review.forEach((r) => console.log(` ? ${r.path.padEnd(28)} ${r.confidence}${r.note ? `: ${r.note}` : ""}`));
73
+ const r = await importProfile(store(), readInput(args[0]), {
74
+ sourceFiles: values.source,
75
+ overwrite: values.force,
76
+ allowUnsourced: values["allow-unsourced"],
77
+ });
78
+ if (r.saved === false) {
79
+ console.log(r.reason.replace("(overwrite)", "(--force)").replace("allowUnsourced: true", "--allow-unsourced"));
80
+ r.findings?.forEach((f) => console.log(` ${ICON[f.severity]} ${f.path.padEnd(28)} ${f.message}`));
81
+ process.exitCode = 1;
82
+ break;
83
+ }
84
+ console.log(`Saved master profile to ${r.saved}`);
85
+ if (values.source?.length) {
86
+ const errors = r.sourceCheck?.filter((f) => f.severity === "error").length ?? 0;
87
+ console.log(errors ? `Saved with ${errors} claim(s) not in your CV (--allow-unsourced).` : "Checked against your CV: nothing invented.");
88
+ }
89
+ if (r.needsConfirmation.length) {
90
+ console.log(`\n${r.needsConfirmation.length} item(s) to check before using the CV:`);
91
+ r.needsConfirmation.forEach((x) => console.log(` ? ${x.path.padEnd(28)} ${x.note ?? x.confidence}`));
62
92
  }
63
93
  break;
64
94
  }
@@ -0,0 +1,47 @@
1
+ import { readFile } from "node:fs/promises";
2
+ import { basename, extname } from "node:path";
3
+ export const SUPPORTED = [".pdf", ".docx", ".txt", ".md"];
4
+ /** Normalise extracted text: unify bullets/whitespace, drop empty runs, keep line structure. */
5
+ function clean(text) {
6
+ return text
7
+ .replace(/\r/g, "")
8
+ .replace(/[•●▪‣⁃◦]/g, "-")
9
+ .replace(/[ \t ]+/g, " ")
10
+ .split("\n")
11
+ .map((l) => l.trim())
12
+ .join("\n")
13
+ .replace(/\n{3,}/g, "\n\n")
14
+ .trim();
15
+ }
16
+ /** Plain text of an existing CV. Supports PDF (text-based, not scanned), DOCX, TXT and Markdown. */
17
+ export async function extractText(path) {
18
+ const ext = extname(path).toLowerCase();
19
+ if (ext === ".doc")
20
+ throw new Error(`${basename(path)}: old .doc files aren't supported. Save it as .docx or PDF first.`);
21
+ if (!SUPPORTED.includes(ext))
22
+ throw new Error(`${basename(path)}: unsupported file type. Use ${SUPPORTED.join(", ")}.`);
23
+ const buf = await readFile(path);
24
+ let text;
25
+ if (ext === ".pdf") {
26
+ const { extractText: pdfText, getDocumentProxy } = await import("unpdf");
27
+ const pdf = await getDocumentProxy(new Uint8Array(buf));
28
+ text = (await pdfText(pdf, { mergePages: true })).text;
29
+ }
30
+ else if (ext === ".docx") {
31
+ const mammoth = await import("mammoth");
32
+ text = (await mammoth.extractRawText({ buffer: buf })).value;
33
+ }
34
+ else {
35
+ text = buf.toString("utf8");
36
+ }
37
+ text = clean(text);
38
+ if (text.length < 80)
39
+ throw new Error(`${basename(path)}: almost no text found. If it's a scanned PDF/image, export a text-based PDF or DOCX instead.`);
40
+ return { file: basename(path), text };
41
+ }
42
+ export async function extractAll(paths) {
43
+ return Promise.all(paths.map(extractText));
44
+ }
45
+ export function joinDocs(docs) {
46
+ return docs.map((d) => `===== ${d.file} =====\n${d.text}`).join("\n\n");
47
+ }
@@ -0,0 +1,29 @@
1
+ import { extractAll, joinDocs } from "./extract.js";
2
+ import { lint } from "./lint.js";
3
+ import { parseImport } from "./store.js";
4
+ import { verifyAgainstSource } from "./verify.js";
5
+ export async function importProfile(store, text, opts = {}) {
6
+ if (store.hasProfile() && !opts.overwrite)
7
+ return { saved: false, reason: "A profile already exists. Ask the user before replacing it (overwrite), or edit it with update_profile." };
8
+ const { profile, review } = parseImport(text);
9
+ let sourceCheck;
10
+ if (opts.sourceFiles?.length) {
11
+ const source = joinDocs(await extractAll(opts.sourceFiles));
12
+ const v = verifyAgainstSource(profile, source);
13
+ sourceCheck = v.findings;
14
+ if (!v.ok && !opts.allowUnsourced)
15
+ return {
16
+ saved: false,
17
+ reason: "The profile contains things that are not in the CV file(s). Remove them, or if the user confirms they are true, " +
18
+ "call again with allowUnsourced: true.",
19
+ findings: v.findings,
20
+ };
21
+ // Bullets that drifted from the original wording go on the confirmation list.
22
+ for (const f of v.findings)
23
+ if (f.severity === "warn" && !review.some((r) => r.path === f.path))
24
+ review.push({ path: f.path, confidence: "inferred", note: f.message });
25
+ }
26
+ store.saveProfile(profile);
27
+ store.saveReview(review);
28
+ return { saved: store.profilePath, needsConfirmation: review, sourceCheck, lint: lint(profile) };
29
+ }
@@ -108,3 +108,58 @@ export function verifyTailored(master, tailored) {
108
108
  }
109
109
  return { ok: !findings.some((f) => f.severity === "error"), findings };
110
110
  }
111
+ const DATE_KEY = /(^|\.)(startDate|endDate|date)$/;
112
+ const NAME_KEYS = {
113
+ "work": "name", "volunteer": "organization", "projects": "name", "education": "institution",
114
+ "certificates": "name", "awards": "title", "languages": "language",
115
+ };
116
+ /**
117
+ * Import guard: when a profile is built from the user's existing CV file(s), everything in it must come from
118
+ * that text. Numbers, names, technologies and skills must appear in the source; bullets should be near-verbatim;
119
+ * years must match. Catches an agent "improving" the CV while converting it.
120
+ */
121
+ export function verifyAgainstSource(profile, sourceText) {
122
+ const findings = [];
123
+ const err = (path, message) => findings.push({ severity: "error", path, message });
124
+ const warn = (path, message, source) => findings.push({ severity: "warn", path, message, source });
125
+ const words = ` ${norm(sourceText)} `;
126
+ const mentioned = (s) => words.includes(` ${norm(s)} `);
127
+ const srcMetrics = new Set(metrics(sourceText));
128
+ const lines = sourceText.split(/\n+/).map((l) => l.trim()).filter((l) => l.length > 3);
129
+ // Wrapped bullets: also consider each line joined with the next one.
130
+ const candidates = lines.flatMap((l, i) => (lines[i + 1] ? [l, `${l} ${lines[i + 1]}`] : [l]));
131
+ if (!mentioned(profile.basics.name))
132
+ err("basics.name", `"${profile.basics.name}" does not appear in your CV.`);
133
+ for (const { path, text } of corpus(profile)) {
134
+ if (DATE_KEY.test(path)) {
135
+ const year = text.match(/^\d{4}/)?.[0];
136
+ if (year && !words.includes(` ${year} `))
137
+ err(path, `Year ${year} does not appear in your CV.`);
138
+ continue;
139
+ }
140
+ for (const m of metrics(text))
141
+ if (!srcMetrics.has(m))
142
+ err(path, `Number "${m}" does not appear in your CV.`);
143
+ for (const e of entities(text))
144
+ if (!mentioned(e))
145
+ err(path, `"${e}" does not appear in your CV.`);
146
+ const section = path.match(/^(\w+)\[\d+\]\.(\w+)/);
147
+ if (section && NAME_KEYS[section[1]] === section[2] && !mentioned(text))
148
+ err(path, `"${text}" does not appear in your CV.`);
149
+ else if (/\.position$|\.studyType$|\.area$/.test(path) && !mentioned(text))
150
+ warn(path, `"${text}" is not written this way in your CV. Check it is accurate.`);
151
+ else if (/^skills\[\d+\]\.keywords/.test(path) && !mentioned(text))
152
+ err(path, `Skill "${text}" does not appear in your CV.`);
153
+ else if (/\.(highlights\[\d+\]|summary|description)$/.test(path) || /highlights\[\d+\]$/.test(path)) {
154
+ let best;
155
+ for (const c of candidates) {
156
+ const o = overlap(text, c);
157
+ if (!best || o > best.overlap)
158
+ best = { path: "source", text: c, overlap: Math.round(o * 100) / 100 };
159
+ }
160
+ if (!best || best.overlap < 0.5)
161
+ warn(path, "Doesn't closely match any line in your CV. Keep the original wording unless the user rewrote it.", best);
162
+ }
163
+ }
164
+ return { ok: !findings.some((f) => f.severity === "error"), findings };
165
+ }
@@ -5,7 +5,9 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
5
5
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
6
6
  import { z } from "zod";
7
7
  import { Resume } from "../schema/resume.js";
8
- import { Store, parseImport } from "../core/store.js";
8
+ import { Store } from "../core/store.js";
9
+ import { importProfile } from "../core/importer.js";
10
+ import { extractAll, joinDocs } from "../core/extract.js";
9
11
  import { lint } from "../core/lint.js";
10
12
  import { analyzeJob } from "../core/keywords.js";
11
13
  import { verifyTailored } from "../core/verify.js";
@@ -24,7 +26,8 @@ catch (e) {
24
26
  export async function startServer(dir) {
25
27
  const store = new Store(dir);
26
28
  const server = new McpServer({ name: "cv-agent", version: VERSION }, {
27
- instructions: "cv-agent stores the user's master CV profile and produces tailored CVs. Workflow: get_context_prompt -> " +
29
+ instructions: "cv-agent stores the user's master CV profile and produces tailored CVs. Workflow: build the profile (read_cv_files if the " +
30
+ "user has an existing CV, otherwise get_context_prompt) -> " +
28
31
  "import_profile -> review_cv -> analyze_job -> tailor_cv -> render_cv. Never invent experience, numbers, " +
29
32
  "employers or skills; tailor_cv rejects them. If you already know the user well from this conversation or memory, " +
30
33
  "you may draft the profile yourself following get_context_prompt, but confirm uncertain items with the user.",
@@ -34,18 +37,32 @@ export async function startServer(dir) {
34
37
  description: "Returns the prompt the user pastes into their main AI (ChatGPT, Claude, Gemini) to export a factual profile, or that you follow yourself if you already know the user.",
35
38
  inputSchema: {},
36
39
  }, async () => ({ content: [{ type: "text", text: readPrompt("context-import.md") }] }));
40
+ server.registerTool("read_cv_files", {
41
+ title: "Read existing CV files",
42
+ description: "Extract the text of the user's existing CV(s): PDF, DOCX, TXT or MD. Several files are fine (e.g. older versions); they get merged. " +
43
+ "Returns the text plus conversion instructions. Convert it to a profile following the instructions exactly, then call " +
44
+ "import_profile with the same paths as sourceFiles so the result is checked against the originals.",
45
+ inputSchema: { paths: z.array(z.string()).min(1).describe("Absolute paths to the CV files") },
46
+ }, safe(async ({ paths }) => {
47
+ const docs = await extractAll(paths);
48
+ return {
49
+ files: docs.map((d) => ({ file: d.file, characters: d.text.length })),
50
+ instructions: readPrompt("cv-import.md"),
51
+ text: joinDocs(docs),
52
+ };
53
+ }));
37
54
  server.registerTool("import_profile", {
38
55
  title: "Import master profile",
39
- description: "Validate and save the master profile. Accepts the raw text the user's AI returned (JSON, optionally inside ```json fences). Returns items the AI marked inferred/unsure so you can confirm them with the user.",
40
- inputSchema: { text: z.string().describe("The AI's output: a JSON Resume object, optionally with a _review array"), overwrite: z.boolean().default(false) },
41
- }, safe(({ text, overwrite }) => {
42
- if (store.hasProfile() && !overwrite)
43
- throw new Error("A profile already exists. Ask the user before replacing it, then call again with overwrite: true, or use update_profile.");
44
- const { profile, review } = parseImport(text);
45
- store.saveProfile(profile);
46
- store.saveReview(review);
47
- return { saved: store.profilePath, needsConfirmation: review, lint: lint(profile) };
48
- }));
56
+ description: "Validate and save the master profile. Accepts JSON Resume text (optionally inside ```json fences, with a _review array). " +
57
+ "If it was converted from CV files, pass them as sourceFiles: everything is checked against the original text and invented " +
58
+ "content is rejected. Returns items to confirm with the user.",
59
+ inputSchema: {
60
+ text: z.string().describe("A JSON Resume object, optionally with a _review array"),
61
+ sourceFiles: z.array(z.string()).optional().describe("The CV files this profile was converted from (same paths as read_cv_files)"),
62
+ overwrite: z.boolean().default(false),
63
+ allowUnsourced: z.boolean().default(false).describe("Only after the user confirmed the flagged claims are true"),
64
+ },
65
+ }, safe(({ text, sourceFiles, overwrite, allowUnsourced }) => importProfile(store, text, { sourceFiles, overwrite, allowUnsourced })));
49
66
  server.registerTool("get_profile", { title: "Get master profile", description: "Read the saved master profile and any still-unconfirmed items.", inputSchema: {} }, safe(() => ({ profile: store.loadProfile(), unconfirmed: store.loadReview() })));
50
67
  server.registerTool("update_profile", {
51
68
  title: "Update master profile",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cv-agent-mcp",
3
3
  "mcpName": "io.github.zeiado/cv-agent",
4
- "version": "0.2.0",
4
+ "version": "0.3.0",
5
5
  "description": "Agent-native CV builder, reviewer and tailor. Runs inside your AI agent as an MCP server — no API key, no invented experience.",
6
6
  "type": "module",
7
7
  "bin": {
@@ -16,7 +16,7 @@
16
16
  "LICENSE"
17
17
  ],
18
18
  "engines": {
19
- "node": ">=20"
19
+ "node": ">=22"
20
20
  },
21
21
  "scripts": {
22
22
  "build": "tsc -p tsconfig.json",
@@ -51,6 +51,8 @@
51
51
  "dependencies": {
52
52
  "@modelcontextprotocol/sdk": "^1.32.2",
53
53
  "@myriaddreamin/typst-ts-node-compiler": "^0.7.0",
54
+ "mammoth": "^1.13.0",
55
+ "unpdf": "^2.2.3",
54
56
  "zod": "^4.6.7"
55
57
  },
56
58
  "devDependencies": {
@@ -0,0 +1,41 @@
1
+ Convert the CV text below into my professional profile: a single JSON object in the JSON Resume format shown at the
2
+ end. If there are several CVs, merge them into ONE profile (they are versions of the same person's CV).
3
+
4
+ Rules. Follow them strictly. The result is checked against the original text, and invented content is rejected:
5
+
6
+ 1. **Copy, don't improve.** Keep the original wording of every bullet. Only fix obvious typos and remove first-person
7
+ pronouns. Do not add numbers, technologies, outcomes or adjectives that are not in the text.
8
+ 2. **Merge duplicates.** The same role in two CVs becomes one entry. Keep every distinct bullet; drop exact or
9
+ near-exact repeats. If two versions disagree (dates, titles), use the most recent CV and list the conflict in
10
+ `_review` with `"confidence": "unsure"`.
11
+ 3. **Dates** as `YYYY-MM` when the month is given, otherwise `YYYY`. Leave `endDate` out for current roles
12
+ ("Present", "Now", "Current").
13
+ 4. **Skills:** only skills written in the CV. Group them sensibly (e.g. "Languages", "Backend", "Tools").
14
+ 5. If a field is ambiguous (e.g. you can't tell the employer from the title), make your best reading and add it to
15
+ `_review` with `"confidence": "inferred"` and a short note.
16
+ 6. Put the most recent roles first.
17
+ 7. After the JSON, list up to 10 **questions** that would most improve this CV: bullets with no measurable result,
18
+ vague responsibilities, missing dates. These are for me to answer later. Do not answer them yourself.
19
+
20
+ Output format: one ```json code block, then the questions as a plain list. Nothing else.
21
+
22
+ ```json
23
+ {
24
+ "basics": {
25
+ "name": "", "label": "", "email": "", "phone": "", "url": "", "summary": "",
26
+ "location": { "city": "", "countryCode": "" },
27
+ "profiles": [{ "network": "", "username": "", "url": "" }]
28
+ },
29
+ "work": [{ "name": "employer", "position": "", "location": "", "startDate": "", "endDate": "", "summary": "", "highlights": [""] }],
30
+ "projects": [{ "name": "", "description": "", "url": "", "highlights": [""], "keywords": [""] }],
31
+ "education": [{ "institution": "", "studyType": "", "area": "", "startDate": "", "endDate": "", "score": "" }],
32
+ "skills": [{ "name": "", "keywords": [""] }],
33
+ "certificates": [{ "name": "", "issuer": "", "date": "" }],
34
+ "languages": [{ "language": "", "fluency": "" }],
35
+ "volunteer": [{ "organization": "", "position": "", "startDate": "", "endDate": "", "highlights": [""] }],
36
+ "awards": [{ "title": "", "awarder": "", "date": "" }],
37
+ "_review": [{ "path": "work[1].startDate", "confidence": "unsure", "note": "2019 in one CV, 2020 in the other" }]
38
+ }
39
+ ```
40
+
41
+ CV text:
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cv-agent
3
- description: Build, review and tailor the user's CV/resume without inventing anything. Use when the user wants to create or update a CV or resume, get feedback on one, tailor it to a job posting, check ATS keyword match, or export it to PDF. Requires the cv-agent MCP server.
3
+ description: Build, review and tailor the user's CV/resume without inventing anything. Use when the user wants to create or update a CV or resume, import an existing CV (PDF/Word), get feedback on one, tailor it to a job posting, check ATS keyword match, or export it to PDF. Requires the cv-agent MCP server.
4
4
  ---
5
5
 
6
6
  # cv-agent
@@ -16,11 +16,14 @@ these. When the master profile lacks something a job wants, **ask the user**. If
16
16
 
17
17
  ## Workflow
18
18
 
19
- 1. **Get the profile.** Call `get_profile`. If none exists:
20
- - If you already know the user well (this conversation or your memory), draft the profile yourself following
19
+ 1. **Get the profile.** Call `get_profile`. If none exists, ask whether they have an existing CV.
20
+ - **They have a CV file (most people):** ask for its path (several versions are welcome, since they get merged), call
21
+ `read_cv_files`, convert the text exactly as its instructions say (copy, don't improve), then `import_profile`
22
+ with the same paths as `sourceFiles`. If it reports claims that aren't in the CV, remove them. Never use
23
+ `allowUnsourced` unless the user explicitly confirms those facts.
24
+ - **No CV, but you know them well** (this conversation or your memory): draft the profile following
21
25
  `get_context_prompt`, show it to them, and import it once they agree.
22
- - Otherwise give them the text from `get_context_prompt` to paste into the AI they use most, and import its
23
- answer with `import_profile`.
26
+ - **Otherwise:** give them the text from `get_context_prompt` to paste into the AI they use most, and import its answer.
24
27
  - Walk through every `needsConfirmation` item with the user. Then `update_profile` with `confirmedPaths`.
25
28
  2. **Review.** Call `review_cv`. Report the deterministic issues briefly, then your own critique using the
26
29
  returned rubric. Ask for missing numbers rather than guessing them.