Claude Code Tips You Need #6: Custom Slash Commands - Never Type The Same Request Twice
Автор: Mike Grant
Загружено: 2025-07-18
Просмотров: 933
Описание:
Part 6 of "Claude Code Tips You Need" covers custom slash commands - the productivity feature that will save you hours of typing the same requests over and over.
If you find yourself repeatedly asking Claude for the same types of tasks (generate tests, create documentation, refactor code), custom slash commands are your solution. Instead of typing long, detailed prompts every time, you create reusable shortcuts that do the work for you.
How to create custom slash commands:
Create a .claude/commands folder in your project
Add markdown files for each command you want
Use $ARGUMENTS to insert user input into your prompts
Organize commands in subfolders for better structure
Example custom commands:
/test ComponentName - Generate comprehensive tests
/docs APIEndpoint - Create documentation
/refactor LegacyCode - Refactor with best practices
/ui/button - Create specific UI components
/api/endpoint - Generate API routes
The magic is in the $ARGUMENTS variable - it takes whatever you type after the command and inserts it into your pre-written prompt template. This transforms a 200-word detailed request into a simple 2-word command.
What repetitive Claude requests do you make? Those are perfect candidates for custom slash commands!
#ClaudeCode #CustomSlashCommands #AIcoding #DevTips #ProductivityHacks #Automation
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: