CA

cypggs/ai-job-search-cn

Developer tools
63 stars 品質 40 トレンド 40

Chinese-market job application assistant, forked and localized from MadsLorentzen/ai-job-search

概要

An AI-powered job application framework built on Claude Code. Fork it, fill in your profile, and let Claude evaluate job postings, tailor your CV, write cover letters, and prepare you for interviews. This fork is adapted for the (中国求职市场). It adds Chinese CV/cover-letter LaTeX templates, Chinese-market profile fields (求职意向、期望薪资、到岗时间、工作年限、政治面貌等), and WebSearch-based scraping for Chinese portals (BOSS 直聘、拉勾、猎聘、智联招聘、前程无忧). Note: This is an independent open-source project and is not affiliated with, endorsed by, sponsored by, or maintained by Anthropic. Anthropic and Claude Code are referenced only to describe the toolchain this workflow uses. A structured workflow that turns Claude Code into a full-stack job application assistant. This fork targets the while keeping the drafter-reviewer application pipeline intact. For China-market roles, the framework generates (cv/chinese/main.tex, cover_letters/chinese/cover.tex) using ctex and moderncv.

README

AI Job Search — 中国求职版

An AI-powered job application framework built on Claude Code. Fork it, fill in your profile, and let Claude evaluate job postings, tailor your CV, write cover letters, and prepare you for interviews.

This fork is adapted for the Chinese job market (中国求职市场). It adds Chinese CV/cover-letter LaTeX templates, Chinese-market profile fields (求职意向、期望薪资、到岗时间、工作年限、政治面貌等), and WebSearch-based scraping for Chinese portals (BOSS 直聘、拉勾、猎聘、智联招聘、前程无忧).

Note: This is an independent open-source project and is not affiliated with, endorsed by, sponsored by, or maintained by Anthropic. Anthropic and Claude Code are referenced only to describe the toolchain this workflow uses.

What this is

A structured workflow that turns Claude Code into a full-stack job application assistant. This fork targets the Chinese job market while keeping the drafter-reviewer application pipeline intact.

For China-market roles, the framework generates Chinese CVs and cover letters (cv/chinese/main.tex, cover_letters/chinese/cover.tex) using ctex and moderncv. For international or English-speaking roles, the original English templates remain available.

The default job search relies on WebSearch for Chinese portals because BOSS 直聘、拉勾、猎聘 etc. aggressively block automated access. You can paste a job URL or description directly into /apply to bypass scraping limitations.

/setup          /scrape              /apply 
  |                |                     |
  v                v                     v
Fill in        Search job           Evaluate fit
your profile   portals              Score & recommend
  |                |                     |
  v                v                     v
Profile        Present matches      Draft CV + Cover Letter
files ready    with fit ratings     (LaTeX, tailored)
                   |                     |
                   v                     v
               Pick a match         Reviewer agent critiques
               -> /apply            -> Revise -> Final output

The framework encodes career guidance best practices, including structured evaluation criteria, forward-looking cover letter framing, and optional salary benchmarking.

Prerequisites

  • Claude Code (CLI)
  • Python 3.10+
  • Bun (for Danish job search CLI tools)
  • LaTeX distribution with lualatex and xelatex: TeX Live or MiKTeX. The CV compiles with lualatex (pdflatex often fails on modern MiKTeX installs with fontawesome5 font-expansion errors); the cover letter compiles with xelatex because cover.cls requires fontspec.
  • Chinese fonts for the Chinese CV/cover letter templates. The templates use the ctex package, which auto-detects system fonts. If compilation fails:
    • macOS: MacTeX includes 苹方/华文 fonts by default.
    • Windows: MiKTeX/TeX Live will use SimHei/SimSun.
    • Linux: install fonts-noto-cjk (Noto Sans CJK SC) or specify another available CJK font in the template.
  • Optional: pdftotext from poppler (macOS: brew install poppler, Debian/Ubuntu: apt install poppler-utils, Windows: choco install poppler) — used by /apply’s ATS parseability check on the compiled CV. If missing, the check degrades gracefully to a visual keyword review.

