/add-custom
Install custom modules from a Git repository.
Usage
/add-custom <git-url>Example
/add-custom git@company.com:team/claude-modules.gitWhat It Does
-
Clones the repository to
~/.claude/custom/ -
Detects modules
- MCP servers in
mcp/ - Skills in
skills/
- MCP servers in
-
Installs modules
- Copies to appropriate locations
- Registers in
installed.json
-
Custom overrides built-in
- Your
standards-pythonreplaces the default one
- Your
Repository Structure
Your custom module repository should follow this structure:
company-claude-modules/
├── VERSION # Version number (e.g., "1.0.0")
├── CHANGELOG.md # What changed
├── mcp/
│ └── internal-api.json
└── skills/
└── company-standards/
└── SKILL.mdSkill Format
---
name: standards-python
description: Company Python standards
type: context
applies_to: [python, fastapi, django]
---
# Your Standards
Content here...MCP Server Format
{
"name": "internal-api",
"description": "Internal API MCP server",
"config": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@company/mcp-internal"]
},
"requiresApiKey": false
}For Teams
Set up a company repository once:
# Create the repo
mkdir company-claude-modules
cd company-claude-modules
git init
# Add your standards
mkdir -p skills/company-standards
# Create SKILL.md with your standards
# Push to company Git
git remote add origin git@company.com:team/claude-modules.git
git push -u origin mainThen every team member runs:
/add-custom git@company.com:team/claude-modules.gitUpdating Custom Modules
Use /claude-code-setup to check for and install updates to your custom modules.
Related
- /claude-code-setup - Update modules
- Creating Skills - Build your own skills