GrepBoard/Manuals
605 manuals ·

Job posting from a hiring memo: split must-haves, ask about gaps

·Tested on Claude Sonnet 5.5 · Python 3.12 · 2026-11·Test scope ↓·7 steps

Get a job posting draft that sorts must-haves and nice-to-haves as the memo does, turns undecided items into questions, and passes a script check.

The memo said the team had not decided whether reading Japanese docs was required. The posting listed it under "Nice to have" anyway. Given one line, "Write a job posting from the memo below," Claude put that item in a list in 1 of 3 runs and added a year to the deadline in 2 of 3. It invented no salary figure or benefit in any run.

[1] The memo is a made-up backend hiring request. One line is undecided, and two lines state preferences that have nothing to do with the job.

memo.en.txt
[Hiring request memo - engineering lead]Position: 1 backend developer (full-time, 3-month probation)The job: build and run the API for our appointment booking service. On-call one week per month.Must have: 3+ years building services in Python, hands-on PostgreSQL query tuningNice to have: Kubernetes operations, payment integrationReading technical docs in Japanese - team hasn't decided if this is requiredEveryone on the team is young, so ideally early 30s at mostThere is a client trip once a quarter, so someone single would be easierLocation: city office, remote 2 days a weekSalary: negotiated after interviews, based on experienceBenefits: lunch allowanceProcess: resume -> coding assignment -> 2 interviewsDeadline: November 30

[2] The first result of the one-line prompt:

output
## Nice to have- Experience operating Kubernetes- Experience with payment integrations- Ability to read technical documentation in Japanese *(see note below)*…Send your resume by **November 30, 2026**.

Counted across the three runs:

What happenedOut of 3
Undecided Japanese item placed in a list1
Year 2026 added to the deadline2
Headcount (1) missing1
On-call described as a "rotation" (not in the memo)3
Age or marital preference in the posting body0
Notes calling the preferences illegal "in many jurisdictions"3

The other two runs kept the Japanese item out of both lists: one gave it a separate "Language" section marked TBD, one left it out. All three dropped the age and marital lines from the body but attached notes about legality, and one added a claim about Japanese law. Do not treat the model's legal notes as a source.

[3] The fixed prompt ties each list to the memo's own words and sends anything undecided to a Questions section. Anthropic's guide to reducing hallucinations lists explicitly allowing Claude to say it doesn't know as its first technique; the Questions section is that permission, applied to a job posting.

text
Write a draft job posting from the hiring memo inside <memo>. Rules:- Split qualifications into two lists, "Requirements" and "Preferred". Put an item under Requirements only if the memo marks it as must/required, and under Preferred only if the memo marks it as nice to have/preferred. If the memo does not decide which, put it in neither list and add it to "Questions" instead.- For salary, benefits, working hours, location, employment type and deadline, write only what the memo states. Do not invent anything the memo leaves out; add it to "Questions". Use only numbers that appear in the memo.- Do not put conditions that may be unrelated to the job, such as age, sex, marital status, appearance or place of origin, in the posting. Copy each such memo sentence word for word into "Memo lines left out". Do not judge whether anything is legal.- Output only these three sections and nothing else. ## Draft posting(subheadings: The role / Requirements / Preferred / Terms / Hiring process / How to apply)## Questions## Memo lines left out <memo>{memo}</memo>

[4] Run it three times:

console
$ { cat fixed.en.head.txt memo.en.txt; echo "</memo>"; } > fixed.en.prompt.txt$ claude -p --model claude-sonnet-5-5 --max-turns 1 --tools "" --setting-sources "" --strict-mcp-config < fixed.en.prompt.txt > fixed.en.out.2.txt
output
### Requirements- 3+ years of experience building services in Python- Hands-on PostgreSQL query tuning experience…## Questions- Is reading technical documents in Japanese required or preferred? The memo says the team has not decided, so it is in neither list.…## Memo lines left out- Everyone on the team is young, so ideally early 30s at most- There is a client trip once a quarter, so someone single would be easier

In all three runs the Japanese item went to Questions, working hours were asked about, and the two left-out lines matched the memo word for word.

[5] The check script. Write the memo's conditions to items.en.tsv as typed regexes; check.py reads only the ## Draft posting section (or the whole output if that section is missing).

items.en.tsv
must	Python 3+ years	Pythonopen	Japanese docs	Japanesecond	deadline Nov 30	November 30…sensitive	marital status	\bsingle\b|married|marital

The extra line lists pay and benefit words such as stock, bonus, insurance, health, PTO and $ amounts.

