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

@zmice/zc

v0.2.5

Published

Unified CLI for installing, updating, and querying zc AI coding workflows across Codex, Claude Code, OpenCode, and Qwen

Readme

@zmice/zc

@zmice/zc 是 zc AI Coding Toolkit 的统一入口 CLI,也是当前仓库唯一对外发布的 npm 包。

相关入口:

如果你是从 npm 页面进入,先记住这件事:

  • zc 不是单个平台插件
  • 它是一个统一入口安装器
  • 用来给 Codex、Claude Code、OpenCode、Qwen 安装、更新、诊断和导出结构化 AI 编码内容

最短路径

npm install -g @zmice/zc
zc platform install codex --global
zc platform status codex --global --json

如果你想装到别的平台,把 codex 换成:

  • claude
  • opencode
  • qwen

如果你只是想安装和更新平台内容,优先看:

  • 安装
  • 平台安装模型
  • 命名空间适配
  • 高频用法

它负责:

  • runtime:启动单工人或团队协作运行时
  • toolkit:查询 skills / commands / agents
  • platform:生成、安装、更新和检查平台产物

它不负责:

  • 上游治理型仓库事务
  • references 的快照、审阅和导入提案

这些仓库级事务统一通过:

pnpm upstream -- <subcommand>

支持的平台

| 平台 | 当前安装形态 | 统一入口适配 | | --- | --- | --- | | Codex | AGENTS.md + skills/ | zc:start -> $zc-start | | Claude Code | CLAUDE.md + commands/ + agents/ | zc:start -> /zc-start | | OpenCode | AGENTS.md + commands/ + skills/ + agents/ | zc:start -> /zc-start | | Qwen | QWEN.md + extension 目录 | zc:start -> zc:start |

用户级 Qwen 安装默认会优先走官方扩展链:

  • 安装源:https://github.com/zmice/zc-qwen-extension.git
  • 安装方式:qwen extensions install
  • 更新方式:qwen extensions update zc-toolkit

参考边界

zc 不直接提供 upstream 治理命令,但它的命令面和安装行为会持续对齐平台官方能力与成熟社区实践。

CLI 侧当前重点参考:

  • oh-my-codex
  • Codex 官方 AGENTS.md / skills 文档
  • Claude Code 官方 memory / slash commands / sub-agents 文档
  • OpenCode 官方 rules / commands / skills / agents 文档
  • Qwen 官方 extensions / skills / qwen extensions 文档

也就是说:

  • 内容参考上游的治理在 references/
  • CLI 只吸收与命令体验、安装语义、平台适配直接相关的部分

仓库级 upstream 治理由下面入口承担:

pnpm upstream -- <subcommand>

安装

npm 全局安装

npm install -g @zmice/zc
zc --help

仓库内构建运行

pnpm install
pnpm build
node apps/cli/dist/cli/index.js --help

仓库开发态 link

pnpm setup
pnpm install
pnpm build
pnpm --dir apps/cli link --global
zc --help

如果 pnpm --dir apps/cli link --global 报:

  • ERR_PNPM_NO_GLOBAL_BIN_DIR

说明是 pnpm 环境未初始化,不是 zc 构建问题。

使用者与维护者

普通使用者

最常见的是这条循环:

zc platform where codex --global --json
zc platform install codex --global
zc platform status codex --global --json
zc platform update codex --global --plan --json

仓库维护者

如果你在维护 monorepo 本身,更常用的是:

pnpm install
pnpm --dir apps/cli build
pnpm --dir apps/cli test
pnpm verify

命令分层

Runtime

  • zc run
  • zc team ...
  • zc task ...
  • zc msg ...
  • zc doctor

Toolkit

  • zc toolkit lint
  • zc toolkit show <query>
  • zc toolkit search <keyword>
  • zc toolkit recommend <query>

<query> 同时支持:

  • 完整资产 ID,例如 command:build
  • 唯一名称,例如 build

