employee-selector

employee-selector is a skill for Claude Code, Codex from nongjun/feishu-cursor-claw. It costs 54 tokens per session (536 once invoked), scanned A, original, MIT.

A reusable employee-picker interface that shows departments as a tree and lets people select one or more employees, with search and department-wide selection.

In plain words
What is it for?
Use it for assigning tasks, setting who can see data, configuring data permissions, or choosing recipients for bulk messages.
Why use it?
It avoids rebuilding employee selection for each feature and keeps department and employee choices consistent.

Skill for Claude CodeCodex

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

Good fit Use it for assigning tasks, setting who can see data, configuring data permissions, or choosing recipients for bulk messages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nongjun/feishu-cursor-claw/employee-selector
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 nongjun/feishu-cursor-claw --skill employee-selector
Clone the repo
git clone --depth 1 https://github.com/nongjun/feishu-cursor-claw

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 employee-selector

README.md
[![agentmods](https://agentmods.dev/badge/skills/nongjun/feishu-cursor-claw/employee-selector/github.svg)](https://agentmods.dev/skills/nongjun/feishu-cursor-claw/employee-selector)
Your own site
<a href="https://agentmods.dev/skills/nongjun/feishu-cursor-claw/employee-selector"><img src="https://agentmods.dev/badge/skills/nongjun/feishu-cursor-claw/employee-selector/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 employee-selector

Your own site · 80×15
<a href="https://agentmods.dev/skills/nongjun/feishu-cursor-claw/employee-selector"><img src="https://agentmods.dev/badge/skills/nongjun/feishu-cursor-claw/employee-selector.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 536 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.
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.00054 $0.00536
Opus 5 $0.00027 $0.00268
Sonnet 5 $0.00011 $0.00107
Haiku 4.5 $0.00005 $0.00054

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

Security

Grade A, and why

employee-selector 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 10d ago.

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.

参考代码/njcursor/skills/employee-selector/SKILL.md · 55 lines

What it actually says

员工选择器

组件分层

层级 位置 特点
基础组件 shared_frontend/components/EmployeeSelector.vue 通用、API 解耦
业务组件 各模块自有版本(如撩回搭子 EmployeeSelectorDialog.vue) 定制化

基础组件 Props

属性 类型 说明
modelValue Boolean 控制弹窗显示(v-model)
selected Array 已选中项回显
userOnly Boolean 确认结果只包含员工
fetchApi Function 获取部门员工数据的函数(API 解耦)

关键设计决策

  • 不使用 check-strictly:级联模式,勾选部门自动选中所有子员工
  • 部门复选框可点击:用于批量选中,非禁用
  • getCheckedNodes(true):仅获取叶子节点,再按 type=user 过滤
  • countEmployees 递归统计:部门显示 (N人)
  • nodeKey 格式:dept_{id} / user_{id},避免部门和员工 ID 冲突

数据格式

  • API 返回:树形结构,节点含 type(department/user)、id、name、children
  • 确认结果:[{ type: 'user', id, name }]

后端 API

通过公共路由工厂注册:

  • 路径:/api/{module}/common/departments/with-employees
  • 实现:shared_backend.api.create_common_router()

SOP:使用员工选择器

  1. 前端引入 shared_frontend 的 EmployeeSelector 组件
  2. 传入 fetchApi 函数(指向本模块的公共路由)
  3. 监听 confirm 事件获取选中员工列表
  4. 如需定制(如禁用级联),在业务模块创建独立版本

参考文件

  • 公共模块/shared_frontend/components/EmployeeSelector.vue
  • 公共模块/shared_backend/api/common.py(create_common_router)
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. 10d ago First seen · 55 lines · 54 tokens per session scan A 773eb454ed80

Subscribe to this mod's changes

employee-selector is a skill published in the GitHub repository nongjun/feishu-cursor-claw (14 stars, last pushed 2mo ago), licensed MIT. It adds 54 tokens to every session and 536 once invoked, about $0.0003 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

architecture-feature-first

Use when creating a feature, designing folder structure, adding repositories/services/view models, wiring dependency injection, or deciding which layer owns logic.

evanca/flutter-ai-rules · 31 tokens

flutter-use-column-row-first

Use when building any Flutter screen or component to choose responsive Row, Column, Expanded, Flexible, and Spacer layouts before fixed-size or coordinate-based alternatives.

evanca/flutter-ai-rules · 36 tokens

component-creation

Step-by-step workflow for creating accessible, tested UI components. Use when the user asks to create a new UI component.

girijashankarj/cursor-handbook · 28 tokens

enhance-web-landing

Build landing pages, portfolios, and marketing sites that don't look AI-generated. Use when asked for "landing page", "portfolio", "marketing site", "anti-slop", "Awwwards-style", "premium frontend", or when design needs a strong point of view.

kensaurus/cursor-kenji · 61 tokens

enhance-capacitor-ui

Cross-surface UIUX separation skill for hybrid web apps that ship as PWA + iOS + Android via Capacitor (or Tauri / Expo Web / Ionic / RN-Web). Use when a previous UI/UX sweep "improved one surface and broke the other" — desktop polished but mobile cramped, or mobile native but desktop wastes space.

kensaurus/cursor-kenji · 77 tokens

enhance-web-ui

Polish an existing page's hierarchy, spacing, type, and visual personality. Use when "make this page polished/premium", "less crowded", or "better visual hierarchy". Understood / CPL → enhance-readability. Flow/IA → enhance-web-ux. Breakpoints → audit-responsive.

kensaurus/cursor-kenji · 65 tokens