Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

禅道 CLI 技能,通过 zentao-cli 工具查询和操作禅道(ZenTao)数据

v0.1.2

通过 zentao 命令行工具查询和操作禅道(ZenTao)数据,覆盖项目集、产品、项目、执行、需求、Bug、任务、测试用例、测试单、产品计划、版本、发布、反馈、工单、应用、用户、附件等模块的增删改查及状态流转。当用户提到禅道、zentao、查询项目进展、获取 Bug 列表、创建任务、更新需求状态等项目管理操作时...

1· 159·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for catouse/zentao-cli.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "禅道 CLI 技能,通过 zentao-cli 工具查询和操作禅道(ZenTao)数据" (catouse/zentao-cli) from ClawHub.
Skill page: https://clawhub.ai/catouse/zentao-cli
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install zentao-cli

ClawHub CLI

Package manager switcher

npx clawhub@latest install zentao-cli
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
high confidence
Purpose & Capability
The skill description, repository URL and SKILL.md consistently describe using the zentao-cli tool to operate ZenTao resources — that matches the declared purpose. However the registry metadata lists no required env/credentials while the SKILL.md explicitly documents ZENTAO_URL, ZENTAO_ACCOUNT, ZENTAO_PASSWORD and ZENTAO_TOKEN (inconsistency).
Instruction Scope
The SKILL.md stays on-topic: it instructs installing/using zentao CLI, how to login, list/create/update/delete resources, and how to format output. It also documents that credentials are cached to ~/.config/zentao/zentao.json and that env vars may be used. There are no instructions to read unrelated system files or exfiltrate data, but the credential caching and use of env vars broaden the runtime surface.
Install Mechanism
This is an instruction-only skill (no install spec). The doc recommends installing the package globally via npm/pnpm/bun or using npx. That is expected for a CLI, but global npm installs or npx execution carry normal supply-chain risks—users should verify the package source and prefer transient npx usage or inspect the package before a global install.
!
Credentials
The CLI legitimately requires ZenTao credentials (account/password or token) and a ZenTao URL. Those are sensitive but proportional to the stated purpose. The concern is that the registry metadata did not declare these required env vars or primary credential, and the skill (via the CLI) persists credentials to ~/.config/zentao/zentao.json — this combination increases the risk of credential exposure if the package or environment is untrusted.
Persistence & Privilege
The skill is not always-enabled and does not request elevated platform privileges. However the CLI behavior writes cached credentials to the user's config directory (~/.config/zentao/zentao.json). That file persistence is normal for a CLI but should be considered when granting tokens/passwords: ensure file permissions, and be aware the cached credential could be read by other processes or skills with file access.
What to consider before installing
This skill appears to be what it says (a wrapper around the zentao-cli npm package) but exercise caution before installing or supplying credentials. Things to consider: 1) The SKILL.md expects ZENTAO_URL, ZENTAO_ACCOUNT, ZENTAO_PASSWORD or ZENTAO_TOKEN, but the registry metadata did not declare them — treat that as a mismatch and expect the CLI to need these secrets. 2) The CLI will cache credentials in ~/.config/zentao/zentao.json; check file permissions and rotate tokens/passwords after use. 3) Installing npm packages globally or running via npx can run arbitrary code — verify the package repository (https://github.com/easysoft/zentao-cli.git), inspect the source, and prefer using a token with minimal scope instead of a full account password. 4) If you allow autonomous agent invocation, be aware that an agent using this skill could access your ZenTao data and the cached credentials; if possible, provide a limited-scope token or run the CLI in an isolated environment. 5) If you need higher assurance, ask the publisher for a declared list of required env vars in the registry metadata or request an explicit signed release/verified package before installing globally.

Like a lobster shell, security has layers — review code before you run it.

latestvk97dkwg9crtyqfm4ry365vf34185nke6
159downloads
1stars
3versions
Updated 23h ago
v0.1.2
MIT-0

禅道 CLI

通过 zentao 命令行工具查询和操作禅道数据。CLI 自动处理认证、分页,支持工作区上下文和数据过滤/排序。

前置准备

安装

npm install -g zentao-cli
# 或 bun install -g zentao-cli
# 或 pnpm install -g zentao-cli
# 或免安装运行:npx zentao-cli

如果用户没有安装,引导用户进行全局安装使用,如果系统存在 bun 或 pnpm 则优先使用 bun 或 pnpm 进行全局安装。

认证

首次执行任意 zentao 命令会自动提示登录。也可显式登录:

zentao login -s https://zentao.example.com -u admin -p 123456

环境变量(优先级低于命令行参数):

变量说明
ZENTAO_URL禅道服务地址
ZENTAO_ACCOUNT用户账号
ZENTAO_PASSWORD密码
ZENTAO_TOKEN直接指定 Token(有此变量可省略密码)

登录成功后凭证缓存在 ~/.config/zentao/zentao.json,后续无需重复登录。

命令格式

使用简写方式(推荐):

操作命令
列表zentao <module>
详情zentao <module> <id>
创建zentao <module> create --field=value
更新zentao <module> update <id> --field=value
删除zentao <module> delete <id>
动作zentao <module> <action> <id>
帮助zentao <module> help

也支持 --data='JSON' 传入 JSON 数据。

模块与操作速查

模块名中文支持的操作
program项目集CRUD
product产品CRUD
project项目CRUD
execution执行/迭代CRUD
story需求CRUD + activate / change / close
epic业务需求CRUD + activate / change / close
requirement用户需求CRUD + activate / change / close
bugBugCRUD + activate / close / resolve
task任务CRUD + activate / close / finish / start
testcase测试用例CRUD
testtask测试单CUD(按产品/项目/执行查列表)
productplan产品计划CUD(按产品查列表)
build版本CUD(按项目/执行查列表)
release发布CUD(按产品查列表)
feedback反馈CRUD + activate / close
ticket工单CRUD + activate / close
system应用CU(按产品查列表)
user用户CRUD
file附件编辑名称 + 删除

CRUD = 列表 + 详情 + 创建 + 更新 + 删除;CUD = 无独立列表接口,需指定所属范围

列表范围参数

部分模块的列表需要指定所属范围:

zentao story --product=1                # 产品 #1 的需求
zentao bug --product=1                  # 产品 #1 的 Bug
zentao task --execution=1               # 执行 #1 的任务
zentao execution --project=5            # 项目 #5 的执行
zentao build --project=5                # 项目 #5 的版本
zentao testtask --product=1             # 产品 #1 的测试单
zentao release --product=1              # 产品 #1 的发布
zentao productplan --product=1          # 产品 #1 的计划
zentao feedback --product=1             # 产品 #1 的反馈
zentao ticket --product=1               # 产品 #1 的工单

设置工作区后可省略这些参数(见下方工作区章节)。

AI 使用策略

输出格式

  • 展示给用户:不加 --format 参数,默认输出 Markdown 表格(列表)或列表(单个对象)
  • 需要程序化处理:加 --format=json,返回结构化 JSON

交互确认

AI 场景下执行删除操作时加 --yes 跳过确认提示:

zentao bug delete 1 --yes

不知道 ID 时

先查列表获取 ID,再操作具体对象:

zentao product --pick=id,name           # 查看产品列表
zentao bug --product=1 --pick=id,title  # 查看 Bug 列表
zentao bug 42                           # 查看具体 Bug

写操作前确认

执行创建、更新、删除等写操作前,先向用户确认操作内容。用户明确要求不确认时可跳过。

数据处理

摘取字段

zentao product --pick=id,name,status

过滤

zentao bug --product=1 --filter='status:active'
zentao bug --product=1 --filter='severity<=2,pri<=2'    # AND
zentao bug --product=1 --filter='status:active' --filter='status:resolved'  # OR

支持的运算符:: 等于、!= 不等于、> < >= <=~ 包含、!~ 不包含。

模糊搜索

zentao bug --product=1 --search=登录 --search-fields=title,steps

排序

zentao bug --product=1 --sort=pri_asc,severity_asc

分页

zentao bug --product=1 --page=1 --recPerPage=50
zentao bug --product=1 --all            # 获取全部
zentao bug --product=1 --limit=10       # 只取前 10 条

常用操作示例

查看进行中的项目和执行

zentao project --filter='status:doing' --pick=id,name,status
zentao execution --project=5 --pick=id,name,status

创建需求并关联计划

zentao story create --product=1 --title="需求标题" --assignedTo=admin --pri=3
zentao story update 11 --title="需求标题" --plan=1

创建并解决 Bug

zentao bug create --product=1 --title="Bug标题" --severity=2 --pri=2 --type=codeerror --openedBuild=trunk
zentao bug resolve 42

创建、启动并完成任务

zentao task create --execution=1 --name="任务名" --type=devel --assignedTo=admin --estimate=4
zentao task start 100
zentao task finish 100 --consumed=4

查看帮助

zentao bug help          # 查看 Bug 模块的参数和操作
zentao story update help # 查看需求更新操作的参数和操作
zentao help              # 查看所有命令

意图识别

用户意图CLI 命令
所有产品/项目/项目集zentao product / zentao project / zentao program
进行中的项目zentao project --filter='status:doing'
某产品的 Bugzentao bug --product=<id>
某执行的任务zentao task --execution=<id>
创建/新增 Bugzentao bug create ...
解决 Bugzentao bug resolve <id>
关闭 Bugzentao bug close <id>
激活 Bugzentao bug activate <id>
创建需求zentao story create ...
变更/关闭/激活需求zentao story change/close/activate <id>
业务需求zentao epic ...(同 story)
用户需求zentao requirement ...(同 story)
创建/启动/完成/关闭任务zentao task create/start/finish/close ...
测试用例zentao testcase ...
测试单zentao testtask ...
产品计划zentao productplan ...
版本/Buildzentao build ...
发布zentao release ...
反馈zentao feedback ...
工单zentao ticket ...
用户列表zentao user
当前用户信息zentao profile

错误处理

错误码含义处理方式
E1001未登录/凭证缺失执行 zentao login
E1004Token 失效执行 zentao login 重新登录
E2001模块不存在执行 zentao help 查看可用模块
E2002对象不存在检查 ID 是否正确
E2003缺少必要参数执行 zentao <module> help 查看参数
E2006无权限提示用户检查权限
E5001请求超时检查网络或禅道服务状态

注意事项

  • 不确定模块参数时,先执行 zentao <module> help 查看帮助
  • browseType 常用值:all(全部)、doing(进行中)、closed(已关闭)
  • 静默模式:--silent 只输出错误信息
  • 多账号切换:zentao profile 查看和切换账号

Comments

Loading comments...