generate_command
Create a new custom slash command following conventions and best practices
What this skill does
## Arguments [command purpose and requirements] # 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 - Playwright - browser automation, screenshots **Integrations:** - AppSignal - logs and monitoring - Context7 - framework docs - Stripe, Todoist, Featurebase (if relevant) ## Best Practices 1. **Be specific and clear** - detailed instructions yield better results 2. **Break down complex tasks** - use step-by-step plans 3. **Use examples** - reference existing code patterns 4. **Include success criteria** - tests pass, linting clean, etc. 5. **Think first** - use "think hard" or "plan" keywords for complex problems 6. **Iterate** - guide the process step by step ## Required: YAML Frontmatter **EVERY command MUST start with YAML frontmatter:** ```yaml --- name: command-name description: Brief description of what this command does (max 100 chars) argument-hint: "[what arguments the command accepts]" --- ``` **Fields:** - `name`: Lowercase command identifier (used internally) - `description`: Clear, concise summary of command purpose - `argument-hint`: Shows user what arguments are expected (e.g., `[file path]`, `[PR number]`, `[optional: format]`) ## Structure Your Command ```markdown # [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) ``` ## Tips for Effective Commands - **Use $ARGUMENTS** placeholder for dynamic inputs - **Reference CLAUDE.md** patterns and conventions - **Include verification steps** - tests, linting, visual checks - **Be explicit about constraints** - don't modify X, use pattern Y - **Use XML tags** for structured prompts: `<task>`, `<requirements>`, `<constraints>` ## Example Pattern ```markdown 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: `bin/rails test` - Run linter: `bundle exec standardrb` - Check changes with git diff 5. Commit (optional) - Stage changes - Write clear commit message ``` ## Creating the Command File 1. **Create the file** at `.claude/commands/[name].md` (subdirectories like `workflows/` supported) 2. **Start with YAML frontmatter** (see section above) 3. **Structure the command** using the template above 4. **Test the command** by using it with appropriate arguments ## Command File Template ```markdown --- name: command-name description: What this command does argument-hint: "[expected arguments]" --- # Command Title Brief introduction of what the command does and when to use it. ## Workflow ### Step 1: [First Major Step] Details about what to do. ### Step 2: [Second Major Step] Details about what to do. ## Success Criteria - [ ] Expected outcome 1 - [ ] Expected outcome 2 ```
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.