Quick start

1. Fork and clone

gh repo fork cypggs/ai-job-search --clone
# or fork from the upstream MadsLorentzen/ai-job-search and merge Chinese changes manually
cd ai-job-search

2. Install job search tools (optional)

For Chinese portals, /scrape uses WebSearch by default because most Chinese boards block automated scraping. If you want to experiment with portal-specific CLI tools, you can scaffold them with /add-portal.

The original Danish portal CLIs and linkedin-search are still in .agents/skills/ if you want to install them:

cd .agents/skills/linkedin-search/cli && bun install && cd ../../../..

For linkedin-search the install is optional: it has zero runtime dependencies and runs with plain bun; bun install only pulls TypeScript dev types.

3. Set up your profile

claude
# Then inside Claude Code:
/setup

/setup offers three paths: read your documents/ folder if you have one populated (CV PDF, LinkedIn export, diplomas, reference letters, past applications), import a single CV pasted in chat, or walk through an interview. It auto-detects what you have and asks. Documents-folder mode is idempotent and safe to re-run as you add more material; see documents/README.md for the layout.

4. Search for jobs

/scrape

This runs WebSearch queries for Chinese job portals and presents matches sorted by fit. Because BOSS 直聘、拉勾 etc. block scrapers, results may be limited to titles/snippet. Pick a match to run /apply directly — or, when a scrape returns more jobs than you want to eyeball, run /rank to batch-score them first.

You can also paste a job description directly:

/apply [paste the full job description here]

5. Apply to a job

/apply https://www.zhipin.com/job/xxxxxxxx.html

If the URL can’t be fetched (common with Chinese portals), paste the job description directly:

/apply [paste the full job description here]

For China-market postings, /apply automatically generates Chinese CV and cover letter PDFs. For international postings, it uses the original English templates.

This runs the full workflow: evaluate fit, draft CV + cover letter, review with a second agent, revise, and present the final output.

Other commands

/setup, /scrape, and /apply form the core workflow. Six more commands extend it once your profile is in place:

  • /outcome records what happened to an application - interview stages, offers, rejections, silence. It archives the submitted CV, cover letter, and posting text into documents/applications/_/, keeps outcome.md in the format /setup Path A parses, and updates the tracker. Once a few applications resolve, it points you back to /setup to calibrate the fit framework from what actually got interviews.
  • /rank bridges /scrape and /apply: it batch-scores all newly scraped postings against the fit framework (parallel agents fetch each posting and score the five evaluation dimensions) and returns a ranked shortlist with honest per-job strengths and gaps. Deal-breakers veto, deadlines get urgency flags, dead postings get marked expired. Pick a number and it hands off to the full /apply workflow.
  • /expand enriches your profile by scanning public sources you’ve already linked in it (GitHub repos, portfolio site, Kaggle, Google Scholar) and looking up syllabi for named courses and certifications. Discovered competencies are added to your profile with a source tag. Useful right after /setup to surface skills that documents alone don’t make explicit.
  • /upskill analyzes the gap between your profile and your tracked job postings (or a single posting via /upskill ). Produces a prioritized heatmap of skill gaps and a learning plan with web-searched study resources and time estimates. Useful for career planning between applications.
  • /add-template registers your own LaTeX CV or cover letter template in place of the stock ones. It captures the template’s instructions (compile engine, fonts, style rules, page limit), runs a mandatory test compile, and wires the template into /apply. See LaTeX templates below.
  • /add-portal generates a job-portal search skill for a job board in your market. It investigates the portal (search URL pattern, result structure, access rules), scaffolds the CLI skill from the same structure as the shipped ones, and test-runs a live query before registering. See Job search tools below.

/reset is also available, see Starting over below.

File structure