Platform

  • zc platform generate <qwen|codex|claude|opencode>
  • zc platform install <qwen|codex|claude|opencode>
  • zc platform status <qwen|codex|claude|opencode>
  • zc platform update <qwen|codex|claude|opencode>
  • zc platform uninstall <qwen|codex|claude|opencode>
  • zc platform repair <qwen|codex|claude|opencode>
  • zc platform doctor <qwen|codex|claude|opencode>
  • zc platform where <qwen|codex|claude|opencode>

常用参数:

  • --project
  • --global
  • --dir <path>
  • --plan
  • --json
  • --force

命名空间适配

toolkit 里的内容使用统一语义名,例如:

  • zc:start
  • zc:product-analysis
  • zc:sdd-tdd
  • zc:quality-review

安装到不同平台后,不会强行保留同一种触发形式,而是按平台能力做适配:

  • Codex
    • 统一语义通过 $zc-* skill 承接
    • 例如:zc:start -> $zc-start
  • Claude Code
    • 统一语义通过 /zc-* command 承接
    • 例如:zc:start -> /zc-start
  • OpenCode
    • 统一语义通过 /zc-* command 承接
    • 例如:zc:start -> /zc-start
  • Qwen
    • 统一语义通过 zc:* namespaced command 承接
    • 例如:zc:start -> zc:start

这样做的目的只有一个:

  • 避免和平台内置命令、社区插件或未来扩展发生冲突

平台安装模型

Codex

  • 项目级:
    • AGENTS.md
    • .codex/skills/zc-<command>/SKILL.md
    • .codex/skills/zc-<skill>/SKILL.md
  • 用户级 / 自定义目录:
    • AGENTS.md
    • skills/zc-<command>/SKILL.md
    • skills/zc-<skill>/SKILL.md

Claude Code

  • 项目级:
    • CLAUDE.md
    • .claude/commands
    • .claude/agents
  • 用户级 / 自定义目录:
    • CLAUDE.md
    • commands
    • agents

OpenCode

  • 项目级:
    • AGENTS.md
    • .opencode/commands
    • .opencode/skills
    • .opencode/agents
  • 用户级 / 自定义目录:
    • AGENTS.md
    • commands
    • skills
    • agents

Qwen

  • 项目级:
    • .qwen/extensions/zc-toolkit/
  • 用户级 / 自定义目录:
    • extensions/zc-toolkit/
  • 用户级默认优先通过官方 qwen extensions 管理
  • 默认安装源:
    • https://github.com/zmice/zc-qwen-extension.git
  • 默认更新方式:
    • qwen extensions update zc-toolkit

高频用法

# toolkit
zc toolkit lint --json
zc toolkit show command:start
zc toolkit search review
zc toolkit recommend build

# platform
zc platform where codex --global --json
zc platform install codex --global
zc platform status codex --global --json

zc platform install claude --global
zc platform install opencode --global
zc platform install qwen --global
zc platform status qwen --global --json
zc platform generate qwen --bundle release-bundle --dir /tmp/zc-toolkit
zc platform doctor codex --global --json
zc platform repair qwen --global --json
zc platform uninstall opencode --global --plan --json

如果你主要是把 zc 当安装器使用,最常见的循环是:

# 看平台默认安装位置
zc platform where codex --global --json

# 安装或更新平台内容
zc platform install codex --global
zc platform update codex --global --plan --json

# 检查当前状态
zc platform status codex --global --json

# 诊断、修复、卸载
zc platform doctor codex --global --json
zc platform repair codex --global --plan --json
zc platform uninstall codex --global --plan --json

如果你要把 Qwen 扩展作为独立目录导出,而不是直接安装到本机,可以使用:

zc platform generate qwen --bundle release-bundle --dir /tmp/zc-toolkit

设计边界

  • command:startcommand:product-analysis 目前是 toolkit 内容入口,不是 CLI 子命令
  • sdd-tdd 在内容层里属于 full-delivery workflow,而不是统一任务分诊入口
  • zc 只承载已经落地的产品命令,不把内容层 canonical command 直接暴露成 CLI

开发

常改位置:

  • apps/cli/src/cli/
  • apps/cli/src/runtime/
  • apps/cli/src/team/
  • apps/cli/src/utils/

验证

pnpm --dir apps/cli test
pnpm --dir apps/cli build
pnpm --dir apps/cli verify

更完整的使用说明见: