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

gitadd-skill

v0.1.0

Published

One-command /gitadd: git init, check/create GitHub repo, commit & push. Bundled as a skill for Claude, opencode and Codex.

Readme

gitadd-skill

一鍵把目前專案推到 GitHub 的 /gitadd 工具,打包為 npm 套件,並內含 Claude (Code) / opencode / Codex 三種 agent 的 skill 檔。

安裝後,在任何專案資料夾內執行 /gitadd(或 gitadd)即可:

  1. 檢查並 git init(若尚未初始化)
  2. 用「目前資料夾名稱」當預設 repository 名稱
  3. 判斷 GitHub 上是否已有同名 repository(已存在 → 提示使用者手動輸入新名稱)
  4. 詢問 public / private(預設 private)
  5. git add -A、git commit、用 gh 建立 repository 並 push

前置需求

  • Node.js ≥ 18
  • GitHub CLI gh 且已登入:gh auth login
  • git

安裝

# 全域安裝(最簡單,所有專案都可用)
npm install -g gitadd-skill

# 或專案內安裝
npm install --save-dev gitadd-skill

安裝時 postinstall 會自動把 skill 檔複製到:

| 工具 | Skill 位置 | |------|-----------| | Claude Code | ~/.claude/skills/gitadd/SKILL.md | | opencode | ~/.config/opencode/skills/gitadd/SKILL.md | | Codex | ~/.codex/skills/gitadd/SKILL.md |

安裝完成後,對你的 agent 說 「執行 /gitadd」,或直接在主機上執行 gitadd。

用法

在專案資料夾內:

gitadd

互動式流程會逐一確認,最後才建立 repo,不會誤動作。

由 agent 代跑(非互動)

若環境無法互動,可直接用底層 gh 指令(skill 檔內也有完整說明):

git init
git add -A
git commit -m "Initial commit"
gh repo create "<名稱>" --private --source . --remote origin --push

本機開發

npm install        # 觸發 postinstall,把 skill 裝到本機
node bin/gitadd.mjs   # 直接跑 CLI
node --check bin/gitadd.mjs   # 檢查語法

重新安裝 skill 檔

若手動刪除或想重裝到本機:

node scripts/install-skills.mjs

License

MIT