ai-job-search/
├── CLAUDE.md                          # Main candidate profile + workflow rules
├── .claude/
│   ├── commands/
│   │   ├── apply.md                   # /apply workflow (drafter-reviewer)
│   │   ├── setup.md                   # /setup onboarding (documents folder, CV import, or interview)
│   │   ├── expand.md                  # /expand competency enrichment from documents and online presence
│   │   ├── add-template.md            # /add-template register custom LaTeX templates
│   │   ├── add-portal.md              # /add-portal generate a job-portal search skill for your market
│   │   ├── rank.md                    # /rank triage scraped jobs into a ranked shortlist
│   │   ├── outcome.md                 # /outcome record application results, archive materials
│   │   └── reset.md                   # /reset wipe profile data or documents folder
│   ├── skills/
│   │   ├── job-application-assistant/  # Core application skill
│   │   │   ├── SKILL.md               # Skill definition
│   │   │   ├── 01-candidate-profile.md # Your education, experience, skills
│   │   │   ├── 02-behavioral-profile.md# PI/DISC/personality assessment
│   │   │   ├── 03-writing-style.md    # Tone, structure, do's and don'ts
│   │   │   ├── 04-job-evaluation.md   # Scoring framework for job fit
│   │   │   ├── 05-cv-templates.md     # LaTeX CV structure + tailoring rules
│   │   │   ├── 06-cover-letter-templates.md # LaTeX cover letter templates
│   │   │   └── 07-interview-prep.md   # STAR examples + interview framework
│   │   ├── job-scraper/               # Job search orchestration
│   │   └── upskill/                   # /upskill skill gap analysis and learning plan
│   └── settings.json                  # Claude Code permissions (shared, scoped)
├── .agents/skills/                    # Job portal CLI tools
│   ├── jobbank-search/                # Akademikernes Jobbank (Denmark)
│   ├── jobdanmark-search/             # Jobdanmark.dk (Denmark)
│   ├── jobindex-search/               # Jobindex.dk (Denmark)
│   ├── jobnet-search/                 # Jobnet.dk (Denmark, government portal)
│   └── linkedin-search/               # LinkedIn public job listings (country-agnostic)
├── cv/
│   ├── main_example.tex               # moderncv LaTeX template (English/international)
│   └── chinese/
│       └── main.tex                   # 中文简历模板 (ctex + moderncv)
├── cover_letters/
│   ├── cover.cls                      # Custom cover letter LaTeX class (English)
│   ├── OpenFonts/                     # Lato + Raleway fonts
│   └── chinese/
│       └── cover.tex                  # 中文求职信模板 (ctexart)
├── templates/                         # Custom templates registered via /add-template
│   └── README.md                      # Folder layout instructions
├── documents/                         # Career source materials for /setup Path A and /expand
│   ├── README.md                      # Folder layout instructions
│   ├── cv/                            # Master CV (PDF or .tex)
│   ├── linkedin/                      # LinkedIn profile export (PDF)
│   ├── diplomas/                      # Degree certificates and transcripts
│   ├── references/                    # Reference letters
│   └── applications/                  # Past application records (_/)
├── salary_lookup.py                   # Salary benchmarking tool (BYO data)
├── tools/
│   ├── convert_salary_excel.py        # Convert salary Excel to JSON
│   └── README_SALARY_TOOL.md          # Salary tool setup instructions
├── job_scraper/                       # Scraper state (seen jobs, results)
├── upskill/                           # /upskill report output (markdown reports per run)
├── job_search_tracker.csv             # Application tracking spreadsheet
└── SETUP.md                           # Detailed setup guide

How /apply works

