# 使用 Homebrew 安装 claude-code-templates

查看 claude-code-templates 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:claude-code-templates
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install claude-code-templates
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:claude-code-templates
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/claude-code-templates>
- **版本:** 1.29.4
- **来源摘要:** CLI tool for configuring and monitoring Claude Code
- **主页:** <https://www.aitmpl.com/agents>
- **上游文档:** <https://www.aitmpl.com/agents>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/claude-code-templates/-/claude-code-templates-1.29.4.tgz>
- **最后更新:** 2026-07-16T06:09:54Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- claude-code-templates (cli)
- claude-code-templates (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.29.4
- 管理器更新时间: 2026-07-16
- 本地数据: OK
- 上游仓库: https://www.aitmpl.com/agents
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Claude Code Templates is a catalog and CLI for installing reusable Claude Code agents, commands, MCP integrations, settings, hooks, skills, and project templates. The official README presents it as both an npm CLI and the backend/catalog for the aitmpl.com browsing experience.

### 项目历史

The npm package was first published in July 2025 and grew quickly by version count, with the npm registry recording 155 versions by the 1.29.2 release. The project emerged after Claude Code made `.claude` directories, slash commands, MCP servers, hooks, and agent definitions valuable reusable artifacts.

The README frames the project as a comprehensive collection rather than a single template. It includes install commands for individual agents, commands, MCPs, settings, hooks, and broader development stacks, plus additional tools for analytics, conversation monitoring, health checks, and plugin dashboards.

### 采用历史

The package is distributed as `claude-code-templates` on npm and as a Homebrew formula that packages the npm tarball. Its official README also points users to docs.aitmpl.com and aitmpl.com for browsing and installation.

The README documents third-party and official upstream sources used in the collection, including Anthropic's official skills and Claude Code examples, scientific skills, community agent repositories, and command collections. That source attribution is a stronger adoption signal than download claims because it shows the catalog curating across multiple Claude ecosystem projects.

### 使用方式

Users can run `npx claude-code-templates@latest` interactively or pass flags such as `--agent`, `--command`, `--mcp`, `--setting`, `--hook`, and `--yes` to install selected components into Claude Code configuration locations.

The project is also used as a discovery layer: the README directs users to aitmpl.com to browse more than 100 agents, commands, settings, hooks, and MCPs, then install selected components through the CLI.

### 为什么软件包爱好者会关心

For package nerds, Claude Code Templates is a clear example of the package-manager instinct moving from binaries and libraries into AI-agent configuration. Prompts, hooks, agent roles, MCP endpoints, and settings become catalog entries that can be searched, attributed, installed, and updated.

The project is also notable because its package wraps a living catalog. The Homebrew formula points to an npm tarball, while the docs and website provide a higher-level registry experience for components that are not traditional executable packages.

### 时间线

- 2025-07: npm registry records the first `claude-code-templates` publication.
- 2026-06: npm registry records published version 1.29.2 after 155 published versions.
- 2026: Homebrew formula `claude-code-templates` packages version 1.29.2 from the npm registry.

### Related projects

- Claude Code is the runtime whose agents, commands, settings, hooks, skills, and MCP integrations the templates target.
- Anthropic's official skills and anthropics/claude-code examples are credited by the README as upstream sources.
- awesome-claude-code, awesome-claude-skills, wshobson/agents, obra/superpowers, and K-Dense-AI/claude-scientific-skills are named by the README as related source collections.

### 来源

- <https://github.com/davila7/claude-code-templates>
- <https://registry.npmjs.org/claude-code-templates>
- <https://formulae.brew.sh/api/formula/claude-code-templates.json>
- <https://docs.aitmpl.com/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .claude/config.json, .claude/settings.json, .claude/settings.local.json, ~/.claude/settings.json, .mcp.json
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** claude-code-templates
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## 相关链接

- [MCP tool packages](https://pkg.so/zh-hans/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [AI and agent packages](https://pkg.so/zh-hans/ai-agent-tools/) - Matched AI model, agent, coding-agent, orchestration, or MCP metadata.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [node](https://pkg.so/zh-hans/brew/node/) - Runtime dependency declared by Homebrew.
- [claudekit](https://pkg.so/zh-hans/brew/claudekit/) - Shares pkgdb curated category or tags: ai, claude-code, cli, coding-agents, hooks.
- [claude-hooks](https://pkg.so/zh-hans/brew/claude-hooks/) - Shares pkgdb curated category or tags: ai, claude-code, cli, coding-agents, hooks.
- [ccusage](https://pkg.so/zh-hans/brew/ccusage/) - Shares pkgdb curated category or tags: ai, claude-code, cli, coding-agents.
- [claude-code-router](https://pkg.so/zh-hans/brew/claude-code-router/) - Shares pkgdb curated category or tags: ai, claude-code, cli, coding-agents.
- [claude-cmd](https://pkg.so/zh-hans/brew/claude-cmd/) - Shares pkgdb curated category or tags: ai, claude-code, cli, coding-agents.
- [ctx7](https://pkg.so/zh-hans/brew/ctx7/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, mcp.
- [code2prompt](https://pkg.so/zh-hans/brew/code2prompt/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, mcp.
- [tweakcc](https://pkg.so/zh-hans/brew/tweakcc/) - Shares pkgdb curated category or tags: ai, claude-code, cli, coding-agents.

## Combined YAML source

View the package source record on GitHub. [combined/claude-code-templates.yml](https://github.com/mxcl/pkgdb/blob/main/combined/claude-code-templates.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
