Prompt templates
A free library of 22 ready-to-use templates for Claude Code and prompt engineering — CLAUDE.md project rules, memory files, slash commands, hooks, and one-shot prompts. Copy any template or open it straight in the editor.
CLAUDE.md
Code Style Rules
CLAUDE.md (Project)
Define coding conventions and style preferences for your project
Testing Preferences
CLAUDE.md (Project)
Define how Claude Code should write and run tests
Project Architecture Guide
CLAUDE.md (Project)
Describe your project structure and architecture decisions
Global User Preferences
CLAUDE.md (User)
Personal preferences applied across all projects (~/.claude/CLAUDE.md)
Git & Commit Conventions
CLAUDE.md (Project)
Define commit message format and git workflow
Error Handling Standards
CLAUDE.md (Project)
Define error handling conventions for the project
Security Guidelines
CLAUDE.md (Project)
Security rules Claude Code should follow
Dependency Management
CLAUDE.md (Project)
Rules for adding and managing dependencies
Memory Files
Project Architecture Notes
Memory File
Document key architectural decisions for Claude to remember
Debugging Notes
Memory File
Record debugging insights and recurring issues
User Workflow Preferences
Memory File
Remember user preferences across sessions
API Patterns & Endpoints
Memory File
Document API patterns for Claude to reference
Slash Commands
/review - Code Review Command
Slash Command
Custom slash command for code review (place in .claude/commands/review.md)
/test - Generate Tests Command
Slash Command
Custom slash command to generate tests for recent changes
/refactor - Refactoring Command
Slash Command
Custom slash command for targeted refactoring
/explain - Explain Code Command
Slash Command
Custom command to explain a file or function in detail
/pr - Create PR Description
Slash Command
Generate a PR description from current branch changes