Files
ai-job-search/.claude/skills/job-scraper/search-queries.md
T
Thomas Christian VangandClaude Sonnet 5.5 7432228340 fix(scrape): send one plain term per CLI call and make portals state their query syntax (#536) (#653)
* fix(scrape): send one plain term per CLI call and make portals state their query syntax (#536)

search-queries.md is written in Google syntax, and Step 1b said to
translate its terms into portal flags without saying that OR and quotes
do not survive the translation.

- job-scraper Step 1b: one plain term per CLI call, never OR or a
  combined string; results merge across calls (Step 2 dedups on URL).
  Quoting follows the portal's own SKILL.md.
- Portal SKILL.md files carry a one-line "Query syntax:" note;
  /add-portal asks the generator to write it for new portals.
- search-queries.md: site: blocks are labelled WebSearch-only and each
  priority gains a plain-terms block for the CLIs.
- tests/test_scrape_contract.py: every installed portal SKILL.md must
  carry the Query syntax line; the portal list is derived from the
  skills tree.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(scrape): fall back to site: terms for placeholder blocks; update freehire query syntax

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore: drop the CHANGELOG hunk, frozen by #800 (release notes come from the PR title)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(scrape): dedup the pool by URL before Step 2 and give each portal's literal quote form

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(add-portal): compare the portal's reported total, not capped rows, when probing query syntax

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 20:51:36 +01:00

6.0 KiB

Search Queries for Job Scraper

Installed portal CLIs (primary for /scrape)

/scrape discovers every portal skill under .agents/skills/*/SKILL.md and runs its CLI first. Shipped country-agnostic CLIs include linkedin-search and freehire-search; Danish demos and any skill you add with /add-portal are included the same way. You do not need a matching site: line below for those CLIs to run.

The site: query templates in this file are the WebSearch fallback — for portals without a CLI, company career pages, or when a CLI fails.

Language scope: write every query category in every language listed in your CLAUDE.md Languages table (typically 1-2, sometimes more). A posting requiring a language you have not declared, as a job condition, is excluded before scoring; a posting requiring a higher level than you declared in a language you do work in is flagged for your own judgment, not excluded — see 04-job-evaluation.md's Language Gate, the single source of truth for this rule. Translate each category's keywords rather than machine-translating word-for-word (e.g. "Frontend Developer" -> "Desarrollador Frontend", not a literal word-for-word translation) if you work in more than one language.

Search Sites

Primary (your market's job boards - scaffold one with /add-portal):

  • [YOUR_JOB_BOARD] - your market's largest general job board
  • linkedin.com/jobs - LinkedIn job listings (filter: [YOUR_COUNTRY] / [YOUR_CITY]); also covered by linkedin-search CLI
  • [YOUR_INDUSTRY_JOB_BOARD] - a niche/industry board for your field (optional)
  • [YOUR_ADDITIONAL_JOB_BOARD] - another major board for your market (optional)

Secondary (company career pages via Google):

  • Direct Google searches with site: filters for known target companies

Query Categories

Queries are grouped by priority. Write each category in every language from your Languages table (see Language scope above). Combine each query with your location terms (e.g. your city, region, or metro area) where the site supports it.

Each priority has two kinds of block. Plain terms blocks are what the portal CLIs consume: one term per line, one CLI call per term, no OR, no site: prefix, and no location (the CLI's location flag, or the city in --query where that portal's SKILL.md says so, carries it). Quote a multi-word phrase only if the portal's Query syntax: line says quoting is honoured. WebSearch-only blocks are Google syntax (site:, quotes, OR) for the fallback path and are never passed to a CLI.

Organize by function, not job title. The same underlying work carries different titles across companies and markets (a "Data Scientist" role at one employer may be posted as "Insights Analyst" or "Data Consultant" at another). Name each priority category after the function it covers, and list several plausible job titles as query variants within that category rather than betting an entire priority tier on one exact title string.

Priority 1: [YOUR_PRIMARY_ROLE_TYPE]

These match your strongest and most desired career direction.

Plain terms (portal CLIs)

[YOUR_PRIMARY_JOB_TITLE_1]
[YOUR_PRIMARY_JOB_TITLE_2]
[YOUR_KEY_SKILL]

WebSearch-only (site: fallback)

site:[YOUR_JOB_BOARD] "[YOUR_PRIMARY_JOB_TITLE_1]" [YOUR_CITY]
site:[YOUR_JOB_BOARD] "[YOUR_PRIMARY_JOB_TITLE_2]" [YOUR_CITY]
site:[YOUR_JOB_BOARD] "[YOUR_KEY_SKILL]" [YOUR_CITY]
site:linkedin.com/jobs "[YOUR_PRIMARY_JOB_TITLE_1]" [YOUR_COUNTRY]

Priority 2: [YOUR_DOMAIN_EXPERTISE]

These match your domain expertise.

Plain terms (portal CLIs)

[YOUR_DOMAIN_KEYWORD_1]
[YOUR_DOMAIN_KEYWORD_2]

WebSearch-only (site: fallback)

site:[YOUR_JOB_BOARD] [YOUR_DOMAIN_KEYWORD_1] [YOUR_CITY] OR [YOUR_REGION]
site:[YOUR_JOB_BOARD] [YOUR_DOMAIN_KEYWORD_2] [YOUR_COUNTRY]
site:linkedin.com/jobs [YOUR_DOMAIN_KEYWORD_1] [YOUR_CITY] [YOUR_COUNTRY]

Priority 3: [YOUR_ADJACENT_ROLE_TYPE]

Adjacent roles you could pivot into.

Plain terms (portal CLIs)

[YOUR_ADJACENT_TITLE_1]
[YOUR_ADJACENT_TITLE_2]

WebSearch-only (site: fallback)

site:[YOUR_JOB_BOARD] "[YOUR_ADJACENT_TITLE_1]" [YOUR_KEY_SKILL] [YOUR_CITY]
site:[YOUR_JOB_BOARD] "[YOUR_ADJACENT_TITLE_2]" [YOUR_KEY_SKILL] [YOUR_CITY]

Priority 4: Broader Technical / Consulting

Wider net for general technical roles.

Plain terms (portal CLIs)

[YOUR_KEY_SKILL] developer
technical consultant

WebSearch-only (site: fallback)

site:[YOUR_JOB_BOARD] [YOUR_KEY_SKILL] developer [YOUR_CITY]
site:linkedin.com/jobs "[YOUR_KEY_SKILL] developer" [YOUR_CITY]
site:[YOUR_JOB_BOARD] "technical consultant" [YOUR_DOMAIN] [YOUR_CITY]

Location Filter

When evaluating results, verify the job location is within reasonable commute distance from your home. Define acceptable areas:

  • [YOUR_CITY] and surrounding areas
  • [ACCEPTABLE_AREA_1]
  • [ACCEPTABLE_AREA_2]
  • [BORDERLINE_AREA] (borderline - ~X min by transit)
  • [TOO_FAR_AREA] (too far)

Language Filter

Your working languages and levels are in CLAUDE.md's Languages table. When filtering scraped results, apply 04-job-evaluation.md's Language Gate: a posting requiring a language you haven't declared at all is excluded; a posting requiring a higher level than you declared in a language you do work in is not excluded, flag it clearly instead (see job-scraper/SKILL.md's Step 3 "Quick Fit Assessment" for how the flag surfaces in /scrape output). Postings simply written in a language you don't work in, that don't require it on the job, are fine.

Date Filter

Only include jobs posted within the last 14 days, or with an application deadline that has not yet passed. If a posting date cannot be determined, include it but flag as "date unknown".

Adapting Queries

If the user specifies a focus area, select queries from the matching category and also generate 2-3 custom queries for that focus. For example:

  • "/scrape [focus_area]" -> relevant category queries + custom focus-specific queries