From 666818585c154e536677d521d07d090f25db4d74 Mon Sep 17 00:00:00 2001 From: ender Date: Sun, 8 Nov 2026 14:58:10 +0800 Subject: [PATCH] feat(resume): write Chinese and English resumes that cite Facts Add tailored resumes for evaluated Applications. The agent writes each line in both languages with the Facts it comes from; the script checks it, writes resume.zh.md and resume.en.md, and prints both to PDF with a headless Chrome, Chromium or Edge. - hh.py: resume plan/save/pdf; resumes start from a current Role profile; refuses inferred or inactive Facts, numbers not in the cited Facts, titles and schools not in them, names missing from or inconsistent with glossary.yml, Chinese in the English resume, and words of requirements the Candidate lacks; validate checks resumes; candidate show lists them; the PDF text layer maps Kangxi radicals back to ideographs and ligatures are off - SKILL.md: resume format and checks, PDF tool and fonts, optional contact in profile.yml, the Write resumes workflow - CONTEXT.md: Tailored resume starts from the Role profile - README.md / README.zh-TW.md: the resume feature and the browser it needs Closes #5 Co-Authored-By: Claude Opus 5.5 --- CONTEXT.md | 3 +- README.md | 4 +- README.zh-TW.md | 4 +- skills/headhunter/SKILL.md | 55 ++- skills/headhunter/scripts/hh.py | 620 +++++++++++++++++++++++++++++++- 5 files changed, 674 insertions(+), 12 deletions(-) diff --git a/CONTEXT.md b/CONTEXT.md index 37d171e..290e8bc 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -120,7 +120,8 @@ _Avoid_: success probability, chance, odds **Tailored resume**: The pair of resumes written for one Application, one in Chinese and one in -English, using only Facts. +English, starting from the Role profile of the Application's Role and using only +sourced Facts, each line citing the Facts it comes from. _Avoid_: CV variant, generated resume **Feedback**: diff --git a/README.md b/README.md index c7b9cf9..13f225c 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ A job search piles up more than anyone can keep straight: old resumes, notes, wo - **Role profiles** — One candidate can pursue several roles at once, such as backend engineer and tech lead. For each role it lists the requirements, links the facts that support each one with a reason, and names the gaps: no evidence, only unconfirmed inferences, or only self-reported evidence, each with a way to close it. When facts change, it tells you which profiles are out of date. Search candidates by role, by required skill, or by roles with no must-have gaps. - **Job reading** — Give it jobs in any form: a listing or job link from 104, CakeResume, Yourator, a company careers page or LinkedIn, a PDF or HTML file, a screenshot, or copied text, one job or many. It reads the listing, screens the titles, then reads each job in full and saves a snapshot: must-haves, nice-to-haves, duties, salary and location, with requirements tagged from the same taxonomy as candidate facts. Yourator and careers pages are read directly, following each site's robots.txt. 104 and CakeResume block automated requests, so the skill guides you instead: scroll the search results until every job has loaded, copy the page and paste it, and job pages are read in your browser or from text you copy. LinkedIn is read only from your signed-in browser or pasted text. - **Job evaluation** — For one candidate, or across your whole database: it finds the candidates whose roles fit a job and evaluates each against the role that fits, or against all of the candidate's facts when none does, then offers to create a role from the job. Each evaluation gives a fit score from a fixed rubric (skill overlap, seniority, industry and domain, achievements, salary, location and work mode), reasons tied to specific facts and job requirements, gaps and risks with how to close them, and a high / medium / low success rating with its reasons. Failing a hard requirement, such as minimum years or a required degree, lowers the rating by one level. Requirements that keep appearing in the jobs evaluated under a role are proposed as changes to that role, applied only when you accept them. -- **Tailored resumes** — A Chinese and an English resume for each job, in Markdown and PDF, built only from facts with a source. +- **Tailored resumes** — A Chinese and an English resume for each evaluated application, in Markdown and PDF. Each starts from the profile of the role the job was evaluated under, puts the most relevant facts first, and uses only facts with a source: every line names the facts it comes from, numbers must match them, skills the candidate lacks stay out, and companies, titles and schools always get the same English names from the candidate's glossary. The PDFs are printed with Chrome, Chromium or Edge, and their text copies cleanly into applicant tracking systems. - **Application tracking** — Every candidate × job pair moves through stages (found → evaluated → preparing → applied → interview rounds → offer → closed), with a next step and a due date. - **Feedback loop** — Log feedback from HR, interviewers, the candidate and yourself, with a cause and a concrete fix. Recurring problems update the candidate's strategy; feedback about the same company builds up into company notes; results calibrate the scoring. @@ -29,7 +29,7 @@ A job search piles up more than anyone can keep straight: old resumes, notes, wo Then run `/headhunter` in Claude Code. -The skill's helper script needs Python 3.9 or later, with no extra packages. Importing a GitHub repository or profile uses the [GitHub CLI](https://cli.github.com) (`gh`). +The skill's helper script needs Python 3.9 or later, with no extra packages. Importing a GitHub repository or profile uses the [GitHub CLI](https://cli.github.com) (`gh`). Printing resumes to PDF uses Google Chrome, Chromium or Microsoft Edge. Other AI agents that support the Agent Skills format can use the skill too: copy `skills/headhunter/` into that agent's skills folder. diff --git a/README.zh-TW.md b/README.zh-TW.md index ae815a2..56e4704 100644 --- a/README.zh-TW.md +++ b/README.zh-TW.md @@ -16,7 +16,7 @@ - **角色檔案**:一位候選人可以同時鎖定好幾個角色,例如後端工程師和技術主管。每個角色會列出條件,把支持每條條件的事實連結起來並說明理由,同時指出缺口:沒有證據、只有未確認的推論,或只有自述的證據,每個缺口都附上補強方式。事實有變動時,會告訴你哪些角色檔案需要更新。可以依角色、要求的技能,或必備條件沒有缺口的角色來查詢候選人。 - **讀取職缺**:職缺可以用任何形式交給它:104、CakeResume、Yourator、企業官網或 LinkedIn 的列表或職缺網址、PDF 或 HTML 檔、截圖,或複製的文字,一個或一批都可以。它會先讀標題粗篩,再逐一讀取完整職缺內容並存成快照:必備條件、加分條件、工作內容、薪資與地點,條件會用和候選人事實相同的標籤分類。Yourator 和企業官網直接讀取,並遵守各網站的 robots.txt。104 和 CakeResume 會擋自動化請求,所以改由 skill 引導你:把搜尋結果捲到所有職缺都載入、複製整頁貼上,職缺頁則從你的瀏覽器讀取或用你複製的文字。LinkedIn 只讀你已登入瀏覽器中開啟的頁面或你貼上的文字。 - **職缺評估**:可針對一位候選人,或從整個資料庫找出角色符合職缺的候選人,並依符合的角色評估;沒有符合的角色時,改用候選人的全部事實評估,並提議從這個職缺建立新角色。每份評估依固定評分標準(技能重疊、職級、產業與領域、成就、薪資地點與工作模式)給出適合度分數,推薦原因會對應到具體的事實和職缺條件,列出缺口與風險及補強方式,並給出高/中/低的成功率等級與理由。不符合硬性條件(例如最低年資或指定學歷)時,等級降一級。同一角色下評估過的職缺若反覆出現同樣的條件,會提議加進該角色,經你同意才套用。 -- **客製履歷**:每個職缺產出中文與英文兩版,Markdown 與 PDF 格式,只使用有出處的事實。 +- **客製履歷**:每個評估過的投遞都產出中文與英文兩版,Markdown 與 PDF 格式。履歷從該職缺評估時所用角色的角色檔案出發,把最相關的事實放前面,只使用有出處的事實:每一行都註明出自哪些事實,數字必須和事實一致,候選人缺少的技能不會寫進去,公司、職稱和學校的英文名稱一律依照候選人的對照表。PDF 用 Chrome、Chromium 或 Edge 產生,文字可以正確複製,求職系統(ATS)也能正確讀取。 - **投遞進度追蹤**:每組「候選人 × 職缺」依階段推進(發現 → 已評估 → 準備中 → 已投遞 → 面試 → Offer → 結案),附下一步與期限。 - **回饋與修正**:記錄來自 HR、面試官、候選人與獵頭的回饋、原因分類與具體修正方向。重複出現的問題會更新候選人的求職策略,同一家公司的回饋會累積成公司情報,實際結果用來校準評分。 @@ -29,7 +29,7 @@ 安裝後在 Claude Code 輸入 `/headhunter`。 -skill 的輔助腳本需要 Python 3.9 以上,不需安裝其他套件。匯入 GitHub repo 或個人頁面時會用到 [GitHub CLI](https://cli.github.com)(`gh`)。 +skill 的輔助腳本需要 Python 3.9 以上,不需安裝其他套件。匯入 GitHub repo 或個人頁面時會用到 [GitHub CLI](https://cli.github.com)(`gh`)。履歷轉成 PDF 時會用到 Google Chrome、Chromium 或 Microsoft Edge。 其他支援 Agent Skills 格式的 AI agent 也能使用:把 `skills/headhunter/` 複製到該 agent 的 skills 資料夾即可。 diff --git a/skills/headhunter/SKILL.md b/skills/headhunter/SKILL.md index 66a93cd..665dbba 100644 --- a/skills/headhunter/SKILL.md +++ b/skills/headhunter/SKILL.md @@ -15,7 +15,7 @@ You act as the user's headhunter assistant. A candidate may be the user themself ## Helper script -Fixed, repeatable operations run through `scripts/hh.py` in this skill's folder. It needs Python 3.9 or later and no extra packages: +Fixed, repeatable operations run through `scripts/hh.py` in this skill's folder. It needs Python 3.9 or later and no extra packages. Printing resumes to PDF uses Chrome, Chromium or Microsoft Edge, run headless; set `HEADHUNTER_BROWSER` to the browser's path when it is installed somewhere else: ``` python3 /scripts/hh.py @@ -49,7 +49,10 @@ python3 /scripts/hh.py | `evaluation match [] [--all]` | List the Candidates and Roles that share Tags with a Job; with a Candidate, list their Facts per Job requirement | | `evaluation save [--replace]` | Write an Evaluation from JSON or YAML on stdin; the fit score, gap kinds and Success rating are worked out, and nothing is written if any check fails | | `evaluation list [] [--job ] [--rating ]` | List Evaluations with their Success ratings | -| `validate []` | Check `taxonomy.yml`, Candidate folders (with their Roles and Evaluations) and Job snapshots | +| `resume plan ` | Show what an Application's resumes start from: the Role profile, the Evaluation's evidence, what to leave out, the usable Facts and the Glossary | +| `resume save [--replace]` | Write `resume.zh.md` and `resume.en.md` from JSON or YAML on stdin and print both to PDF; nothing is written if any check fails | +| `resume pdf ` | Check both resumes and print them to PDF again, after editing them by hand | +| `validate []` | Check `taxonomy.yml`, Candidate folders (with their Roles, Evaluations and resumes) and Job snapshots | | `index` | Delete and rebuild `index.sqlite` | | `search candidates` / `search facts` | Filter the Index (see Search) | | `query "