Claude Code

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

  1. 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 | bash

    Windows PowerShell

    irm https://claude.ai/install.ps1 | iex

    Homebrew

    brew install --cask claude-code

    npm (Node.js 22 or later)

    npm install -g @anthropic-ai/claude-code

    Claude 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.

  2. Create a folder for the skill in your project

    mkdir -p .claude/skills/review-solidity
  3. Save the example below as .claude/skills/review-solidity/SKILL.md

  4. Start Claude Code in the project and use the skill

    claude

    Ask "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.

.claude/skills/review-solidity/SKILL.md
---
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.

LocationPathUsed in
Project.claude/skills/<skill-name>/SKILL.mdSessions in this repository. Commit the folder so your team gets the skill too.
Personal~/.claude/skills/<skill-name>/SKILL.mdAll your projects on this machine.
Plugin<plugin>/skills/<skill-name>/SKILL.mdWherever 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-code

Then 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

claude

Start an interactive session in the current folder

claude "query"

Start a session with a first prompt

claude -c

Continue the most recent conversation in this folder

claude -p "query"

Run one prompt, print the answer and exit

/skills

Inside a session: see the skills Claude can use

/init

Inside a session: generate a starter CLAUDE.md

Frequently asked questions

What are Claude Code skills?

Claude Code skills are SKILL.md files that give Claude Code reusable instructions for one kind of task. Each skill lives in its own folder, such as .claude/skills/<skill-name>/SKILL.md, and Claude loads it when your request matches its description or when you type /skill-name.

Where do I put a SKILL.md file for Claude Code?

Put project skills in .claude/skills/<skill-name>/SKILL.md inside your repository and commit the folder so your team gets them. Put personal skills in ~/.claude/skills/<skill-name>/SKILL.md to use them in every project on your machine.

What is the difference between a skill and CLAUDE.md?

CLAUDE.md holds facts Claude should know in every session, such as build commands and project conventions, and Claude reads it at the start of each session. A skill holds the steps for one kind of task, and its full instructions load only when that task comes up, so a long checklist costs almost nothing until it is needed.

Do I need to restart Claude Code after adding a skill?

Usually not. Claude Code watches its skills folders and picks up new or edited skills in the current session. If you create a top-level skills folder that did not exist when the session started, run /reload-skills.

Can I use the same skill in Cursor and OpenClaw?

Often, yes. Claude Code skills follow the Agent Skills open standard, which Cursor and OpenClaw also read. Cursor and OpenClaw require a name field in the frontmatter as well as a description, so add a name that matches the folder name before you share a skill.

How do I install Gizmolab's Alchemy Web3 skill in Claude Code?

Run npx skills add 0xGizmolab/alchemy-web3-skill -a claude-code in your project. The skills CLI adds the skill to .claude/skills/ for Claude Code. The skill calls Alchemy's APIs, so set an ALCHEMY_API_KEY environment variable before you start Claude Code.

Official Claude Code documentation

Anthropic's docs are the reference for every command and path on this page.

All AI skills guides

OpenClaw 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.