Claude Code Skills: Setup and SKILL.md Examples
A Claude Code skill is a folder containing a SKILL.md file. Save it in .claude/skills/<name>/ inside a project, or in ~/.claude/skills/<name>/ to use it in every project. The file starts with YAML frontmatter whose description tells Claude when to use the skill, followed by the instructions. Claude loads a skill when your request matches it, or you run it directly with /skill-name.
Last updated By Gizmolab
Quick start: your first Claude Code skill
Install Claude Code
The native installer for macOS, Linux and WSL. It keeps Claude Code updated in the background.
curl -fsSL https://claude.ai/install.sh | bashWindows PowerShell
irm https://claude.ai/install.ps1 | iexHomebrew
brew install --cask claude-codenpm (Node.js 22 or later)
npm install -g @anthropic-ai/claude-codeClaude Code needs a paid Claude plan, such as Pro or Max, or an Anthropic Console account. The free Claude.ai plan does not include it.
Create a folder for the skill in your project
mkdir -p .claude/skills/review-soliditySave the example below as
.claude/skills/review-solidity/SKILL.mdStart Claude Code in the project and use the skill
claudeAsk "Review my Solidity changes" and Claude loads the skill on its own, or type /review-solidity to run it directly.
Example SKILL.md for Claude Code
This skill reviews your uncommitted Solidity changes. It follows the format in the Claude Code skills documentation: frontmatter between --- lines, then Markdown instructions.
---
description: Reviews uncommitted Solidity changes for common security problems. Use when the user asks to review a contract, check a .sol diff, or prepare a contract change for deployment.
---
## Current changes
!`git diff HEAD`
## Instructions
Review only the Solidity (.sol) files in the diff above. For each changed function, check:
1. Access control: who can call it, and is that intended?
2. Reentrancy: does it make an external call before it updates state?
3. Input checks: are zero addresses, zero amounts and array lengths handled?
4. Events: does every important state change emit an event?
List each finding with the file, the function, the risk and a suggested fix.
If no .sol files changed, say so and stop.- description
- What the skill does and when to use it. Claude reads it to decide when to load the skill. Every frontmatter field is optional, but the docs recommend always writing a description.
- name
- Optional. The command defaults to the folder name, so this skill runs as /review-solidity.
- !`git diff HEAD`
- Claude Code runs the command and puts its output into the skill before Claude reads it, so the review starts from your real diff.
- disable-model-invocation: true
- Add this line to the frontmatter if the skill should only run when you type its command.
- Supporting files
- Keep SKILL.md under 500 lines. Put longer reference material or scripts next to it (for example reference.md or scripts/) and say in SKILL.md when to use each one.
Where Claude Code looks for skills
Where you save a skill decides which sessions can use it.
| Location | Path | Used in |
|---|---|---|
| Project | .claude/skills/<skill-name>/SKILL.md | Sessions in this repository. Commit the folder so your team gets the skill too. |
| Personal | ~/.claude/skills/<skill-name>/SKILL.md | All your projects on this machine. |
| Plugin | <plugin>/skills/<skill-name>/SKILL.md | Wherever the plugin is enabled, as /plugin-name:skill-name. |
Claude Code watches these folders, so a new or edited skill works in the current session without a restart. If you create a top-level skills folder that did not exist when the session started, run /reload-skills. Older custom commands still work too: .claude/commands/deploy.md and .claude/skills/deploy/SKILL.md both create /deploy.
Skills vs CLAUDE.md
Both are Markdown files Claude reads, but they do different jobs. Keep facts in CLAUDE.md and move procedures into skills.
CLAUDE.md (memory)
Claude reads CLAUDE.md at the start of every session. Keep it to facts that always apply: build commands, conventions, project layout and "always do X" rules. Run /init to generate a first version.
SKILL.md (skill)
A skill holds the steps for one kind of task. Claude sees its description up front and loads the full instructions only when the skill is used, so long checklists cost almost nothing until they are needed.
The Claude Code docs give a simple test: when a section of CLAUDE.md has grown into a procedure rather than a fact, or you keep pasting the same checklist into chat, turn it into a skill.
Add Gizmolab's Alchemy Web3 skill to Claude Code
The Alchemy Web3 skill gives Claude a script for Alchemy's APIs: wallet and token balances, NFTs, transfers, blocks, transactions and gas prices across 80+ chains. Install it with the open-source skills CLI (Node.js 22.20 or later), which adds it to your project's .claude/skills/ folder. Add -g to install it for all your projects instead.
npx skills add 0xGizmolab/alchemy-web3-skill -a claude-codeThen set your Alchemy API key in the shell you start Claude Code from:
export ALCHEMY_API_KEY="your_key_here"Gizmolab's other skill, GizmoLab Tools, works through OpenClaw's browser tool, so it is covered on the OpenClaw skills page.
Common Claude Code commands
claudeStart an interactive session in the current folder
claude "query"Start a session with a first prompt
claude -cContinue the most recent conversation in this folder
claude -p "query"Run one prompt, print the answer and exit
/skillsInside a session: see the skills Claude can use
/initInside a session: generate a starter CLAUDE.md
Frequently asked questions
What are Claude Code skills?
Where do I put a SKILL.md file for Claude Code?
What is the difference between a skill and CLAUDE.md?
Do I need to restart Claude Code after adding a skill?
Can I use the same skill in Cursor and OpenClaw?
How do I install Gizmolab's Alchemy Web3 skill in Claude Code?
Official Claude Code documentation
Anthropic's docs are the reference for every command and path on this page.
Related guides
All AI skills guidesOpenClaw skills
What OpenClaw and ClawHub are, and how to install skills with openclaw skills install.
Cursor skills
What a Cursor skill is, where SKILL.md files live in a project, and how to set your first one up.
How to create a Cursor skill
Step by step: write the SKILL.md frontmatter and instructions, then test the skill with Cursor's agent.
Cursor skill examples
Skills you can copy and adapt for repo edits, debugging, refactors and code review.
EVM developer tools playbook
Which tool to use at each step of an EVM project: Foundry or Hardhat, viem or ethers, wagmi and security checks.