imyuyu/zentao-cli53 installs
zentao-department
禅道(ZenTao) 部门(Department)管理 — 列出部门、获取部门详情。当用户说:'查询部门'、'部门列表'、'有哪些部门'、'department 列表'、'查看部门'、'部门详情'、'组织架构'、'禅道部门' 时触发。
How do I install this agent skill?
npx skills add https://github.com/imyuyu/zentao-cli --skill zentao-departmentIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill provides administrative functions to manage ZenTao departments via the zentao-cli tool. No security risks were identified beyond the standard attack surface of processing external data.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
department (v1)
CRITICAL — 开始前 MUST 先用 Read 工具读取 ../zentao-shared/SKILL.md,其中包含认证、环境变量配置、错误处理和通用选项说明。
Commands
department list— 列出所有部门department get— 获取部门详情
Core Concepts
- Department(部门):ZenTao 中的组织架构单元,用于管理用户所属部门。
- Parent(父部门):部门可以有层级关系,parent 字段表示父部门 ID。
- Path(路径):部门的完整路径,如
/1/2/3/表示从根部门到当前部门的完整路径。
Department Fields
| Field | Type | Description |
|---|---|---|
| id | u64 | 部门 ID |
| name | string | 部门名称 |
| parent | u64 | 父部门 ID(0 表示根部门) |
| order | u64 | 排序序号 |
| path | string | 部门路径,如 /1/2/ |
Common Use Cases
1. 查看所有部门
# 列出所有部门
zentao-cli department list
2. 查看特定部门详情
# 获取部门详情
zentao-cli department get 1
Examples
# 列出所有部门
zentao-cli department list
# 获取部门详情
zentao-cli department get 1
Gotchas
-
部门层级:部门有层级关系,可以通过
path字段了解部门的完整层级位置。 -
parent=0:当
parent为 0 时,表示该部门是根部门。 -
与用户关联:用户的
dept字段关联到部门的 ID。
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/imyuyu/zentao-cli/zentao-department">View zentao-department on skillZs</a>