Help us improve
Share bugs, ideas, or general feedback.
From mygentic-eng
Generate a new custom Claude Code slash command from a description
npx claudepluginhub joshuarweaver/cascade-code-devops-misc-1 --plugin andre-mygentic-andre-engineering-systemHow this command is triggered — by the user, by Claude, or both
Slash command
/mygentic-eng:generate_command command purposeThe summary Claude sees in its command listing — used to decide when to auto-load this command
# Create a Custom Claude Code Command Create a new slash command in `.claude/commands/` for the requested task. ## Goal #$ARGUMENTS ## Key Capabilities to Leverage **File Operations:** - Read, Edit, Write - modify files precisely - Glob, Grep - search codebase - MultiEdit - atomic multi-part changes **Development:** - Bash - run commands (git, tests, linters) - Task - launch specialized agents for complex tasks - TodoWrite - track progress with todo lists **Web & APIs:** - WebFetch, WebSearch - research documentation - GitHub (gh cli) - PRs, issues, reviews - Puppeteer - browser auto...
/generate_commandGenerates a new custom slash command in .claude/commands/ based on purpose and requirements, with YAML frontmatter, structured steps, and best practices.
/sc-generate-commandGenerates a new custom slash command in `.claude/commands/` with YAML frontmatter, structured Markdown steps, and best practices based on provided purpose and requirements.
/generate-commandGenerates a new slash command file in .claude/commands/ from a natural language description of the task, following Claude Code conventions and best practices.
/create-command-v0.1.0Creates a Claude Code slash command from natural language input, inferring name and structure, loading best practices skill, implementing, validating, and testing it.
/COMMANDSGuides creation of custom slash commands for Claude Code, covering requirements, file structure, frontmatter fields, best practices, and examples.
/create-commandCreates a new Claude Code custom command file with YAML frontmatter, full documentation, usage examples, workflow steps, and best practices in the appropriate directory.
Share bugs, ideas, or general feedback.
Create 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:
- Rails: `bin/rails test` or `bundle exec rspec`
- TypeScript: `npm test` or `yarn test` (Jest/Vitest)
- Python: `pytest` or `python -m pytest`
- 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.