job-phase-discover
Skill3 starsChanged 4 months agoMITView on GitHub
JobPilot pipeline phase 4 of 11 — find jobs the scrapers missed, via company career pages and targeted web search. Invoked by the orchestrator as /job-phase-discover; not meant to be run directly.
In this repository11 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- jobpilotSkill
- job-feedbackSkill
- job-phase-intelSkill
- job-phase-relevanceSkill
- 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
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
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 18
Run fully autonomously. Never ask a question.
- Distinctive: line 23
Use those paths, not the examples here.
- Distinctive: line 27
Every job you add must match what the scrapers produce, or the downstream phases will drop it:
- Very specific: line 51
Read config/target_companies.json.
- Very specific: line 53
Keep companies matching job_market_focus from preferences (india → india/both, global → global/both, both → all).
- Very specific: line 62
Keep roles whose title matches any of role_types (case-insensitive).
- Distinctive: line 70
Run at most 3 searches, built from preferences:
- Distinctive: line 95
Write the survivors to the output path as a JSON array.
≈ “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: Discover extra jobs
Carved verbatim out of /job-search steps A4 and A5. The scrapers cover the job boards;
this phase covers the roles that only ever appear on a company's own careers page or in
a search result.
Contract
- Input:
filtered.json— the jobs that survived the hard filters. - Output:
discovered.json— only the newly discovered jobs, in the same canonical shape. Write an empty array[]if you find nothing; the next phase merges the two files, so never rewritefiltered.jsonhere. - Run fully autonomously. Never ask a question. Never run a later phase.
- Degrade gracefully: if a fetch or search fails, log it and continue. This phase is
optional — finishing with
[]is a perfectly good outcome.
The orchestrator appends a RUN CONTEXT block with the exact absolute paths for this run. Use those paths, not the examples here.
Canonical job shape
Every job you add must match what the scrapers produce, or the downstream phases will drop it:
{
"job_id": "<sha1 of company|role|location|source_board>",
"company": "", "role": "", "location": "",
"experience_req": "", "jd_full": "", "application_url": "",
"source_board": "direct-<company-slug>" | "websearch",
"posted_date": "", "last_date": "", "has_jd": true
}Compute job_id with the project's own helper so it matches the scrapers exactly:
python3 -c "
import sys; sys.path.insert(0, 'scripts/scrapers')
from _common import make_job_id
print(make_job_id('<company>', '<role>', '<location>', '<source_board>'))"Step 1 — Company career pages
Read config/target_companies.json. If "enabled" is not true, skip to step 2.
- Keep companies matching
job_market_focusfrom preferences (india→ india/both,global→ global/both,both→ all). - Skip any company whose entry has both
atsandtokenset — those are covered natively and for free byscripts/scrapers/ats_boards.py(part of thescrapephase), with no 5-role cap and no LLM cost. WebFetching their careers page here would just duplicate that work at a higher cost. Log[careers] <Company>: skipped — covered by ats_boards (<ats>). WebFetcheach remainingcareers_urland extract roles visible without JavaScript — title, location, apply URL. A blank body means an SPA-only page: log it and move on.- Keep roles whose title matches any of
role_types(case-insensitive). - Set
source_board = "direct-<company_slug>"andhas_jd: falsewhen there's no description text. - Cap 5 roles per company.
- Log
[careers] <Company>: N roles addedorskipped — SPA-only / 0 matches.
Step 2 — Targeted web search
Run at most 3 searches, built from preferences:
"<role_types[0]> fresher <current year> <location_priority[0]>" (site:boards.greenhouse.io OR site:jobs.lever.co OR site:jobs.ashbyhq.com)
"<preferred_stack[0]> <role_types[0]> hiring <location_priority[0]>"
"<role_types[1]> new grad remote india apply"For each credible posting, build the canonical dict with source_board: "websearch" and
application_url set to the posting page. Cap 10 jobs total across all searches.
Log [websearch] N jobs added.
Step 3 — Deduplicate, then write
Drop any job whose job_id already appears in filtered.json, and any already recorded
as seen:
python3 -c "
import sqlite3, os
db = os.path.expanduser(os.environ.get('JOBPILOT_DIR','~/.claude/job-hunt-ai')) + '/cache/jobs.sqlite'
print([r[0] for r in sqlite3.connect(db).execute(\"SELECT job_id FROM jobs_seen WHERE status='active'\")])"Write the survivors to the output path as a JSON array.
Finish with one line: "Discovery: N from career pages, M from search → K new jobs".
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.

