apify-collect
Skill110 starsChanged 5 months agoMITView on GitHub
Collect fresh job-posting URLs into ~/.dear-hiring-manager/urls.txt by running an Apify job scraper — the discovery source for /batch. Runs a configured Apify actor via the Apify API (Bearer-header auth) with a search built from the profile's desired titles + level + location, extracts the direct application URL per job, and de-dupes against already-submitted jobs. Use for /apify-collect.
- Reads credentials
- Sends data out
In this repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- applySkill
- batchSkill
- boardSkill
- cover-letterSkill
- humanizeSkill
- onboardingSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 49
Prefer direct ATS URLs (Greenhouse / Lever / Ashby / Workday).
- Very specific: line 63
Prefer the direct application URL.
≈ “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
Apify collect
Gather fresh job URLs into ~/.dear-hiring-manager/urls.txt (the single input to /dear-hiring-manager:batch)
by running an Apify job scraper — purpose-built, far fresher and more complete than web search.
Config
APIFY_TOKEN— your Apify API token. Read from~/.dear-hiring-manager/.env(APIFY_TOKEN=...) or theAPIFY_TOKENenv var. Never put it in the repo, in a URL, in command output, or in any log (.envis gitignored).APIFY_ACTOR— the Apify job-scraper actor to run (a LinkedIn / Indeed / ATS-board actor of your choice). Set it in the same.env, or ask the user which actor to use.APIFY_INPUT(optional) — a JSON template for that actor's input, using its own field names (actor input schemas differ — there is no universalsearch/locationcontract). Put it in~/.dear-hiring-manager/apify.json(or point to a file). If it's absent, fetch the actor's input schema first (GET https://api.apify.com/v2/acts/$APIFY_ACTORwith the Bearer header) and build the input from the schema + the profile targets, then confirm with the user before running.
Procedure
- Load the token without echoing it, e.g.
APIFY_TOKEN=$(grep -m1 '^APIFY_TOKEN=' ~/.dear-hiring-manager/.env | cut -d= -f2-)(fall back to the env var); same forAPIFY_ACTOR. If the token is missing, stop and tell the user to put it in~/.dear-hiring-manager/.env. Never print the token or a command with it expanded. - Build the search from the profile:
Desired job title(s)+Target experience level+ preferred locations / remote. Only ask the user if those profile fields are blank. - Build the actor input from
APIFY_INPUT(the actor's own field names) or, if unset, from the fetched input schema + profile targets (step above). Run the actor synchronously with header auth, never the URL:
Nocurl -sS -X POST \ -H "Authorization: Bearer $APIFY_TOKEN" \ -H "Content-Type: application/json" \ -d "$APIFY_INPUT" \ "https://api.apify.com/v2/acts/$APIFY_ACTOR/run-sync-get-dataset-items"?token=in the URL; do not echo the token or the expanded command. - Extract the application URL per returned item. Do NOT assume a field name — actor outputs
differ. Scan each item for URL-valued fields and pick the direct company/ATS apply link (a field
like
applyUrl/externalApplyUrl/companyApplyUrl, or any Greenhouse/Lever/Ashby/Workday URL), preferring it over the aggregatorjobUrl(linkedin.com / indeed.com). Skip items with only an Easy-Apply / no external URL. If no item yields a usable URL, tell the user the actor's output shape doesn't expose one.
Write urls.txt
- Prefer direct ATS URLs (Greenhouse / Lever / Ashby / Workday); note when only an aggregator URL exists.
- De-dupe within this batch, and skip jobs already applied or done — a URL in
applications.mdwhose status issubmitted,rejected,interview,offer, orfilled. (filled= form filled and parked awaiting the user's Submit — a success, not a failure; re-queuing it would duplicate the application and add a second tracker row.) Onlyblockedandin-progressre-queue — a CAPTCHA / login block or a crashed run deserves a retry.skippedstays out unless the user lowers the fit threshold; re-queuing afilledjob requires an explicit retry request from the user. - Append to
~/.dear-hiring-manager/urls.txtin the template format (a# Company — Rolecomment above each URL). Show the user the list + count; append or replace on their confirmation, never clobber silently. - Tell them to run
/dear-hiring-manager:batch.
Rules
- Public postings only. The Apify token lives in
.env/ env — never in the repo, a URL, output, or a log. - Authenticate with the
Authorization: Bearerheader, not a?token=query param. - Prefer the direct application URL; an aggregator page (LinkedIn / Indeed) is a weak fallback that
applyhandles less well. - Human-readable
urls.txt;/batchneeds nothing but that file.
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.

