Installing Your First Claude Code Skill: Step-by-Step Guide
A complete beginner's guide to installing your first Claude Code skill. Learn the installation process, verification steps, and troubleshooting tips.
A complete beginner's guide to installing your first Claude Code skill. Learn the installation process, verification steps, and troubleshooting tips.
You've heard about Claude Code skills—modular capabilities that supercharge your development workflow. Maybe you've seen developers automate code reviews, generate documentation, or manage Git workflows with a single command. Now you want in.
This guide walks you through installing your first skill from start to finish. No prior experience required. By the end, you'll have a working skill and understand the installation process well enough to add dozens more.
Before we begin, ensure you have:
Open your terminal and run:
claude --version
You should see version information like Claude Code v1.x.x. If you get a "command not found" error, Claude Code isn't installed correctly.
Before installing anything, let's clarify what a skill actually is.
A skill is a packaged set of instructions that teaches Claude Code how to perform a specific task. Think of skills like browser extensions—they add new capabilities without changing the core application.
Skills can be:
/commit or /reviewFor your first installation, we'll start with a command—the most straightforward skill type.
Let's install a practical skill that you'll actually use: the Commit Command skill. This skill helps you create well-formatted Git commits with AI-generated messages.
Why this skill?
Open your terminal and navigate to a project directory:
cd /path/to/your/project
Skills are typically installed at the project level, meaning they're available when you're working in that specific project. This keeps skills organized and prevents conflicts between different projects.
Claude Code looks for skills in a specific location. Create the directory structure:
mkdir -p .claude/commands
This creates:
.claude/ - The main Claude Code configuration directory.claude/commands/ - Where command skills liveHere's the full structure Claude Code uses:
your-project/
├── .claude/
│ ├── commands/ # Slash commands
│ ├── agents/ # Autonomous agents
│ ├── hooks/ # Event-triggered scripts
│ ├── skills/ # General skill definitions
│ └── settings.json # Project settings
└── your-code/
There are three ways to install a skill. We'll cover all three, starting with the simplest.
Download the skill file directly into your commands directory:
curl -o .claude/commands/commit.md https://raw.githubusercontent.com/anthropics/claude-code-skills/main/commands/commit.md
If you prefer to understand exactly what you're installing, create the file manually:
touch .claude/commands/commit.md
Then open .claude/commands/commit.md in your editor and add:
---
description: Create a well-formatted git commit with AI-generated message
---
# Commit Command
When the user runs /commit, help them create a Git commit:
1. Run `git status` to see current changes
2. Run `git diff --staged` to see what's staged (if anything)
3. If nothing is staged, ask if they want to stage all changes
4. Analyze the changes and generate a commit message that:
- Starts with a type prefix (feat:, fix:, docs:, etc.)
- Has a concise summary under 72 characters
- Includes a body explaining the "why" if changes are complex
5. Show the proposed message and ask for confirmation
6. Execute the commit
Always follow conventional commit format.
Some skill collections provide package managers. For example:
npx claude-skills install @claude-skills/commit
This method handles dependencies and updates automatically, but requires the skill author to publish to a registry.
Let's confirm the skill is installed correctly.
ls -la .claude/commands/
You should see commit.md listed.
Start Claude Code in your project:
claude
Then type / to see available commands. You should see /commit in the list.
If you don't see it:
.md extension--- section) is valid YAMLNow let's put the skill to work.
First, make a small change to any file in your project. For example:
echo "# Test" >> README.md
git add README.md
In Claude Code, type:
/commit
Claude will:
git log -1
You should see your new commit with an AI-generated message.
Symptom: Typing /commit shows "unknown command"
Solutions:
exit then claude).claude/commands/ not .claude/.mdSymptom: Can't create the .claude directory
Solutions:
ls -lasudo mkdir .claudedf -hSymptom: The skill runs but doesn't do what you expect
Solutions:
Symptom: Claude Code shows an error about invalid YAML
Solutions:
--- markersNow that you've mastered the process, here's how to discover and install more skills.
Browse aiskill.market to find skills:
Many developers share skills on GitHub:
# Clone a skill collection
git clone https://github.com/user/skill-collection .claude-temp
# Copy the skills you want
cp .claude-temp/commands/review.md .claude/commands/
# Clean up
rm -rf .claude-temp
Anthropic maintains official skill collections:
# Install from official repo
curl -o .claude/commands/review.md \
https://raw.githubusercontent.com/anthropics/claude-code-skills/main/commands/review.md
Keep your skills organized:
.claude/
├── commands/
│ ├── commit.md
│ ├── review.md
│ └── test.md
├── agents/
│ └── refactor-agent.md
└── hooks/
└── pre-commit.md
Add .claude/ to your Git repository:
git add .claude/
git commit -m "Add Claude Code skills"
This lets your team share the same skills and tracks changes over time.
If you modify a skill, add comments explaining why:
---
description: Commit command (customized for our team conventions)
# Modified 2025-01-18: Added JIRA ticket requirement
---
Skills improve over time. Periodically update your skills:
# Re-download from source
curl -o .claude/commands/commit.md \
https://raw.githubusercontent.com/source/commit.md
Now that you've installed a skill, let's understand what makes it work.
The YAML block at the top defines metadata:
---
description: What this skill does
version: 1.0.0
author: skill-creator
---
The markdown body contains instructions for Claude:
# Skill Name
When the user runs this skill, follow these steps:
1. First, do this
2. Then, do that
3. Finally, complete this
Skills can include conditions:
If the user is in a Git repository:
- Run git status
- Proceed with commit workflow
If not in a Git repository:
- Inform the user
- Suggest initializing Git
Congratulations! You've successfully installed your first Claude Code skill. Here's where to go from here:
Try these popular skills next:
Ready to build? Check out Creating Custom Skills for a complete guide.
# Create skills directory
mkdir -p .claude/commands
# Download a skill
curl -o .claude/commands/SKILL.md URL
# List installed skills
ls .claude/commands/
# Start Claude Code
claude
# List available commands
/
---
description: Brief description of what this skill does
---
# Skill Name
Instructions for Claude on how to execute this skill.
## Steps
1. First step
2. Second step
3. Third step
claude --version).claude/commands/ exists.md extensionNow that you can install skills, learn to create your own custom skills and unlock the full potential of Claude Code.
> Learn how to write effective Skills that Claude can discover and use successfully.
This skill provides a structured workflow for guiding users through collaborative document creation. Act as an active guide, walking users through three stages: Context Gathering, Refinement & Structu
This skill provides guidance for creating effective skills.
skill from anthropics/skills