Skip to content

Repository files navigation

📦 claude-pack

Package manager for Claude Code. Browse, install, and share commands, skills, agents, and hooks across projects — like oh-my-zsh for Claude.

License: MIT Go Version Packs PRs Welcome

$ cpack list
✦ 26 packs in catalog (commands: 10, skills: 10, agents: 4, hooks: 2)

  [command]  code-review       Comprehensive code review focusing on bugs, security, performance...
  [command]  refactor          Refactor the selected code for clarity without changing behavior
  [skill]    golang-engineer   Idiomatic Go expert focused on stdlib-first, simple, well-tested code
  [skill]    react-developer   Modern React/Next.js engineer focused on server components, susp...
  [skill]    postgres-dba      PostgreSQL DBA focused on schema design, indexing, locking...
  [agent]    test-runner       Runs the project's test suite, reports failures with reproducers...
  ...

$ cpack add code-review golang-engineer
✓ installed code-review     → .claude/commands/code-review.md
✓ installed golang-engineer → .claude/skills/golang-engineer.md

# Now /code-review and the golang-engineer skill are available in this project.

What is this?

Claude Code ships with a directory structure for project-local extensions:

Directory What goes here
.claude/commands/ Slash commands you invoke (/code-review, /refactor)
.claude/skills/ Personas / capabilities loaded when relevant
.claude/agents/ Autonomous task agents
.claude/hooks/ Scripts triggered before/after tool use

Everyone writes their own. Some are really good. Almost none are shared. claude-pack is a curated, community-driven catalog of high-quality packs — and a one-line CLI to install them into your projects.

Install

From source (Go 1.22+)

go install github.com/dokienlam/claude-pack@latest

The binary is named cpack.

Prebuilt binary

# Linux x86_64
curl -L https://github.com/dokienlam/claude-pack/releases/latest/download/cpack_linux_amd64 -o ~/.local/bin/cpack
chmod +x ~/.local/bin/cpack

(macOS / Windows / arm64 binaries on the releases page.)

Usage

cpack list                          # show all packs in the catalog
cpack list --type=skill             # filter by type
cpack search testing                # find by name, description, or tag
cpack info code-review              # show full prompt body before installing
cpack add code-review               # install into ./.claude/
cpack add code-review --force       # overwrite existing
cpack add a b c                     # install several at once
cpack add code-review --dest=/path  # install into a specific project
cpack remove code-review            # uninstall from current project
cpack update                        # refresh the catalog from GitHub
cpack init                          # create empty .claude/ scaffold in cwd

The catalog is fetched from this repo on first run (cached at ~/.cache/claude-pack/). Run cpack update to pull new contributions.

What's in the catalog?

Commands (slash-commands)

Name Description
code-review Severity-classified review with concrete fixes
refactor Behavior-preserving cleanup, no new abstractions
explain-error Walk through a stack trace to root cause + fix
add-tests Focused test suite with happy + edge + boundary cases
optimize Find real bottlenecks, with measurement guidance
security-audit OWASP-aware review with concrete exploit scenarios
pr-description Generate a clean PR description from the diff
regex Build, debug, or explain a regex with worked examples
sql-tune Diagnose slow queries from EXPLAIN ANALYZE
api-design REST/RPC review or design with versioning + errors

Skills (personas)

Name Description
golang-engineer Idiomatic Go, stdlib-first
react-developer Modern React with server components
python-pythonic Type-hinted, idiomatic Python 3.12+
postgres-dba Schema, indexes, locks, migrations
kubernetes-operator Production-safe deploys, observability
terraform-iac Safe, modular, reviewable IaC
security-reviewer Thinks like an attacker, with exploit scenarios
tech-writer Clean, dense, no-fluff documentation
git-historian Clean commits, safe rewrites, branching
tailwind-ux Accessible, responsive, well-designed UI

Agents

Name Description
code-explorer Read-only mapping of an unfamiliar codebase
test-runner Runs tests and triages failures
dependency-auditor Vulns + unused + outdated deps with reachability analysis
migration-writer DB migrations with explicit lock + downtime analysis

Hooks

Name Description
block-secrets-on-edit Pre-tool-use scanner that blocks writes containing API keys
auto-format-on-edit Post-tool-use formatter dispatch (gofmt/ruff/prettier/...)

Contributing — adding your pack is the point of this repo

Got a great slash-command, skill, or agent you've been using? Open a PR — it takes 5 minutes.

# 1. Fork + clone
git clone https://github.com/YOUR/claude-pack && cd claude-pack

# 2. Copy a similar existing pack as a starting template
cp commands/code-review.md commands/your-command.md

# 3. Edit the YAML frontmatter (name, description, tags, author) and the body

# 4. Validate locally
go test ./...

# 5. Open a PR

See CONTRIBUTING.md for the full template and quality bar.

CI auto-validates: name format, required fields, body non-empty, no duplicate names. If it passes, a maintainer reviews for quality and merges.

Pack format

Every pack is a single Markdown file with YAML frontmatter:

---
name: code-review
type: command
description: Comprehensive code review focusing on bugs, security, performance, and maintainability
tags: ["review", "quality", "git", "core"]
author: your-github-handle
version: 1.0.0
---

# Code Review

[The prompt body — this is what Claude actually reads when the pack is invoked.]

Why a CLI and not just an awesome-list?

Awesome-lists are great for discovery. Terrible for installation. This repo gives you both:

  • Browse-and-search like an awesome-list (run cpack list, browse the file tree)
  • One-line install like a real package manager (cpack add foo)
  • Updates that come back to your projects when you run cpack update

Architecture

~700 lines of Go in 5 files:

main.go      subcommand dispatch + flag handling (with re-ordering helper)
pack.go      Pack type + frontmatter parser + validation
registry.go  catalog cache (clone/pull from this repo)
ui.go        terminal colors and table rendering

Single static binary, no CGO, ~2.7 MB. The binary doesn't bundle the catalog — it clones this repo on first run, so updates are git-pull-fast.

Roadmap

  • cpack publish <file> — open a PR from a local pack via gh
  • Pack signing + verification
  • Per-team private catalogs (CLAUDE_PACK_REPO=git@private.example/...)
  • Pack composition (extends: in frontmatter to inherit from another)
  • Web UI for browsing (GitHub Pages)
  • cpack outdated to show installed packs newer in catalog

License

MIT — see LICENSE. All packs you submit are MIT-licensed by default unless you state otherwise in the frontmatter.


If a pack here saved you keystrokes, consider submitting one of your own. And a ⭐ helps too.

About

Package manager for Claude Code — browse, install, share commands, skills, agents, and hooks

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages