agentleFS
AkbarDevopAkbarDevop/ai-job-agent/skills/job-setup/SKILL.md

job-setup

Skill60 starsChanged 7 months agoMITView on GitHub

Conversational onboarding for the AI Job Agent. Starts by auto-reading the user's existing files (CLAUDE.md, ~/.brain, Claude Code memory, existing candidate profile, ~/.msmtprc) and scanning for resume PDFs, then offers to search the web for anything else — only asking the user for gaps. Writes all config files and registers the bundled skills. Proactively invoke this skill (do NOT answer conversationally) when the user is setting up the agent for the first time, says "I want to start job hunting", "onboard me", "set this up", "help me get started", "walk me through setup", "read my files to fill this out", asks about their profile/resume/work authorization, says "configure the agent", or invokes /job-setup. Also invoke when the user tries any other job-* skill and the required config files are missing.

  • Installs packages

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

28 rules. About 0 are common, 16 are distinctive, and 12 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈16

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 12

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before asking anything, print a checklist of what's already configured so we don't re-ask.

    line 35
  2. Very specific:

    If everything checks, say *"You're already set up.

    line 49
  3. Very specific:

    If $ARGUMENTS is --reconfigure <section>, jump directly to that section and skip the others.

    line 51
  4. Distinctive:

    Use Glob for patterns:

    line 69
  5. Distinctive:

    Read anything that matches.

    line 76
  6. Distinctive:

    Use Glob on these patterns in order.

    line 93
  7. Distinctive:

    If you found a candidate resume PDF in the previous step, run:

    line 107
  8. Distinctive:

    If it returns text (chars > 200), use the extracted text to *additionally* pre-fill:

    line 113
  9. Very specific:

    If the script returns empty text, skip silently — auto-discovery from ~/CLAUDE.md + ~/.brain/ + memory still produces enough for most users.

    line 122
  10. Very specific:

    Don't fail Step 0.5 if Playwright isn't installed (npx playwright install chromium) — emit a soft "tip: install Playwright Chromium for …

    line 124
  11. Very specific:

    Search all the files you just read for linkedin.com/in/* URLs.

    line 128
  12. Distinctive:

    If the user gave you a LinkedIn URL or you found one, offer — don't auto-run — a WebFetch to pull their current role/headline:

    line 158
  13. Distinctive:

    Ask these in one message (numbered list).

    line 178
  14. Very specific:

    Use AskUserQuestion (this is a locked-choice field and drives the sponsorship flags):

    line 198
  15. Very specific:

    Use AskUserQuestion with an explicit "Prefer not to say" + "Skip" option.

    line 213
  16. Distinctive:

    Ask for the path to the resume PDF.

    line 220
  17. Distinctive:

    If MISSING: loop, tell the user to drag-and-drop into the terminal.

    line 226
  18. Distinctive:

    If they have both a software-focused and an EE-focused resume (as Akbar does — see the repo's README), ask for both paths.

    line 228
  19. Very specific:

    If one exists, show it and ask "use this path?

    line 242
  20. Distinctive:

    Ask: *"Want to set up cold email sending too?

    line 246
  21. Distinctive:

    If no → skip to Step 8.

    line 248
  22. Distinctive:

    Check msmtp is installed:

    line 252
  23. Distinctive:

    If MISSING, print the right install command for the platform and stop until the user confirms they've installed it:

    line 258
  24. Very specific:

    Check ~/.msmtprc exists. If yes, ask "Use existing config?

    line 263
  25. Very specific:

    Write ~/.msmtprc via the Write tool:

    line 282
  26. Very specific:

    If ok: true, say "cold email is live."

    line 310
  27. Very specific:

    Use the Write tool for each.

    line 314
  28. Distinctive:

    If the user is in a non-English-speaking context (Uzbek, Spanish, etc.), ask them in that language for the free-text fields — it tends to …

    line 425

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

Job Setup

The onboarding skill. Replaces bash wizard.sh with an in-chat conversation — same questions, same outputs, but Claude asks them and writes the files directly.

Repo location

$AI_JOB_AGENT_ROOT → ~/.claude/skills/ai-job-agent/ → REPO_PATH marker file → ~/ai-job-agent/. If none of these exists, the user hasn't cloned the repo yet — tell them to paste this into their Claude Code session:

Install ai-job-agent: run git clone --single-branch --depth 1 https://github.com/AkbarDevop/ai-job-agent ~/.claude/skills/ai-job-agent && cd ~/.claude/skills/ai-job-agent && bash skills/install.sh then tell me it's done and run /job-setup.

and rerun /job-setup after the install finishes.

Philosophy — don't ask what you can find

Before asking the user anything, try hard to fill it in from what's already on their machine. Users hate retyping their name into the 200th form; they really hate retyping it into an onboarding wizard when Claude already knows it from memory. Always auto-discover first, then surface a pre-filled confirmation table, then only ask for what's genuinely missing.

State inspection (always first)

Before asking anything, print a checklist of what's already configured so we don't re-ask. Check:

ItemPathExists?
LinkedIn configconfig/linkedin-config.json✅ / ⬜
Candidate profileconfig/candidate-profile.md✅ / ⬜
Answer bankconfig/answer-bank.md✅ / ⬜
Application trackerapplication-tracker.csv✅ / ⬜
Outreach logoutreach-log.csv✅ / ⬜
Resume file(read from linkedin-config.json → resumePath)✅ / ⬜
msmtp installedcommand -v msmtp✅ / ⬜
msmtp config~/.msmtprc (check with test -f)✅ / ⬜
Skills installed~/.claude/skills/job-apply is a symlink to this repo✅ / ⬜

If everything checks, say "You're already set up. Run /job-setup --reconfigure <section> to change one thing, or /job-setup --reconfigure all to redo from scratch." and stop.

If $ARGUMENTS is --reconfigure <section>, jump directly to that section and skip the others.

Otherwise, walk the auto-discovery step first, then only the missing sections.

Steps

Step 0.5 — Auto-discover from the user's files (runs before every other step)

Read these files one by one. Each read is "best-effort" — if it doesn't exist, skip and move on. Don't ask the user for permission; these are all files Claude Code already has access to and that the user effectively opted into by running /job-setup.

Personal config + memory:

  • ~/CLAUDE.md — the user's own CLAUDE.md. Often has their name, school, current role context.
  • ~/.brain/context/akbar.md (or whatever ~/.brain/context/<name>.md exists) — shared-brain user profile.
  • ~/.brain/agents/jobhunt.md — the jobhunt agent file. Stats, tracker paths, historical context.
  • ~/.claude/projects/*/memory/MEMORY.md — Claude Code's auto-memory index.
  • ~/.claude/projects/*/memory/user_profile.md — the user memory itself (often has role, school, project context).

Use Glob for patterns:

~/.claude/projects/**/memory/user_*.md
~/.claude/projects/**/memory/MEMORY.md

