diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index adf7c2b..fe5ccf8 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -1,6 +1,6 @@ { "name": "headhunter-agent", - "description": "AI headhunter agent for Claude Code. 獵頭 AI:候選人資料庫、職缺評估、客製履歷、投遞追蹤。", + "description": "AI headhunter agent: candidate database, job evaluation, tailored resumes, application tracking and feedback.", "owner": { "name": "codeotter0201", "url": "https://github.com/codeotter0201" diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 11dec20..b734cae 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -7,7 +7,6 @@ body: attributes: value: | Use fictional people only. Never include a real candidate's name, contact details, resume or feedback. - 請只使用虛構人物,不要貼上真實候選人的姓名、聯絡方式、履歷或回饋。 - type: dropdown id: area diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index fad39a9..5325b30 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -7,7 +7,6 @@ body: attributes: value: | Use fictional people only. Never include a real candidate's name, contact details, resume or feedback. - 請只使用虛構人物,不要貼上真實候選人的姓名、聯絡方式、履歷或回饋。 - type: dropdown id: area diff --git a/.github/labeler.yml b/.github/labeler.yml index 262b843..82232e6 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -14,8 +14,8 @@ area/agent-instructions: area/docs: - changed-files: - any-glob-to-any-file: - - 'docs/**' - 'README.md' + - 'README.zh-TW.md' - 'CONTRIBUTING.md' area/ci: diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 744b6f0..e2c7a30 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -17,7 +17,7 @@ ## Checklist - [ ] No real candidate data in code, examples, fixtures, screenshots or this PR -- [ ] `docs/SPEC.md`, `skills/headhunter/SKILL.md` and `README.md` updated when behavior or data layout changed +- [ ] `skills/headhunter/SKILL.md`, `README.md` and `README.zh-TW.md` updated when behavior or data layout changed - [ ] Migration for existing data folders described (data layout changes only) - [ ] Self-review completed - [ ] Documentation updated (if needed) diff --git a/AGENTS.md b/AGENTS.md index 0f421d7..cafd444 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -46,6 +46,29 @@ repository, whatever tool or model runs it. - Shared domain terms are defined in `CONTEXT.md`. Use those terms in issues, pull requests, documents, and skill instructions. +## Language + +- Write all repository files, issues, pull requests, and commit messages in + English. +- `README.zh-TW.md` is the only Traditional Chinese file. It carries the same + content as `README.md`, and each links to the other at the top. + +## Where Information Lives + +- Planned features and their specifications live in labeled issues: the + roadmap epic and its phase issues. Iterate on a plan by updating its issue. +- Repository files hold only stable, current information, each in one place: + +| Information | Owner | +|---|---| +| Agent rules | `AGENTS.md` | +| Domain terms | `CONTEXT.md` | +| Issue, branch, commit, pull request and release workflow | `CONTRIBUTING.md` | +| Current skill behavior and data layout | `skills/headhunter/SKILL.md` | +| Product overview and installation | `README.md`, `README.zh-TW.md` | + +- Do not add a documentation folder or a second copy of any of these. + ## Privacy Invariants - Candidate data lives only in the user's data folder (`$HEADHUNTER_DATA_DIR`, @@ -60,9 +83,9 @@ repository, whatever tool or model runs it. - The development unit is one issue / branch / pull request. Branches start from the latest `origin/main`, are named `/issue--`, and target `main`. -- `docs/SPEC.md` is the product specification. A change to product behavior or - data layout updates the specification, `skills/headhunter/SKILL.md`, and - `README.md` in the same pull request. +- A change to product behavior or data layout updates + `skills/headhunter/SKILL.md`, `README.md`, and `README.zh-TW.md` in the same + pull request. - A change to the data layout states how existing data folders are migrated. - The plugin version in `.claude-plugin/plugin.json` changes only in a release pull request. @@ -74,8 +97,9 @@ AGENTS.md canonical agent instructions (this file) CLAUDE.md imports AGENTS.md CONTEXT.md shared domain terms CONTRIBUTING.md issue, branch, commit, pull request and release rules -docs/SPEC.md product specification -skills/headhunter/SKILL.md the headhunter skill +README.md product overview (English) +README.zh-TW.md product overview (Traditional Chinese) +skills/headhunter/SKILL.md the headhunter skill: current behavior and data layout .claude-plugin/ plugin and marketplace manifests .github/ issue forms, PR template, labeler .gemini/settings.json points Gemini CLI to AGENTS.md @@ -85,7 +109,7 @@ skills/headhunter/SKILL.md the headhunter skill - When creating or changing an issue, branch, commit, or pull request, read the matching section of `CONTRIBUTING.md` and the forms in `.github/`. -- When changing what the skill does or how data is stored, read `docs/SPEC.md` - and `skills/headhunter/SKILL.md` first. +- When changing what the skill does or how data is stored, read the issue that + specifies the change and `skills/headhunter/SKILL.md` first. - When changing plugin packaging, run `claude plugin validate .` and `claude plugin validate .claude-plugin/plugin.json` from the repository root. diff --git a/CONTEXT.md b/CONTEXT.md index be20ea4..d3350fe 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -5,83 +5,83 @@ words in issues, pull requests, documents, and skill instructions. ## Language -**Candidate(候選人)**: +**Candidate**: A person the user represents in their job search. Identified by `c-`. _Avoid_: user, applicant, profile -**Data folder(資料夾)**: +**Data folder**: The local folder that holds all candidate data, `$HEADHUNTER_DATA_DIR` or `~/headhunter-data/`. Never inside a repository. _Avoid_: database, storage -**Index(索引)**: +**Index**: `index.sqlite`, rebuilt from the files in the Data folder for search and classification. Files are the source of truth; the Index can be deleted and rebuilt at any time. _Avoid_: database of record -**Source(來源)**: +**Source**: One raw input about a Candidate: a note, work log, photo, existing resume, or GitHub repository, kept under `sources/`. _Avoid_: attachment, upload -**Fact(事實)**: +**Fact**: One statement about a Candidate's experience, skill, or achievement that cites the Source it came from. _Avoid_: claim, info, data point -**Glossary(中英對照)**: +**Glossary**: The Candidate's fixed Chinese ↔ English names for companies, titles, and terms, used so every English resume translates them the same way. _Avoid_: dictionary, translation memory -**Strategy(求職策略)**: +**Strategy**: The Candidate's current plan: target roles, positioning, and what to strengthen. Updated from Feedback. _Avoid_: plan, roadmap -**Listing(職缺列表)**: +**Listing**: A web page that lists many jobs, such as a search result page on 104 or CakeResume. _Avoid_: feed, board -**Job(職缺)**: +**Job**: One job posting, stored as a snapshot of its content at the time it was read. Identified by `j--`. _Avoid_: JD, position, opening -**Application(投遞)**: +**Application**: One Candidate × Job pair, from the first Evaluation until it is closed. _Avoid_: submission, match, pipeline item -**Stage(階段)**: +**Stage**: Where an Application is: found, evaluated, preparing, applied, interview (round N), offer, or closed (hired, declined, rejected, withdrawn). _Avoid_: status (reserved for issue labels) -**Evaluation(評估)**: +**Evaluation**: The assessment of one Application: fit score, reasons for the recommendation, gaps and risks, and a Success rating. _Avoid_: review, analysis -**Success rating(成功率等級)**: +**Success rating**: High, medium, or low, with reasons. A rule-based estimate, never a probability. _Avoid_: success probability, chance, odds -**Tailored resume(客製履歷)**: +**Tailored resume**: The pair of resumes written for one Application, one in Chinese and one in English, using only Facts. _Avoid_: CV variant, generated resume -**Feedback(回饋)**: +**Feedback**: One piece of input about how an Application went, from HR, an interviewer, the Candidate, or the user, with its cause. _Avoid_: comment, note -**Fix direction(修正方向)**: +**Fix direction**: A concrete action that responds to Feedback, with its own completion state. _Avoid_: suggestion, todo -**Company notes(公司情報)**: +**Company notes**: What has been learned about one company across all Candidates' Feedback. _Avoid_: company profile, research diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c26a5e9..c93737a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,75 +1,79 @@ # Contributing to headhunter-agent -本指南是 contributor 的日常操作入口,人類與 AI agent 都依同一份規則工作。專案原則與 agent 指令見 [AGENTS.md](AGENTS.md),共用名詞見 [CONTEXT.md](CONTEXT.md),產品規格見 [docs/SPEC.md](docs/SPEC.md)。 +This guide is the day-to-day entry point for contributors. Humans and AI agents follow the same rules. Project principles and agent instructions are in [AGENTS.md](AGENTS.md), and shared terms are in [CONTEXT.md](CONTEXT.md). -## 目錄 +## Contents -- [快速開始](#快速開始) -- [與 AI agent 協作](#與-ai-agent-協作) -- [開發工作流](#開發工作流) -- [驗證](#驗證) -- [Issue 規範](#issue-規範) -- [PR 規範](#pr-規範) -- [Release 流程](#release-流程) -- [相關資源](#相關資源) +- [Getting started](#getting-started) +- [Working with AI agents](#working-with-ai-agents) +- [Development workflow](#development-workflow) +- [Validation](#validation) +- [Issues](#issues) +- [Pull requests](#pull-requests) +- [Releases](#releases) +- [Resources](#resources) --- -## 快速開始 +## Getting started -### 環境需求 +### Requirements -| 工具 | 用途 | +| Tool | Purpose | |---|---| -| Git | 版本控制 | -| [GitHub CLI](https://cli.github.com) | Issue、PR、label 操作 | -| 支援 `AGENTS.md` 與 Agent Skills 的 AI coding agent | 依 issue 實作 | -| [Claude Code](https://claude.com/claude-code) CLI | 驗證與本機載入外掛 | +| Git | Version control | +| [GitHub CLI](https://cli.github.com) | Issues, pull requests and labels | +| An AI coding agent that supports `AGENTS.md` and Agent Skills | Implementing issues | +| [Claude Code](https://claude.com/claude-code) CLI | Validating and loading the plugin locally | -### 首次設定 +### First-time setup ```bash git clone https://github.com/codeotter0201/headhunter-agent.git cd headhunter-agent ``` -在本機直接載入這個 checkout 的外掛,測試修改中的 skill: +Load the plugin from this checkout to test a skill you are changing: ```bash claude --plugin-dir . ``` -開發與測試只使用虛構候選人。資料夾以 `HEADHUNTER_DATA_DIR` 指到 repository 以外的測試位置,不要用你真正的候選人資料: +Develop and test with fictional Candidates only. Point `HEADHUNTER_DATA_DIR` at a test location outside the repository, never at your real Candidate data: ```bash export HEADHUNTER_DATA_DIR="$HOME/headhunter-data-dev" ``` +### Language + +Write repository files, issues, pull requests and commit messages in English. `README.zh-TW.md` is the only Traditional Chinese file; keep it in step with `README.md`. + --- -## 與 AI agent 協作 +## Working with AI agents -Issue 是交給 agent 的任務契約。任何 agent 都依以下順序取得上下文: +An issue is the task contract handed to an agent. Every agent builds its context in this order: -1. `AGENTS.md`:專案原則、隱私規則、repository 規則 -2. `CONTEXT.md`:共用名詞 -3. Issue:問題、驗收條件、不在範圍內的項目 -4. 本文件對應章節:branch、commit、PR 規則 +1. `AGENTS.md`: project principles, privacy rules, repository rules +2. `CONTEXT.md`: shared terms +3. The issue: problem, acceptance criteria, out-of-scope items +4. The matching section of this guide: branch, commit and pull request rules -分工: +Roles: -- **人類**:撰寫或確認 issue、決定 priority、review PR、決定是否合併。 -- **Agent**:在 issue branch 完成最小完整變更、執行驗證、依範本建立 PR,並在 PR 記錄實際執行過的指令與結果。 +- **Humans** write or confirm issues, set priority, review pull requests, and decide whether to merge. +- **Agents** make the smallest complete change on the issue branch, run validation, open a pull request from the template, and record in it the commands they ran and the results. -Agent 的界線: +Agent boundaries: -- Issue 的驗收條件就是完成標準;需求不清楚時在 issue 留言提問,不自行擴大範圍。 -- 發現範圍外的問題時另外回報,經同意後開新 issue,不混入目前的 PR。 -- 建立 PR 不代表可以合併。合併、刪除 branch、發布版本都需要人類明確要求。 +- The issue's acceptance criteria define done. When requirements are unclear, ask in the issue instead of widening the scope. +- Report problems outside the scope separately; open a new issue only after agreement, and keep them out of the current pull request. +- Opening a pull request does not authorize merging. Merging, deleting branches and releasing require an explicit human request. --- -## 開發工作流 +## Development workflow ```text Issue triage and confirmation @@ -82,13 +86,13 @@ Issue triage and confirmation → delete branch, refresh local main ``` -### Branch 命名 +### Branch names ```text /issue-- ``` -`type` 使用 `feat`、`fix`、`refactor`、`perf`、`docs`、`chore` 或 `test`。所有 PR 直接以 `main` 為 base。 +`type` is one of `feat`, `fix`, `refactor`, `perf`, `docs`, `chore` or `test`. Every pull request targets `main`. ```text feat/issue-12-candidate-crud @@ -96,26 +100,26 @@ fix/issue-34-104-listing-pagination docs/issue-56-clarify-success-rating ``` -### 平行開發 +### Parallel work -同時處理多個 issue 時,每個 issue 使用自己的 `git worktree`,一個 worktree 對應一個 branch 與一個 PR: +When working on several issues at once, give each issue its own `git worktree`: one worktree, one branch, one pull request. ```bash git fetch origin git worktree add ../headhunter-agent-issue-12 -b feat/issue-12-candidate-crud origin/main ``` -PR 合併後移除 worktree 與本機 branch,再更新本機 `main`。 +After the pull request is merged, remove the worktree and the local branch, then update local `main`. -### Commit message +### Commit messages -採用 [Conventional Commits](https://www.conventionalcommits.org/): +Use [Conventional Commits](https://www.conventionalcommits.org/): ```text (): ``` -`type` 使用 `feat`、`fix`、`docs`、`style`、`refactor`、`test`、`chore` 或 `perf`。`scope` 簡短描述實際影響的範圍,通常對應 `area/*` label,例如 `candidate-db`、`ingest`、`job-sources`、`evaluation`、`resume`、`tracking`、`feedback`、`plugin`、`agent-instructions`、`ci`。 +`type` is one of `feat`, `fix`, `docs`, `style`, `refactor`, `test`, `chore` or `perf`. `scope` names the area actually affected, usually matching an `area/*` label: `candidate-db`, `ingest`, `job-sources`, `evaluation`, `resume`, `tracking`, `feedback`, `plugin`, `agent-instructions`, `docs`, `ci`, or `workflow`. ```text feat(job-sources): read CakeResume listing pages @@ -123,31 +127,41 @@ fix(resume): keep glossary names in English resumes docs(workflow): clarify agent review boundaries ``` -變更原因、替代方案與驗證證據放在 commit body、PR 或 issue;current-state 文件不累積歷史敘述。 +Reasons, alternatives and validation evidence go in the commit body, pull request or issue. Current-state files do not accumulate history. --- -## 驗證 +## Validation -從 repository root 執行受影響的檢查: +Run the checks for what you changed, from the repository root: -| 變更範圍 | 檢查 | +| Change | Check | |---|---| -| `.claude-plugin/`、`skills/` | `claude plugin validate .` 與 `claude plugin validate .claude-plugin/plugin.json` | -| Skill 行為 | 以 `claude --plugin-dir .` 載入,用虛構候選人實際走過受影響的流程 | -| JSON / YAML 設定 | 解析檔案確認語法正確 | +| `.claude-plugin/`, `skills/` | `claude plugin validate .` and `claude plugin validate .claude-plugin/plugin.json` | +| Skill behavior | Load with `claude --plugin-dir .` and walk through the affected flow with fictional Candidates | +| JSON / YAML files | Parse the file to confirm the syntax | -PR 中記錄執行過的指令與結果;沒有執行的檢查明確寫出,不宣稱已通過。 +`claude plugin validate .claude-plugin/plugin.json` warns that `CLAUDE.md` at the plugin root is not loaded as plugin context. This is expected: `CLAUDE.md` is for agents working on this repository, not for plugin users. + +Record the commands you ran and their results in the pull request. State any check you did not run; never claim it passed. --- -## Issue 規範 +## Issues + +### Specifications live in issues + +Planned features and their specifications live in issues, not in repository files. The roadmap is an epic issue (`type/epic`) with one sub-issue per phase. To change a plan, edit its issue; the labels and sub-issue links keep it traceable. + +When a change lands, the behavior it delivers is described in `skills/headhunter/SKILL.md` and the READMEs, and the issue is closed. + +### Writing an issue -優先使用 repository 的 [Bug Report](.github/ISSUE_TEMPLATE/bug_report.yml) 或 [Feature Request](.github/ISSUE_TEMPLATE/feature_request.yml) form。Issue 描述問題、可驗證的驗收條件、必要證據與明確的不在範圍項目;不要先指定實作方式作為唯一答案。 +Use the [Bug Report](.github/ISSUE_TEMPLATE/bug_report.yml) or [Feature Request](.github/ISSUE_TEMPLATE/feature_request.yml) form. Describe the problem, verifiable acceptance criteria, the evidence needed, and what is out of scope. Do not prescribe one implementation as the only answer. -**Issue 裡不得出現真實候選人的任何個資。** 重現問題時改用虛構人物與虛構資料。 +**Never include a real Candidate's personal data in an issue.** Reproduce problems with fictional people and fictional data. -### 標題 +### Title ```text [] @@ -155,16 +169,16 @@ PR 中記錄執行過的指令與結果;沒有執行的檢查明確寫出, ### Labels -| 類別 | 規則 | +| Family | Rule | |---|---| -| `type/*` | 每個 issue 恰好一個 | -| `priority/*` | 每個 confirmed issue 恰好一個 | -| `area/*` | 每個 confirmed issue 至少一個 | -| `scope/*` | 需要時加入,例如 `scope/breaking`、`scope/data-schema`、`scope/privacy` | -| `status/*` | 依 lifecycle 更新 | -| `exp/*` | 適合新手或歡迎社群貢獻時加入 | +| `type/*` | Exactly one per issue | +| `priority/*` | Exactly one per confirmed issue | +| `area/*` | At least one per confirmed issue | +| `scope/*` | Add when relevant, such as `scope/breaking`, `scope/data-schema`, `scope/privacy` | +| `status/*` | Updated through the lifecycle | +| `exp/*` | Add when the issue suits newcomers or community contributions | -Issue form 只會自動加入初始 type 與 `status/triage`;triage 時補上 priority 與最終 area。目前完整的 label 清單以 GitHub 為準: +Issue forms add only the initial type and `status/triage`; triage adds the priority and final areas. GitHub holds the current label list: ```bash gh label list @@ -181,32 +195,32 @@ status/triage --- -## PR 規範 +## Pull requests -### 標題與內容 +### Title and body -PR 標題使用 Conventional Commit 格式: +Pull request titles use the Conventional Commit format: ```text (): ``` -Breaking change 在 type 或 scope 後加 `!`。PR body 使用 [pull request template](.github/pull_request_template.md),至少包含 summary、related issue、change type、驗證紀錄與必要文件更新。 +Add `!` after the type or scope for a breaking change. The body follows the [pull request template](.github/pull_request_template.md) and includes at least the summary, related issue, change type, validation record and documentation updates. -開 PR 時,labeler 會依變更路徑加上 `area/*`,並依標題的 type 加上 `type/*`。 +When a pull request is opened, the labeler adds `area/*` labels from the changed paths and a `type/*` label from the title. -### 合併流程 +### Merging -1. 從最新 `origin/main` 建立 `/issue--`。 -2. 完成最小完整變更與受影響的驗證。 -3. PR 以 `main` 為 base,用 `Fixes #` 或 `Closes #` 關聯 issue。 -4. 由人類 review。Agent 的自我 review 不取代人類 review。 -5. 合併前確認 PR 目前的 head 就是最後驗證過的 commit;有新 commit 就重新驗證。 -6. Squash merge 到 `main`,刪除 issue branch。 +1. Branch `/issue--` from the latest `origin/main`. +2. Make the smallest complete change and run the affected validation. +3. Target `main` and link the issue with `Fixes #` or `Closes #`. +4. A human reviews. An agent's self-review does not replace human review. +5. Before merging, confirm the pull request head is the last validated commit; any new commit needs validating again. +6. Squash merge into `main` and delete the issue branch. -### Draft PR +### Draft pull requests -追蹤進行中的工作或想先取得回饋時使用 draft PR: +Use a draft pull request to track work in progress or get early feedback: ```bash gh pr create --draft --base main \ @@ -217,25 +231,25 @@ gh pr ready --- -## Release 流程 +## Releases -版本號以 `.claude-plugin/plugin.json` 的 `version` 為準,採用 [Semantic Versioning](https://semver.org/)。 +The version is the `version` field in `.claude-plugin/plugin.json`, following [Semantic Versioning](https://semver.org/). -1. 開一個 release PR,只更新版本號與必要的文件。 -2. 合併後,在合併的 commit 上建立 GitHub Release,tag 為 `v`,release notes 列出這個版本的變更。 +1. Open a release pull request that changes only the version and the necessary documentation. +2. After it is merged, create a GitHub Release on the merge commit with the tag `v`, and list the changes in the release notes. -不要直接 push `main` 或手動建立 tag 來取代 release PR。 +Do not push to `main` directly or create tags by hand in place of a release pull request. --- -## 相關資源 +## Resources -| 資源 | 位置 | +| Resource | Location | |---|---| -| Agent 指令與專案原則 | [AGENTS.md](AGENTS.md) | -| 共用名詞 | [CONTEXT.md](CONTEXT.md) | -| 產品規格 | [docs/SPEC.md](docs/SPEC.md) | -| Skill 指令 | [skills/headhunter/SKILL.md](skills/headhunter/SKILL.md) | -| Issue form 與 PR template | [.github/](.github) | +| Agent instructions and principles | [AGENTS.md](AGENTS.md) | +| Shared terms | [CONTEXT.md](CONTEXT.md) | +| Skill behavior and data layout | [skills/headhunter/SKILL.md](skills/headhunter/SKILL.md) | +| Roadmap | [Epic issues](https://github.com/codeotter0201/headhunter-agent/issues?q=label%3Atype%2Fepic) | +| Issue forms and pull request template | [.github/](.github) | -需要協助時,在相關 issue 或 PR 留下已確認的事實、執行過的指令與尚未解決的阻礙。 +When you need help, leave the confirmed facts, the commands you ran and the remaining blockers in the relevant issue or pull request. diff --git a/README.md b/README.md index 386af52..18629cd 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,10 @@ # headhunter-agent -**An AI headhunter agent for Claude Code.** It keeps a database of your candidates, reads job boards, scores each job against each candidate, writes tailored bilingual resumes, and tracks every application with feedback. +**English** | [繁體中文](README.zh-TW.md) -**給 Claude Code 用的 AI 獵頭。** 建立候選人資料庫、讀取職缺網站、評估適合度與成功率、產出中英雙版客製履歷,並追蹤每一次投遞的進度與回饋。 +**An AI headhunter agent for Claude Code and other AI agents.** It keeps a database of your candidates, reads job boards, scores each job against each candidate, writes tailored bilingual resumes, and tracks every application with feedback. -> **Status:** in development. The specification is complete; features are being built phase by phase. See [docs/SPEC.md](docs/SPEC.md). -> -> **狀態:** 開發中。規格已定案,功能依階段實作中,詳見 [docs/SPEC.md](docs/SPEC.md)。 - ---- +> **Status:** in development. The roadmap and feature specifications are tracked in the [roadmap epic](https://github.com/codeotter0201/headhunter-agent/issues/3). ## Why @@ -38,49 +34,13 @@ Other AI agents that support the Agent Skills format can use the skill too: copy Candidate data never goes into this repository. It lives in `~/headhunter-data/` on your machine (or the folder set in `HEADHUNTER_DATA_DIR`) and is not sent to any third-party service. ---- - -## 中文說明 - -### 為什麼需要它 - -多數求職工具只服務一位求職者。獵頭和職涯顧問同時替**很多位候選人**操作,需要記住每個人的經歷、配對過的每個職缺、每次投遞的結果,以及下次要修正什麼。`headhunter-agent` 就是為這種工作方式設計的。 - -### 功能 - -- **候選人資料庫**:匯入筆記、工作紀錄、照片、舊履歷和 GitHub repo,每一條事實都保留出處。支援新增、查看、更新、封存,可依職能、產業、年資、技能、狀態查詢。 -- **讀取職缺網站**:貼上 104、CakeResume、Yourator、企業官網或 LinkedIn 的職缺列表網址,先讀標題粗篩,再逐一讀取完整職缺內容。 -- **適合度與成功率評估**:可針對一位候選人,或從整個資料庫找出適合的人。產出適合度分數、推薦原因、缺口與風險,以及高/中/低的成功率等級與理由。 -- **客製履歷**:每個職缺產出中文與英文兩版,Markdown 與 PDF 格式,只使用有出處的事實。 -- **投遞進度追蹤**:每組「候選人 × 職缺」依階段推進(發現 → 已評估 → 準備中 → 已投遞 → 面試 → Offer → 結案),附下一步與期限。 -- **回饋與修正**:記錄來自 HR、面試官、候選人與獵頭的回饋、原因分類與具體修正方向。重複出現的問題會更新候選人的求職策略,同一家公司的回饋會累積成公司情報,實際結果用來校準評分。 - -### 安裝 - -``` -/plugin marketplace add codeotter0201/headhunter-agent -/plugin install headhunter@headhunter-agent -``` - -安裝後在 Claude Code 輸入 `/headhunter`。 - -其他支援 Agent Skills 格式的 AI agent 也能使用:把 `skills/headhunter/` 複製到該 agent 的 skills 資料夾即可。 - -### 資料只存在本機 - -候選人資料永遠不會進入這個 repo,只存在你電腦上的 `~/headhunter-data/`(或 `HEADHUNTER_DATA_DIR` 指定的資料夾),也不會上傳到任何第三方服務。 - ---- - ## Contributing Work happens through issues and pull requests, with humans and AI agents following the same rules. Start with [CONTRIBUTING.md](CONTRIBUTING.md); agents read [AGENTS.md](AGENTS.md) first. -開發以 issue 與 PR 進行,人類與 AI agent 依同一套規則協作。請先閱讀 [CONTRIBUTING.md](CONTRIBUTING.md);AI agent 先讀 [AGENTS.md](AGENTS.md)。 - --- -Keywords: headhunter, recruiter, recruiting, executive search, talent agent, career coach, job search, job matching, resume tailoring, ATS resume, applicant tracking, candidate management, interview feedback, Claude Code skill, 獵頭, 猎头, 求職, 履歷, 職缺評估, 人力銀行 +Keywords: headhunter, recruiter, recruiting, executive search, talent agent, career coach, job search, job matching, resume tailoring, ATS resume, applicant tracking, candidate management, interview feedback, Claude Code skill, Agent Skills ## License diff --git a/README.zh-TW.md b/README.zh-TW.md new file mode 100644 index 0000000..3bf8473 --- /dev/null +++ b/README.zh-TW.md @@ -0,0 +1,47 @@ +# headhunter-agent + +[English](README.md) | **繁體中文** + +**給 Claude Code 與其他 AI agent 使用的 AI 獵頭。** 建立候選人資料庫、讀取職缺網站、評估每個職缺與每位候選人的適合度、產出中英雙版客製履歷,並追蹤每一次投遞的進度與回饋。 + +> **狀態:** 開發中。開發藍圖與各功能規格都在 [roadmap epic](https://github.com/codeotter0201/headhunter-agent/issues/3) 追蹤。 + +## 為什麼需要它 + +多數求職工具只服務一位求職者。獵頭和職涯顧問同時替**很多位候選人**操作,需要記住每個人的經歷、配對過的每個職缺、每次投遞的結果,以及下次要修正什麼。`headhunter-agent` 就是為這種工作方式設計的。 + +## 功能 + +- **候選人資料庫**:匯入筆記、工作紀錄、照片、舊履歷和 GitHub repo,每一條事實都保留出處。支援新增、查看、更新、封存,可依職能、產業、年資、技能、狀態查詢。 +- **讀取職缺網站**:貼上 104、CakeResume、Yourator、企業官網或 LinkedIn 的職缺列表網址,先讀標題粗篩,再逐一讀取完整職缺內容。 +- **適合度與成功率評估**:可針對一位候選人,或從整個資料庫找出適合的人。產出適合度分數、推薦原因、缺口與風險,以及高/中/低的成功率等級與理由。 +- **客製履歷**:每個職缺產出中文與英文兩版,Markdown 與 PDF 格式,只使用有出處的事實。 +- **投遞進度追蹤**:每組「候選人 × 職缺」依階段推進(發現 → 已評估 → 準備中 → 已投遞 → 面試 → Offer → 結案),附下一步與期限。 +- **回饋與修正**:記錄來自 HR、面試官、候選人與獵頭的回饋、原因分類與具體修正方向。重複出現的問題會更新候選人的求職策略,同一家公司的回饋會累積成公司情報,實際結果用來校準評分。 + +## 安裝 + +``` +/plugin marketplace add codeotter0201/headhunter-agent +/plugin install headhunter@headhunter-agent +``` + +安裝後在 Claude Code 輸入 `/headhunter`。 + +其他支援 Agent Skills 格式的 AI agent 也能使用:把 `skills/headhunter/` 複製到該 agent 的 skills 資料夾即可。 + +## 資料只存在本機 + +候選人資料永遠不會進入這個 repo,只存在你電腦上的 `~/headhunter-data/`(或 `HEADHUNTER_DATA_DIR` 指定的資料夾),也不會上傳到任何第三方服務。 + +## 參與開發 + +開發以 issue 與 PR 進行,人類與 AI agent 依同一套規則協作。請先閱讀 [CONTRIBUTING.md](CONTRIBUTING.md)(英文);AI agent 先讀 [AGENTS.md](AGENTS.md)。 + +--- + +關鍵字:獵頭、猎头、人力仲介、求職、找工作、履歷、客製履歷、職缺評估、職缺媒合、投遞追蹤、面試回饋、人力銀行、104、CakeResume、Claude Code skill + +## 授權 + +[MIT](LICENSE) diff --git a/docs/SPEC.md b/docs/SPEC.md deleted file mode 100644 index f860958..0000000 --- a/docs/SPEC.md +++ /dev/null @@ -1,157 +0,0 @@ -# headhunter-agent 規格 - -## 定位 - -替**多位候選人**主動規劃求職策略的 AI 獵頭。它把候選人的各種資料整理成可查詢的資料庫,讀取職缺網站、評估適合度與成功率,產出中英雙版客製履歷,並追蹤每一次投遞的進度與回饋。 - -- 使用者:獵頭、職涯顧問,或替多位候選人操作求職的人 -- 執行環境:Claude Code 本機 skill -- 呼叫方式:`/headhunter` - -## 資料位置與隱私 - -- 程式(本 repo)與資料完全分開。資料預設放在 `~/headhunter-data/`,可用環境變數 `HEADHUNTER_DATA_DIR` 指定其他位置。 -- 候選人資料只存本機,不上傳任何第三方服務,也永遠不進入本 repo。 -- repo 內的範例資料一律使用虛構人物。 - -## 資料結構 - -``` -~/headhunter-data/ - index.sqlite ← 由下方檔案自動重建的索引,可隨時刪除重生 - candidates/ - c-0001-wang-xiaoming/ - profile.yml ← 基本資料、目標職位、薪資期望、地點、狀態、分類標籤 - facts.md ← 經歷、技能、成就;每一條都附出處 - glossary.yml ← 公司名、職稱、專有名詞的中英對照 - strategy.md ← 求職策略(依回饋持續修正) - sources/ ← 原始資料:筆記、照片、repo 摘要、舊履歷 - applications/ - j-104-8xk2p/ - status.yml ← 進度階段、時間軸、下一步與期限 - evaluation.md ← 適合度、推薦原因、缺口、成功率 - feedback.md ← 回饋紀錄與修正方向 - resume.zh.md / resume.zh.pdf - resume.en.md / resume.en.pdf - jobs/ - j-104-8xk2p.md ← 職缺快照(同一職缺可供多位候選人評估) - companies/ - .md ← 跨候選人累積的公司情報 - archive/ ← 刪除的候選人先移到這裡 -``` - -## 一、候選人資料庫 - -### 資料匯入 - -| 來源 | 處理方式 | -|---|---| -| 筆記、純文字、工作紀錄 | 萃取成就、技能、專案 | -| 照片(名片、證照、手寫筆記、作品截圖) | 以影像辨識萃取文字與資訊 | -| GitHub repo 或個人頁 | 以 `gh` 讀取 README、語言比例、commit 活躍度,整理成技術證據 | -| 既有履歷(PDF / Word) | 解析後拆成結構化欄位 | - -每一條事實都記錄出處(來源檔案與位置)。產出履歷時只能使用有出處的事實。 - -### CRUD - -- **新增**:建立候選人資料夾與 `profile.yml` -- **查看**:顯示候選人摘要、進行中的投遞、待辦事項 -- **更新**:匯入新資料時自動合併;與既有事實矛盾的地方會標出來,由使用者決定 -- **刪除**:移到 `archive/`,不直接刪除 - -### 分類與索引 - -- 分類維度:職能、產業、年資、技能標籤、狀態(進行中/已上岸/暫停) -- 支援自然語言查詢,例如「列出有 Python 與金融背景、年資 5 年以上的候選人」 - -## 二、職缺讀取與評估 - -### 職缺來源 - -| 來源 | 讀取方式 | -|---|---| -| 104 人力銀行 | 實測後選用最穩定的方式:直接抓取、內部 JSON 或瀏覽器 | -| CakeResume | 同上 | -| Yourator、企業官網 | 同上 | -| LinkedIn | 只讀取使用者在已登入瀏覽器中開啟的頁面,或使用者貼上的內容;不做大量自動抓取 | - -遇到 CAPTCHA 或登入牆時,交由使用者手動處理或貼上內容。 - -### 流程 - -1. **列表頁**:讀取職缺列表網址,抽出每筆職缺的標題、公司、連結,依標題與公司粗篩 -2. **職缺頁**:逐一讀取粗篩後的職缺,結構化為必要條件、加分條件、職責、薪資、地點,存成 `jobs/` 快照 -3. **評估**:針對指定候選人,或從資料庫找出所有適合的候選人,產出: - - 適合度分數與推薦原因(逐條對照職缺要求與候選人事實) - - 缺口與風險,以及補強方式 - - 成功率等級 -4. **客製履歷**:見第三節 - -### 評分規則 - -| 評估項目 | 權重 | 說明 | -|---|---|---| -| 硬性條件 | 門檻 | 學歷、最低年資、必備證照或語言;不符合時成功率降一級 | -| 技能重疊 | 35% | 職缺要求的技能在候選人資料中是否有出處證據 | -| 職級與年資 | 20% | 區分職級不足與資歷過高 | -| 產業與領域 | 20% | 同產業,或技術領域相近 | -| 成就證據 | 15% | 可量化成果是否對應職缺職責 | -| 薪資、地點、工作型態 | 10% | 與候選人期望的落差 | - -成功率依總分與是否通過門檻分為**高/中/低**,每一級附理由。這是依規則估算的等級,不是實際錄取機率;投遞結果回寫後用來校準規則。 - -## 三、客製履歷 - -- 原稿為 Markdown,輸出 PDF(使用支援繁體中文的字型,例如 Noto Sans TC) -- 每個職缺固定產出中文版與英文版 -- 依職缺重新排序與改寫重點,只使用有出處的事實 -- 英文版的專有名詞以 `glossary.yml` 為準,確保翻譯一致 - -## 四、進度追蹤 - -每一組「候選人 × 職缺」記錄於 `status.yml`。 - -| 階段 | 說明 | -|---|---| -| 發現 | 從職缺列表抓到,尚未評估 | -| 已評估 | 已產出評估報告 | -| 準備中 | 決定投遞,正在準備履歷與材料 | -| 已投遞 | 已送出申請 | -| 面試(第 N 輪) | 每一輪分開記錄 | -| Offer | 收到錄取通知 | -| 結案 | 錄取、婉拒、未錄取或撤回 | - -- 每次變更階段都記錄時間 -- 每筆投遞都有「下一步」與期限 -- 可列出所有逾期待跟進的項目,以及依候選人、職缺、公司檢視進度 - -## 五、回饋紀錄與修正方向 - -每則回饋記錄於該投遞的 `feedback.md`: - -| 欄位 | 內容 | -|---|---| -| 日期 | 收到回饋的日期 | -| 來源 | HR、面試官、候選人自評、獵頭觀察 | -| 內容 | 回饋原文或摘要 | -| 原因分類 | 技能缺口、經驗不足、表達、薪資、文化契合、履歷呈現 | -| 修正方向 | 具體行動,例如補作品、調整履歷重點、練習特定面試題 | -| 狀態 | 待處理/進行中/已完成 | - -回饋同時作為獨立主題彙整: - -- **候選人層級**:找出重複出現的問題,例如「連續三次被說系統設計弱」,回頭更新 `strategy.md` 與履歷重點 -- **公司層級**:同一家公司在不同候選人身上的回饋,累積到 `companies/` 成為公司情報 -- **評分校準**:比對評估等級與實際結果,修正評分規則 - -## 實作階段 - -| 階段 | 範圍 | 狀態 | -|---|---|---| -| 1. 資料庫 | 資料夾結構、資料匯入、CRUD、分類索引與查詢 | 規劃中 | -| 2. 職缺 | 四類來源讀取、粗篩、適合度與成功率評估、推薦報告 | 規劃中 | -| 3. 履歷 | 中英客製履歷、PDF 輸出 | 規劃中 | -| 4. 追蹤與回饋 | 進度追蹤、回饋紀錄、跨候選人與公司彙整、評分校準 | 規劃中 | - -每完成一個階段,都以一位虛構候選人與數筆真實職缺實測,確認可用後再進入下一階段。 diff --git a/skills/headhunter/SKILL.md b/skills/headhunter/SKILL.md index a4797c8..444e3f9 100644 --- a/skills/headhunter/SKILL.md +++ b/skills/headhunter/SKILL.md @@ -1,14 +1,12 @@ --- name: headhunter -description: AI headhunter that works 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 that works 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. --- # headhunter You act as the user's headhunter assistant. The user manages many candidates. You keep each candidate's data, match them with jobs, write tailored resumes, and track every application and the feedback it gets. -The full specification is in `docs/SPEC.md` at the root of this plugin. - ## Data location - Data lives in `$HEADHUNTER_DATA_DIR`, or `~/headhunter-data/` when it is not set. Create it on first use.