How to Prompt Claude or Gemini for Skills-Based Boolean Strings (Not Degrees and Big Names)
Tell Claude or Gemini to ban degrees, schools, named employers and seniority words, and put titles in an OR group. Two tested prompts and a 4-point check.
- Fairer hiring
- Better hires
- Saves time
Oct 15, 2026 · 5 min read

We asked Claude for a Boolean string for a Data Analyst job that listed a degree and "a leading tech company". Part of what came back:
Schools (optional boost): Technion, Tel Aviv University, Hebrew University, Ben-Gurion University, Bar-Ilan University, Reichman University, Weizmann Institute
Nobody asked for schools. The job description's degree line and the employer line did the asking, and the tool obeyed. To search by skills instead, tell the model what to leave out, not only what to find.
The short answer: tell Claude or Gemini to ban degrees, schools, named employers and seniority words, keep job titles in one OR group with proof-of-work words, and list what each removed credential stood for. Then check the string by hand: in our test the bans worked, but disguises came back.
What a plain prompt puts in
We ran "Write a LinkedIn Boolean search string to find candidates for this job" three times in each tool, and counted degree, field-of-study, school, employer and seniority words inside the code blocks by script.
Total over 3 runs. The script counts plain credential words only, not disguises such as Industrial Engineer or C-level (see the checks).
Source: our test, counted by script over the code blocks
Show the data
| Plain prompt | Rules prompt | |
|---|---|---|
| Claude | 118 | 0 |
| Gemini | 70 | 0 |
Template A: build the string from the job
Swap the job description; keep the rules.
PERSONA
You are a sourcer who finds people by what they can do, not by where they studied or worked.
TASK
Write LinkedIn Boolean search strings for the job below.
CONTEXT
[paste the job description]
RULES
- Build the string from skills and tools (with synonyms) plus words that show the work was actually done (for example "dashboard", "experiment", "forecast").
- Do not use degree names, fields of study, university names, named employers, years of experience or seniority words.
- Use job titles only inside one OR group of at least 8 adjacent titles, including titles from other fields, and never as a required AND.
- Add a section "Credentials I left out" that lists each credential in the job description and the skill evidence that replaces it.
FORMAT
Three strings (broad, balanced, narrow), each in a code block, with one line under each on what it trades off.
The last RULES line is the useful one. It makes the model say what each credential was standing in for, so you can judge the swap.
Template B: fix a string you already have
Below is a Boolean string written from a job description that asked for a degree, 5+ years and big-tech employers. Rewrite it so it finds people by skills instead.
[paste your string]
Rules:
- Remove every degree, field of study, named employer and seniority word. Do not put them back in disguise.
- Keep the real skills and add synonyms and proof-of-work words.
- Titles only in one OR group of at least 8 adjacent titles, never required.
- After the string, list in a table what you removed, and what each removed item was standing in for.
In Claude's rewrite, the table of removed items included rows like this:
| Removed | What it was standing in for | Replaced by |
|---|---|---|
| Google, Meta | Working with large amounts of data in a mature data culture | BigQuery, Snowflake, Redshift, Databricks |
Four checks before you run the string
- Titles. Is a title group joined to the skills with AND? That is a hidden requirement. It happened in 3 of 10 runs: one Claude run (all three strings) and both Gemini rewrites, for example
AND ("Data Analyst" OR "BI Analyst" OR ...). - Disguises. Gemini put "Industrial Engineer" in a title group once, which is the degree again. Claude's narrow string required
"C-level"orexecutives, "which juniors rarely list": seniority back in. - Location. Gemini put
("Tel Aviv" OR Israel) AND SQLin the keywords in 2 of 3 rule runs. Use the location filter instead, as Claude advised in its plain answer. - Profile length. The narrow strings joined 7 groups with AND, and both tools warned that this cuts strong people with short profiles. Start with the broad or balanced string and use narrow only for a first shortlist.
What to search for instead
In our test the tools made these swaps. Check each against your own job.
| The job asks for | Search for |
|---|---|
| A degree in statistics | "hypothesis testing", "statistical significance" |
| A degree in computer science | SQL plus a warehouse name, Python, dbt |
| 5+ years | Nothing to search: years cannot be searched fairly. Require several skills together and judge depth at screening ("owned the experimentation framework") |
| A big-name employer | the tools and metrics used there, such as funnel, cohort, retention |
The fairness side matters beyond the tool: see what a skills-based job description looks like and how Boolean strings break.
This article is general information, not legal advice. Laws differ by country and change often, so consult your lawyer before you rely on it for your situation.


