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
4 changes: 3 additions & 1 deletion CONTEXT.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ uses `j-user-` and a hash of its company and title.
_Avoid_: JD, position, opening

**Application**:
One Candidate × Job pair, from the first Evaluation until it is closed.
One Candidate × Job pair, from when the Job is picked up or first evaluated until
it is closed. It records its Role, Stage, a dated timeline, and a next step with
a due date while open.
_Avoid_: submission, match, pipeline item

**Stage**:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ A job search piles up more than anyone can keep straight: old resumes, notes, wo
- **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 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.
- **Application tracking** — Every candidate × job pair moves through stages (found → evaluated → preparing → applied → interview rounds → offer → closed), with a dated timeline, each interview round recorded separately, and a next step with a due date while it is open. It lists overdue follow-ups across all candidates, shows progress by candidate, role, job and company, and records how each closed application ended: hired, declined, rejected or withdrawn.
- **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.

## Install
Expand Down
2 changes: 1 addition & 1 deletion README.zh-TW.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
- **讀取職缺**:職缺可以用任何形式交給它:104、CakeResume、Yourator、企業官網或 LinkedIn 的列表或職缺網址、PDF 或 HTML 檔、截圖,或複製的文字,一個或一批都可以。它會先讀標題粗篩,再逐一讀取完整職缺內容並存成快照:必備條件、加分條件、工作內容、薪資與地點,條件會用和候選人事實相同的標籤分類。Yourator 和企業官網直接讀取,並遵守各網站的 robots.txt。104 和 CakeResume 會擋自動化請求,所以改由 skill 引導你:把搜尋結果捲到所有職缺都載入、複製整頁貼上,職缺頁則從你的瀏覽器讀取或用你複製的文字。LinkedIn 只讀你已登入瀏覽器中開啟的頁面或你貼上的文字。
- **職缺評估**:可針對一位候選人,或從整個資料庫找出角色符合職缺的候選人,並依符合的角色評估;沒有符合的角色時,改用候選人的全部事實評估,並提議從這個職缺建立新角色。每份評估依固定評分標準(技能重疊、職級、產業與領域、成就、薪資地點與工作模式)給出適合度分數,推薦原因會對應到具體的事實和職缺條件,列出缺口與風險及補強方式,並給出高/中/低的成功率等級與理由。不符合硬性條件(例如最低年資或指定學歷)時,等級降一級。同一角色下評估過的職缺若反覆出現同樣的條件,會提議加進該角色,經你同意才套用。
- **客製履歷**:每個評估過的投遞都產出中文與英文兩版,Markdown 與 PDF 格式。履歷從該職缺評估時所用角色的角色檔案出發,把最相關的事實放前面,只使用有出處的事實:每一行都註明出自哪些事實,數字必須和事實一致,候選人缺少的技能不會寫進去,公司、職稱和學校的英文名稱一律依照候選人的對照表。PDF 用 Chrome、Chromium 或 Edge 產生,文字可以正確複製,求職系統(ATS)也能正確讀取。
- **投遞進度追蹤**:每組「候選人 × 職缺」依階段推進(發現 → 已評估 → 準備中 → 已投遞 → 面試 → Offer → 結案),附下一步與期限。
- **投遞進度追蹤**:每組「候選人 × 職缺」依階段推進(發現 → 已評估 → 準備中 → 已投遞 → 面試 → Offer → 結案),保留有日期的歷程,每輪面試分開記錄,進行中的投遞都有下一步與期限。可以列出所有候選人逾期的待辦,依候選人、角色、職缺或公司查看進度,結案時記錄結果:錄取、婉拒、未錄取或撤回。
- **回饋與修正**:記錄來自 HR、面試官、候選人與獵頭的回饋、原因分類與具體修正方向。重複出現的問題會更新候選人的求職策略,同一家公司的回饋會累積成公司情報,實際結果用來校準評分。

