Skip to main content
This guide covers how to create and add individual components like agents, commands, MCPs, settings, hooks, and skills to the Claude Code Templates project.

Component Types Overview

Adding Agents

Agents are AI specialists for specific domains like security, performance, frameworks, etc.

1. Create Agent File

2. Agent File Structure

Agents use Markdown with YAML frontmatter:

3. Available Categories

  • development-team/ - Full-stack developers, architects
  • domain-experts/ - Security, performance, accessibility specialists
  • creative-team/ - Content creators, designers
  • business-team/ - Product managers, analysts
  • development-tools/ - Tool specialists, DevOps experts

4. Real Example: Frontend Developer

Location: cli-tool/components/agents/development-team/frontend-developer.md
See the full example at ~/workspace/source/cli-tool/components/agents/development-team/frontend-developer.md

Adding Commands

Commands are custom slash commands that extend Claude Code functionality.

1. Create Command File

2. Command File Structure

Commands use Markdown with YAML frontmatter:

3. Command Categories

  • testing/ - Test generation, validation, coverage
  • utilities/ - Code analysis, optimization, debugging
  • setup/ - Environment setup, configuration
  • team/ - Collaboration, planning, documentation
  • sync/ - Integration with external tools
  • simulation/ - Scenario modeling and analysis

4. Real Example: Generate Tests

Location: cli-tool/components/commands/testing/generate-tests.md

Adding MCPs

MCPs provide external service integrations for Claude Code.

1. Create MCP File

2. MCP File Structure

3. MCP Categories

  • audio/ - Audio processing, text-to-speech, transcription
  • integration/ - GitHub, GitLab, Jira
  • database/ - PostgreSQL, MySQL, MongoDB
  • cloud/ - AWS, Azure, GCP services
  • devtools/ - Build tools, testing frameworks
  • ai-services/ - OpenAI, Anthropic, other AI APIs
Never hardcode actual API keys in MCP files. Use placeholder format: <YOUR_API_KEY>

Adding Settings

Settings configure Claude Code behavior and performance.

1. Create Settings File

2. Settings File Structure

3. Settings Categories

  • performance/ - Memory, timeout, cache settings
  • ui/ - Interface customization, themes
  • mcp/ - MCP server configurations
  • security/ - Access control, permissions

Adding Hooks

Hooks provide automation triggers for different development events.

1. Create Hook File

2. Hook File Structure

3. Hook Categories

  • git/ - Pre-commit, post-commit, pre-push
  • development-tools/ - File changes, formatting, linting
  • testing/ - Test execution, coverage checks
  • automation/ - Notifications, deployments, monitoring
  • security/ - Security scanning, secret detection
  • performance/ - Performance monitoring, budget guards

4. Real Example: Simple Notifications

Location: cli-tool/components/hooks/automation/simple-notifications.json

5. Hook Types

  • PreToolUse - Runs before a tool is executed
  • PostToolUse - Runs after a tool completes
  • OnError - Runs when an error occurs
  • OnSessionStart - Runs when Claude Code session starts
  • OnSessionEnd - Runs when Claude Code session ends

Adding Skills

Skills are modular capabilities using Anthropic’s progressive disclosure pattern.

1. Create Skill Directory

2. Skill Structure

3. SKILL.md Format

Creating New Categories

If your component doesn’t fit existing categories, create a new one:
New categories are automatically detected when the component catalog is regenerated.

Next Steps

After creating your component:
1

Review with component-reviewer

2

Test Installation

3

Update Component Catalog

4

Submit Pull Request

See Publishing Workflow for details

Resources