Skip to content

feat(resume)!: tie the Master resume to Strategy rules and follow-up questions - #27

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

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

Conversation

@codeotter0201

Copy link
Copy Markdown
Owner

Summary

Brings the Master resume in line with the updated #24, which follows the information homes in #26. The Strategy decides order, emphasis and what to leave out, and follow-up questions live only in Import reports. The Master resume refers to both by id and never copies them.

  • Left out comes from the Strategy. left_out is now a list of Fact ids. master save refuses a Fact that no line of strategy.md names; lines inside the script-kept Roles section do not count. The Left out (未寫入) appendix points to the strategy.md lines that name each Fact, such as f-004: strategy.md line 7, instead of repeating a reason.
  • Gaps name follow-up questions. gap is now the id of a follow-up question in the Candidate's Import reports. The marker shows it as 【待補:q-004】 / [To fill: q-004]. The Gaps (待補) appendix lists the id with the Facts' missing fields and does not repeat the question text. Both master save and validate (after hand edits) refuse a marker that names no known question.
  • master plan marks each Fact with the strategy.md lines that name it, so the agent knows which Facts may be left out. It also lists the open follow-up questions that gaps can name.
  • Workflow (SKILL.md):
    • The Strategy decides order and emphasis, including whether Highlights appear; Highlights are now optional.
    • Each achievement is one story about one event and combines only that event's Facts.
    • The Master resume is written only through master save, and the workflow says how to replace a hand-written draft.
    • To leave out a Fact that no rule names, the agent proposes a rule to the user first.
  • CONTEXT.md, README.md and README.zh-TW.md describe the same behavior.

Tailored resumes are unchanged. The hh.py diff touches only master plan, master save, check_master and the call to check_master in validate.

Related Issues

Fixes #24
Refs #26

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)

Breaking: the gap: {zh, en} and left_out: [{facts, zh, en}] input forms are gone.

Migration:

  • A Master resume written with the earlier form: validate reports its free-text gap markers. Write it again with master save --replace in the new form:
    • add a follow-up question for each gap to the Import report of the Source the Fact cites, and use its id;
    • add a Strategy rule that names each left-out Fact, once the user agrees.
  • A hand-written master resume draft: no command reads it. Write the Master resume with master save, move the draft's rules into strategy.md and its open questions into Import reports, and remove the draft only when the user agrees.
  • Data folders without a Master resume need nothing.

Validation

All checks ran with a fictional Candidate (Alex Chen, c-001) in a scratch HEADHUNTER_DATA_DIR outside the repository. The setup:

  • init, candidate new, source add, import-report and fact add
  • four Facts at two organizations, one with missing: [result]
  • an Import report with one open and one answered follow-up question
  • a strategy.md with a rule naming f-004, and a Roles section that names f-003

27 of 27 checks passed:

  • Save without Highlights: master save c-001 → 3 Facts cited, 1 left out, 1 gaps.
    • zh shows 建立庫存同步服務。【待補:q-001】; en shows Built an inventory sync service. [To fill: q-001].
    • Gaps: - 範例科技 · 後端工程師:q-001(f-003 缺 result), without the question text.
    • Left out: - f-004:strategy.md 第 7 行 / - f-004: strategy.md line 7.
    • No Highlights heading. validate c-001 → OK.
  • Save with Highlights, and with a gap naming the answered question: written.
  • Refusals: each exits 1, and both files stay byte-identical (md5 before and after). The cases:
    • free-text gap
    • {zh, en} gap
    • unknown question id q-099
    • left_out of a Fact named only in the Roles section
    • left_out in the {facts, zh, en} form
    • uncovered Fact
    • left_out of a cited Fact
    • highlight citing a Fact outside the body
  • master plan:
    • marks f-004 with (strategy.md line 7);
    • does not mark f-003, which only the Roles section names;
    • lists open q-001 and leaves out answered q-002.
  • Hand edits: changing the zh marker to 【待補:q-099】 or 【待補:團隊人數】 makes validate report it; restoring the file gives OK.
  • Stale:
    • a line added inside the Roles section leaves it current;
    • a rule added under Resume writing gives strategy.md changed.
  • claude plugin validate . and claude plugin validate .claude-plugin/plugin.json: passed, with two warnings that were already there before this change:
    • CLAUDE.md is not loaded as plugin context, which CONTRIBUTING.md documents;
    • the plugin has no icon.
  • python3 -m py_compile skills/headhunter/scripts/hh.py: OK.

Not run:

  • A byte-for-byte comparison of Tailored resume output against main. The diff does not touch resume save, resume plan or check_resume.
  • A walkthrough through claude --plugin-dir ..

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)
  • Self-review completed
  • Documentation updated (if needed)

🤖 Generated with Claude Code

…questions

The Master resume follows the information homes in #26: the Strategy
decides order, emphasis and what to leave out, and follow-up questions
live only in Import reports.

- `left_out` is a list of Fact ids. `master save` refuses a Fact that no
  line of strategy.md outside its Roles section names. The Left out
  appendix points to those strategy.md lines instead of repeating a reason.
- `gap` is the id of a follow-up question in the Candidate's Import
  reports. The marker shows it as 【待補:q-004】 / [To fill: q-004], the Gaps
  appendix lists the id without the question text, and `master save` and
  `validate` refuse a marker that names no known question.
- `master plan` marks each Fact with the strategy.md lines that name it and
  lists the open follow-up questions.
- Highlights are optional and appear only when the Strategy asks for them.
  Each achievement is one story about one event. The Master resume is
  written only through `master save`; a hand-written draft is replaced by
  writing it with `master save`, its rules moved into strategy.md and its
  open questions into Import reports.

Breaking: the `gap: {zh, en}` and `left_out: [{facts, zh, en}]` input forms
are gone. A Master resume written with them fails `validate`; write it
again with `master save --replace` in the new form.

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 12, 2026
@codeotter0201
codeotter0201 merged commit 78783cc into main Nov 12, 2026
1 check passed
@codeotter0201
codeotter0201 deleted the feat/issue-24-master-resume-strategy 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