## 安裝
Expand Down
61 changes: 50 additions & 11 deletions skills/headhunter/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,17 @@ 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 |
| `application new <id> <job> --next <step> --due <date> [--role <role>]` | Start an Application at found, before it is evaluated |
| `application move <id> <job> <stage> [--next <step> --due <date>] [--date <date>] [--round N] [--outcome <outcome>] [--note <text>]` | Move an Application to a later Stage and record the date |
| `application update <id> <job> [--next <step>] [--due <date>]` | Change an open Application's next step or due date |
| `application show <id> <job>` / `application list [<id>] [--role] [--job] [--company] [--stage] [--open]` | Show one Application with its timeline; list Applications |
| `application overdue` | List open Applications past their due date, across all Candidates |
| `application progress [--by candidate\|role\|job\|company]` | Count Applications per Stage, with overdue follow-ups and outcomes |
| `application sync` | Create `status.yml` for evaluated Applications that have none |
| `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 |
| `validate [<id>]` | Check `taxonomy.yml`, Candidate folders (with their Roles, Evaluations, resumes and Applications) 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 All @@ -77,7 +84,7 @@ Searches rebuild the Index first when any file changed. Run `validate` after edi
role.yml Role: title, level, industries, priority, state, requirements
profile.md Role profile: positioning, evidence, gaps
applications/<job-id>/
status.yml stage, timeline, next step, due date
status.yml Application: Role, Stage, next step, due date, dated timeline
evaluation.md Evaluation: Role, fit score, reasons, gaps and risks, Success rating
feedback.md feedback log and fixes
resume.zh.md resume.zh.pdf Tailored resume in Chinese: Markdown citing Facts, and its PDF
Expand Down Expand Up @@ -272,6 +279,24 @@ The script writes the name, location and contact from `profile.yml`, company, ti

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.

**status.yml**: one Application, written by the script.

```yaml
job: j-yourator-39119
role: senior-backend-engineer # the Role it is under; null when no Role fits
stage: interview # found | evaluated | preparing | applied | interview | offer | closed
round: 2 # only at interview
next_step: Prepare the system design round # every open Application
due: 2026-11-20
timeline: # one entry per Stage change, oldest first
- {stage: evaluated, date: 2026-11-08}
- {stage: applied, date: 2026-11-10, note: Applied on Yourator}
- {stage: interview, round: 1, date: 2026-11-12}
- {stage: interview, round: 2, date: 2026-11-18}
```

A closed Application has `outcome` (hired, declined, rejected or withdrawn) on the Application and its last timeline entry, and no `next_step` or `due`. `role` matches the Application's Evaluation.

## Workflows

### Sort what the user gives
Expand Down Expand Up @@ -355,7 +380,7 @@ Each Evaluation compares one Job snapshot with one Candidate under the Role that
2. **Choose the Role** that fits the Job by its title, level and requirements, not by Tag counts alone. When no Role fits, evaluate against all of the Candidate's Facts and leave `role` out. When the Role's profile is stale, offer to rebuild it first.
3. **Match**: `evaluation match <job> <id>` lists the Facts that share a Tag with each requirement, the Job's and the Candidate's salary, location and work mode, and the achievement targets. Start from the Role profile's evidence, judge each requirement against the posting's wording, and look for other Facts that support it.
4. **Hard requirements**: mark only must-haves the posting states as required: a degree, minimum years, a certificate or a language. For `years`, cite the experience Facts that count toward it. Use `met: false` only when Facts show the requirement is not met. Every other requirement counts toward skill overlap.
5. **Save**: pipe the Evaluation to `evaluation save <id> <job>`. When Facts change, evaluate again with `--replace`.
5. **Save**: pipe the Evaluation to `evaluation save <id> <job>`. It starts the Application at evaluated, or moves it there from found, with the next step "Decide whether to apply" due in seven days; change it with `application update` when the user gives a better one. When Facts change, evaluate again with `--replace`; this keeps the Application's Stage and updates its Role.
6. **Report** the Success rating with its reasons, the gaps with how to close them, and the risks. Ask the questions the gaps need and save the answers as in Follow-up questions.
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.
Expand All @@ -364,20 +389,40 @@ Each Evaluation compares one Job snapshot with one Candidate under the Role that

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.
1. **Check**: when the user decides to apply, move the Application to preparing (see Track Applications). It 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.

### Track Applications

An Application is one Candidate × Job pair. When you start working with the user, run `application overdue` and raise what is late.

| Stage | Meaning | How it gets there |
|---|---|---|
| found | Picked up from a Listing, not evaluated | `application new` |
| evaluated | Evaluation written | `evaluation save` |
| preparing | Decided to apply; preparing the resume and materials | `application move` |
| applied | Application sent | `application move` |
| interview | Each round recorded separately | `application move`; the next round each time, or `--round` |
| offer | Offer received | `application move` |
| closed | Hired, declined, rejected or withdrawn | `application move` with `--outcome` |

- Stages only move forward and may skip ahead, for a Job the user already applied to. A closed Application does not move.
- Each move records its date: today, or `--date` for something that already happened, never in the future or before the last move. Add a short `--note` when it helps.
- Every move to an open Stage takes the next step and its due date from the user, or a date you propose and they accept. When a step is done without a Stage change, use `application update`.
- `application overdue` lists every open Application whose due date has passed, across all Candidates. `application progress --by candidate`, `role`, `job` or `company` counts them per Stage; Roles are counted per Candidate, and companies by the name in the Job snapshot.
- When `validate` reports an evaluated Application with no `status.yml`, run `application sync`; it starts each one at evaluated, on the date of its 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.
- `search candidates` also takes `--role` (an active Role whose title, in either language, or folder name contains the text), `--requirement-tag` and `--no-must-gaps` (the Role's profile is built and no must-have is `missing` or `to-confirm`). Together they apply to the same Role: "Candidates targeting data engineer with no must-have gaps" is `search candidates --role "data engineer" --no-must-gaps`.
- `search facts` with `--candidate`, `--tag`, `--kind`, `--evidence`, `--origin`, `--state`, `--since <year>` and `--text`.
- For a one-sentence request, turn it into these filters. For example, "Candidates with Python and finance background and 5+ years of experience" is `search candidates --tag python --industry finance --min-years 5`.
- For anything the filters cannot express, use `query` on the Index tables: `candidates`, `sources`, `facts`, `fact_tags`, `fact_sources`, `tags`, `tag_terms`, `questions`, `roles`, `role_requirements`, `role_requirement_tags`, `role_evidence`, `role_gaps`, `evaluations`, `evaluation_gaps`, and the view `candidate_tags` (Tags on active, sourced Facts).
- For anything the filters cannot express, use `query` on the Index tables: `candidates`, `sources`, `facts`, `fact_tags`, `fact_sources`, `tags`, `tag_terms`, `questions`, `roles`, `role_requirements`, `role_requirement_tags`, `role_evidence`, `role_gaps`, `evaluations`, `evaluation_gaps`, `applications`, `application_timeline`, and the view `candidate_tags` (Tags on active, sourced Facts).

### Read Jobs

Expand Down Expand Up @@ -420,9 +465,3 @@ The script names itself in its User-Agent and follows robots.txt. When a site re
9. **LinkedIn by hand only.** Read LinkedIn only from pages the user has open in their signed-in browser or text they paste. Never scrape it in bulk. If any site shows a CAPTCHA or sign-in wall, ask the user to handle it or paste the content.
10. **Read job sites politely.** Follow robots.txt, identify the script honestly, and never work around a refusal or bot check.
11. **Two resumes per job.** Write a Chinese and an English version; use `glossary.yml` so names are translated the same way every time.

## Application stages

found → evaluated → preparing → applied → interview (round N) → offer → closed (hired / declined / rejected / withdrawn)

Record the date of every stage change, and keep a next step with a due date on every open application.
Loading
Loading