skills/brendanshields/creating-commands/SKILL.md
Creates new Claude Code slash commands following best practices. Guides through command structure, naming, arguments, and frontmatter. Use when user wants to create a command, build a slash command, or asks about command best practices.
npx skillsauth add aiskillstore/marketplace creating-commandsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Guides creation of Claude Code slash commands using documented best practices.
For a new command:
For reviewing existing command:
Progress:
- [ ] Gather requirements (purpose, arguments, scope)
- [ ] Choose template (basic, with-args, workflow)
- [ ] Generate command file
- [ ] Validate against checklist
Ask user with AskUserQuestion:
| Type | Template | When to Use | |------|----------|-------------| | Basic | templates/basic.md | No arguments, simple prompt | | With Args | templates/with-args.md | Single or multiple arguments | | Workflow | templates/workflow.md | Integrates with skills/agents |
Create in appropriate location:
.claude/commands/ - Project commands (git-tracked)~/.claude/commands/ - Personal commands (your machine only)Run through checklist before finishing:
Validation Checklist:
- [ ] Name: lowercase with hyphens only
- [ ] Name: descriptive, verb-noun format preferred
- [ ] Description: explains what command does
- [ ] Arguments: documented with argument-hint if used
- [ ] Prompt: clear, actionable instructions
- [ ] Tools: allowed-tools declared if needed
Format: verb-noun or action (lowercase, hyphens)
fix-issuereview-prrun-testsoptimizeConstraints:
---
description: Brief explanation shown in help
allowed-tools:
- Bash(bash:*)
- WebSearch
argument-hint: "param_name"
---
Your command prompt here.
Use $ARGUMENTS for all args or $1, $2 for positional.
| Syntax | Usage | Example |
|--------|-------|---------|
| $ARGUMENTS | All arguments as one string | /cmd foo bar → foo bar |
| $1, $2 | Positional arguments | /cmd foo bar → $1=foo, $2=bar |
| @file | Include file contents | Review @src/main.ts |
| Field | Purpose | Required |
|-------|---------|----------|
| description | Shown in help, enables auto-invoke | Recommended |
| allowed-tools | Tools the command can use | If using tools |
| argument-hint | Documents expected args | If has args |
| model | Specific model to use | Optional |
---
description: Run all tests and report failures
allowed-tools:
- Bash(npm:*)
---
Run the test suite and summarize results:
1. Execute `npm test`
2. If failures, show failing tests with context
3. Suggest fixes for common issues
See reference.md for detailed best practices and anti-patterns.
development
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.