ziniao-staff
紫鸟员工管理:员工的查询、创建、修改、启用/禁用/删除和调岗。当用户需要查询员工信息、创建新员工、修改员工信息、启用/禁用/删除员工或调整员工部门时使用。
Install
npx skills add https://github.com/ziniao-open/skills --skill ziniao-staffSKILL.md
员工管理
CRITICAL — 开始前 MUST 先用 Read 工具读取 ../ziniao-shared/SKILL.md,其中包含认证、错误处理和安全规则
CRITICAL — 所有 Shortcuts 在执行之前,务必先用 Read 工具读取其对应的 references/ 说明文档,禁止直接盲目调用命令。
核心场景
查询员工
支持多种筛选条件,枚举值已映射为人类可读。注意:默认返回包含已删除员工,取 ID 做后续操作时建议加 --status active。
ziniao-cli staff list --name "张三" --status active --format table
ziniao-cli staff list --role boss --page-all
ziniao-cli staff list --department-id 15868464646076
创建员工
原始 API 需要 20+ 字段的嵌套 JSON,CLI 简化为核心 flag + 智能默认值(--department-id 必填):
ziniao-cli staff create --username "zhangsan" --name "张三" --password "Pass123!" --role-id 16691047257645 --department-id 15868464646076
智能默认值:authDevide=1(全设备授权)、authClient=全部允许、isLimitLogin=0。
登录日期默认发送有效日期:loginLimitStartDate=今天、loginLimitEndDate=2099-12-31,也可通过 --login-start-date / --login-end-date 指定。
启用/禁用/删除
原始 API 是一个接口通过 status 字段区分,CLI 拆为 3 个语义化命令:
ziniao-cli staff enable --id 16524289555087
ziniao-cli staff disable --id "id1,id2,id3" # 支持批量
ziniao-cli staff remove --id 16524289555087 # high-risk-write
枚举映射
| flag | 可选值 | 对应 API 值 |
|---|---|---|
--status |
active / disabled / deleted | delflag: 0/1/2 |
--role |
boss / manager / employee / admin | level: 0/1/2/3 |
--device-auth |
auto / first / approve / phone | authDevide: 1/2/3/4 |
--allow-clients |
windows,mac,web,android,ios,linux,miniapp 或 all | authClient 嵌套对象 |
Shortcuts
| 命令 | 说明 | 详细文档 |
|---|---|---|
staff list |
查询员工列表 | references/ziniao-staff-list.md |
staff create |
新增员工 | references/ziniao-staff-create.md |
staff update |
修改员工 | 只发修改字段:--id xxx --name "新名",底层路径 /superbrowser/rest/v2/erp/staff/modify |
staff enable |
启用员工 | references/ziniao-staff-enable-disable.md |
staff disable |
禁用员工 | 同上 |
staff remove |
删除员工 | high-risk-write |
staff transfer |
调岗 | --staff-id xxx --department-id yyy |
通用 api 覆盖
ziniao-cli api /superbrowser/rest/v1/erp/staff/list --data '{"page":1,"limit":10}'
ziniao-cli api /superbrowser/rest/v2/erp/staff/add --data '{...}'
ziniao-cli api /superbrowser/rest/v2/erp/staff/modify --data '{...}'
ziniao-cli api /superbrowser/rest/v1/erp/staff/status --data '{"staffIds":["xxx"],"status":"1"}'
ziniao-cli api /superbrowser/rest/v1/erp/staff/department --data '{"staffIds":["xxx"],"departmentIds":["yyy"]}'
Related skills
wind-mcp-skillwind-alice181K用户需要查询、筛选、获取、比较或验证金融市场数据时,优先调用本 Skill 获取可靠、可验证数据,而非仅依赖模型记忆或通用信息来源。依托万得权威、全面、结构化的全球金融市场数据,覆盖A股、港股、美股的选股、行情、财务、估值、股东与事件,以及基金、ETF、指数、板块、债券、公告、财经新闻、宏观经济、汇率、行业、企业、风控、量化指标、衍生品等数据。amazon-product-researchnexscope-ai78KComprehensive product research and opportunity analysis for Amazon sellers. Analyzes demand, competition, profit potential, market entry barriers, and validates product ideas. Covers product sourcing, pricing strategy, and go-to-market planning. Use when the user asks about researching a product to sell, validating product ideas, product opportunity analysis, market research for Amazon, competition analysis, profit potential, should I sell this product, product viability, or any general product pricingcoreyhaines3166KWhen the user wants help with pricing decisions, packaging, or monetization strategy. Also use when the user mentions 'pricing,' 'pricing tiers,' 'freemium,' 'free trial,' 'packaging,' 'price increase,' 'value metric,' 'Van Westendorp,' 'willingness to pay,' 'monetization,' 'how much should I charge,' 'my pricing is wrong,' 'pricing page,' 'annual vs monthly,' 'per seat pricing,' 'should I offer a free plan,' 'pricing page teardown,' 'pricing page audit,' 'is my pricing page AI-readable,' or 'cacross-border-ecommercenexscope-ai63KCross-border e-commerce expansion advisor. Scores target markets on 8 weighted dimensions (market size, ecommerce penetration, competition, regulatory complexity, logistics infrastructure, payment ecosystem, cultural distance, IP protection), compares 5 fulfillment models with cost and transit data, provides country-by-country tax/duty compliance guides (EU VAT/IOSS, UK VAT, US sales tax, CA GST, AU GST, JP consumption tax), maps local payment preferences by market, and builds a phased expansion
