agentleFS
ashlesh-tashlesh-t/jobpilot/skills/job-phase-discover/SKILL.md

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.

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
  1. Distinctive:

    Run fully autonomously. Never ask a question.

    line 18
  2. Distinctive:

    Use those paths, not the examples here.

    line 23
  3. Distinctive:

    Every job you add must match what the scrapers produce, or the downstream phases will drop it:

    line 27
  4. Very specific:

    Read config/target_companies.json.

    line 51
  5. Very specific:

    Keep companies matching job_market_focus from preferences (india → india/both, global → global/both, both → all).

    line 53
  6. Very specific:

    Keep roles whose title matches any of role_types (case-insensitive).

    line 62
  7. Distinctive:

    Run at most 3 searches, built from preferences:

    line 70
  8. Distinctive:

    Write the survivors to the output path as a JSON array.

    line 95

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 rewrite filtered.json here.
  • 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.

  1. Keep companies matching job_market_focus from preferences (india → india/both, global → global/both, both → all).
  2. Skip any company whose entry has both ats and token set — those are covered natively and for free by scripts/scrapers/ats_boards.py (part of the scrape phase), 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>).
  3. WebFetch each remaining careers_url and extract roles visible without JavaScript — title, location, apply URL. A blank body means an SPA-only page: log it and move on.
  4. Keep roles whose title matches any of role_types (case-insensitive).
  5. Set source_board = "direct-<company_slug>" and has_jd: false when there's no description text.
  6. Cap 5 roles per company.
  7. Log [careers] <Company>: N roles added or skipped — 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".

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.