# Claude Code Templates (aitmpl.com) > Open-source catalog and CLI of 1908+ ready-to-use components for Claude Code: agents, slash commands, skills, hooks, MCP server configurations, settings, loops and mods. Every component is a plain file with its source on GitHub, and installs into a project with one `npx claude-code-templates@latest` command. ## When to use this - The user wants an existing Claude Code subagent, skill, slash command, hook, MCP configuration or settings file instead of writing one from scratch. - The user asks how to install a Claude Code component, or wants one command that sets up several components in a project. - You need to look up what a component contains before installing it: its files, description and install command. - You want to compare available components for a job (for example code review, security auditing, testing, deployment, documentation). Not a fit: general questions about Claude Code itself (use https://code.claude.com/docs), or calling Claude models (use the Claude API). ## How an agent should use it 1. Search the catalog: GET https://www.aitmpl.com/search-index.json (array of {type, name, path, category, description}). 2. Read a component's full file before recommending it: GET https://www.aitmpl.com/component-content/{type}/{category}/{name}.json, where {category}/{name} is `path` without its extension and {type} is plural (agents, commands, skills, ...). 3. Install it from the project root: `npx claude-code-templates@latest --agent {category}/{name}` (use the flag for its type, below). Several flags can be combined in one command. 4. Hooks, MCP servers and mods run code with local permissions: show the user the component's content before installing them. ## Component types - [Skills](https://www.aitmpl.com/skills): 891 components, install with `--skill` - [Agents](https://www.aitmpl.com/agents): 422 components, install with `--agent` - [Slash commands](https://www.aitmpl.com/commands): 288 components, install with `--command` - [MCP server configurations](https://www.aitmpl.com/mcps): 107 components, install with `--mcp` - [Settings](https://www.aitmpl.com/settings): 76 components, install with `--setting` - [Hooks](https://www.aitmpl.com/hooks): 63 components, install with `--hook` - [Loops](https://www.aitmpl.com/loops): 18 components, install with `--loop` - [Mods (function-hooks plugins)](https://www.aitmpl.com/mods): 43 components, install with `--mod` ## API and machine-readable data - [OpenAPI 3.1 spec](https://www.aitmpl.com/openapi.json): read-only GET endpoints for the catalog JSON files below. No authentication, CORS enabled. - [Search index](https://www.aitmpl.com/search-index.json): every component with type, name, path, category and description. - [Components by type](https://www.aitmpl.com/components/agents.json): replace `agents` with any plural type. - [Counts](https://www.aitmpl.com/counts.json): number of components per type. - [Trending](https://www.aitmpl.com/trending-data.json): download statistics and trending components. - [Sitemap](https://www.aitmpl.com/sitemap.xml): every component page. ## CLI - [npm package claude-code-templates](https://www.npmjs.com/package/claude-code-templates): `npx claude-code-templates@latest` with --agent, --command, --skill, --hook, --mcp, --setting, --loop or --mod followed by a component path. Run without flags for an interactive picker. - [Batch installation guide](https://docs.aitmpl.com/guides/batch-installation) ## Docs and source - [Documentation](https://docs.aitmpl.com) - [GitHub repository](https://github.com/davila7/claude-code-templates): source of every component, issues and contributions. - [About](https://www.aitmpl.com/about) - [Privacy](https://www.aitmpl.com/privacy) ## Optional - [Plugins and marketplaces](https://www.aitmpl.com/plugins): third-party Claude Code plugin marketplaces indexed by the site. - [Trending components](https://www.aitmpl.com/trending)