article
What are Snippets?
Curated text blocks for Claude Code configuration files
Overview
Snippets are curated text blocks that get added to your Claude Code configuration files. Each snippet targets one of three files:
claude.mdProject rules and conventions. Shared across your team via the repo.
memory.mdSession memory and learnings. Personal context that persists across conversations.
settings.mdGlobal settings and preferences. Applied to all projects on your machine.
How Snippets Work
Snippets work like Skills but are specifically designed to be copied into one of the three Claude Code configuration files. They contain instructions, conventions, and rules that guide Claude's behavior.
- Browse snippets on the Explore page or search for specific topics
- Open a snippet to see its content and which file it targets
- Click “Copy” to copy the snippet text to your clipboard
- Paste it into the appropriate file in your project
Example
A snippet targeting claude.md might contain:
# Project Conventions - Always use TypeScript strict mode - Prefer Server Components by default; use 'use client' only when necessary - Use server actions for mutations; avoid API routes for same-origin data - Follow the existing file naming conventions in the codebase