Read anything that matches.

Email (from the msmtp config if it exists):

grep -E '^(from|user)' ~/.msmtprc 2>/dev/null

This is the easiest email to find — .msmtprc already has it.

Existing candidate profile (partial migrations):

  • <repo>/config/candidate-profile.md — if present but stale
  • <repo>/config/linkedin-config.json — if present but incomplete

Resume PDFs (scan common paths):

Use Glob on these patterns in order; stop at the first 5 hits:

~/Desktop/**/*[Rr]esume*.pdf
~/Desktop/**/*CV*.pdf
~/Documents/**/*[Rr]esume*.pdf
~/Documents/**/*CV*.pdf
~/Downloads/**/*[Rr]esume*.pdf

For each candidate PDF, capture path + mtime. The most recently modified one is likely the live resume.

Resume content extraction (best-effort):

If you found a candidate resume PDF in the previous step, run:

node "$AI_JOB_AGENT_ROOT/scripts/parse-resume.mjs" "$PDF_PATH"

If it returns text (chars > 200), use the extracted text to additionally pre-fill:

  • Education — look for university names ("University of …", "Mizzou", a known institution), graduation year (most recent "20XX–20YY" near education lines), GPA (the number after "GPA")
  • Major / degree type — "Bachelor of Science in …" / "Master's" / "PhD" patterns
  • Years of experience — count distinct work entries; if all post-graduation, use that as YoE
  • Key projects + skills — pull the bulleted "Projects" section and the "Skills" line; Claude can paraphrase into projectPitch field of linkedin-config.json
  • LinkedIn URL — search for linkedin.com/in/... in the text (if not already known)
  • GitHub URL — search for github.com/...

