From ce191198efc3ac486d74f08f728eb1a70cc66211 Mon Sep 17 00:00:00 2001 From: ender Date: Tue, 10 Nov 2026 18:27:35 +0800 Subject: [PATCH] feat(resume): show the Candidate's Strategy in resume plan resume plan prints strategy.md without its title, starting description and the Roles section the script keeps, so resume decisions and viewpoints recorded there reach every session that writes a resume. A Strategy with nothing beyond those parts gets a one-line note instead. SKILL.md lists the Strategy in the resume plan command and Write resumes step 2; step 3 says to follow its resume guidance and that viewpoints never replace sourced Facts. Both READMEs say resumes follow the Strategy. No data layout change: strategy.md stays free-form Markdown. Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- README.zh-TW.md | 2 +- skills/headhunter/SKILL.md | 6 +++--- skills/headhunter/scripts/hh.py | 22 ++++++++++++++++++++-- 4 files changed, 25 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8492abe..8dc00ac 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 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. +- **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, follows the resume decisions recorded in the candidate's strategy, such as which title to use or which experience to leave out, 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 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, and track each fix until it is done; a fix that produces new material, such as a portfolio piece, ends with importing it as a source. Causes that recur across a candidate's applications or under one role turn into proposed changes to the strategy, role profiles and resumes, applied only when you agree. What feedback says about a company builds up into company notes across candidates. Closed applications are compared with their success ratings to show where the scoring over- or under-estimates, and any rubric change stays your decision. diff --git a/README.zh-TW.md b/README.zh-TW.md index 7ac741e..2f5a55b 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 格式。履歷從該職缺評估時所用角色的角色檔案出發,把最相關的事實放前面,只使用有出處的事實:每一行都註明出自哪些事實,數字必須和事實一致,候選人缺少的技能不會寫進去,公司、職稱和學校的英文名稱一律依照候選人的對照表。PDF 用 Chrome、Chromium 或 Edge 產生,文字可以正確複製,求職系統(ATS)也能正確讀取。 +- **客製履歷**:每個評估過的投遞都產出中文與英文兩版,Markdown 與 PDF 格式。履歷從該職缺評估時所用角色的角色檔案出發,遵守候選人求職策略裡記下的履歷寫法決定,例如要用哪個職稱、哪段經歷不放,把最相關的事實放前面,只使用有出處的事實:每一行都註明出自哪些事實,數字必須和事實一致,候選人缺少的技能不會寫進去,公司、職稱和學校的英文名稱一律依照候選人的對照表。PDF 用 Chrome、Chromium 或 Edge 產生,文字可以正確複製,求職系統(ATS)也能正確讀取。 - **投遞進度追蹤**:每組「候選人 × 職缺」依階段推進(發現 → 已評估 → 準備中 → 已投遞 → 面試 → Offer → 結案),保留有日期的歷程,每輪面試分開記錄,進行中的投遞都有下一步與期限。可以列出所有候選人逾期的待辦,依候選人、角色、職缺或公司查看進度,結案時記錄結果:錄取、婉拒、未錄取或撤回。 - **回饋與修正**:記錄來自 HR、面試官、候選人與你自己的回饋、原因分類與具體修正方向,並追蹤每項修正直到完成;會產出新資料的修正(例如作品集)要匯入成資料來源才算完成。同一位候選人的多次投遞或同一角色下重複出現的原因,會變成對求職策略、角色檔案與履歷的修改提議,經你同意才套用。回饋中關於公司的內容會跨候選人累積成公司情報。結案的投遞會和成功率等級比對,指出評分高估或低估之處,要不要調整評分標準由你決定。 diff --git a/skills/headhunter/SKILL.md b/skills/headhunter/SKILL.md index b22c3ff..2566b3e 100644 --- a/skills/headhunter/SKILL.md +++ b/skills/headhunter/SKILL.md @@ -61,7 +61,7 @@ python3 /scripts/hh.py | `feedback patterns []` | Find causes that recur across a Candidate's Applications and what they suggest changing | | `feedback companies` | Rewrite the Feedback section of every Company notes file | | `feedback calibrate` | Compare Success ratings with closed outcomes and report where the rubric over- or under-estimates | -| `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 plan ` | Show what an Application's resumes start from: the Candidate's Strategy, 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, resumes, Applications and Feedback) and Job snapshots | @@ -413,8 +413,8 @@ 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**: 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 ` 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. +2. **Plan**: `resume plan ` shows the Candidate's Strategy without its Roles section, 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. Follow the Strategy's resume guidance, such as which title to use or which experience to leave out. Viewpoints in the Strategy may shape the wording of the summary and positioning, but never replace sourced Facts: every claim still cites its Facts. 4. **Save**: pipe the resume to `resume save `; 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 `. 6. **Report** the four files, and remind the user that the resumes leave out the gaps listed in the Evaluation. diff --git a/skills/headhunter/scripts/hh.py b/skills/headhunter/scripts/hh.py index e034755..916f98a 100644 --- a/skills/headhunter/scripts/hh.py +++ b/skills/headhunter/scripts/hh.py @@ -1275,6 +1275,19 @@ def replace_section(text: str, heading: str, section: str) -> str: return text[:match.start()] + section + ("\n" + text[match.end():] if text[match.end():] else "") +STRATEGY_DESCRIPTION = "Target Roles, positioning, and what to strengthen." + + +def strategy_guidance(folder: Path) -> str: + """strategy.md without its title, its starting description and the Roles section the script keeps.""" + path = folder / "strategy.md" + text = path.read_text(encoding="utf-8") if path.exists() else "" + text = re.sub(r"(?ms)^## Roles\n.*?(?=^## |\Z)", "", text) + text = re.sub(r"\A\s*# Strategy[ \t]*(?:\n|\Z)", "", text) + text = re.sub(rf"\A\s*{re.escape(STRATEGY_DESCRIPTION)}[ \t]*(?:\n|\Z)", "", text) + return text.strip() + + def update_strategy_roles(folder: Path) -> None: """Rewrite the Roles section of strategy.md from the role.yml files.""" rows = [] @@ -1974,8 +1987,7 @@ def cmd_candidate_new(args): }) for name in ("sources.yml", "facts.yml", "glossary.yml"): write_yaml(folder / name, []) - (folder / "strategy.md").write_text( - "# Strategy\n\nTarget Roles, positioning, and what to strengthen.\n", encoding="utf-8") + (folder / "strategy.md").write_text(f"# Strategy\n\n{STRATEGY_DESCRIPTION}\n", encoding="utf-8") print(f"{cid} {folder}") @@ -3031,6 +3043,12 @@ def cmd_resume_plan(args): print(f"{candidate_id(args.id)} {profile.get('name')} × {args.job} {job.get('title')} · {job.get('company')}") print(f"Evaluation: {evaluation.get('rating')} ({evaluation.get('score')}) under {slug}; Role profile built " f"{profile_md.get('built')} and current\n") + guidance = strategy_guidance(folder) + if guidance: + print("Follow the Candidate's Strategy (strategy.md without its Roles section):") + print("\n".join(f" {line}" if line else "" for line in guidance.splitlines()) + "\n") + else: + print("Strategy: nothing beyond the Roles yet; strategy.md holds no resume guidance\n") print("Start from the Role profile's positioning:") print(f" {positioning.get('headline')}\n {positioning.get('summary')}") print(f" Facts: {', '.join(positioning.get('facts') or [])}")