Repository navigation
feat(evaluation): evaluate Jobs against Candidates' Roles - #16
Merged
Merged
Conversation
Add Job evaluation: find the Candidates whose Roles fit a Job, evaluate one Candidate under the fitting Role (or against all Facts when none fits), score the fixed rubric with a hard-requirement gate, and write applications/<job-id>/evaluation.md with reasons tied to Facts, gaps, risks and a Success rating. Requirements that recur across the Jobs evaluated under a Role are proposed as role.yml changes and applied only when the user accepts them. - hh.py: evaluation match/save/list, role refine; Evaluations in validate, candidate show and the Index; the Index rebuilds itself when its schema version changes; role build shares the evidence and gap checks with evaluation save - SKILL.md: evaluation.md format, rubric, Success rating mapping and the Evaluate Jobs workflow - CONTEXT.md: Evaluation, Fit score, Hard requirement, Success rating - README.md / README.zh-TW.md: the Job evaluation feature Closes #4 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Job evaluation from #4: find the Candidates whose Roles fit a Job, evaluate a Candidate under the Role that fits (or against all of their Facts when none does), and write an Evaluation with a Fit score, reasons tied to Facts and Job requirements, gaps and risks, and a Success rating.
skills/headhunter/scripts/hh.py:evaluation match,evaluation save,evaluation list,role refine; Evaluations invalidate,candidate showand the Index (evaluations,evaluation_gaps); the Index rebuilds itself when its schema version changes;role buildandevaluation saveshare the evidence and gap checksskills/headhunter/SKILL.md: theevaluation.mdformat, how each rubric dimension is scored, the Success rating mapping, the Evaluate Jobs workflow (finding Candidates, choosing the Role, hard requirements, no fitting Role, refining Roles)CONTEXT.md: Evaluation names its Role; adds Fit score and Hard requirement; Success rating comes from bothREADME.md/README.zh-TW.md: the Job evaluation featureRelated Issues
Closes #4
Type of Change
Decisions
must-1,nice-1,duty-1missing,to-confirm,weak-evidence); the code is sharedweak-evidencegapyears: the periods of the cited experience Facts are added up and compared withmin_years. Other kinds fail only withmet: falseand the Facts that show it. With no sourced Fact a hard requirement is unconfirmed: a gap, gateunconfirmed, rating not loweredseniorityinprofile.yml: 100 / 60 / 30 / 0, labeled under- or over-qualifiedevaluation matchranks each Candidate's active Roles by shared must-have Tags, then shared Tags; the agent chooses; a dropped Role is refusedroleout, says so, and the agent offers to create a Role from the Job withrole newrole refineproposes Tags required by two or more Jobs evaluated under the Role that no requirement has (must-have when at least half of those Jobs list it as one), and adds those Jobs to assumed or Job requirements they confirm;--acceptapplies only what the user acceptsrole.ymlautomatically; proposals from a single Job--replace; one Evaluation per Candidate × Jobstatus.ymlevaluation.md, and Stages belong to #6status.yml: would fix its format before #6 designs itPRAGMA user_version; a different version rebuilds the IndexMigration
Data folders created by #1, #12 and #9 have no
applications/;evaluation savecreates it with the first Evaluation, so no files change. An existingindex.sqlitehas no Evaluation tables and schema version 0; the next command that reads it rebuilds it. Tested with theindex.sqlitefrom the #9 walkthrough: version 0 →evaluation list→ "No Evaluations." and version 1 with both tables.Validation
All runs used the fictional Candidates from #1 and #9 (王小明
c-001with the Rolesenior-backend-engineer, 林小華c-002withdata-engineer) in a scratchHEADHUNTER_DATA_DIRoutside any repository, on Python 3.9 unless noted. I acted as the agent followingSKILL.md, and as the user for answers and approvals.Real Jobs (from the two sites #12 read for real)
j-yourator-39119(Profet AI),j-yourator-25039(台灣大哥大) from [Feature] Job reading: Listings and Job snapshots #12; read now withjob listingandjob fetch:j-yourator-48767(CreatorDB),j-yourator-40514(PChome),j-yourator-48719(街口電子支付), saved withjob savej-jobs-lever-co-91b1946a(Pinkoi on Lever) from [Feature] Job reading: Listings and Job snapshots #12Finding Candidates
evaluation match j-yourator-40514→ both Candidates, each Role with shared Tags (7 of 32,7 on must-haves), profile state and Fact coverage; the dropped Roletech-leadis not listeddata-engineerpaused:c-002is left out with "Not listed: 1 other active Candidate …";--alllists it with "no active Role shares a Tag"evaluation match j-yourator-39119 c-1→ Facts per requirement, strongest evidence first, both sides' salary, location and work mode, andduty-1…duty-6Evaluations (Fit score and rating checked by hand for each)
job_leveland industries, a skill Fact as an achievement, bad target, bad and unknown conditions, a risk without close, no summary) → all 28 problems listed, nothing writtenevaluation saveprints the offerFailing a hard requirement
f-011for "At least 2 years of relevant experience in data engineering" →cite experience Facts with a period so their years can be countedsource add c-2 - --type interview(s-005) andfact add(f-013, experience2025-01..present) →role stale c-2:data-engineer: new f-013 matches its requirementsevaluation savealso reported the stale Role profile--replace→ refused;j-yourator-40514with--replace→ its years requirement (1 year) met, gatepassedmet: falseciting the bachelor's degree Fact → fit score 75 (high band) → mediumRefining Roles
senior-backend-engineer: "2 requirement changes proposed … run role refine"; after three: 10role refine c-1 senior-backend-engineer→ 7 Tags to add, each with how many Jobs list it and as must-have, and the Jobs' wording; 3 assumed requirements to cite Jobs--accept tool/linux nosuch→ refused, listing the proposals--accept tool/linux skill/performance tool/docker r-004→r-008…r-010added withorigin: joband their Job ids,r-004noworigin: jobwith two Jobs;role stale→role.yml changed; the remaining proposals stay listedshasumof everyfacts.yml,sources.ymlandtaxonomy.ymlbefore and after → identicalIndex, listing and validation
evaluation list,evaluation list c-2 --rating low, aqueryjoiningevaluationsandevaluation_gaps;candidate show c-2lists its four Evaluationsindex.sqlite, ranindex(2 Candidates, 28 Facts, 3 Roles, 7 Evaluations), repeated 8 commands →diffis emptyevaluation.mdwith ratingmaybeand an unknown Fact →validatenames bothvalidate→ OK on Python 3.9 and 3.13; the data folders from [Feature] Candidate database: import, quality check, tags, CRUD and search #1, [Feature] Job reading: Listings and Job snapshots #12 and [Feature] Role profiles: link a Candidate's Facts to each target Role #9 still validateevaluation.md,role.ymland Job snapshot YAML block (17 files) parses the same with PyYAML andhhyaml, with dates compared as ISO strings; the YAML examples inSKILL.mdparse with bothrole buildwith the [Feature] Role profiles: link a Candidate's Facts to each target Role #9 payload reproduces the [Feature] Role profiles: link a Candidate's Facts to each target Role #9 profile byte for byte; a faulty build still lists every problem, and a missingwhykey no longer raises aKeyErrorclaude plugin validate .→ passed;claude plugin validate .claude-plugin/plugin.json→ passed with the expectedCLAUDE.mdwarningruff check --select E,F,W,B --line-length 130 skills/headhunter/scripts→ all checks passed; scripts parse on Python 3.9Not run
claude --plugin-dir .Checklist
skills/headhunter/SKILL.md,README.mdandREADME.zh-TW.mdupdated when behavior or data layout changed🤖 Generated with Claude Code