Ziniao Workflow Batch Account
批量账号授权工作流:编排 account list + staff list + api 调用完成批量授权店铺给员工。适用于新员工入职时批量分配店铺权限。
Install
npx skills add ziniao-open/skills --skill ziniao-workflow-batch-accountgit clone --depth 1 https://github.com/ziniao-open/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/skills/ziniao-workflow-batch-account ~/.claude/skills/ziniao-workflow-batch-accountPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# 批量账号授权工作流
**CRITICAL — 开始前 MUST 先用 Read 工具读取 [`../ziniao-shared/SKILL.md`](../ziniao-shared/SKILL.md)**
## 适用场景
- "给新员工分配店铺权限"
- "批量授权店铺给某个员工"
- "新人入职,需要授权所有店铺"
## 前置条件
- 已配置 apiKey(`ziniao-cli config init`)
## 工作流
```
staff list ──► 找到目标员工 ID
account list ──► 找到目标店铺 ID 列表
│
├──► 对每个店铺:
│ api /superbrowser/rest/v1/erp/store/auth/add { storeIdList, staffId }
│
└──► 汇总授权结果
```
### Step 1: 查找员工
```bash
# 按姓名查找
ziniao-cli staff list --name "张三" --format table
# 记录 userId
```
### Step 2: 查找要授权的店铺
```bash
# 列出所有店铺
ziniao-cli account list --format table --page-all
# 或按名称搜索
ziniao-cli account list --name "US" --format table
```
### Step 3: 逐个授权
对每个店铺执行:
```bash
ziniao-cli api /superbrowser/rest/v1/erp/store/auth/add \
--data '{"storeIdList":["<storeId>"],"staffId":"<staffId>"}'
```
### Step 4: 验证
```bash
# 查看该员工已授权的店铺
ziniao-cli api /superbrowser/rest/v1/erp/user/stores \
--data '{"userId":"<userId>","page":1,"limit":10}'
```
## 注意事项
- 授权是写入操作,执行前确认用户意图
- 如果需要授权大量店铺,建议先列出计划并确认
- 授权失败时记录错误并继续下一个
## 参考
- [ziniao-account](../ziniao-account/SKILL.md) — 账号管理
- [ziniao-staff](../ziniao-staff/SKILL.md) — 员工管理
- [ziniao-shared](../ziniao-shared/SKILL.md) — 认证和全局参数Details
- Skill name
ziniao-workflow-batch-account- Repository
- ziniao-open/skills
- Path
skills/ziniao-workflow-batch-account/SKILL.md- License
- MIT
- Repo updated
- 31 August 2026
FAQ
What does the Ziniao Workflow Batch Account skill do?
批量账号授权工作流:编排 account list + staff list + api 调用完成批量授权店铺给员工。适用于新员工入职时批量分配店铺权限。
How do I install the Ziniao Workflow Batch Account skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add ziniao-open/skills --skill ziniao-workflow-batch-account. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Ziniao Workflow Batch Account popular?
It lives in ziniao-open/skills, which has 9 GitHub stars and 1 forks.
Related skills
Ziniao Access Policy
9ziniao-open/skills
紫鸟访问策略管理:网页访问规则、网页/网页分组、规则生效成员/账号、账号绑定策略的查询和维护。当前无快捷命令,全部通过 ziniao-cli api 直调。
Ziniao Account
9ziniao-open/skills
紫鸟账号(店铺)管理:店铺账号的查询、创建、修改、删除、授权和标签管理。当用户需要查看店铺账号列表、创建/修改/删除账号、管理账号授权或标签时使用。
Ziniao Department
9ziniao-open/skills
紫鸟部门管理:部门的查询、创建、修改、删除和排序。当用户需要查看组织架构、创建/修改/删除部门、调整部门排序时使用。
Layer Workflow Import
10layerai/skills
Use when bringing a workflow built in another tool into Layer: an exported workflow file, a node-graph JSON from any node editor, a screenshot of a node canvas, or a pipeline described in prose. Also when converting, porting, migrating or rebuilding a pipeline as a Layer Blueprint workflow. Keywords: import workflow, export file, node graph, node editor, convert, port, migrate, rebuild, blueprint.
Ziniao Store
9ziniao-open/skills
Use when a request concerns the local 紫鸟/ZClaw browser, a store name or ID, listing/resolving/opening/reusing/closing a store browser, or a store-scoped task that starts from a store. Do not use for server-side account CRUD or for a webpage task on an already-open store.
Layer Workflows
10layerai/skills
Use when running a saved Layer Blueprint workflow rather than a single generation: discovering what workflows a workspace has, reading a workflow's input schema, estimating and executing a run, polling its steps, or cancelling it. Also when a repeatable multi-step pipeline exists for a task, when the user names a workflow, or when a workflow input expects a style or a file. Keywords: workflow, blueprint, pipeline, app, multi-step, run, node graph.
Browse the most popular Claude skills, all productivity & notes skills, or write your own with the skills generator.