Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CONTEXT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions README.zh-TW.md
Original file line number Diff line number Diff line change
Expand Up @@ -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、面試官、候選人與獵頭的回饋、原因分類與具體修正方向。重複出現的問題會更新候選人的求職策略,同一家公司的回饋會累積成公司情報,實際結果用來校準評分。

Expand All @@ -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 資料夾即可。

Expand Down
55 changes: 50 additions & 5 deletions skills/headhunter/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <skill folder>/scripts/hh.py <command>
Expand Down Expand Up @@ -49,7 +49,10 @@ python3 <skill folder>/scripts/hh.py <command>
| `evaluation match <job> [<id>] [--all]` | List the Candidates and Roles that share Tags with a Job; with a Candidate, list their Facts per Job requirement |
| `evaluation save <id> <job> [--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 [<id>] [--job <job>] [--rating <rating>]` | List Evaluations with their Success ratings |
| `validate [<id>]` | Check `taxonomy.yml`, Candidate folders (with their Roles and Evaluations) and Job snapshots |
| `resume plan <id> <job>` | 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 <id> <job> [--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 <id> <job>` | Check both resumes and print them to PDF again, after editing them by hand |
| `validate [<id>]` | 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 "<SELECT ...>"` | Run a read-only SQL query on the Index |
Expand Down Expand Up @@ -77,8 +80,8 @@ Searches rebuild the Index first when any file changed. Run `validate` after edi
status.yml stage, timeline, next step, due date
evaluation.md Evaluation: Role, fit score, reasons, gaps and risks, Success rating
feedback.md feedback log and fixes
resume.zh.md resume.zh.pdf
resume.en.md resume.en.pdf
resume.zh.md resume.zh.pdf Tailored resume in Chinese: Markdown citing Facts, and its PDF
resume.en.md resume.en.pdf the same in English
jobs/<job-id>.md Job snapshot: requirements with Tags, duties, salary, location, posting text
companies/<company-slug>.md company notes built from feedback
archive/ archived candidates
Expand All @@ -94,7 +97,7 @@ A Job id comes from its URL: `j-104-<job code>`, `j-cakeresume-<company>-<job sl

YAML files use a plain subset: block mappings and lists, one-line `[...]` and `{...}`, quoted or plain values, `|` and `>` blocks, and comments. Quote any value that contains `: ` or starts with a symbol. Anchors, tags and plain values spread over several lines are rejected.

**profile.yml**: `id`, `name`, `name_en`, `status` (active, paused, closed), `seniority` (intern, junior, mid, senior, lead, manager, director, executive), `location`, `work_mode`, `salary` (`current`, `expected`), `created`. Other basics may be added.
**profile.yml**: `id`, `name`, `name_en`, `status` (active, paused, closed), `seniority` (intern, junior, mid, senior, lead, manager, director, executive), `location`, `work_mode`, `salary` (`current`, `expected`), `created`, and optionally `contact` (`email`, `phone`, `links`) for resume headers. Other basics may be added.

**sources.yml**: one entry per Source.

Expand Down Expand Up @@ -238,6 +241,37 @@ The script adds `candidate`, `job`, `evaluated`, `candidate_level` (from `profil

The fit score is the weighted sum, rounded. It maps to a Success rating: 75 and above high, 55 to 74 medium, below 55 low. Failing any hard requirement lowers the rating by one level; low stays low. The reasons name the band, each failed or unconfirmed hard requirement, the must-haves missing or unconfirmed, and the strongest and weakest dimensions.

**resume.zh.md / resume.en.md**: a YAML block between `---` lines (`candidate`, `job`, `role`, `lang`, `written`, and `role_profile`, the build date of the Role profile it started from), then the resume, written by `resume save` from what you give it:

```yaml
headline: {zh: Python 後端工程師, en: Python backend engineer, facts: [f-001, f-006]}
summary: {zh: ..., en: ..., facts: [f-002, f-003]} # cites at least one Fact of the Role profile's positioning
experience:
- org: 範例科技 # a company in glossary.yml, in either language
title: 資深後端工程師 # optional: a title in glossary.yml that its Facts state
period: 2021-04..present # optional: the period of one of its Facts
facts: [f-001] # including the experience Fact at that company
bullets:
- {zh: ..., en: ..., facts: [f-003]}
projects: [{zh: ..., en: ..., facts: [f-010]}]
education: [{school: 樣本大學, zh: 資訊科學學士, en: B.S. in Computer Science, period: 2018, facts: [f-014]}]
certificates: [{zh: ..., en: ..., facts: [f-009]}]
skills: [python, docker] # Tags, each on an active, sourced Fact
```

The script writes the name, location and contact from `profile.yml`, company, title, school and location names from `glossary.yml`, section headings in each language, and skills as Tag labels. Every line other than headings ends with the Facts it comes from, such as `<!-- f-003 -->`, or `<!-- profile -->` for the header. `resume save` refuses a resume when:

- a Fact is inferred, superseded or in conflict, or an item cites none
- a number in a line is not in the statements or periods of the Facts it cites
- a title or school is not in its Facts, a company, title, school or location is not in `glossary.yml`, or a period is not one of its Facts'
- the Chinese and English lines name a Glossary entry differently, or the English has Chinese in it
- it uses a word of a requirement the Candidate lacks: a `missing` or `to-confirm` gap or a failed hard requirement in the Evaluation, by its Tags' labels and aliases and its proposed terms, unless a sourced Fact says it
- the summary cites none of the Role profile's positioning Facts

`validate` and `resume pdf` check the Markdown again after hand edits: every line cites known Facts, its numbers are in them, and the English has no Chinese; `resume pdf` also refuses words of lacking requirements.

The PDFs are A4 and printed by a headless Chrome, Chromium or Edge with a throwaway profile, from local files only. The Chinese PDF uses the first installed of Noto Sans TC, Noto Sans CJK TC, PingFang TC, Microsoft JhengHei and Heiti TC. Ligatures are turned off, and characters that the PDF's text layer records as Kangxi radicals (⼩ for 小) are mapped back to the ideographs, so copied text and applicant tracking systems read the same words; any left are reported.

## Workflows

### Sort what the user gives
Expand Down Expand Up @@ -326,6 +360,17 @@ Each Evaluation compares one Job snapshot with one Candidate under the Role that
7. **No fitting Role**: offer to create a Role from the Job: its title (add it to `glossary.yml`), requirements from its must-haves and nice-to-haves with their Tags, `origin: job` and the Job id. Run `role new` only when the user agrees.
8. **Refine Roles**: when `evaluation save` reports proposed changes, run `role refine <id> <role>`. It proposes Tags that two or more Jobs evaluated under the Role require and no requirement has (a must-have when at least half of those Jobs list it as one), and assumed or Job requirements those Jobs also ask for. Show them to the user, apply the accepted ones with `--accept`, then rebuild the Role profile.

### Write resumes

Write a Chinese and an English resume for an Application worth pursuing, after its Evaluation.

1. **Check**: the Application needs an Evaluation made under a Role, and that Role's profile must be current; `resume plan` says which is missing. An Evaluation without a Role needs a Role created from the Job first (Evaluate Jobs, step 7). Add any company, title, school or location still missing from `glossary.yml`, and `contact` and `name_en` to `profile.yml` if the user gives them.
2. **Plan**: `resume plan <id> <job>` shows the Role profile's positioning and the order of its evidence, the Facts the Evaluation cites for each Job requirement, what to leave out, every usable Fact by kind, and the Glossary.
3. **Write**: start from the positioning and the evidence order, then reorder and rewrite the Facts for this Job: the most relevant first, the Job's wording where the Facts support it. Write each line in both languages, one claim per line, with the Facts it comes from. Use only what the cited Facts say: no new numbers, titles, dates or skills. Requirements the Candidate lacks stay in the Evaluation as gaps.
4. **Save**: pipe the resume to `resume save <id> <job>`; it writes both Markdown files and PDFs. Use `--replace` to write them again.
5. **Hand edits**: after the user edits a Markdown file, run `resume pdf <id> <job>`.
6. **Report** the four files, and remind the user that the resumes leave out the gaps listed in the Evaluation.

### Search

- `search candidates` with `--tag` (Tag id, label or alias; repeat for AND), `--industry`, `--seniority`, `--status`, `--min-years` and `--text`. It counts only active, sourced Facts and shows which Facts matched each Tag.
Expand Down
Loading
Loading