npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@tan-chan/zentao-api

v1.0.1

Published

ZenTao API v2 skill

Readme

ZenTao API v2

技能说明

zentao-api 通过 ZenTao API v2 读取或维护产品、项目、执行、任务、Bug、需求与测试单。

适用场景:

  • 查询个人、小组或指定账号的任务与 Bug
  • 统计指定时间段的新建与完成需求、Bug 或测试单
  • 分析需求或测试单关联的任务与 Bug
  • 创建或更新 Bug、研发需求、任务与其他 ZenTao 数据

安装 Skills

现代智能工具都支持自动安装 Skills。将以下仓库链接发送给智能工具,并按安装提示操作:

https://github.com/Tan-Pchan/zentao-api.git

可参考以下提示:

帮我安装 [https://github.com/Tan-Pchan/zentao-api.git](https://github.com/Tan-Pchan/zentao-api.git) 上的技能,可以通过 `npx skills add tan-chan/zentao-api` 来进行安装。

也可以在已安装 npm 的环境中手动执行:

npx skills add tan-chan/zentao-api

凭证

首次使用時,设置环境变量后, 执行以下命令:

Windows:

$env:ZENTAO_URL = 'https://zentao.example.com'
$env:ZENTAO_ACCOUNT = 'your-account'
$env:ZENTAO_PASSWORD = 'your-password'
& "$HOME\.codex\skills\zentao-api\scripts\get-token.ps1"

Linux 或 macOS:

export ZENTAO_URL='https://zentao.example.com'
export ZENTAO_ACCOUNT='your-account'
export ZENTAO_PASSWORD='your-password'
"$HOME/.codex/skills/zentao-api/scripts/get-token.sh"

使用示例

查询当前账号的未完成任务:

$zentao-api 查询我未完成的任务,只看可继续推进的项目

查询指定账号的 Bug:

$zentao-api 查询 xxx 指派的未关闭 Bug

统计上周新增、完成与进行中的测试单:

$zentao-api 获取上周新增和完成的测试单,还有目前进行中的测试单

查询测试单下的 Bug:

$zentao-api 查询测试单 7014 关联的未关闭 Bug

创建研发需求:

$zentao-api 在产品 93 创建研发需求:会员中心新增手机验证;优先级 2;预估 8 小时;
需求内容为使用者可绑定并验证手机号

创建任务:

$zentao-api 在执行 4134 创建任务:实现会员手机验证;指派给 tanpeichan;预估 8 小时

创建 Bug:

$zentao-api 在产品 93 创建 Bug:登录页验证码无法送出;构建为 10884;模块为 API