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

@wx-sab/gitlab

v0.1.1

Published

CLI + skill for coding agents to operate GitLab via API

Downloads

287

Readme

@wx-sab/gitlab — gitlab-cli + gitlab skill

让 coding agent(Claude Code、Codex、TRAE 等)通过 gitlab-cli 命令代理 GitLab 常规操作:查项目、看/回 issue、提/合 MR、读写仓库文件、管理分支。

快速开始

# 一键安装:全局安装 CLI + 把 gitlab skill 复制到 agent 的 skill 目录
npx @wx-sab/gitlab setup

# 配置 GitLab 实例与 token
gitlab-cli auth login --url http://10.10.255.105 --token <你的PAT> --instance mycompany

# 验证
gitlab-cli auth status
gitlab-cli projects list --search my-project
# 备选:手动全局安装 CLI(然后运行 setup 只装 skill)
npm i -g @wx-sab/gitlab
gitlab-cli setup

内网环境:npx 需要能访问 npm registry。若无,请配置公司私有 registry,或从源码构建:

git clone <本仓库地址> && cd gitlab-cli && pnpm install && pnpm build && npm link

能力

| 组 | 命令 | 说明 | |----|------|------| | auth | login / logout / status | 多实例配置管理,token 校验 | | projects | list / get | 搜索/查看项目 | | issues | list / get / create / update / notes / comment | issue 全流程 | | mrs | list / get / create / update / merge / notes / comment | MR 全流程(含合入) | | repo | get-file / put-file / tree | 仓库文件读写 | | branches | list / create | 分支管理 | | users | search | 搜用户(评论 @ 人) | | setup | — | 一键安装 CLI + skill |

输出:默认 JSON(含 { data, pagination }),--format table 给人看。stdout 出数据,stderr 出错误。退出码:0 成功 / 1 参数错误 / 2 API 错误 / 3 未认证。

配置

配置文件 ~/.config/gitlab-cli/config.json(多实例):

{
  "instances": { "mycompany": { "url": "http://10.10.255.105", "token": "glpat-xxx" } },
  "current": "mycompany"
}

环境变量覆盖:GITLAB_URL + GITLAB_TOKEN 直接生效(CI 用);GITLAB_CLI_INSTANCE 选实例。

给 coding agent 使用

各项目把 gitlab-cli setup 装好的 gitlab skill 放进项目 .claude/skills/(或全局 ~/.claude/skills/)后,agent 会自动按 skill 指引操作 GitLab。

开发

pnpm install
pnpm lint && pnpm test && pnpm build

src/client/ 源自 gitlab-ai-worker/packages/shared,增强时注意两边同步。

发布

pnpm build
npm publish --registry <公司registry>