Job–CV matcher (match_jobs)
DSH Host plugin. Adds one read-only model-facing tool that searches Vietnamese IT job postings and ranks them against a CV, with an explanation for every score.
What it does
- Reads the CV (
cvTextorcvPathto a UTF-8.md/.txtfile). - Extracts a profile: skills with weights, role families, seniority, years, cities and languages.
- Plans 1–8 search queries, including
site:queries for TopCV, ITviec and VietnamWorks. - Searches through the Harness
webservice, drops listing pages, de-duplicates URLs, and fetches up to 20 postings. - Parses each posting (title, company, city, salary, skills, seniority, language) and scores it 0–100 with five weighted components plus penalties.
- Returns a ranked list with matched skills, missing skills, Vietnamese reasons and a short JD excerpt.
Usage
Ask the agent in the session, for example:
Tìm giúp tôi 5 job backend phù hợp với CV ở
cv.md, ưu tiên Hồ Chí Minh, có remote.
The agent calls match_jobs with cvPath: "cv.md". A cheaper first pass:
Chạy
match_jobsvớisearchOnly: trueđể xem nhanh các tin đáng chú ý.
| Parameter | Meaning | Default |
|---|---|---|
cvText / cvPath |
Exactly one CV source | required |
targetRole |
Role phrase to search for | detected from the CV |
locations |
Up to 5 preferred cities | CV city, else Hồ Chí Minh/Hà Nội |
seniority |
Override the CV level when comparing | from the CV |
remote |
Treat remote as a wanted location | false |
maxQueries |
Search queries, 1–8 | 4 |
maxFetch |
Posting pages read, 0–20 | 10 |
maxResults |
Ranked postings returned, 1–15 | 8 |
searchOnly |
Rank search-result descriptions only | false |
extraQueries |
Up to 3 literal extra queries | none |
Scoring
score = 100 × (0.40·skills + 0.25·role + 0.15·seniority + 0.10·location + 0.05·language + 0.05·source)
- skills — 60% coverage of the skills the JD asks for, 40% of the CV's own weighted skill mass.
- role — whether the posting's role family matches the CV's role families.
- seniority — ladder distance (intern … lead) between CV and posting.
- location — city match, or remote as requested.
- language — a Japanese/Korean-only posting scores low without that language.
- source — known job boards score slightly higher than unknown pages.
Penalties: JD skill coverage below 40% (×0.88) or 25% (×0.75), and pages that yield too little text (×0.9). Verdicts: ≥72 very good, ≥58 good, ≥44 worth a look.
Limits
- Discovery depends on the Harness web provider; without one the tool fails with a clear message. It never scrapes Google directly.
- Several Vietnamese boards answer direct fetches with HTTP 403 or render the JD
in JavaScript. The tool then scores the posting from the search provider's
description instead, marks it with a penalty and says so in
warnings. Full-page reading is therefore a bonus, not a guarantee. - Salary and company are often absent from pages and stay empty.
- The skill vocabulary is IT-focused (
src/skills-vocabulary.js); other industries produce weaker skill matching. - Skill extraction is lexical: a JD that describes a skill without naming it is not credited. The agent should sanity-check the top matches before you apply.
- It never applies to jobs, writes files or stores the CV.
Development
npm test # 42 node:test cases, no network
node tools/check-output.mjs <abs> # from the Harness Creator bundle
Layout
index.js plugin entry (name, inject, apply)
src/skills-vocabulary.js IT skill, role and city vocabulary
src/text.js HTML→text, skill/role/city/seniority detection
src/cv-profile.js CV profile extraction
src/job-posting.js job URL recognition and posting parsing
src/match-score.js explainable scoring and ranking
src/query-plan.js Vietnamese job-market query planning
src/pipeline.js search → fetch → parse → score orchestration
src/tool.js tool contract, validation and rendering
Repository and license
Source: https://github.com/nguyenducviet22/job-cv-match — MIT license, see
LICENSE. The package name stays @local/job-cv-match because it is
installed as a local bundle, not published to npm.
To install from GitHub on another machine:
git clone https://github.com/nguyenducviet22/job-cv-match.git
then add the cloned directory in DSH (Plugins → Add plugin) or install it as a bundle by absolute path. The profile needs a working web search provider.
No comments yet. Be the first to write one.