check.py
#!/usr/bin/env python3# usage: check.py items.tsv memo.txt out.txt   (items.tsv: kind<TAB>label<TAB>regex)import re, sysitems = [l.rstrip("\n").split("\t") for l in open(sys.argv[1], encoding="utf-8") if l.strip() and not l.startswith("#")]memo, out = (open(f, encoding="utf-8").read() for f in sys.argv[2:4])m = re.search(r"^##\s*(공고 초안|Draft posting)\s*$(.*?)(?=^##\s|\Z)", out, re.M | re.S)post = m.group(2) if m else outprint("scope:", "posting section" if m else "whole output (no posting section)")HEAD = re.compile(r"^\s*(?:#{1,6}\s+(.+?)|\*\*([^*]+?)\*\*\s*:?)\s*$")sec, cur = {"must": [], "pref": []}, Nonefor line in post.splitlines():    h = HEAD.match(line)    if h:        name = h.group(1) or h.group(2)        cur = "pref" if re.search(r"우대|Preferred|Nice to have", name, re.I) else \              "must" if re.search(r"필수|자격\s*요건|Requirements|Must", name, re.I) else None    elif cur and line.strip():        sec[cur].append(line.strip())fails = [f"no {k} section" for k in sec if not sec[k]]hit = lambda rx, lines: [l for l in lines if re.search(rx, l, re.I)]for kind, label, rx in items:    inm, inp = hit(rx, sec["must"]), hit(rx, sec["pref"])    if kind == "must" and (not inm or inp): fails.append(f"must item not (only) under Requirements: {label}")    if kind == "pref" and (not inp or inm): fails.append(f"preferred item not (only) under Preferred: {label}")    if kind == "open" and (inm or inp): fails.append(f"undecided item placed in a list: {label} -> {(inm + inp)[0][:50]}")    if kind == "cond" and not re.search(rx, post, re.I): fails.append(f"memo condition missing: {label}")    if kind == "extra":        fails += [f"pay/benefit not in memo: {x}" for x in re.findall(rx, post, re.I) if not re.search(re.escape(x), memo, re.I)]    if kind == "sensitive":        fails += [f"sensitive word ({label}): {l.strip()[:60]}" for l in hit(rx, post.splitlines())]musts = [rx for k, _, rx in items if k == "must"]for l in sec["must"]:    if not any(re.search(rx, l, re.I) for rx in musts): print("WARN Requirements line not in memo's must list:", l[:60])num = lambda s: set(re.findall(r"\d+(?:[.,]\d+)*", s))new = sorted(num(re.sub(r"(?m)^\s*\d+[.)]\s", "", post)) - num(memo))if new: fails.append(f"numbers not in memo: {new}")print("\n".join("FAIL " + f for f in fails) or "OK")sys.exit(1 if fails else 0)

All three fixed-prompt results print OK. The one-line results have no posting section, so the notes around the posting are read as posting too, and their "early 30s" and "single" get flagged. That output cannot be pasted as is.

console
$ python3 -I check.py items.en.tsv memo.en.txt short.en.out.1.txtscope: whole output (no posting section)FAIL undecided item placed in a list: Japanese docs -> - Ability to read technical documentation in JapanFAIL memo condition missing: headcount 1…FAIL numbers not in memo: ['2026']

Six hand-edited copies of fixed.en.out.1.txt (not model output) tested the script; 4 were caught. "Team book club" slipped through because it is not in the extra list, so read the benefits line yourself. Deleting the deadline from Terms also passed, because the date still appeared under How to apply. The number check drops leading list markers (2. Coding assignment) and then only asks whether each number occurs somewhere in the memo, so a copy with "2 interviews" changed to "3 interviews" printed OK because the memo has a 3 elsewhere (3+ years). Stripping the markers changed no result across the 18 outputs.

[6] Where the fixed prompt missed: the first and second runs left the quarterly trip out of the posting and asked about it instead. In the memo, the trip appeared only inside the "someone single" line. With the trip moved to its own memo line (Travel: one client trip per quarter), three more runs all put it in the posting (1 of 3 before). Keep job conditions on their own memo lines.

[7] Check the two left-out lines against official guidance for your jurisdiction. In Korea, for example, the Ministry of Employment and Labor has reported job ads such as "Applicants: ages 20-35" and "young talent" as age-discrimination violations, and Article 4-4 of the age discrimination act bars discriminating by age in recruitment without a reasonable ground. The Equal Employment Opportunity Act (Article 7) bars presenting or requiring physical conditions such as appearance, height or weight that the job does not need, or an unmarried condition (Easylaw summary). Whether a given memo line falls under these, or under an exception, is not judged here. A similar memo-to-document check appears in the handover document post.

#job-posting#claude#prompt#hiring