shared

shared is a skill for Claude Code, Codex from 1xiaoyueryuer/boss-hr-agent-toolkit. It costs 260 tokens per session (3,474 once invoked), scanned A, original, MIT.

A shared Python library for a recruiting automation toolkit that connects to a browser, checks recruiter login state, retrieves job listings, manages files and runs, and tracks scored resumes.

In plain words
What is it for?
Use it as an internal dependency for scripts that work with BOSS recruiter jobs, candidate resumes, scoring records, and run output.
Why use it?
It provides the common building blocks so separate recruiting scripts do not each need to implement browser connections, login checks, job lookup, or resume tracking.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it as an internal dependency for scripts that work with BOSS recruiter jobs, candidate resumes, scoring records, and run output.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/1xiaoyueryuer/boss-hr-agent-toolkit/shared
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add 1xiaoyueryuer/boss-hr-agent-toolkit --skill shared
Clone the repo
git clone --depth 1 https://github.com/1xiaoyueryuer/boss-hr-agent-toolkit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for shared

README.md
[![agentmods](https://agentmods.dev/badge/skills/1xiaoyueryuer/boss-hr-agent-toolkit/shared/github.svg)](https://agentmods.dev/skills/1xiaoyueryuer/boss-hr-agent-toolkit/shared)
Your own site
<a href="https://agentmods.dev/skills/1xiaoyueryuer/boss-hr-agent-toolkit/shared"><img src="https://agentmods.dev/badge/skills/1xiaoyueryuer/boss-hr-agent-toolkit/shared/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for shared

Your own site · 80×15
<a href="https://agentmods.dev/skills/1xiaoyueryuer/boss-hr-agent-toolkit/shared"><img src="https://agentmods.dev/badge/skills/1xiaoyueryuer/boss-hr-agent-toolkit/shared.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 260 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,474 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00260 $0.03474
Opus 5 $0.00130 $0.01737
Sonnet 5 $0.00052 $0.00695
Haiku 4.5 $0.00026 $0.00347

Measured 11d ago against content hash efc73e46196e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

shared scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 10 executable files (cdp_preflight.py, cli_runner.py, confirm_run.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

shared/SKILL.md · 288 lines

How it starts

The opening of the file, as written. The whole thing — 288 lines — stays where its author put it; the contents beside it link to each section on GitHub.

shared —— 基础模块

本目录是全工具包依赖的 Python 库。不是入口,不被任何 AI 智能体当作 Skill 直接加载。 业务脚本(boss_jd.py / recommend_list.py 等)import 这些模块即可。

模块清单

模块 角色 主要导出
cdp_preflight.py CDP 连接 + 登录态探测 connect_cdp, CDPSession, check_login, get_cookies, RECRUITER_REQUIRED_COOKIES
recruiter_job_catalog.py 招聘者岗位目录 list_jobs, resolve_recruiter_job, fetch_job_detail, JOB_LIST_URL, JOB_EDIT_URL
output_manager.py 文件路径管理(JobOutputManager JobOutputManager, resolve_encrypt_job_id, OUTPUT_ROOT
run_orchestrator.py run_id 生命周期(RunOrchestrator create_new_run, bind_existing_run, finish
job_resume_store.py 跨 run 累计简历/评分去重 JobResumeStore, is_scored, mark_scored
job_registry.py encryptJobId ↔ jobName 元数据 JobRegistry
cli_runner.py Windows PowerShell 安全的 CLI 执行层 run_python_cli白名单 9 个 tool
confirm_run.py 用户确认门(翻 run.json.confirmed=true CLI 子命令
fix_encoding.py Windows UTF-8 stdout 自动 import 即生效
human_interaction.py 智能体交互辅助

cdp_preflight.py —— CDP 连接 + 登录态探测

设计动机

本工具包不依赖任何第三方 CLI(包括早期项目曾用的 boss_agent_cliboss login / boss me / boss status 等登录检测命令)。本模块用 patchright 直连 Edge CDP,自己判断:

  • Edge 是否在指定端口(如 http://localhost:9222)跑着
  • BOSS 招聘者 session 是否有效(zp_at + wt2 + bst 三 cookie 都在且非空)
  • 当前页面是 recommend / chat / job_edit / login / unknown

所有 BOSS HTTP 调用(recruiter_job_cataloglist_jobs 等)都走浏览器内 fetchpage.evaluate('fetch(...)')), 复用浏览器真实 TLS 指纹 + 自动带 cookie,不需要单独同步 __zp_stoken__

接口

from cdp_preflight import (
    connect_cdp,         # 函数
    check_login,         # 函数
    get_cookies,         # 函数
    CDPSession,          # dataclass
    RECRUITER_REQUIRED_COOKIES,  # tuple: ('zp_at', 'wt2', 'bst')
)

# 1) 连 Edge
session = connect_cdp()                    # 默认 http://localhost:9222
session = connect_cdp("http://1.2.3.4:9222", timeout_ms=15000)

# 2) 检查登录
state = check_login(session)
# state = {
#   'logged_in': True/False,
#   'cookies': {
#     'zp_at': True/False,
#     'wt2': True/False,
#     'bst': True/False,
#     'present': [...],   # 所有 cookie 名
#     'total': int,
#   },
#   'current_url': 'https://www.zhipin.com/web/chat/recommend',
#   'page_kind': 'recommend' | 'chat' | 'job_edit' | 'login' | 'unknown',
# }

# 3) 取 cookie(HTTP 库复用)
cookies = get_cookies(session)  # {'zp_at': '...', 'wt2': '...', ...}

# 4) 关闭(不关 Edge,只关 playwright 进程)
session.disconnect()

Read the full file on GitHub · 288 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 288 lines · 260 tokens per session scan A efc73e46196e

Subscribe to this mod's changes

shared is a skill published in the GitHub repository 1xiaoyueryuer/boss-hr-agent-toolkit (46 stars, last pushed 1mo ago), licensed MIT. It adds 260 tokens to every session and 3,474 once invoked, about $0.0013 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

qiaomu-opencli-explorer

A guide for creating OpenCLI adapters for websites. An adapter is code that lets a command-line tool communicate with a particular website’s interfaces and data.

joeseesun/qiaomu-opencli-skills · 83 tokens

firecrawl-build-scrape

Integrate Firecrawl /scrape into product code for single-page extraction. Use when an app already has a URL and needs markdown, HTML, links, screenshots, metadata, or structured page output. Prefer this skill over broader crawl patterns when the feature is page-level.

RudraDudhat2509/claude-skills · 62 tokens

gakido

High-performance Python HTTP client with browser impersonation and anti-bot evasion. Use when the user needs to bypass bot detection, impersonate browsers with TLS fingerprinting, make HTTP/2/3 requests, or build web scrapers that evade anti-bot systems.

HappyHackingSpace/skills · 58 tokens

derive-client

Reverse-engineer a website's internal API by recording browser traffic into a HAR file, then generate a standalone client or CLI that calls the endpoints directly, with no browser needed after the first recording. Use when asked to "derive a client", "build a CLI for ", "reverse engineer this site's API", "record…

vercel-labs/agent-browser · 100 tokens

computer-use

OS/window-level inspection and input in visible local app windows through orca computer: native apps, external browser windows (Chrome, Edge, Safari), and app webviews. Not for Orca's embedded browser (use orca-cli) or page-only automation (use Playwright or CDP).

stablyai/orca · 62 tokens

opencli-sitemap-author

Use when creating or maintaining OpenCLI site sitemaps: agent-facing navigation, page-state, action, workflow, API-reference, pitfall, and fallback knowledge for a website. Use after browser exploration discovers durable site context, when a sitemap is stale, or when promoting local site knowledge into the repo.

jackwener/OpenCLI · 67 tokens