Claude Code Installation

Learn how to install and configure Agent Skills for Claude Code.

Prerequisites

Before installing skills, ensure you have:

  • Claude Code CLI installed (npm install -g @anthropic-ai/claude-code)
  • A project directory with Claude Code initialized
  • Node.js 18 or higher

Installation Methods

The easiest way to add a skill:

bash
claude skill add owner/skill-repo

For example:

bash
claude skill add anthropic/brand-guidelines

Method 2: Manual Configuration

Add the skill directly to your project's .claude/settings.local.json:

json
{
  "skills": [
    "https://github.com/owner/skill-repo"
  ]
}

Method 3: Local Skills

For local development or private skills:

json
{
  "skills": [
    "./local-skills/my-skill"
  ]
}

Configuration Options

Skill Priority

When multiple skills are installed, you can set priority:

json
{
  "skills": [
    {
      "url": "https://github.com/owner/skill-1",
      "priority": 1
    },
    {
      "url": "https://github.com/owner/skill-2",
      "priority": 2
    }
  ]
}

Lower numbers = higher priority.

Conditional Skills

Enable skills only for specific file types:

json
{
  "skills": [
    {
      "url": "https://github.com/owner/react-skill",
      "match": ["**/*.tsx", "**/*.jsx"]
    }
  ]
}

Verifying Installation

Check that your skill is installed:

bash
claude skill list

You should see your skill in the output:

Installed Skills: - anthropic/brand-guidelines (v1.0.0) - my-org/custom-skill (local)

Updating Skills

Update all skills to the latest version:

bash
claude skill update

Update a specific skill:

bash
claude skill update owner/skill-repo

Removing Skills

Remove a skill from your project:

bash
claude skill remove owner/skill-repo

Troubleshooting

Skill Not Loading

  1. Check the skill URL is correct
  2. Verify the repository contains a valid SKILL.md file
  3. Check your internet connection
  4. Run claude skill validate owner/skill-repo to check for errors

Conflicts Between Skills

If skills have conflicting instructions:

  1. Adjust priority to determine which takes precedence
  2. Use conditional matching to limit skill scope
  3. Consider merging related skills into one

Permission Issues

If you get permission errors:

bash
# Fix npm permissions
sudo chown -R $(whoami) ~/.claude

Next Steps