diff --git a/.gitignore b/.gitignore index bea1ab4..fbef9bf 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,6 @@ Thumbs.db .idea/ .vscode/ + +# Python bytecode +__pycache__/ diff --git a/CONTEXT.md b/CONTEXT.md index 2add6e2..845adad 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -23,15 +23,34 @@ rebuilt at any time. _Avoid_: database of record **Source**: -One raw input about a Candidate: a note, work log, photo, existing resume, or -GitHub repository, kept under `sources/`. +One raw input about a Candidate, such as a note, work log, photo, existing +resume, GitHub repository, or the user's answers to follow-up questions, kept +under `sources/` with an evidence level: documented, third-party, or +self-reported. Identified by `s-`. _Avoid_: attachment, upload **Fact**: One statement about a Candidate's experience, skill, or achievement that cites -the Source it came from. +the Source it came from. An inferred Fact is drawn from other Facts instead, +and is usable in resumes only after the user confirms it. Identified by +`f-`. _Avoid_: claim, info, data point +**Import report**: +The result of importing one Source: Facts extracted, missing fields, +conflicts, rejected content, proposed Tags, and follow-up questions. +_Avoid_: import log, quality report + +**Tag**: +A classification label on a Fact, taken from the Taxonomy, such as +`skill/python` or `industry/finance`. +_Avoid_: label, keyword, category + +**Taxonomy**: +The shared list of Tags in `taxonomy.yml`, each with a fixed id, Chinese and +English labels, and aliases. +_Avoid_: tag list, vocabulary + **Glossary**: The Candidate's fixed Chinese ↔ English names for companies, titles, and terms, used so every English resume translates them the same way. diff --git a/README.md b/README.md index 7945126..3616d1a 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ A job search piles up more than anyone can keep straight: old resumes, notes, wo ## Features -- **Candidate database** — Import notes, work logs, photos, existing resumes and GitHub repos. Every fact keeps a link to its source. Create, read, update and archive candidates; search them by role, industry, seniority, skills or status. +- **Candidate database** — Hand it anything about a candidate: notes, work logs, photos, existing resumes, GitHub repos. It checks each piece for missing details, vague claims and contradictions, asks follow-up questions, and tags every fact from a shared bilingual taxonomy. Every fact keeps a link to its source, and nothing is filled in without your confirmation. Create, read, update and archive candidates; search candidates and facts by skill, industry, seniority, years of experience, evidence or status. - **Job board reading** — Paste a listing URL from 104, CakeResume, Yourator, a company careers page or LinkedIn. It reads the listing, screens the titles, then reads each job in full. - **Fit and success scoring** — For one candidate, or across your whole database: a fit score, the reasons for the recommendation, gaps and risks, and a high / medium / low success rating with its reasoning. - **Tailored resumes** — A Chinese and an English resume for each job, in Markdown and PDF, built only from facts with a source. @@ -28,6 +28,8 @@ 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`). + Other AI agents that support the Agent Skills format can use the skill too: copy `skills/headhunter/` into that agent's skills folder. ## Your data stays local diff --git a/README.zh-TW.md b/README.zh-TW.md index e7ef90e..a65e351 100644 --- a/README.zh-TW.md +++ b/README.zh-TW.md @@ -12,7 +12,7 @@ ## 功能 -- **候選人資料庫**:匯入筆記、工作紀錄、照片、舊履歷和 GitHub repo,每一條事實都保留出處。支援新增、查看、更新、封存,可依職能、產業、年資、技能、狀態查詢。 +- **候選人資料庫**:關於候選人的任何資料都能交給它:筆記、工作紀錄、照片、舊履歷、GitHub repo。它會檢查每份資料缺了哪些細節、哪些描述太模糊、和既有資料有沒有矛盾,提出追問,並用共用的中英標籤分類每一條事實。每一條事實都保留出處,沒有你確認不會自行補上內容。支援新增、查看、更新、封存,可依技能、產業、職級、工作年資、證據強度或狀態查詢候選人和事實。 - **讀取職缺網站**:貼上 104、CakeResume、Yourator、企業官網或 LinkedIn 的職缺列表網址,先讀標題粗篩,再逐一讀取完整職缺內容。 - **適合度與成功率評估**:可針對一位候選人,或從整個資料庫找出適合的人。產出適合度分數、推薦原因、缺口與風險,以及高/中/低的成功率等級與理由。 - **客製履歷**:每個職缺產出中文與英文兩版,Markdown 與 PDF 格式,只使用有出處的事實。 @@ -28,6 +28,8 @@ 安裝後在 Claude Code 輸入 `/headhunter`。 +skill 的輔助腳本需要 Python 3.9 以上,不需安裝其他套件。匯入 GitHub repo 或個人頁面時會用到 [GitHub CLI](https://cli.github.com)(`gh`)。 + 其他支援 Agent Skills 格式的 AI agent 也能使用:把 `skills/headhunter/` 複製到該 agent 的 skills 資料夾即可。 ## 資料只存在本機 diff --git a/skills/headhunter/SKILL.md b/skills/headhunter/SKILL.md index 39414dd..0ec21ae 100644 --- a/skills/headhunter/SKILL.md +++ b/skills/headhunter/SKILL.md @@ -1,6 +1,6 @@ --- name: headhunter -description: AI headhunter for the user's own job search or for many candidates at once. Use when the user wants to add, update, search or archive candidates in their candidate database; import a candidate's notes, work logs, photos, resumes or GitHub repos; read a job listing URL (104, CakeResume, Yourator, LinkedIn, company careers pages) and evaluate jobs against candidates; estimate fit and success odds; write a tailored Chinese and English resume for a job; or track application progress, interview feedback and what to fix next. +description: AI headhunter for the user's own job search or for many candidates at once. Use when the user wants to add, update, search or archive candidates in their candidate database; import any material about a candidate (notes, work logs, photos, resumes, GitHub repos) and have it checked, tagged and followed up with questions; read a job listing URL (104, CakeResume, Yourator, LinkedIn, company careers pages) and evaluate jobs against candidates; estimate fit and success odds; write a tailored Chinese and English resume for a job; or track application progress, interview feedback and what to fix next. --- # headhunter @@ -9,21 +9,54 @@ You act as the user's headhunter assistant. A candidate may be the user themself ## Data location -- Data lives in `$HEADHUNTER_DATA_DIR`, or `~/headhunter-data/` when it is not set. Create it on first use. -- Never write candidate data inside this plugin's folder or any git repository. +- Data lives in `$HEADHUNTER_DATA_DIR`, or `~/headhunter-data/` when it is not set. The helper script creates it on first use and never overwrites existing files. +- Never write candidate data inside this plugin's folder or any git repository. The script refuses to run when the Data folder is inside either. - Never send candidate data to a third-party service. +## 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: + +``` +python3 /scripts/hh.py +``` + +| Command | Does | +|---|---| +| `init` | Create the Data folder and the starter `taxonomy.yml` if missing | +| `candidate new --name [--name-en ]` | Assign the next `c-` and create the Candidate folder | +| `candidate list [--archived]` / `candidate show ` | List Candidates; show one Candidate's summary | +| `candidate archive ` / `candidate restore ` | Move a Candidate to `archive/` and back | +| `source add --type [--origin] [--evidence] [--state]` | Copy a file, or stdin with `-`, into `sources/` and register it | +| `source github [--author ]` | Save a README, language and commit snapshot of a repository or profile with `gh` | +| `source state ` | Record how readable a Source was | +| `extract-text ` | Print the text of a Word, text or PDF file | +| `import-report ` | Create the Import report for a Source | +| `next-id fact\|question [--count N]` | Print the next free Fact or follow-up question ids | +| `fact add ` / `fact update ` | Add Facts, or merge fields into one, from JSON or YAML on stdin; ids and evidence levels are filled in, and nothing is written if any check fails | +| `questions []` | List open follow-up questions | +| `taxonomy find ` | Find Tags by id, label or alias | +| `validate []` | Check `taxonomy.yml` and Candidate folders | +| `index` | Delete and rebuild `index.sqlite` | +| `search candidates` / `search facts` | Filter the Index (see Search) | +| `query "