Skip to content

fix(resume): accept Glossary names that are the same in both languages - #30

Open
codeotter0201 wants to merge 1 commit into
mainfrom
fix/issue-29-same-name-glossary
Open

codeotter0201 wants to merge 1 commit into
mainfrom
fix/issue-29-same-name-glossary

Conversation

@codeotter0201

Copy link
Copy Markdown
Owner

Summary

ResumeWriter.finish refused any Chinese line that named a Glossary entry whose Chinese and English names are the same, such as a brand. The check for English names left in Chinese text also matched the shared name, so Tailored and Master resumes that mention such a company could not be saved.

The English-in-Chinese check now applies only to entries whose two names differ. The other Glossary checks are unchanged:

  • a Chinese name without its English name in the English line is refused;
  • a name that appears in the English line but not in the Chinese line is refused, including a shared name;
  • a different English name written into a Chinese line is refused.

No behavior or data layout changes beyond the fix, so SKILL.md and the READMEs need no update; SKILL.md already says the Chinese and English lines must name a Glossary entry the same way.

Related Issues

Fixes #29

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

All checks ran with fictional data in a scratch HEADHUNTER_DATA_DIR outside the repository.

  • ResumeWriter.finish cases, with the Glossary {Example Labs = Example Labs} and {範例科技 = Example Tech}. 4 of 4 passed:
    • the shared name in both lines is accepted;
    • the shared name only in the English line is still refused;
    • Example Tech written into a Chinese line is still refused;
    • 範例科技 without Example Tech in English is still refused.
  • End to end: a fictional Candidate (Alex Chen) has an experience Fact at Example Labs, and every line, the experience heading included, names Example Labs in both languages. master save wrote 1 Facts cited, 0 left out, 0 gaps, and validate → OK.
  • Regression
  • claude plugin validate . and claude plugin validate .claude-plugin/plugin.json: passed, with the two existing warnings: CLAUDE.md is not loaded as plugin context, and the plugin has no icon.
  • python3 -m py_compile skills/headhunter/scripts/hh.py: OK.

Not run:

  • A Tailored resume end to end through resume save with fictional data. It uses the same ResumeWriter.finish.
  • 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

ResumeWriter.finish refused any Chinese line that named a Glossary entry
whose Chinese and English names are the same, such as a brand, because
the check for English names left in Chinese text also matched the shared
name. Tailored and Master resumes that mention such a company could not
be saved.

The English-in-Chinese check now applies only to entries whose names
differ. A shared name that appears in the English line but not in the
Chinese line is still refused, as are the other Glossary checks.

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 type/bug Something is not working labels Nov 12, 2026
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 type/bug Something is not working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Resume checks refuse Glossary names that are the same in Chinese and English

1 participant