cv-agent-mcp 0.3.0 → 0.4.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 +17 -8
- package/dist/cli.js +15 -1
- package/dist/core/gaps.js +69 -0
- package/dist/core/keywords.js +2 -0
- package/dist/core/store.js +4 -0
- package/dist/mcp/server.js +28 -3
- package/package.json +3 -3
- package/prompts/gap-interview.md +32 -0
- package/prompts/tailoring-guide.md +30 -0
- package/{skill → skills}/cv-agent/SKILL.md +10 -7
package/README.md
CHANGED
|
@@ -41,10 +41,13 @@ It's excellent, and cv-agent's `profile.json` is JSON Resume, so you can import
|
|
|
41
41
|
2. **Confirm.** cv-agent saves your *master profile* and lists anything uncertain for you to check.
|
|
42
42
|
3. **Review.** Deterministic checks (weak verbs, missing metrics, dates, length, ATS formatting) plus a rubric your
|
|
43
43
|
agent uses for a real critique.
|
|
44
|
-
4. **
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
4. **Fill real gaps.** Give it the jobs you're applying to. It ranks the skills they want that your profile doesn't
|
|
45
|
+
show, by how many applications each affects. Then your agent interviews you about them, one question at a time
|
|
46
|
+
and without leading questions, to surface experience you forgot to list. Only what you confirm is added, with your
|
|
47
|
+
confirmation logged next to it.
|
|
48
|
+
5. **Tailor.** Your agent selects, reorders and rephrases for each job. `tailor_cv` then checks every bullet against
|
|
49
|
+
your master profile and **rejects any number, technology, employer, title, date or skill that isn't in it**.
|
|
50
|
+
6. **Render** to PDF and Markdown.
|
|
48
51
|
|
|
49
52
|
## Install
|
|
50
53
|
|
|
@@ -54,11 +57,14 @@ It's excellent, and cv-agent's `profile.json` is JSON Resume, so you can import
|
|
|
54
57
|
| --- | --- | --- |
|
|
55
58
|
| [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) |
|
|
56
59
|
|
|
57
|
-
**Claude Code** (requires Node 22+)
|
|
60
|
+
**Claude Code plugin** (MCP server and workflow skill in one step; requires Node 22+). In Claude Code:
|
|
58
61
|
|
|
59
|
-
```bash
|
|
60
|
-
claude mcp add cv-agent -- npx -y cv-agent-mcp serve
|
|
61
62
|
```
|
|
63
|
+
/plugin install cv-agent --marketplace zeiado/cv-agent
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
On older Claude Code versions: `/plugin marketplace add zeiado/cv-agent`, then `/plugin install cv-agent@zeiado`.
|
|
67
|
+
Or add just the MCP server: `claude mcp add cv-agent -- npx -y cv-agent-mcp serve`.
|
|
62
68
|
|
|
63
69
|
cv-agent is also listed in the [official MCP Registry](https://registry.modelcontextprotocol.io) as
|
|
64
70
|
`io.github.zeiado/cv-agent`.
|
|
@@ -69,7 +75,7 @@ cv-agent is also listed in the [official MCP Registry](https://registry.modelcon
|
|
|
69
75
|
{ "mcpServers": { "cv-agent": { "command": "npx", "args": ["-y", "cv-agent-mcp", "serve"] } } }
|
|
70
76
|
```
|
|
71
77
|
|
|
72
|
-
|
|
78
|
+
Not using the plugin? Copy `skills/cv-agent` into `~/.claude/skills/` so Claude follows the full workflow.
|
|
73
79
|
|
|
74
80
|
Then just ask: *"Build my CV with cv-agent"* or *"Tailor my CV to this job: …"*
|
|
75
81
|
|
|
@@ -94,6 +100,7 @@ cv-agent import answer.json --source old.pdf # import, checked against your or
|
|
|
94
100
|
cv-agent import answer.txt # or: pbpaste | cv-agent import -
|
|
95
101
|
cv-agent lint # review the master profile
|
|
96
102
|
cv-agent match job.txt # keyword match vs a job description
|
|
103
|
+
cv-agent gaps job1.txt job2.txt # skills your target jobs want that your profile doesn't show
|
|
97
104
|
cv-agent verify tailored.json # check a tailored CV for invented facts
|
|
98
105
|
cv-agent render -o cv.pdf --md # PDF (+ Markdown); --letter for US Letter
|
|
99
106
|
```
|
|
@@ -113,6 +120,8 @@ Data lives in `~/.cv-agent` (override with `--dir` or `CV_AGENT_HOME`).
|
|
|
113
120
|
| `get_profile` / `update_profile` | Read / edit the master profile |
|
|
114
121
|
| `review_cv` | Deterministic checks and a review rubric |
|
|
115
122
|
| `analyze_job` | Keywords, gaps and match score for a job description |
|
|
123
|
+
| `plan_gap_interview` | Gaps across one or more jobs, ranked by leverage, plus the interview guide |
|
|
124
|
+
| `add_confirmed_fact` | Add one fact the user confirmed, with the confirmation logged |
|
|
116
125
|
| `tailor_cv` | Save a tailored CV, but only if it invents nothing |
|
|
117
126
|
| `render_cv` | PDF and Markdown output |
|
|
118
127
|
| `list_tailored` | Saved tailored CVs |
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { readFileSync, writeFileSync } from "node:fs";
|
|
3
|
-
import { dirname, join, resolve } from "node:path";
|
|
3
|
+
import { basename, 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";
|
|
@@ -9,6 +9,7 @@ import { importProfile } from "./core/importer.js";
|
|
|
9
9
|
import { extractAll, joinDocs } from "./core/extract.js";
|
|
10
10
|
import { lint } from "./core/lint.js";
|
|
11
11
|
import { analyzeJob } from "./core/keywords.js";
|
|
12
|
+
import { planGaps } from "./core/gaps.js";
|
|
12
13
|
import { verifyTailored } from "./core/verify.js";
|
|
13
14
|
import { renderMarkdown, renderPdf } from "./render/index.js";
|
|
14
15
|
const ROOT = join(dirname(fileURLToPath(import.meta.url)), "..");
|
|
@@ -23,6 +24,8 @@ Usage:
|
|
|
23
24
|
checked against your original CV and invented content is rejected
|
|
24
25
|
cv-agent lint [file] Review a CV (default: master profile)
|
|
25
26
|
cv-agent match <job.txt> [file] Keyword match against a job description
|
|
27
|
+
cv-agent gaps <job.txt>... Skills your target jobs want that your profile doesn't show,
|
|
28
|
+
ranked by how many of the jobs ask for them
|
|
26
29
|
cv-agent verify <tailored.json> Check a tailored CV for invented facts
|
|
27
30
|
cv-agent render [file] [-o out.pdf] [--md] [--letter]
|
|
28
31
|
cv-agent serve Run the MCP server (stdio)
|
|
@@ -109,6 +112,17 @@ async function main() {
|
|
|
109
112
|
console.log(` Missing: ${a.missing.join(", ") || "(none)"}`);
|
|
110
113
|
break;
|
|
111
114
|
}
|
|
115
|
+
case "gaps": {
|
|
116
|
+
if (!args.length)
|
|
117
|
+
throw new Error("Usage: cv-agent gaps <job1.txt> [job2.txt ...]");
|
|
118
|
+
const plan = planGaps(args.map((f) => ({ name: basename(f).replace(/\.\w+$/, ""), description: readInput(f) })), store().loadProfile());
|
|
119
|
+
for (const j of plan.jobs)
|
|
120
|
+
console.log(` ${j.name.padEnd(24)} keyword match ${j.matchScore}%`);
|
|
121
|
+
console.log(plan.gaps.length ? "\nGaps (ask yourself honestly: have I done this, or something close?):" : "\nNo skill gaps found.");
|
|
122
|
+
for (const g of plan.gaps)
|
|
123
|
+
console.log(` ${g.leverage.toUpperCase().padEnd(7)} ${g.term.padEnd(20)} ${g.jobs.join(", ")}`);
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
112
126
|
case "verify": {
|
|
113
127
|
if (!args[0])
|
|
114
128
|
throw new Error("Usage: cv-agent verify <tailored.json>");
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Resume } from "../schema/resume.js";
|
|
2
|
+
import { analyzeJob, isKnownSkill } from "./keywords.js";
|
|
3
|
+
/**
|
|
4
|
+
* Missing skills across one or more job descriptions, de-duplicated and ranked by how many applications
|
|
5
|
+
* each gap affects. Ask about high-leverage gaps first: one honest answer can help several applications.
|
|
6
|
+
*/
|
|
7
|
+
export function planGaps(jobs, profile) {
|
|
8
|
+
const byTerm = new Map();
|
|
9
|
+
const perJob = jobs.map((j) => {
|
|
10
|
+
const a = analyzeJob(j.description, profile);
|
|
11
|
+
for (const k of a.keywords) {
|
|
12
|
+
// Only real skills or strongly repeated requirements; skip incidental words ("platform", "design").
|
|
13
|
+
if (k.inProfile || (!isKnownSkill(k.term) && k.weight < 4))
|
|
14
|
+
continue;
|
|
15
|
+
const g = byTerm.get(k.term) ?? { term: k.term, jobs: [], leverage: "low", weight: 0 };
|
|
16
|
+
g.jobs.push(j.name);
|
|
17
|
+
g.weight += k.weight;
|
|
18
|
+
byTerm.set(k.term, g);
|
|
19
|
+
}
|
|
20
|
+
return { name: j.name, matchScore: a.matchScore, matched: a.matched };
|
|
21
|
+
});
|
|
22
|
+
const gaps = [...byTerm.values()]
|
|
23
|
+
.map((g) => ({ ...g, leverage: (g.jobs.length >= 3 ? "high" : g.jobs.length === 2 ? "medium" : "low") }))
|
|
24
|
+
.sort((a, b) => b.jobs.length - a.jobs.length || b.weight - a.weight);
|
|
25
|
+
return { jobs: perJob, gaps };
|
|
26
|
+
}
|
|
27
|
+
const SECTIONS = ["work", "projects", "volunteer", "education", "skills", "certificates", "awards", "languages"];
|
|
28
|
+
const ADDABLE_LISTS = ["highlights", "keywords", "courses"];
|
|
29
|
+
/**
|
|
30
|
+
* Add one fact the user explicitly confirmed. `target` is either a section ("projects") to append a new entry,
|
|
31
|
+
* or a list inside an entry ("work[0].highlights", "skills[1].keywords") to append a string.
|
|
32
|
+
*/
|
|
33
|
+
export function addConfirmedFact(store, target, value, confirmation) {
|
|
34
|
+
if (!confirmation.trim())
|
|
35
|
+
throw new Error("Quote the user's confirmation. Facts are only added after the user says they are true.");
|
|
36
|
+
const profile = store.loadProfile();
|
|
37
|
+
let path;
|
|
38
|
+
const listMatch = target.match(/^(\w+)\[(\d+)\]\.(\w+)$/);
|
|
39
|
+
if (listMatch) {
|
|
40
|
+
const [, section, idx, list] = listMatch;
|
|
41
|
+
if (!SECTIONS.includes(section) || !ADDABLE_LISTS.includes(list))
|
|
42
|
+
throw new Error(`Can't add to "${target}".`);
|
|
43
|
+
if (typeof value !== "string" || !value.trim())
|
|
44
|
+
throw new Error(`"${target}" takes a single string.`);
|
|
45
|
+
const entry = profile[section]?.[Number(idx)];
|
|
46
|
+
if (!entry)
|
|
47
|
+
throw new Error(`${section}[${idx}] does not exist in the profile.`);
|
|
48
|
+
const arr = (entry[list] ??= []);
|
|
49
|
+
arr.push(value.trim());
|
|
50
|
+
path = `${target}[${arr.length - 1}]`;
|
|
51
|
+
}
|
|
52
|
+
else if (SECTIONS.includes(target)) {
|
|
53
|
+
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
54
|
+
throw new Error(`"${target}" takes one entry object.`);
|
|
55
|
+
const arr = (profile[target] ??= []);
|
|
56
|
+
arr.push(value);
|
|
57
|
+
path = `${target}[${arr.length - 1}]`;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
throw new Error(`Unknown target "${target}". Use a section (e.g. "projects") or a list (e.g. "work[0].highlights").`);
|
|
61
|
+
}
|
|
62
|
+
const parsed = Resume.safeParse(profile);
|
|
63
|
+
if (!parsed.success)
|
|
64
|
+
throw new Error(`That entry doesn't fit the profile schema: ${parsed.error.issues.map((i) => `${i.path.join(".")}: ${i.message}`).join("; ")}`);
|
|
65
|
+
store.saveProfile(parsed.data);
|
|
66
|
+
const entry = { path, value, source: "user-confirmed", confirmation: confirmation.trim(), at: new Date().toISOString() };
|
|
67
|
+
store.addEvidence(entry);
|
|
68
|
+
return { added: path, value, profile: store.profilePath };
|
|
69
|
+
}
|
package/dist/core/keywords.js
CHANGED
|
@@ -7,6 +7,8 @@ const LEXICON = ("python java javascript typescript go golang rust c++ c# .net k
|
|
|
7
7
|
"machine-learning deep-learning computer-vision mlops microservices serverless agile scrum jira figma excel power-bi tableau " +
|
|
8
8
|
"salesforce sap seo sem crm b2b saas etl api apis testing tdd unity unreal ios android security oauth devops sre observability " +
|
|
9
9
|
"prometheus grafana leadership mentoring stakeholder communication").split(/\s+/);
|
|
10
|
+
/** True for well-known technologies/skills (as opposed to frequent words picked up from the job text). */
|
|
11
|
+
export const isKnownSkill = (term) => LEXICON.includes(term);
|
|
10
12
|
const REQUIREMENT_RE = /\b(must|require|required|experience (with|in)|proficien|knowledge of|familiar|you have|you'll|degree|years)\b/i;
|
|
11
13
|
function countOccurrences(haystack, needle) {
|
|
12
14
|
return haystack.split(needle).length - 1;
|
package/dist/core/store.js
CHANGED
|
@@ -48,6 +48,10 @@ export class Store {
|
|
|
48
48
|
saveProfile(p) { writeJson(this.profilePath, Resume.parse(p)); }
|
|
49
49
|
loadReview() { return existsSync(this.reviewPath) ? readJson(this.reviewPath) : []; }
|
|
50
50
|
saveReview(items) { writeJson(this.reviewPath, items); }
|
|
51
|
+
/** Append-only log of facts the user confirmed in conversation (where each addition came from). */
|
|
52
|
+
get evidencePath() { return join(this.dir, "profile.evidence.json"); }
|
|
53
|
+
loadEvidence() { return existsSync(this.evidencePath) ? readJson(this.evidencePath) : []; }
|
|
54
|
+
addEvidence(e) { writeJson(this.evidencePath, [...this.loadEvidence(), e]); }
|
|
51
55
|
saveTailored(name, r) {
|
|
52
56
|
const p = join(this.dir, "tailored", `${slug(name)}.json`);
|
|
53
57
|
writeJson(p, Resume.parse(r));
|
package/dist/mcp/server.js
CHANGED
|
@@ -10,6 +10,7 @@ import { importProfile } from "../core/importer.js";
|
|
|
10
10
|
import { extractAll, joinDocs } from "../core/extract.js";
|
|
11
11
|
import { lint } from "../core/lint.js";
|
|
12
12
|
import { analyzeJob } from "../core/keywords.js";
|
|
13
|
+
import { addConfirmedFact, planGaps } from "../core/gaps.js";
|
|
13
14
|
import { verifyTailored } from "../core/verify.js";
|
|
14
15
|
import { renderMarkdown, renderPdf, TEMPLATES } from "../render/index.js";
|
|
15
16
|
const ROOT = join(dirname(fileURLToPath(import.meta.url)), "..", "..");
|
|
@@ -28,7 +29,7 @@ export async function startServer(dir) {
|
|
|
28
29
|
const server = new McpServer({ name: "cv-agent", version: VERSION }, {
|
|
29
30
|
instructions: "cv-agent stores the user's master CV profile and produces tailored CVs. Workflow: build the profile (read_cv_files if the " +
|
|
30
31
|
"user has an existing CV, otherwise get_context_prompt) -> " +
|
|
31
|
-
"import_profile -> review_cv -> analyze_job -> tailor_cv -> render_cv. Never invent experience, numbers, " +
|
|
32
|
+
"import_profile -> review_cv -> analyze_job (and plan_gap_interview for gaps) -> tailor_cv -> render_cv. Never invent experience, numbers, " +
|
|
32
33
|
"employers or skills; tailor_cv rejects them. If you already know the user well from this conversation or memory, " +
|
|
33
34
|
"you may draft the profile yourself following get_context_prompt, but confirm uncertain items with the user.",
|
|
34
35
|
});
|
|
@@ -85,9 +86,33 @@ export async function startServer(dir) {
|
|
|
85
86
|
}));
|
|
86
87
|
server.registerTool("analyze_job", {
|
|
87
88
|
title: "Analyze job description",
|
|
88
|
-
description: "Extract keywords and requirement lines from a job description and match them against the master profile. Returns a keyword match score, matched and missing terms. Missing terms are gaps, not things to add
|
|
89
|
+
description: "Extract keywords and requirement lines from a job description and match them against the master profile. Returns a keyword match score, matched and missing terms, and the tailoring guide to follow. Missing terms are gaps, not things to add: use plan_gap_interview to ask the user about them.",
|
|
89
90
|
inputSchema: { jobDescription: z.string() },
|
|
90
|
-
}, safe(({ jobDescription }) =>
|
|
91
|
+
}, safe(({ jobDescription }) => ({
|
|
92
|
+
...analyzeJob(jobDescription, store.loadProfile()),
|
|
93
|
+
tailoringGuide: readPrompt("tailoring-guide.md"),
|
|
94
|
+
})));
|
|
95
|
+
server.registerTool("plan_gap_interview", {
|
|
96
|
+
title: "Plan gap interview",
|
|
97
|
+
description: "For one or more job descriptions, find skills the jobs want that the master profile doesn't show, de-duplicated and " +
|
|
98
|
+
"ranked by how many applications each affects. Returns the gaps plus an interview guide: ask the user about each gap " +
|
|
99
|
+
"to surface real experience they forgot to list, then record only what they confirm with add_confirmed_fact.",
|
|
100
|
+
inputSchema: {
|
|
101
|
+
jobs: z.array(z.object({ name: z.string().describe('Short label, e.g. "Acme backend"'), description: z.string() })).min(1),
|
|
102
|
+
},
|
|
103
|
+
}, safe(({ jobs }) => ({ ...planGaps(jobs, store.loadProfile()), interviewGuide: readPrompt("gap-interview.md") })));
|
|
104
|
+
server.registerTool("add_confirmed_fact", {
|
|
105
|
+
title: "Add a user-confirmed fact",
|
|
106
|
+
description: "Add ONE fact to the master profile after the user explicitly confirmed it is accurate as written. target is a list " +
|
|
107
|
+
'inside an entry ("work[0].highlights", "skills[1].keywords", "education[0].courses") with a string value, or a ' +
|
|
108
|
+
'section ("projects", "work", "certificates", "volunteer", "skills") with one entry object. The user\'s confirmation ' +
|
|
109
|
+
"is logged with the fact. After this, tailor_cv accepts it.",
|
|
110
|
+
inputSchema: {
|
|
111
|
+
target: z.string(),
|
|
112
|
+
value: z.union([z.string(), z.record(z.string(), z.unknown())]),
|
|
113
|
+
userConfirmation: z.string().describe('The user\'s own words confirming it, e.g. "yes, that\'s accurate"'),
|
|
114
|
+
},
|
|
115
|
+
}, safe(({ target, value, userConfirmation }) => addConfirmedFact(store, target, value, userConfirmation)));
|
|
91
116
|
server.registerTool("tailor_cv", {
|
|
92
117
|
title: "Save tailored CV",
|
|
93
118
|
description: "Submit a tailored CV (full JSON Resume object) you derived from the master profile for one job. You may select, reorder and reword. " +
|
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.
|
|
4
|
+
"version": "0.4.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": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"dist",
|
|
12
12
|
"prompts",
|
|
13
13
|
"templates",
|
|
14
|
-
"
|
|
14
|
+
"skills",
|
|
15
15
|
"README.md",
|
|
16
16
|
"LICENSE"
|
|
17
17
|
],
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"test": "vitest run",
|
|
25
25
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
26
26
|
"prepublishOnly": "npm run build && npm test",
|
|
27
|
-
"version": "node scripts/sync-version.mjs && git add server.json",
|
|
27
|
+
"version": "node scripts/sync-version.mjs && git add server.json .claude-plugin/plugin.json .mcp.json",
|
|
28
28
|
"build:mcpb": "npm run build && node scripts/build-mcpb.mjs"
|
|
29
29
|
},
|
|
30
30
|
"repository": {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Gap interview (for the agent)
|
|
2
|
+
|
|
3
|
+
Goal: find real experience the user forgot to put on their CV, without putting words in their mouth.
|
|
4
|
+
Go through the gaps in the order given (highest leverage first). Ask **one question at a time** and stop when the user
|
|
5
|
+
wants to move on. Five or six gaps per session is plenty.
|
|
6
|
+
|
|
7
|
+
## For each gap
|
|
8
|
+
|
|
9
|
+
1. **Say why you're asking.** "3 of your target jobs ask for Kubernetes, and your profile doesn't mention it."
|
|
10
|
+
2. **Ask an open question.** "Have you worked with Kubernetes, or anything close to it, at work, in a side project,
|
|
11
|
+
a course or volunteering?" Don't hint at the answer you hope for.
|
|
12
|
+
3. **Follow the answer:**
|
|
13
|
+
- **Yes, at work:** what did you do with it, how big was it (users, data, team, money), what changed because of it,
|
|
14
|
+
and roughly when? Which role was this in?
|
|
15
|
+
- **Something related** (e.g. Docker Compose instead of Kubernetes, or a different cloud): what exactly? It may be
|
|
16
|
+
worth adding as itself, under its real name. Never relabel it as the requested skill.
|
|
17
|
+
- **Outside work** (projects, courses, certificates, volunteering): what did you build or finish, and is it public
|
|
18
|
+
(a link)? This becomes a project, certificate or volunteer entry, not a job bullet.
|
|
19
|
+
- **No:** accept it and move on. It's a real gap. At the end, mention honest options: leave it, mention you're
|
|
20
|
+
learning it in a cover letter, or lead with the closest real strength.
|
|
21
|
+
4. **Draft, then confirm.** Write the bullet or entry in plain words, using **only** what the user said. If they gave no
|
|
22
|
+
number, write no number. Don't upgrade verbs ("helped" stays "helped", not "led"). Read it back and ask: *"Is this
|
|
23
|
+
accurate as written?"*
|
|
24
|
+
5. **Only after an explicit yes**, call `add_confirmed_fact` with the user's confirmation quoted. If they correct it,
|
|
25
|
+
redraft and ask again.
|
|
26
|
+
|
|
27
|
+
## Never
|
|
28
|
+
|
|
29
|
+
- Suggest numbers, scale or outcomes ("was it about 30%?"). Ask "did you measure the result?" instead.
|
|
30
|
+
- Turn adjacent experience into the requested skill.
|
|
31
|
+
- Treat "I think so" or "maybe" as confirmation. Ask what they actually did.
|
|
32
|
+
- Add anything because the job needs it. The job decides what we *ask*, never what we *write*.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Tailoring guide (for the agent)
|
|
2
|
+
|
|
3
|
+
A tailored CV is the master profile, **selected, ordered and phrased for one job**. The facts never change.
|
|
4
|
+
`tailor_cv` rejects new numbers, technologies, employers, titles, dates and skills. These rules cover the judgement
|
|
5
|
+
the checker can't make.
|
|
6
|
+
|
|
7
|
+
## Allowed: same fact, better fit
|
|
8
|
+
|
|
9
|
+
- **Select:** keep the roles, projects and bullets that matter for this job. Drop the rest. One page for under
|
|
10
|
+
~5 years of experience.
|
|
11
|
+
- **Order:** most relevant bullet first within each role; relevant projects above irrelevant jobs if that helps.
|
|
12
|
+
- **Use the job's words for the same thing:** if the job says "event streaming" and the bullet says "Kafka pipeline",
|
|
13
|
+
"Kafka event-streaming pipeline" is fine. Only when it is genuinely the same thing.
|
|
14
|
+
- **Shift emphasis:** lead with the outcome the job cares about (reliability, cost, users, speed) when that outcome is
|
|
15
|
+
already in the bullet.
|
|
16
|
+
- **Adjust detail:** name the technologies for technical roles; for non-technical roles, keep the outcome and drop
|
|
17
|
+
the stack.
|
|
18
|
+
- **Headline and summary:** rewrite them for the role, built only from facts in the profile.
|
|
19
|
+
|
|
20
|
+
## Not allowed, even though some may pass the checker
|
|
21
|
+
|
|
22
|
+
- **Inflating scale or scope:** "3 stakeholders" → "3 organizational units"; "a team" → "the organization".
|
|
23
|
+
- **Upgrading your role:** helped → led, contributed → owned, supported → drove.
|
|
24
|
+
- **Relabelling adjacent experience** as the requested skill (Docker ≠ Kubernetes).
|
|
25
|
+
- **Implying a time span** you can't support ("years of experience with X").
|
|
26
|
+
- **Changing job titles**, even to "what it really was". Titles must match what you held. The summary can describe
|
|
27
|
+
the work instead.
|
|
28
|
+
|
|
29
|
+
When the job needs something the profile doesn't have, don't stretch. Run the gap interview (`plan_gap_interview`)
|
|
30
|
+
and add only what the user confirms.
|
|
@@ -27,12 +27,15 @@ these. When the master profile lacks something a job wants, **ask the user**. If
|
|
|
27
27
|
- Walk through every `needsConfirmation` item with the user. Then `update_profile` with `confirmedPaths`.
|
|
28
28
|
2. **Review.** Call `review_cv`. Report the deterministic issues briefly, then your own critique using the
|
|
29
29
|
returned rubric. Ask for missing numbers rather than guessing them.
|
|
30
|
-
3. **
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
- `
|
|
36
|
-
|
|
30
|
+
3. **Find the gaps** (one job or several the user is applying to): call `plan_gap_interview` with all of them.
|
|
31
|
+
Tell the user the match scores, then run the interview exactly as its `interviewGuide` says: highest-leverage gap
|
|
32
|
+
first, one question at a time, and no leading questions. Record only what the user confirms, with
|
|
33
|
+
`add_confirmed_fact`. Real gaps stay gaps.
|
|
34
|
+
4. **Tailor** for each job:
|
|
35
|
+
- `analyze_job` gives keywords, the match score and the `tailoringGuide`. Follow the guide: select, order and
|
|
36
|
+
rephrase the same facts; never inflate scope or upgrade the user's role.
|
|
37
|
+
- Build the tailored JSON Resume and submit it with `tailor_cv`. If it returns errors, fix them and resubmit.
|
|
38
|
+
Show any warnings to the user.
|
|
39
|
+
5. **Render.** Call `render_cv` and give the user the PDF path. Ask if they want US Letter instead of A4.
|
|
37
40
|
|
|
38
41
|
Keep the tailored CV to one page for under ~5 years of experience, two pages at most otherwise.
|