The /apply command runs a drafter-reviewer workflow with mandatory PDF compilation:

  1. Parse the job posting (URL or text)
  2. Evaluate fit against your profile (skills, experience, culture, location, career alignment)
  3. Draft a tailored CV and cover letter in LaTeX
  4. Spawn a reviewer agent that researches the company and critiques the drafts
  5. Revise based on the reviewer’s feedback
  6. Compile and inspect both PDFs: lualatex for the CV, xelatex for the cover letter. Claude reads the rendered pages and iterates on the LaTeX until the CV is exactly 2 pages with no orphaned entry titles, and the cover letter is exactly 1 page with the signature visible and fonts consistent.
  7. ATS-check the CV: extract the PDF’s text layer (pdftotext, optional dependency) and verify it the way an ATS parser sees it — contact details present as literal text, no garbled glyphs, sane reading order — then score the posting’s keyword coverage against the extraction. Keywords the profile genuinely supports get added; genuine gaps stay visible, never stuffed.
  8. Present the final output with a verification checklist

All claims in the CV and cover letter are verified against your actual profile. The system never fabricates skills or experience.

What makes this workflow different

  • PDF verification loop. Most LaTeX-resume templates produce “looks fine in the .tex” output that breaks in the PDF: job titles orphan to the next page, cover letters spill onto page 2, bullet fonts silently fall back to the body font. The /apply command compiles and visually inspects every PDF and applies targeted fixes (\needspace, \enlargethispage, font-matching wrappers for list items) until the layout is clean. This runs automatically on every application.
  • ATS verification on the PDF text layer. An ATS reads the PDF’s embedded text, not the rendered page — and LaTeX can silently produce PDFs whose text extracts as garbage (icon glyphs where the email should be, interleaved lines from multi-column layouts). /apply extracts the compiled CV’s text layer with pdftotext and verifies contact details, reading order, and the posting’s keyword coverage against what a parser actually sees. Honesty rule enforced: a keyword the profile doesn’t support is acknowledged as a gap, never stuffed in.
  • Relevance-weighted CV cutting. When a CV overflows 2 pages, the workflow does not cut mechanically from the “oldest” section. It scores each candidate line by (a) relevance to the target posting, (b) uniqueness in the document, and © whether the cover letter depends on it, and cuts the lowest-total-score line first. An older-role bullet that hits posting keywords survives ahead of a recent-role bullet that does not.
  • Drafter-reviewer separation. The drafter writes; a second Claude agent, spawned with a fresh context, researches the company and critiques the drafts. The drafter then revises. This catches missed keywords, weak framing, and generic language that a single pass often leaves in.
  • Token-efficient reviewer dispatch. The reviewer agent receives drafts inline rather than re-reading them, and the verification checklist runs once at the end of the workflow rather than being duplicated by both agents. Note: the new compile-and-inspect step in Step 5 spends some of those savings on PDF rendering and layout iteration — the workflow trades some end-to-end token cost for a real reduction in broken PDFs reaching the user.

Customization

Which files to edit manually

If you prefer editing files directly instead of using /setup:

File What to change
CLAUDE.md Your full profile (name, education, experience, skills, goals)
01-candidate-profile.md Structured version of your CV data
02-behavioral-profile.md Your behavioral assessment or self-assessment
04-job-evaluation.md Skill match areas, career goals, motivation filters
05-cv-templates.md Profile statement templates for different role types
07-interview-prep.md Your STAR examples from actual experience
search-queries.md Job search queries for your skills and location

Updating your search queries

As your priorities evolve, you can reconfigure just the job search without re-running the full profile setup:

/setup --section search

This re-runs the search configuration interview: which roles to target, which skills to search for, which locations, and which portals. It also suggests role types you may not have considered based on your profile.

LaTeX templates

The default CV uses moderncv (banking style). The default cover letter uses a custom cover.cls with Lato/Raleway fonts.

For Chinese applications, use the templates in cv/chinese/main.tex and cover_letters/chinese/cover.tex. They rely on the ctex package and compile with lualatex or xelatex:

cd cv/chinese && lualatex -interaction=nonstopmode main.tex
cd ../../cover_letters/chinese && xelatex -interaction=nonstopmode cover.tex

If ctex cannot find a Chinese font on your system, specify a fontset in the document class or set \setCJKmainfont to an installed CJK font (see comments in the templates).

