Repository navigation
feat(resume): write a Master resume that covers every Fact - #25
Merged
Merged
Conversation
Add `master plan` and `master save`, which write one complete Chinese and English resume per Candidate: master-resume.zh.md and master-resume.en.md. It writes out every active, sourced Fact in full, or lists it as left out with a reason, so the user can review a Candidate's Facts in one place and later extracts start from the same wording. It is internal, with no PDF. - Sections in a fixed order: summary, grouped skills, highlights, experience blocks (context, scope, grouped long-form achievements, tech), projects, education, certificates and training, awards and publications, languages, then Gaps and Left out appendices. - Experience blocks may be a self-directed stretch (`name`) or one project with titles at several companies (`roles`). - Any item may carry a `gap`, shown in place and collected in the Gaps appendix with the Facts' missing fields. - `master save` refuses unusable Facts, numbers not in the cited Facts, Glossary mismatches, Chinese in English, uncovered Facts, and highlights that no experience or projects line backs. - `candidate show` and `master plan` report a stale Master resume: a covered Fact changed or was removed, a usable Fact is not covered, or the Strategy's guidance changed. `validate` checks it after hand edits. - Tailored resumes and the Master resume share ResumeWriter; Tailored resume output, refusals and `resume plan` are unchanged. Existing Data folders need no migration: the files are new and written on request, and validate accepts Candidate folders without them. Fixes #24 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 tasks
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
Adds the Master resume: one complete Chinese and English resume per Candidate,
master-resume.zh.mdandmaster-resume.en.mdin the Candidate folder. It writes out every active, sourced Fact in full, or lists it as left out with a reason, so the user can review and confirm a Candidate's Facts in one readable place, and later extracts start from the same wording. It is internal: never sent, no PDF.hh.pymaster plan <id>prints the Strategy without its Roles section, every usable Fact grouped by organization (newest first) and kind with period, evidence and missing fields, the Facts never to use, the Glossary and the header. With an existing Master resume it marks uncovered Facts with+and shows why it is stale.master save <id> [--replace]writes both files from JSON or YAML on stdin. Sections come in a fixed order: headline and summary, grouped skills, highlights, experience, projects, education, certificates and training, awards and publications, languages. Then come two appendices, Gaps (待補) and Left out (未寫入).name) or one project with titles at several companies (roles, one line per title).gap. It shows in place as【待補:…】/[To fill: …]and is collected in the Gaps appendix with the cited Facts'missingfields.left_out,left_outlisting a cited or unusable Fact, a highlight whose Facts no experience or projects line cites, and a missing headline or summary.built_from(digests of the Strategy guidance and of every covered Fact).candidate showreports it as current or stale: a covered Fact changed or was removed, a usable Fact is not covered, or the Strategy changed.validatechecks both files after hand edits like Tailored resumes. Gap-only lines need no Facts, and the appendices only need to name known Facts.ResumeWriter(citing, numbers, header, Glossary and English checks),check_claim, and theresume planprint helpers. Tailored resume behavior is unchanged (see Validation).SKILL.md: description, command rows, layout, themaster-resume.*.mdfile format with its input schema and refusals, a new Write the Master resume workflow, and the stale check when starting work with a Candidate.CONTEXT.md: defines Master resume.README.md/README.zh-TW.md: new Master resume / 完整版履歷 feature.Reviewers: extracting from the Master resume (Tailored resumes that start from it, one-page versions and so on) is out of scope, as #24 states.
Related Issues
Fixes #24
Type of Change
Validation
Run with a fictional Candidate (Alex Chen, c-001) in a scratch
HEADHUNTER_DATA_DIRoutside the repository. The setup script usesinit,candidate new,source add,fact add,role new,role build,job save,evaluation saveandresume save. The Candidate has 16 Facts:Facts at five organizations, a self-directed stretch, and one project with titles at two companies.
Two Facts with
missing: [result].One inferred Fact and one superseded Fact.
A Strategy rule that leaves one experience out.
Master resume written:
master save c-001printed13 Facts cited, 1 left out, 6 gapsand wrote both files, from JSON (--file) and from YAML on stdin.validate c-001→OK.candidate show→Master resume: written 2026-11-11, current.Refusals: a script mutated the input in 19 ways. Every case exited 1 with the expected
nothing writtenmessage and left both files byte-identical (19 of 19 passed). The cases:left_outwith a cited Factleft_outwith an inferred Factorgandname--replaceHand edits:
validatereported an uncited claim, the number 999 not in its Fact, and text plus a gap marker with no citation. Gap-only lines (- 【待補:…】,範疇:【待補:…】,- **技能**:【待補:…】) passed. Withmaster-resume.en.mdremoved,validatereported it missing.Stale: changing f-007, adding f-017 and adding a rule to
## Resume writinggavestale (changed: f-007; not covered: f-017; strategy.md changed).master planmarked f-017 with+. A line added inside the script-kept Roles section does not count. Writing it again with f-017 covered gavecurrent.Tailored resumes unchanged: I compared against
origin/main'shh.pyon the same data.resume saveoutput (resume.zh.md,resume.en.md) is identical to a baseline written before any change, both after the refactor and on a fresh setup.resume savewith six faults gives identical refusal output.resume planoutput is identical.candidate showdiffers only by the new Master resume line.resume pdfstill prints both PDFs.Existing data:
validateon an existing Data folder with no Master resume →OK, so no migration is needed.role staleandindexrun as before.Code checks:
uv run --python 3.9 python skills/headhunter/scripts/hh.py master save …→ works on Python 3.9.pyflakes skills/headhunter/scripts/hh.py→ clean.SKILL.mdYAML example parses withhhyamland uses only accepted fields.Plugin:
claude plugin validate .andclaude plugin validate .claude-plugin/plugin.json→ passed, with the expectedCLAUDE.mdwarning and the existing missing-icon warning.Not run: loading the plugin with
claude --plugin-dir .and walking through the Write the Master resume workflow in an agent session.Checklist
skills/headhunter/SKILL.md,README.mdandREADME.zh-TW.mdupdated when behavior or data layout changedvalidateaccepts Candidate folders without them🤖 Generated with Claude Code