Create a custom Claude Code slash command in .claude/commands/
Create reusable slash commands in `.claude/commands/` to automate your common workflows. Use this to standardize repetitive tasks like code generation, testing, or project-specific operations with custom logic and verification steps.
/plugin marketplace add hirefrank/hirefrank-marketplace/plugin install edge-stack@hirefrank-marketplaceCreate a new slash command in .claude/commands/ for the requested task.
#$ARGUMENTS
File Operations:
Development:
Web & APIs:
Integrations:
# [Command Name]
[Brief description of what this command does]
## Steps
1. [First step with specific details]
- Include file paths, patterns, or constraints
- Reference existing code if applicable
2. [Second step]
- Use parallel tool calls when possible
- Check/verify results
3. [Final steps]
- Run tests
- Lint code
- Commit changes (if appropriate)
## Success Criteria
- [ ] Tests pass
- [ ] Code follows style guide
- [ ] Documentation updated (if needed)
<task>, <requirements>, <constraints>Implement #$ARGUMENTS following these steps:
1. Research existing patterns
- Search for similar code using Grep
- Read relevant files to understand approach
2. Plan the implementation
- Think through edge cases and requirements
- Consider test cases needed
3. Implement
- Follow existing code patterns (reference specific files)
- Write tests first if doing TDD
- Ensure code follows CLAUDE.md conventions
4. Verify
- Run tests:
- Local development: `npm test` or appropriate dev server
- TypeScript: `npm run typecheck` or `tsc --noEmit`
- Unit tests: `vitest` or `jest`
- Run linter:
- Rails: `bundle exec standardrb` or `bundle exec rubocop`
- TypeScript: `npm run lint` or `eslint .`
- Python: `ruff check .` or `flake8`
- Check changes with git diff
5. Commit (optional)
- Stage changes
- Write clear commit message
Now create the command file at .claude/commands/[name].md with the structure above.