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

zentao-bug-search

v1.0.11

Published

禅道 Bug 搜索 CLI 与 Agent Skill:支持 33 个高级搜索字段、中文人员/产品模糊匹配,可输出总结报告

Readme

zentao-bug-search

禅道(ZenTao 12.5+)Bug 搜索命令行工具与 Agent Skill。支持 33 个高级搜索字段、10 种运算符,人员字段可直接写中文姓名,产品名支持中文模糊匹配,并可输出总结报告。

安装

npm i zentao-bug-search
npx zentao-bug install      # 把技能安装到当前项目

(也可全局安装 npm i -g zentao-bug-search 后直接用 zentao-bug 命令。)

不想用 npm 时,也可以直接解压发布包,使用同目录的 zentao-bug.exe,参数完全一致。

构建

npm install
npm run build:exe        # 生成 dist/zentao-bug.exe,并复制 .env 到 dist/

构建产物 dist/zentao-bug.exe 与 npm 包内分发的 exe 完全一致。

配置

在 dist\ 下放置 .env(或用环境变量覆盖):

ZENTAO_BASE_URL=http://<host>:<port>/zentao
ZENTAO_ACCOUNT=<账号>
ZENTAO_PASSWORD=<密码>

用法

.\dist\zentao-bug.exe meta                                  # 取字典缓存
.\dist\zentao-bug.exe dict products                         # 产品列表
.\dist\zentao-bug.exe search -p 工业互联网平台 -w "assignedTo=许硕 and status=active" --summary
.\dist\zentao-bug.exe search -p 24 -w "status=closed and closedDate between 2026-11-01..2026-11-30" --summary

参数:

| 参数 | 说明 | |---|---| | -p, --product | 产品名或 ID,中文模糊匹配 | | -w, --where | 条件表达式,可重复,多条 AND | | -g, --group | 多组逻辑,or 前缀表示并集 | | -n, --limit | 明细条数限制(默认全部) | | --page-size | 服务端每页条数(默认 500) | | --summary | 输出文字总结报告 | | --force | 强制刷新字典缓存 |

条件语法:字段=值、字段 运算符 值、字段 between 起..止;运算符 = != > >= < <= ~ !~ in between。字段与取值细节见 SKILL.md。

作为 Agent Skill 使用

用 exe 一键安装到当前项目(自动写入 Trae / Claude Code / Cursor / AGENTS.md):

.\dist\zentao-bug.exe install

安装到用户级(Trae ~/.trae-cn/skills、Claude ~/.claude/skills):

.\dist\zentao-bug.exe install --global

指定工具:

.\dist\zentao-bug.exe install --tool trae,claude

也可以手动复制 SKILL.md 到 .trae/skills/zentao-bug-search/SKILL.md(Claude 为 .claude/skills/zentao-bug-search/SKILL.md)。