Skip to content
Back to skills

Command Patterns

ASecurity

Advanced patterns for generating high-quality Claude Code commands. Used by /new-command.

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 8, 2026
toolsbashci/cdperformance

Works with

  • claude code

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill command-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Command Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Command Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-command-patterns/badge)](https://www.skillsdirectory.com/skills/majiayu000-command-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: command-patterns
description: Advanced patterns for generating high-quality Claude Code commands. Used by /new-command.
---

# Command Patterns Skill

Expert patterns for generating production-quality Claude Code commands.

## Core Requirements

1. **Multiple Action Modes** - Never single-purpose commands
   - `analyze` - Deep analysis
   - `optimize` - Performance improvements
   - `fix` - Automated remediation
   - `monitor` - Continuous watching

2. **Real, Working Code** - Every example must be executable
3. **Intelligent Recommendations** - Prioritized, actionable insights
4. **Interactive Intelligence** - Guide users to optimal solutions
5. **Visual Outputs** - Include diagrams/charts when helpful

## Advanced Patterns

### Progressive Disclosure
```bash
# Simple for beginners
claude /your-command

# Power user with full control
claude /your-command analyze --depth=comprehensive --output=json
```

### Safe Automation with Rollbacks
```bash
apply_change() {
  # Snapshot current state
  kubectl get deployment $1 -o yaml > "/tmp/rollback-$$.yaml"

  # Apply change
  kubectl patch deployment $1 --patch "$2"

  # Monitor and rollback if needed
  if ! monitor_health $1 60; then
    kubectl apply -f "/tmp/rollback-$$.yaml"
  fi
}
```

## Quality Checklist

### Intelligence
- [ ] Recognizes patterns from past executions
- [ ] Provides insights humans would miss
- [ ] Explains reasoning behind recommendations

### User Experience
- [ ] Works with zero configuration
- [ ] Provides meaningful progress indicators
- [ ] Offers escape hatches at every step

### Safety
- [ ] Every change has a rollback
- [ ] Dry-run mode available
- [ ] Confirms destructive operations

### Integration
- [ ] Outputs in multiple formats
- [ ] Works in CI/CD pipelines
- [ ] Provides hooks for customization

## Frontmatter Template

```yaml
---
description: Brief description  # REQUIRED
model: haiku                    # OPTIONAL - use full ID
allowed-tools: Bash, Read       # OPTIONAL
argument-hint: "[action]"       # OPTIONAL
---
```

## The Ultimate Test

> "Would a senior engineer with 10 years experience be impressed?"

If not emphatic YES, keep improving.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.