To use your own template instead, run:

/add-template

Point it at your .tex file (plus any .cls/.sty files or bundled fonts). The command interviews you for the template’s instructions — compile engine, fonts and where they live, style rules to preserve, hard page limit — stores everything under templates/, runs a mandatory test compile, and activates the template so /apply drafts from it. Templates are stored with [PLACEHOLDER] tokens instead of personal data, so they’re safe to commit and share.

  • /add-template --list shows registered templates
  • /add-template --use switches between them
  • /add-template --use default reverts to the stock moderncv / cover.cls templates

If you prefer doing it by hand, the manual route still works: update the guidance in 05-cv-templates.md and 06-cover-letter-templates.md.

Job search tools

For the Chinese market, /scrape primarily uses WebSearch against BOSS 直聘、拉勾、猎聘、智联招聘、前程无忧 because these portals restrict automated access. You can paste a job URL or full description directly into /apply to bypass scraping limits.

If you want to build a portal-specific CLI for a site that allows it, run:

/add-portal

Give it your local job board’s URL. The command investigates the portal (search-URL pattern, result-page structure, robots.txt/access rules), scaffolds a CLI skill with the same structure, commands, and output contract as the shipped ones, and test-runs a live query before registering anything. Auth-walled portals are declined, and portals with restrictive terms get a prominent personal-use-only warning in the generated skill. The generated skill is market-specific and lives in your fork; the generator itself is the universal part.

For a country-agnostic starting point, the repo also includes linkedin-search — a job-search skill built on LinkedIn’s public, unauthenticated jobs-guest endpoints. It is field-agnostic, has zero runtime dependencies (runs with just bun), and takes the search location as an explicit flag, so it works for any market out of the box (-l "Berlin, Germany", -l "Mumbai, Maharashtra, India", -l "Remote", …). It is intended for personal use only — automated access is against LinkedIn’s Terms of Service, so keep volume low. See .agents/skills/linkedin-search/SKILL.md.

Salary benchmarking

The salary tool works with any salary data you provide (union statistics, Glassdoor exports, personal research, etc.). See tools/README_SALARY_TOOL.md for the expected format and setup. If you don’t have salary data, the salary step is simply skipped.

Starting over

To wipe your profile data and start fresh:

/reset profile    # clears skill files, preserves framework rules
/reset documents  # deletes files from documents/ folder
/reset all        # both

/reset shows exactly what will be deleted and requires you to type RESET to confirm. Nothing is deleted until you do.

Tips for better results

Profile depth matters

The single biggest factor in output quality is how much detail you put into your profile. A thin profile produces generic applications; a detailed one enables genuinely tailored results.

  • Role descriptions: Don’t just list job titles. Describe what you actually did in each position: specific projects, tools used, responsibilities, and measurable achievements. The more material you provide, the more precisely the system can reframe your experience for different roles.
  • Skills in context: Instead of listing “Python” or “project management,” describe how and where you applied them. “Built ML pipelines for customer churn prediction in Python using scikit-learn” gives the system far more to work with than “Python, machine learning.”
  • All onboarding paths work: Whether you point /setup at your documents/ folder, paste a single CV, or walk through the interview, the principle is the same: richer input produces sharper output.

Career path discovery

The framework supports two distinct modes of job searching:

  • Explicit targeting: You know which roles or sectors you want. The system helps refine and prioritize based on fit.
  • Latent opportunity discovery: By analyzing your full history (not just job titles, but the actual work you did), the system can surface career paths you haven’t considered. Transferable skills that map to unexpected industries, patterns in what you enjoyed or excelled at, or emerging roles that combine your domain expertise with new technology.

To get the most from this, invest time during /setup in describing not just your experience, but what energized you, what drained you, and what you’d want more of. This context directly shapes how the system evaluates fit and which roles it surfaces during /scrape.

Acknowledgements

License

MIT

View this README on GitHub

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add cypggs/ai-job-search-cn