If the script returns empty text, skip silently — auto-discovery from ~/CLAUDE.md + ~/.brain/ + memory still produces enough for most users.

Don't fail Step 0.5 if Playwright isn't installed (npx playwright install chromium) — emit a soft "tip: install Playwright Chromium for resume auto-extract" and continue.

LinkedIn URL (from whatever source):

Search all the files you just read for linkedin.com/in/* URLs. The first match is almost always the user's own profile.

Build the discovery report:

Render a table of what you found. Every field should be either:

  • a concrete value pulled from the files (show the source file path in dim text)
  • <ask user> if nothing credible found
| Field              | Value found                        | Source                        |
|--------------------|------------------------------------|-------------------------------|
| First name         | Akbarjon                           | ~/CLAUDE.md                   |
| Last name          | Kamoldinov                         | ~/.brain/context/akbar.md     |
| Preferred name     | Akbar                              | memory/user_profile.md        |
| Email              | k.akbarme@gmail.com                | ~/.msmtprc                    |
| Phone              | <ask user>                         | —                             |
| City, State        | Columbia, Missouri                 | inferred from "junior at Mizzou" |
| School             | University of Missouri (Mizzou)    | ~/.brain/context/akbar.md     |
| Major              | Electrical Engineering             | memory/user_profile.md        |
| Expected graduation| <ask user>                         | —                             |
| GPA                | <ask user>                         | —                             |
| Degree type        | Bachelor's                         | inferred                      |
| LinkedIn URL       | linkedin.com/in/akbarjon-kamoldinov | memory/MEMORY.md             |
| Country of origin  | Uzbekistan                         | ~/.brain/context/akbar.md     |
| Resume PDF (best)  | ~/Desktop/Akbar_Resume_2026.pdf    | mtime 2026-04-12              |
| Resume PDF (alt)   | ~/Documents/akbar-resume-EE.pdf    | mtime 2026-03-28              |

Offer one round of web research (optional):

If the user gave you a LinkedIn URL or you found one, offer — don't auto-run — a WebFetch to pull their current role/headline:

Want me to fetch your LinkedIn profile to pick up anything else (headline, current role, recent projects)? (y/n)

On y: WebFetch linkedin.com/in/<handle> and enrich the discovery table. On n: skip.

Similarly, if the user asks or if key fields are still <ask user>, offer a web search:

Want me to search the web for more about you (e.g. your public GitHub, personal site)? I'll only use it to fill this profile. (y/n)

Confirmation gate:

Show the enriched table. Ask:

I've auto-filled what I could from your files. Anything wrong, or fields I should fill in? Either say "looks good" or paste corrections like "phone: 555-123-4567, graduation: May 2027".

Process corrections. Then walk any remaining <ask user> fields through the normal Step 1–6 flow below, skipping anything that's already filled. Do NOT re-ask fields that came back looks good.

Step 1 — The Basics (skip if linkedin-config.json exists)

Ask these in one message (numbered list). Accept "skip" per-field.

  1. First name
  2. Last name
  3. Email
  4. Phone (e.g. (555) 123-4567)
  5. City, State (e.g. Columbia, Missouri)

Validate: email has @, phone has at least 10 digits.

Step 2 — Education

  1. University
  2. Major
  3. Expected graduation (e.g. May 2027)
  4. GPA (e.g. 3.5)
  5. Degree type (use AskUserQuestion with choices: Bachelor's / Master's / PhD / Associate's)

Step 3 — Work Authorization

Use AskUserQuestion (this is a locked-choice field and drives the sponsorship flags):

AnswerauthorizedToWorkrequireCurrentSponsorshiprequireFutureSponsorshipvisaStatus
US CitizenYesNoNoN/A
Permanent Resident (Green Card)YesNoNoPermanent Resident
F-1 Student Visa (CPT/OPT)YesNoYesF-1 student visa
H-1B VisaYesNoYesH-1B
Other visaYesNoYes(ask for the type)
Not authorized to work in USNoYesYesNone

For every answer except "US Citizen", also ask for country of citizenship.

Step 4 — EEO Demographics (optional)

Use AskUserQuestion with an explicit "Prefer not to say" + "Skip" option. Skip → empty string.

  • Gender: Male / Female / Non-binary / Prefer not to say / Skip
  • Race: Asian / Black or African American / Hispanic or Latino / White / Two or more races / Native American / Pacific Islander / Prefer not to say / Skip

Step 5 — Resume

Ask for the path to the resume PDF. Validate with Bash:

test -f "$RESUME_PATH" && echo OK || echo MISSING

If MISSING: loop, tell the user to drag-and-drop into the terminal.

If they have both a software-focused and an EE-focused resume (as Akbar does — see the repo's README), ask for both paths. Write both into the candidate-profile.md under "Resume files".

Step 6 — Chrome cookies

Auto-detect:

# macOS
test -f "$HOME/Library/Application Support/Google/Chrome/Default/Cookies" && echo MAC_DEFAULT

# Linux
test -f "$HOME/.config/google-chrome/Default/Cookies" && echo LINUX_DEFAULT

If one exists, show it and ask "use this path? (y/n)". On n or neither detected, ask for a custom path.

Step 7 — Cold email (optional, for /job-outreach + /job-followup)

Ask: "Want to set up cold email sending too? It uses Gmail + msmtp. You'll need a Gmail App Password (2-Step Verification must be on). (y/n)"

If no → skip to Step 8.

If yes:

  1. Check msmtp is installed:

    command -v msmtp && echo INSTALLED || echo MISSING

    If MISSING, print the right install command for the platform and stop until the user confirms they've installed it:

    • macOS: brew install msmtp
    • Debian/Ubuntu: sudo apt install msmtp msmtp-mta
    • Arch: sudo pacman -S msmtp
  2. Check ~/.msmtprc exists. If yes, ask "Use existing config? (y/n)". If yes, skip to 4.
  3. Walk the Gmail App Password flow:

    Ask for:

    • Gmail address (e.g. you@gmail.com)
    • App password (16 chars)

    Resolve the right tls_trust_file for the platform:

    test -f /etc/ssl/cert.pem && echo "/etc/ssl/cert.pem" \
      || test -f /opt/homebrew/etc/openssl@3/cert.pem && echo "/opt/homebrew/etc/openssl@3/cert.pem" \
      || test -f /etc/ssl/certs/ca-certificates.crt && echo "/etc/ssl/certs/ca-certificates.crt"

    Write ~/.msmtprc via the Write tool:

    defaults
    auth           on
    tls            on
    tls_trust_file {{resolved_path}}
    logfile        ~/.msmtp.log
    
    account        gmail
    host           smtp.gmail.com
    port           587
    from           {{email}}
    user           {{email}}
    password       {{app_password}}
    
    account default : gmail

    Then chmod 600 ~/.msmtprc — msmtp refuses to run otherwise.

  4. Smoke-test with the bundled sender (dry-run only, no real send):

    echo "{\"from\":\"$EMAIL\",\"to\":\"test@example.com\",\"subject\":\"msmtp test\",\"body\":\"hello\"}" \
      | node "$AI_JOB_AGENT_ROOT/scripts/send-cold-email.js" --dry-run

    If ok: true, say "cold email is live."

Step 8 — Generate config files

Use the Write tool for each.

config/linkedin-config.json — use the exact schema from wizard.sh lines 298-342 (don't invent fields, the form fillers expect specific keys). Fill from collected answers. Key fields:

{
  "firstName": "...",
  "lastName": "...",
  "preferredName": "<same as firstName>",
  "email": "...",
  "phone": "...",
  "phoneNational": "<digits only>",
  "phoneCountryLabel": "United States (+1)",
  "location": "...",
  "city": "<first comma-part of location>",
  "state": "<second comma-part of location>",
  "country": "United States",
  "postalCode": "",
  "address": "",
  "currentCompany": "<school>",
  "website": "",
  "linkedin": "",
  "github": "",
  "citizenship": "...",
  "visaStatus": "...",
  "compensation": "",
  "startDate": "",
  "expectedGraduation": "...",
  "school": "...",
  "major": "...",
  "gpa": "...",
  "gpaRange": "",
  "degreeType": "...",
  "degreeCompleted": "No",
  "yearsExperience": "0",
  "authorizedToWork": "Yes|No",
  "requireCurrentSponsorship": "Yes|No",
  "requireFutureSponsorship": "Yes|No",
  "pursuingAdvancedDegree": "No",
  "eeoGender": "...",
  "eeoRace": "...",
  "eeoVeteran": "No",
  "projectPitch": "",
  "resumePath": "<absolute path>",
  "chromeCookiePath": "<absolute path>",
  "name": "<firstName lastName>",
  "autoSubmit": false
}

config/candidate-profile.md — use the structure from wizard.sh lines 347-383 but do not include any invented data. Include real data collected and explicit TODO: add-markers for the free-fill sections.

config/answer-bank.md — if missing, cp config/answer-bank.template.md config/answer-bank.md.

application-tracker.csv — if missing, cp templates/tracker.template.csv application-tracker.csv.

outreach-log.csv — only if msmtp was set up in Step 7. cp templates/outreach-log.template.csv outreach-log.csv.

Step 9 — Install deps + register skills

cd "$AI_JOB_AGENT_ROOT"
command -v npm && npm install --silent 2>/dev/null
command -v pip3 && pip3 install -q browser-cookie3 2>/dev/null || true
bash skills/install.sh

Report which dependencies installed and how many skills got registered.

Step 10 — Summary table

FieldValue
👤 Name...
🏫 School...
🎓 Grad...
🛂 Auth...
📄 Resume...
🍪 Cookies...
✉️ Cold email✅ configured / ⬜ skipped
🧩 Skills registeredN of 9

Step 11 — Chain into /job-coach (the real entry point)

Profile setup alone isn't useful — the user needs a plan and a search loop. End by offering to kick straight into /job-coach intake:

All set. The agent knows who you are now. Next: we run /job-coach intake — a 5-minute interview about what you're looking for (roles, target companies, geography, timeline), I'll research the market in real time, and come back with a ranked list of concrete moves. Go? (y/n)

On y → chain directly into /job-coach intake. On n → print the manual-command list as a fallback and end:

Next (if you'd rather drive yourself):
  /job-coach                       # or just say "help me find a job"
  /job-apply https://…             # or just paste a job URL
  /job-outreach "VP at Acme"       # or just say "email the VP at Acme"
  /job-dashboard                   # or just say "how am I doing"

Reconfigure flow

$ARGUMENTS = --reconfigure basics → only redo Step 1 and regenerate linkedin-config.json + candidate-profile.md with the new values, keeping everything else from the existing files (read the old JSON first, merge).

Sections: basics · education · auth · eeo · resume · cookies · msmtp · all.

Rules

  • Never overwrite candidate-profile.md or linkedin-config.json silently if they exist and we didn't --reconfigure. Ask the user "overwrite the existing config? (y/n)" first.
  • Never commit these files — they're gitignored. Don't run git add on anything in config/ or the root-level trackers.
  • Show the values back to the user before writing — they spot typos faster than I do. One confirmation gate.
  • The candidate's truthful work authorization drives downstream form-filling. Don't coach them into lying.
  • If the user is in a non-English-speaking context (Uzbek, Spanish, etc.), ask them in that language for the free-text fields — it tends to be more accurate.

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.