Skip to main content

Installing Individual Components

Claude Code Templates provides over 600 individual components that you can install one at a time. Each component type serves a specific purpose in your development workflow.

Component Types

Before installing, understand what each component type does:
  • Agents (162+) - AI specialists for specific tasks (e.g., security-auditor, frontend-developer)
  • Commands (210+) - Custom slash commands for workflows (e.g., /setup-testing, /docker-setup)
  • MCPs (65+) - Model Context Protocol integrations for external services
  • Settings (60+) - Configuration files for Claude Code behavior
  • Hooks (45+) - Automation triggers for events (e.g., before bash, after file edit)
  • Skills - Specialized knowledge domains for Claude to reference

Installation Syntax

All components follow the same installation pattern:
npx claude-code-templates@latest --{type} {component-name}

Installing Agents

Agents are AI specialists stored in .claude/agents/.
1
Browse Available Agents
2
Visit aitmpl.com and filter by “Agents” to explore 162+ available agents organized by category:
3
  • Development Team - Full-stack, frontend, backend developers
  • Security - Security auditors, penetration testers
  • Data/AI - ML engineers, data scientists
  • DevOps - Cloud architects, infrastructure specialists
  • Business - Product managers, project managers
  • 4
    Install an Agent
    5
    npx claude-code-templates@latest --agent frontend-developer
    
    6
    You can use either the component name or the full category path:
    7
    # Both work
    npx claude-code-templates@latest --agent frontend-developer
    npx claude-code-templates@latest --agent development-team/frontend-developer
    
    8
    Verify Installation
    9
    ls .claude/agents/
    # Should show: frontend-developer.md
    
    10
    Use the Agent
    11
    In Claude Code, reference the agent:
    12
    Use the frontend-developer agent to review this React component for performance issues
    
    Agent Discovery: Can’t find an agent? Use the search on aitmpl.com to search by description, category, or use case.

    Installing Commands

    Commands are custom slash commands stored in .claude/commands/.
    1
    Find a Command
    2
    Browse commands by category at aitmpl.com/commands:
    3
  • Automation - CI/CD, workflow automation
  • Development - Git, testing, project setup
  • DevOps - Docker, deployment, infrastructure
  • Security - Vulnerability scanning, audit tools
  • 4
    Install a Command
    5
    npx claude-code-templates@latest --command setup-testing
    
    6
    View Command Details
    7
    cat .claude/commands/setup-testing.md
    
    8
    Execute the Command
    9
    In Claude Code:
    10
    /setup-testing jest
    

    Installing MCPs

    MCPs (Model Context Protocols) enable external service integrations. They merge into .mcp.json.
    1
    Install an MCP
    2
    npx claude-code-templates@latest --mcp filesystem
    
    3
    Automatic Merging: MCP configurations are automatically merged with your existing .mcp.json. The CLI will prompt if conflicts are detected.
    4
    Verify MCP Configuration
    5
    cat .mcp.json
    
    6
    Expected output:
    7
    {
      "mcpServers": {
        "filesystem": {
          "command": "npx",
          "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/files"]
        }
      }
    }
    
    8
    Restart Claude Code
    9
    MCP changes require a restart to take effect.

    Installing Settings

    Settings configure Claude Code behavior. You can install them at multiple levels.
    1
    Install a Setting
    2
    npx claude-code-templates@latest --setting enable-telemetry
    
    3
    Choose Installation Location
    4
    The CLI will prompt you to select one or more locations:
    5
  • User settings (~/.claude/settings.json) - Applies to all projects
  • Project settings (.claude/settings.json) - Shared with team via git
  • Local settings (.claude/settings.local.json) - Personal, gitignored
  • Enterprise settings - System-wide policy (requires admin)
  • 6

    Understanding Settings Hierarchy

    Settings are loaded in this order (later overrides earlier):
    1. Enterprise managed settings
    2. User settings (~/.claude/settings.json)
    3. Project settings (.claude/settings.json)
    4. Local settings (.claude/settings.local.json)
    This allows personal preferences to override team settings.
    7
    Verify Settings
    8
    cat .claude/settings.local.json
    
    Conflict Detection: The CLI checks for conflicts when merging settings. If a setting already exists with a different value, you’ll be prompted to confirm overwrite.

    Installing Hooks

    Hooks enable event-driven automation. They’re stored in settings files.
    1
    Install a Hook
    2
    npx claude-code-templates@latest --hook automation/simple-notifications
    
    3
    Choose Hook Location
    4
    Same as settings, you’ll choose where to install:
    5
    ? Where would you like to install this hook?
     User settings - Applies to all projects
     Project settings - Shared with team
     Local settings - Personal only
    
    6
    View Hook Configuration
    7
    cat .claude/settings.local.json
    
    8
    Expected structure:
    9
    {
      "hooks": {
        "SessionStart": [
          {
            "matcher": "startup",
            "hooks": [
              {
                "type": "command",
                "command": "echo 'Session started!'"
              }
            ]
          }
        ]
      }
    }
    
    10
    Test the Hook
    11
    Restart Claude Code or trigger the hook event to see it in action.

    Installing Skills

    Skills provide specialized knowledge domains for Claude to reference.
    1
    Install a Skill
    2
    npx claude-code-templates@latest --skill typescript-expert
    
    3
    Verify Installation
    4
    ls .claude/skills/
    # Should show skill directory with SKILL.md and references/
    
    5
    Use the Skill
    6
    In Claude Code:
    7
    Use the typescript-expert skill to help me configure strict TypeScript
    

    Component Naming Conventions

    All components follow kebab-case naming: Correct:
    --agent frontend-developer
    --command setup-testing
    --mcp web-fetch
    
    Incorrect:
    --agent frontendDeveloper
    --agent Frontend-Developer
    --agent frontend_developer
    

    Common Installation Flags

    Directory Target

    Install to a specific directory:
    npx claude-code-templates@latest --agent security-auditor --directory /path/to/project
    

    Skip Prompts

    Use defaults without confirmation:
    npx claude-code-templates@latest --agent security-auditor --yes
    

    Dry Run

    Preview what would be installed without making changes:
    npx claude-code-templates@latest --agent security-auditor --dry-run
    

    Verbose Logging

    Enable detailed installation logs:
    npx claude-code-templates@latest --agent security-auditor --verbose
    

    Viewing Component Details

    Before installing, you can view component details on the web:
    1
    Visit the Component Browser
    2
    3
    Search or Filter
    4
  • Use the search bar for keywords
  • Filter by type (agents, commands, etc.)
  • Filter by category (development, security, etc.)
  • 5
    Click a Component
    6
    View:
    7
  • Full description
  • Installation command
  • Source code preview
  • Download statistics
  • GitHub link
  • 8
    Copy Installation Command
    9
    Click “Copy” next to the installation command and run in your terminal.

    Troubleshooting

    Component Not Found

    If you get a 404 error:
     Agent "frontend-dev" not found
    
    Solutions:
    1. Check spelling - component names are exact
    2. Search on aitmpl.com for the correct name
    3. Verify the component exists in the catalog

    Permission Errors

    If installation fails with permission errors:
    # Run with sudo (Linux/Mac)
    sudo npx claude-code-templates@latest --agent security-auditor
    
    # Or install to user directory
    npx claude-code-templates@latest --agent security-auditor --directory ~/projects/my-app
    

    Merge Conflicts

    If settings/hooks conflict with existing config:
    ⚠️ Conflicts detected:
     Setting "telemetry" (current: false, new: true)
    
    Do you want to overwrite? (y/N)
    
    Choose:
    • y - Replace existing value with new value
    • N - Keep existing value, skip installation

    File Locations Reference

    Component TypeInstallation PathFormat
    Agents.claude/agents/{name}.mdMarkdown
    Commands.claude/commands/{name}.mdMarkdown
    MCPs.mcp.json (merged)JSON
    Settings.claude/settings*.jsonJSON
    Hooks.claude/settings*.jsonJSON
    Skills.claude/skills/{name}/Directory

    Next Steps

    Batch Installation

    Install multiple components at once

    Interactive Mode

    Use the visual component selector

    Workflows

    Create reusable installation workflows

    Global Agents

    Create agents you can run from anywhere