Skip to content

feat(resume): write a Master resume that covers every Fact - #25

Merged
codeotter0201 merged 1 commit into
mainfrom
feat/issue-24-master-resume
Nov 12, 2026
Merged

codeotter0201 merged 1 commit into
mainfrom
feat/issue-24-master-resume

Conversation

@codeotter0201

Copy link
Copy Markdown
Owner

Summary

Adds the Master resume: one complete Chinese and English resume per Candidate, master-resume.zh.md and master-resume.en.md in 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.py
    • master 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 (未寫入).
      • An experience block has a heading, a context line, a scope line, achievement groups with optional headings, and a tech line. A block may be a self-directed stretch (name) or one project with titles at several companies (roles, one line per title).
      • Any item may carry a gap. It shows in place as 【待補:…】 / [To fill: …] and is collected in the Gaps appendix with the cited Facts' missing fields.
      • Refusals: unusable Facts, numbers not in the cited Facts, Glossary and title/school/period checks, Chinese in English, an active, sourced Fact neither cited nor under left_out, left_out listing a cited or unusable Fact, a highlight whose Facts no experience or projects line cites, and a missing headline or summary.
    • The Master resume records built_from (digests of the Strategy guidance and of every covered Fact). candidate show reports it as current or stale: a covered Fact changed or was removed, a usable Fact is not covered, or the Strategy changed.
    • validate checks both files after hand edits like Tailored resumes. Gap-only lines need no Facts, and the appendices only need to name known Facts.
    • Refactor: Tailored resumes and the Master resume now share ResumeWriter (citing, numbers, header, Glossary and English checks), check_claim, and the resume plan print helpers. Tailored resume behavior is unchanged (see Validation).
  • SKILL.md: description, command rows, layout, the master-resume.*.md file 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

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Data layout change (existing data folders need migration)
  • Documentation update
  • Refactoring (no functional changes)

Validation

Run with a fictional Candidate (Alex Chen, c-001) in a scratch HEADHUNTER_DATA_DIR outside the repository. The setup script uses init, candidate new, source add, fact add, role new, role build, job save, evaluation save and resume 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-001 printed 13 Facts cited, 1 left out, 6 gaps and 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 written message and left both files byte-identical (19 of 19 passed). The cases:

    • inferred Fact
    • superseded Fact
    • item with no Facts
    • number not in Facts
    • company not in Glossary
    • title not in Facts
    • period not a Fact's
    • school not in Facts
    • Glossary name differs
    • Chinese in English
    • uncovered Fact
    • left_out with a cited Fact
    • left_out with an inferred Fact
    • highlight outside the body
    • both org and name
    • no headline
    • no summary
    • unknown field
    • an existing file without --replace
  • Hand edits: validate reported an uncited claim, the number 999 not in its Fact, and text plus a gap marker with no citation. Gap-only lines (- 【待補:…】, 範疇:【待補:…】, - **技能**:【待補:…】) passed. With master-resume.en.md removed, validate reported it missing.

  • Stale: changing f-007, adding f-017 and adding a rule to ## Resume writing gave stale (changed: f-007; not covered: f-017; strategy.md changed). master plan marked f-017 with +. A line added inside the script-kept Roles section does not count. Writing it again with f-017 covered gave current.

  • Tailored resumes unchanged: I compared against origin/main's hh.py on the same data.

    • resume save output (resume.zh.md, resume.en.md) is identical to a baseline written before any change, both after the refactor and on a fresh setup.
    • A resume save with six faults gives identical refusal output.
    • resume plan output is identical.
    • candidate show differs only by the new Master resume line.
    • resume pdf still prints both PDFs.
  • Existing data: validate on an existing Data folder with no Master resume → OK, so no migration is needed. role stale and index run 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.
    • The SKILL.md YAML example parses with hhyaml and uses only accepted fields.
  • Plugin: claude plugin validate . and claude plugin validate .claude-plugin/plugin.json → passed, with the expected CLAUDE.md warning 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

  • No real candidate data in code, examples, fixtures, screenshots or this PR
  • 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): none needed; the Master resume files are new, written on request, and validate accepts Candidate folders without them
  • Self-review completed
  • Documentation updated (if needed)

🤖 Generated with Claude Code

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>
@github-actions github-actions Bot added area/agent-instructions AGENTS.md, CLAUDE.md, CONTEXT.md and skill instructions area/docs README and contributor documentation type/feature New functionality labels Nov 11, 2026
@codeotter0201
codeotter0201 merged commit 562e749 into main Nov 12, 2026
1 check passed
@codeotter0201
codeotter0201 deleted the feat/issue-24-master-resume branch November 12, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/agent-instructions AGENTS.md, CLAUDE.md, CONTEXT.md and skill instructions area/docs README and contributor documentation type/feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Master resume: every Fact written out as one complete resume

1 participant