Create your own shortcuts for common tasks
Create shortcuts for tasks you do repeatedly. Save time and ensure consistency.
Built-in commands like /help, /clear, /cost are always available.
Custom commands are defined in your project and can do anything!
Add a .claude folder with command files:
Tip
{
"deploy": {
"description": "Prepare and deploy to production",
"action": "1. Run tests 2. Build the project 3. Check for env vars 4. Deploy to Vercel 5. Verify the deployment"
}
}{
"newpage": {
"description": "Create a new page with standard structure",
"action": "Create a new Next.js page with: metadata, loading state, error boundary. Use our standard page layout from app/template.tsx."
}
}{
"component": {
"description": "Create a component with tests",
"action": "Create a React component with TypeScript props interface, export it from components/index.ts, and create a basic test file."
}
}Aussie Note
Add commands relevant to your project:
{
"price": {
"description": "Add a new menu item with pricing",
"action": "Add a new coffee item to data/menu.ts with name, price in AUD, description, and size options. Update the menu component."
},
"shop": {
"description": "Add a new coffee shop",
"action": "Add a new coffee shop to data/shops.ts with name, address (Australian format), suburb, rating. Add to the shop listings page."
}
}Commands can reference skills:
{
"comply": {
"description": "Check Australian compliance",
"action": "Using the fair-work-compliance and gst-basics skills, review this code for Australian business compliance issues."
}
}Warning