Using Built-In Skills
Module: Skills | Lesson: 2 of 3 | Time: ~10 minutes
What You Will Learn
- How to use the /commit skill
- How to use claude-api, simplify, and review-pr skills
- How to discover and invoke available skills
Prerequisites
- Completed What Are Skills?
What Are Built-In Skills?
Claude Code ships with several built-in skills that handle common development workflows. Unlike custom skills that you create yourself, these come pre-installed and ready to use.
Built-in skills are invoked using slash commands — you type a / followed by the skill name directly in your Claude Code conversation.
The /commit Skill
The most commonly used built-in skill is /commit. Instead of manually staging files, writing a commit message, and running git commit, you can simply type:
/commit
Claude will:
- Look at all your staged and unstaged changes
- Analyze what was modified and why
- Write a clear, descriptive commit message
- Create the commit for you
Use /commit after you have finished a set of related changes. Claude writes better commit messages than most of us do by hand because it reads every change and summarizes the intent, not just the files.
The /simplify Skill
The /simplify skill reviews your recently changed code and looks for opportunities to improve it:
/simplify
Claude will examine your changes for:
- Code that could be reused instead of duplicated
- Unnecessarily complex logic that could be simplified
- Quality and efficiency improvements
It then makes the improvements automatically. This is a great skill to run after you finish a feature but before you commit.
The claude-api Skill
If you are building an application that uses the Anthropic API or SDK, Claude Code has a specialized skill that activates automatically. When Claude detects that your code imports anthropic or @anthropic-ai/sdk, it brings in up-to-date knowledge about:
- The Claude API endpoints and parameters
- The Anthropic SDK for Python and TypeScript
- Best practices for API usage
You do not need to type a slash command for this one — it activates automatically based on the context of your code.
How to See Available Skills
To see all the slash commands available in your current session, simply type / in the Claude Code prompt and pause. You will see a list of available commands.
You can also type part of a name to filter:
/co
This would show /commit and any other commands starting with "co".
Manual vs Automatic Activation
Skills activate in two ways:
| Activation | How It Works | Example |
|---|---|---|
| Manual | You type a slash command | /commit, /simplify |
| Automatic | Claude detects the right context | claude-api activates when your code uses the Anthropic SDK |
Manual skills require you to explicitly invoke them. You are in control of when they run.
Automatic skills activate on their own when Claude recognizes a relevant situation. You do not need to remember to invoke them — Claude handles it.
Automatic activation is based on signals like the libraries your code imports, the files you are editing, or the type of task you are working on. Claude does not run these skills constantly — only when the context matches.
Try It Yourself
Let us try the /commit skill on a real change:
- Open your terminal and navigate to any Git project (or create a test one):
mkdir skill-test
cd skill-test
git init
- Create a simple file:
echo "Hello from skills test" > readme.txt
git add readme.txt
- Start Claude Code in this directory:
claude
- Type
/commitand press Enter - Watch Claude analyze your staged change and create a commit with an appropriate message
- Verify the commit was made:
git log --oneline
The /commit skill needs staged changes or unstaged modifications to work with. If your working directory is completely clean, Claude will tell you there is nothing to commit.
What You Learned
- Claude Code includes built-in skills like
/commit,/simplify, andclaude-api /commitanalyzes your changes and creates a well-written commit automatically/simplifyreviews changed code for quality improvementsclaude-apiactivates automatically when your code uses the Anthropic SDK- Type
/in the prompt to see all available slash commands - Skills can be manual (you invoke them) or automatic (context-triggered)
How was this lesson? Take 2 minutes to share your feedback — it helps us make the tutorials better for everyone.