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

@truongqv12/vit-cli

v1.6.0

Published

Vit CLI — cài đặt, cập nhật và quản lý Vit Engine (rules/skills/agents) cho Claude Code.

Readme

Vit CLI

Công cụ dòng lệnh cài đặt, cập nhật và quản lý Vit Engine (rules / skills / agents) cho Claude Code.

Giới thiệu

Vit CLI (vit) cung cấp những lệnh thiết yếu để khởi tạo, cập nhật, và xuất Vit Engine — một bộ công cụ AI hỗ trợ phát triển toàn diện cho Claude Code. Engine được lưu trữ trong repo private trên GitHub; bạn cần GitHub token (gh auth login hoặc GITHUB_TOKEN) để truy cập.

Tính năng chính:

  • Cài đặt: Tải Vit Engine từ GitHub, giải nén vào .claude/
  • Cập nhật: Nâng cấp engine, giữ lại file bạn đã sửa
  • Xuất (Migrate): Chuyển .claude/ sang các platform khác (Codex, OpenCode, Antigravity)
  • Quản lý Plan: Tạo, theo dõi tiến độ các phase dự án
  • Kiểm tra sức khỏe: Xác minh token, quyền, cấu trúc .claude/, hook wiring, skill deps
  • Thông minh Merge: Phát hiện xung đột, bảo toàn tùy chỉnh người dùng
  • Cross-Platform: macOS, Linux, Windows (PowerShell/Bash)

Yêu cầu

Trước khi sử dụng Vit CLI, hãy đảm bảo bạn có:

  1. Node.js >= 18.0.0 — kiểm tra: node --version
  2. GitHub CLI — cài đặt và đăng nhập: gh auth login
  3. GitHub Token — chạy gh auth login chọn "Login with a web browser"
  4. Quyền truy cập: Được mời vào private repo truongqv12/vit-engine

Nếu không có token hoặc không có quyền, vit init sẽ báo lỗi.

Cài đặt

Vit CLI được phát hành trên npm tại @truongqv12/vit-cli.

Cách 1: npm (khuyên dùng)

npm install -g @truongqv12/vit-cli

Cách 2: yarn

yarn global add @truongqv12/vit-cli

Cách 3: pnpm

pnpm add -g @truongqv12/vit-cli

Cách 4: Từ repo (phát triển)

git clone https://github.com/your-org/vit-cli.git
cd vit-cli
npm install
npm run build
npm link        # Tạo lệnh `vit` toàn cục

Sau cài đặt, kiểm tra:

vit --version

Sử dụng nhanh

Thiết lập lần đầu

# Đăng nhập GitHub (một lần)
gh auth login

# Di chuyển tới folder project
cd /đường/dẫn/project

# Cài Vit Engine
vit init

# Kiểm tra sức khỏe
vit doctor

Các lệnh chính

| Lệnh | Mô tả | Chi tiết | |------|-------|---------| | vit init | Cài Vit Engine vào .claude/ | Tải engine từ GitHub, merge settings, hỏi cài deps skill | | vit update | Cập nhật engine lên bản mới | Giữ lại file user đã sửa; dùng --dry-run để xem trước | | vit migrate | Xuất .claude/ sang provider khác | Hỗ trợ: codex, opencode, antigravity | | vit plan | Quản lý project plans | create / check / uncheck / status | | vit doctor | Kiểm tra sức khỏe | Token, quyền, .claude/, hook, skill | | vit version | In phiên bản | CLI version + engine đã cài |

Chi tiết: xem docs/cli-reference.md.

Ví dụ

Cài đặt (interactive)

vit init

Hệ thống sẽ:

  1. Xác minh GitHub token
  2. Tải Vit Engine từ private repo
  3. Cài file vào .claude/
  4. Tạo .claude/.env từ template
  5. Hỏi: "Cài dependency của skill ngay không?" (chọn Yes/No)

Cài đặt không hỏi (CI/CD)

vit init -y --install-skills

Bỏ qua tất cả prompt, tự cài xong.

Cập nhật

vit update --dry-run      # Xem thay đổi trước
vit update                 # Cập nhật thực sự

Xuất sang OpenCode

vit migrate --agent opencode --dry-run     # Xem trước
vit migrate --agent opencode                # Xuất thực sự

Hoặc xuất sang nhiều platform:

vit migrate --agent codex -a opencode -a antigravity --dry-run
vit migrate --all                           # Xuất sang cả 3

Tạo plan

vit plan create --title "Thêm xác thực" --phases "Nghiên cứu, API, UI, Kiểm thử" --dir auth

# Di chuyển vào folder plan
cd plans/20250618-1430-auth

# Theo dõi tiến độ
vit plan check 1              # Phase 1 xong
vit plan check 2 --start      # Phase 2 đang làm
vit plan status               # In progress

Kiểm tra sức khỏe

vit doctor        # Báo cáo đầy đủ
vit doctor --verbose  # Chi tiết debug

Tài liệu

Tài liệu chi tiết trong /docs:

Phát triển

Cấu trúc dự án

src/
├── index.ts              # Điểm vào CLI
├── commands/             # Lệnh (init, update, migrate, plan, doctor, version)
├── domains/              # Logic nghiệp vụ (github, installation, migration, skills)
├── services/             # Service chung (file ops, package installer)
└── shared/               # Tiện ích (logger, UI, path resolver)

Build & Test

npm run build          # Biên dịch TypeScript
npm test               # Chạy test
npm run typecheck      # Kiểm tra type
npm run dev [args]     # Chạy dev: npm run dev init

Quality Gate

Trước khi commit/push, chạy:

npm run build
npm test
npm run typecheck

Lập kế hoạch

Quá trình phát triển theo phases:

  • [x] Phase 1 — Khung CLI + engine + đổi tên vit:
  • [x] Phase 2 — Truy cập engine private via gh, tải/giải nén
  • [x] Phase 3 — init/update reconcile theo manifest
  • [x] Phase 4 — Lệnh plan
  • [x] Phase 5 — Skill memory + release pipeline
  • [x] Phase 6 — Bê toàn bộ engine + đổi tên vit:
  • [x] Phase 7 — Manifest + release full tree
  • [x] Phase 8 — Cài deps skill (--install-skills)
  • [x] Phase 9 — Merge settings.json + prune orphaned hooks
  • [x] Phase 10 — Lệnh migrate (codex / opencode / antigravity)
  • [x] Phase 11 — doctor health-check

Xử lý sự cố

Chạy vit doctor để chẩn đoán:

vit doctor           # Kiểm tra tất cả
vit doctor --verbose # Chi tiết

Vấn đề thường gặp:

| Lỗi | Giải pháp | |-----|----------| | "No GitHub token" | Chạy gh auth login | | "403 Forbidden" | Kiểm tra token scope (repo), quyền truy cập repo | | "Network timeout" | Kiểm tra kết nối, firewall/proxy | | "File permission denied" | Kiểm tra quyền .claude/ | | Skill install fail | Chạy vit init --install-skills để thử lại |

Giấy phép

MIT


Inspired by ClaudeKit — lấy cảm hứng từ cấu trúc và UX của ClaudeKit CLI.