agentleFS
Viy1204Viy1204/hr-skills/skills/boss-cli/SKILL.md

boss-cli

Skill10 starsChanged 6 months agoMITView on GitHub

Automates Boss 直聘 (zhipin.com) in a real Chrome/Edge via Puppeteer and CDP: login, chat list, open candidate chat, online resume screenshot, and optional Baidu OCR. Use when the user mentions boss-cli, Boss 直聘 automation, 招聘 聊天, 候选人, 在线简历截图, or running the `boss` CLI.

  • Reads credentials

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. jackwener/boss-cli★ 989same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are 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.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Credentials: never commit secrets. Config goes to %USERPROFILE%\.boss-cli\.env and/or cwd .env (loaded in that order.

    line 30
  2. Very specific:

    Prefer documented env vars over hardcoding paths.

    line 58
  3. Distinctive:

    Do not add silent fallbacks.

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Boss 直聘 CLI (boss-cli)

What this is

  • Repository: local Node/TypeScript CLI (boss binary) that drives already installed Chrome or Edge with puppeteer-core (no bundled browser).
  • Not a hosted API: the agent runs boss in a terminal with network access; the user must be logged in (or use login).

Alignment with Anthropic “Agent Skills”

Anthropic’s open repo anthropics/skills defines skills as folders with SKILL.md (YAML frontmatter + instructions). The cross-tool spec lives at agentskills.io. This file follows the same frontmatter + body pattern so it can be reused in Cursor, Claude Code plugins, or other Agent Skills hosts.

Agent Skill 安装路径

  • boss skill 仅输出 Skill 说明,不安装;boss skill install(无附加参数)才复制到 ~/.agents/skills/boss-cli/(Windows:%USERPROFILE%\.agents\skills\boss-cli)。boss skill uninstall 移除该目录。根目录可用 BOSS_AGENT_SKILLS_DIR 覆盖。

Prerequisites

  • Build: npm install then npm run build; entry is dist/cli/index.js (see package.json bin).
  • Chrome/Edge path: set CHROME_PATH or PUPPETEER_EXECUTABLE_PATH if auto-detection fails (Windows common paths are tried).
  • Headless mode: BOSS_BROWSER_HEADLESS=true(或 1 / yes / y)启用无头模式;login 命令强制有头,环境变量对其无效。容器 / CI 场景必开。
  • Credentials: never commit secrets. Config goes to %USERPROFILE%\.boss-cli\.env and/or cwd .env (loaded in that order; cwd overrides). Baidu OCR needs API_KEY + SECRET_KEY when BOSS_RESUME_OCR is enabled.

How to run

  • Interactive REPL (default): run node dist/cli/index.js or boss with no arguments → boss> prompt.
  • One-shot: boss <subcommand> ... (non-interactive; exits after the command).

Subcommands (normalize short names)

IntentExample备注
Loginlogin强制有头
Show help / versionhelp / version(也支持 ver / -v / --version)
List candidateslist [--unread]--unread 只看未读(角标 >0)
Open chat with candidatechat <姓名> [--strict]--strict 精确匹配;仅用于已建立联系的候选人
Per-chat actionsaction <op> [--remark <备注>]操作:resume / not-fit / remark / agree-resume / request-attachment-resume / history / wechat;remark 必须带 --remark
Send messagesend [--text <内容>] [--request-resume]--request-resume 发送后自动「求简历」
List positionspositions含开放/待开放/已关闭状态
Fetch JD detailjd <name>抓职位详情,缓存为项目目录同名 .md
Recommend candidatesrecommend [岗位关键字]可选参数先在岗位下拉模糊匹配并切换
Preview online resumepreview <姓名> [--job <岗位关键字>]平台对在线简历每日次数有限,按需使用
主动打招呼greet <姓名> [--job <岗位关键字>]须先在推荐/深度搜索页加载候选人列表;会消耗打招呼次数且单次成本较高,谨慎使用
Deep searchdeep-search [岗位关键字](别名 deepsearch)进入深度搜索页,输出当前匹配列表;不会点击「立即匹配」

Exact flags and --action values are defined in src/cli/cliRouter.ts and help output.

Automation notes for the agent

  1. Prefer documented env vars over hardcoding paths; read src/config.ts and src/browser/cdp_browser.ts for directories and viewport defaults.
  2. Online resume + OCR: flow lives in src/toolset/open_chat.ts and src/ocr/; failures should surface real errors (Baidu quota, missing keys, network).
  3. Puppeteer evaluate: this project prefers string scripts for page.evaluate / waitForFunction to avoid build artifacts like __name is not defined in the browser context (see AGENTS.md).
  4. Do not add silent fallbacks; match project rules in AGENTS.md.

When not to use this skill

  • Tasks that only need public web scraping without a logged-in Boss account.
  • Headless-only sandboxes where Chrome cannot run or CDP cannot attach (unless the user explicitly uses headless and accepts limits).

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.