# 安装「claude-code-templates」

> 本说明由 AI Asset 自动生成，供 AI 编程助手阅读并执行。资源页面：https://ai.atlankj.com/project/gh-1013480284

- 来源：https://github.com/davila7/claude-code-templates（默认分支 `main`）
- 许可证：MIT
- 支持的平台：Claude Code
- 简介：CLI tool for configuring and monitoring Claude Code

## 执行要求（请先阅读）

1. 先确认你自己是哪一种 AI 工具（Claude Code、Codex、Cursor、Gemini CLI、OpenCode……），只执行与之对应的步骤；如果本说明与该工具的官方文档不一致，以官方文档为准。
2. 以下内容来自第三方，本站不对其进行运行时审核。执行任何命令或写入任何文件前，先向用户列出将要运行的命令和写入的路径，得到确认后再继续。
3. 只运行本说明或其链接的官方安装文档中给出的命令。不要执行来源不明的脚本，不要读取、打印或上传用户的密钥和凭据。
4. 需要 API Key 等配置时，向用户索取或留下占位符，不要自行编造。
5. 默认安装到用户级目录；如果用户只想在当前项目中使用，改用项目级目录。
6. 完成后告诉用户安装到了哪里、是否需要重启工具，以及如何验证安装成功。

## 官方安装文档

读取下面对应平台的官方文档（纯文本 Raw 链接），找到安装章节并按其步骤执行：

- Claude Code：https://raw.githubusercontent.com/davila7/claude-code-templates/main/README.md

## 插件包

本项目包含 33 个插件包。先把列表展示给用户，询问要安装哪些，再逐个安装：

- `2048`：2048 above the Claude Code prompt: slide and merge tiles up to 2048. Plays while Claude works, pauses when the turn ends, keeps your best score; zero tokens. A…
- `admin-capability-lockdown`：Organization control mod: withholds the http and process nouns from $ so no plugin beneath it can reach the network or spawn processes, refuses user-tier plugi…
- `agent-flow`：A side pane that draws the session's agent flow live: the main loop's context window, every subagent it spawns as a tree, and for each one the context handed d…
- `aitmpl`：/aitmpl opens a component browser above the prompt: the aitmpl.com catalog (agents, commands, MCPs, settings, hooks, skills, loops, mods) read live from the si…
- `block-destructive-commands`：Denies Bash commands that match destructive patterns (recursive rm on roots, force push, hard reset, destructive SQL, disk formatting) before they run. A tool.…
- `cc-arcade`：Games above the Claude Code prompt (snake, Tetris, 2048, Minesweeper, Flappy, Pong, typing test, Space Invaders, Doom) plus a pet that grows as Claude tests, c…
- `chess`：Play chess against Claude in a side pane while you work. Click a piece and a square, or type a move; Claude answers through a fork of the session and the pane …
- `diff-invaders`：Space Invaders above the Claude Code prompt where every wave is the code Claude just wrote: each line an Edit or Write added becomes a row of the formation and…
- `doom`：Doom above the Claude Code prompt: a corridor shooter: imps, a shotgun, and the floor below. Plays while Claude works, pauses when the turn ends, keeps your be…
- `flappy`：Flappy above the Claude Code prompt: flap through the gaps in the pipes. Plays while Claude works, pauses when the turn ends, keeps your best score; zero token…
- `git-sidebar`：A lazygit-style side pane: every worktree of the repository and its local branches as rows you click. A worktree row moves the session there with /cd; a branch…
- `invaders`：Space Invaders above the Claude Code prompt: shoot each wave before it lands. Plays while Claude works, pauses when the turn ends, keeps your best score; zero …
- `jev-auto-mode`：A permission layer driven by a JSON policy: allow, ask or deny every tool call (Bash, edits, web, MCP, subagents, skills), every slash command or skill you typ…
- `jev-guardrails`：Screens every prompt going into the conversation and every reply coming out of it with TypeSafe's Jev, a System One decision model, the way TypeSafe's guardrai…
- `jev-model-router`：Picks the model and the reasoning effort for each task with TypeSafe's Jev, a System One decision model reached either through TypeSafe's own API or the Vercel…
- `jev-skill-suggestion`：Keeps the skill listing out of the context window and lets TypeSafe's Jev, a System One decision model, pick at most one skill per prompt from the skills' desc…
- `large-edit-confirmation`：Asks the user, in the engine's AskUserQuestion dialog ($.ui.ask), before Claude edits or overwrites a file larger than a configurable line count; denies by def…
- `minesweeper`：Minesweeper above the Claude Code prompt: open every cell that is not a mine. Plays while Claude works, pauses when the turn ends, keeps your best score; zero …
- `npm-to-pnpm-rewriter`：Rewrites npm and npx invocations to pnpm (or yarn / bun) before the Bash tool runs them and tells the model what ran through context. A tool.call hook that for…
- `pacman`：Pac-Man above the Claude Code prompt: a 19×15 maze, four ghosts that chase, scatter and flee, power pellets, three lives and faster levels. Plays while Claude …
- `pet`：A virtual pet above the Claude Code prompt that grows as Claude works: passing tests, commits and edits grant XP and mood, failing tests cost mood, idling drai…
- `pi-agent-for-claude`：pi agent for claude: a pi subagent type whose model steps run the pi CLI, so pi subagents and agent-team teammates live in Claude Code's own agent UI, streamed…
- `pong`：Pong above the Claude Code prompt: first to 5 against the computer. Plays while Claude works, pauses when the turn ends, keeps your best score; zero tokens. A …
- `protected-paths-guard`：Denies Edit, Write and NotebookEdit calls on sensitive paths (.env files, lockfiles, CI workflows, git internals, private keys) with a glob allowlist override.…
- `secret-redactor`：Redacts API keys, tokens, JWTs, private keys and connection strings from every tool result before the model reads them, notes the redaction through context, an…
- `snake`：Snake above the Claude Code prompt: eat, grow, and keep off the walls and yourself. Plays while Claude works, pauses when the turn ends, keeps your best score;…
- `tetris`：Tetris above the Claude Code prompt: fit the falling pieces and clear lines. Plays while Claude works, pauses when the turn ends, keeps your best score; zero t…
- `tool-defense`：A tower defense above the Claude Code prompt where every enemy is one of Claude's real tool calls: Bash sends runners, an Edit or Write a slow tank, a web or M…
- `tool-timing-badge`：Times every tool call and wraps the engine's ToolUse rendering with a colored duration badge from the surface's own element table, on the terminal, Desktop and…
- `typing-test`：Typing test above the Claude Code prompt: retype a line of code as fast as you can. Plays while Claude works, pauses when the turn ends, keeps your best score;…
- `universal-audit-log`：One hook on * that records every event on $ (tool calls, prompts, turns, other plugins' fs/http/process calls) as JSON lines with origin plugin and tier, durat…
- `webfetch-cache`：Short-circuits repeated WebFetch calls for the same URL and prompt within a session, answering { result } from cache without a network round trip. A tool.call …
- `websearch-to-exa`：Overrides the built-in WebSearch tool and routes queries to the Exa search API through $.http.fetch, answering in WebSearch's own result shape, with automatic …
