command-creator
This skill uses Claude hooks which can execute code automatically in response to events. Review carefully before installing.
Command Creator
Create custom slash commands for Claude Code. Commands are Markdown files that define reusable prompts with support for arguments, bash execution, file references, and tool permissions.
Command Locations
| Type | Location | Scope |
|---|---|---|
| Project | .claude/commands/ |
Shared with team via git |
| Personal | ~/.claude/commands/ |
Available across all projects |
Project commands take precedence over personal commands with the same name.
Basic Structure
---
description: Brief description shown in /help
---
Your prompt instructions here.
Filename becomes the command name: review.md → /review
Frontmatter Options
| Field | Purpose | Default |
|---|---|---|
description |
Brief description for /help | First line of prompt |
allowed-tools |
Tools the command can use | Inherits from conversation |
argument-hint |
Shows usage hint in autocomplete | None |
model |
Specific model to use | Inherits from conversation |
disable-model-invocation |
Prevent Skill tool from calling this | false |
hooks |
Command-scoped hooks (PreToolUse, PostToolUse, Stop) | None |
Arguments
All arguments: $ARGUMENTS
---
description: Fix an issue
---
Fix issue #$ARGUMENTS following our coding standards
Usage: /fix-issue 123 high-priority → $ARGUMENTS = "123 high-priority"
Positional: $1, $2, etc.
---
argument-hint: [pr-number] [priority] [assignee]
description: Review pull request
---
Review PR #$1 with priority $2 and assign to $3.
Usage: /review-pr 456 high alice
Bash Execution
Execute bash before the command runs using the exclamation mark prefix. Output is included in context.
---
allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*)
description: Create a git commit
---
## Context
- Current git status: !\`git status\`
- Current git diff: !\`git diff HEAD\`
- Current branch: !\`git branch --show-current\`
- Recent commits: !\`git log --oneline -10\`
## Task
Create a git commit based on the above changes.
Required: Include allowed-tools with the Bash tool when using bang execution (the exclamation mark prefix).
File References
Include file contents using the @ prefix:
Review the implementation in @src/utils/helpers.js
Compare @src/old-version.js with @src/new-version.js
Namespacing
Subdirectories group related commands. The subdirectory appears in the description:
.claude/commands/frontend/component.md→/component(project:frontend).claude/commands/backend/test.md→/test(project:backend)
Commands in different subdirectories can share names.
Example: Complete Command
---
allowed-tools: Bash(npm:*), Bash(git:*), Read, Edit, Write
argument-hint: [component-name]
description: Create a new React component with tests
model: claude-sonnet-4-20250514
---
## Context
- Existing components: !\`ls src/components/\`
- Project structure: !\`ls -la src/\`
## Task
Create a new React component named $1:
1. Create component file at @src/components/$1.tsx
2. Create test file at @src/components/$1.test.tsx
3. Export from @src/components/index.ts
4. Follow patterns in existing components
Hooks in Commands
Define command-scoped hooks that run during execution:
---
description: Deploy with validation
hooks:
PreToolUse:
- matcher: "Bash"
hooks:
- type: command
command: "./scripts/validate.sh"
once: true
---
Deploy to staging environment.
The once: true option runs the hook only once per session.
Best Practices
- Keep prompts concise - Claude is smart; don't over-explain
- Use bash execution for context - Gather relevant state before the task
- Specify allowed-tools - Limit to what the command needs
- Add argument-hint - Help users understand expected arguments
- Use file references - Point to relevant files with
@ - Namespace related commands - Use subdirectories for organization
More from walletconnect/skills
security-audit-owasp-top-10
Performs comprehensive security audit of any codebase against OWASP Top 10 2025. Use when user asks for OWASP audit, OWASP Top 10 review, OWASP security check, or wants to audit code against OWASP categories. Do not trigger for PR review, npm/pip audit, SOC2 compliance, general security questions, or threat modeling.
26skill-writing
Designs and writes high-quality Agent Skills (SKILL.md + optional reference files/scripts). Use when asked to create a new Skill, rewrite an existing Skill, improve Skill structure/metadata, or generate templates/evaluations for Skills.
19code-simplifier
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Focuses on recently modified code unless instructed otherwise.
16agent-creator
Guide for creating custom Claude Code subagents. Use when user wants to create a new agent (or update an existing agent) that handles specific types of tasks with custom prompts, tool restrictions, and permissions. Triggers on requests to create agents, subagents, custom agents, or when user wants specialized AI assistants for specific workflows.
15code-review
Provide actionable feedback on code changes. Focuses on bugs, security issues, and structural problems.
15worktree
Manages git worktree lifecycle - create, list, remove, cleanup, prune, lock/unlock. Use when user mentions 'worktree', 'parallel branch work', 'cleanup worktrees', or needs to work on multiple branches simultaneously.
14