job-phase-relevance
Skill3 starsChanged 4 months agoMITView on GitHub
JobPilot pipeline phase 5 of 11 — drop off-domain roles, apply the experience gate, and recover missing job descriptions. Invoked by the orchestrator as /job-phase-relevance; not meant to be run directly.
In this repository11 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- jobpilotSkill
- job-feedbackSkill
- job-phase-discoverSkill
- job-phase-intelSkill
- job-phase-salarySkill
- job-phase-scoreSkill
- jobpilot-clearSkill
- job-searchSkill
- job-setupSkill
- job-tailorSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Run fully autonomously. Never ask a question.
- Very specific: line 36
Read ~/.claude/job-hunt-ai/cache/profile.json for experience_years.
- Very specific: line 66
If that yields nothing, WebSearch "<company> <role> careers" and WebFetch the company's careers or ATS page.
- Very specific: line 69
Write recovered text into jd_full and set jd_source: "fetched".
- Distinctive: line 79
Write the full list to the output path and print:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Phase: Relevance and job-description enrichment
Carved verbatim out of /job-search steps B0, B1 and B2. Everything the scoring phase
needs is prepared here, so scoring never has to fetch a page.
Contract
- Input:
filtered.jsonanddiscovered.json(the latter may be absent or[]). - Output:
relevant.json— the merged, relevance-checked, JD-enriched job list. - Run fully autonomously. Never ask a question. Never score anything here.
The orchestrator appends a RUN CONTEXT block with the exact absolute paths for this run.
Step 1 — Merge and preserve apply URLs
Concatenate both inputs, deduplicating on job_id. Then build the URL map, before any
record is rebuilt — a lost apply link makes a job useless no matter how well it scores:
url_map = {job["job_id"]: job.get("application_url", "") for job in jobs}Re-attach it to every record you write out:
job["application_url"] = job.get("application_url") or url_map.get(job["job_id"], "")Step 2 — Experience gate (hard drop, but keep the record)
Read ~/.claude/job-hunt-ai/cache/profile.json for experience_years.
Scan jd_full for explicit requirements — "X+ years", "minimum X years", "X-Y years of
experience", "requires X years" — and extract required_years.
If required_years > profile.experience_years + 2:
- set
experience_gate_drop: true,score: 0,effective_score: 0 - set
why: "Hard drop: role requires <N>yr, profile has <M>yr" - keep the job in the output. It belongs at the bottom of the report, not in the bin — later phases skip it for salary research and tailoring.
Step 3 — Domain relevance
Drop jobs that are clearly not the user's field:
- sales / HR / finance / legal roles when
role_typesis engineering - contract or freelance-only listings when the user wants full-time
- gibberish or empty titles
Keep everything ambiguous. Over-filtering here is invisible and unrecoverable — a job you drop never appears anywhere in the UI. Under-filtering just costs a little scoring time.
Step 4 — Recover missing job descriptions (cap 25)
For jobs where jd_full is empty or under 120 characters:
WebFetchtheapplication_url— LinkedIn and company pages often render the description without a login.- If that yields nothing,
WebSearch"<company> <role> careers"andWebFetchthe company's careers or ATS page.
Write recovered text into jd_full and set jd_source: "fetched". Skip any page taking
more than ~8 seconds. Cap at 25 fetches for the whole phase.
Never scrape LinkedIn with a logged-in session — it risks getting the account banned.
Jobs still without a description keep has_jd: false; the scoring phase handles them with
a lower-confidence formula rather than discarding them.
Step 5 — Write
Write the full list to the output path and print:
"Relevance: Z in → N kept for scoring (M hard-dropped on experience, K descriptions recovered)"
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

