Skip to content

aiskillstore/marketplace / skills/89jobrien/command-optimization

command-optimization

Verified

CLI command development specialist. Use when creating commands, designing argument parsing, automating tasks, or implementing CLI best practices. Specializes in command design patterns and user experience.

FileKindSize
SKILL.mdskill md5.8 KB
references/slash-command.template.mdmarkdown2.2 KB
skill-report.jsonconfig46.4 KB

references/slash-command.template.md

View on GitHub
---
author: Joseph OBrien
status: unpublished
updated: '2025-12-23'
version: 1.0.1
tag: skill
type: reference
parent: command-optimization
---

---

description: {{COMMAND_DESCRIPTION}}
argument-hint: {{ARGUMENT_HINT}}
allowed-tools: {{ALLOWED_TOOLS}}
---

# {{Command Title}}

{{BRIEF_DESCRIPTION}}: $ARGUMENTS

## Current State

- {{DYNAMIC_CONTEXT_1}}: !`{{SHELL_COMMAND_1}}`
- {{DYNAMIC_CONTEXT_2}}: !`{{SHELL_COMMAND_2}}`

## Task

{{TASK_DESCRIPTION}}

## Workflow

### 1. {{STEP_NAME}}

{{STEP_INSTRUCTIONS}}

```bash
{{EXAMPLE_COMMAND}}
```

### 2. {{STEP_NAME}}

{{STEP_INSTRUCTIONS}}

### 3. {{STEP_NAME}}

{{STEP_INSTRUCTIONS}}

## Output Format

```
{{OUTPUT_TEMPLATE}}
```

## Options

| Flag | Description |
|------|-------------|
| `{{FLAG_1}}` | {{FLAG_1_DESCRIPTION}} |
| `{{FLAG_2}}` | {{FLAG_2_DESCRIPTION}} |

---

## Template Reference

### Frontmatter Fields

| Field | Required | Description |
|-------|----------|-------------|
| `description` | Yes | Brief description shown in command list |
| `allowed-tools` | No | Restrict tools available during execution |
| `argument-hint` | No | Usage hint shown in command help |

### Dynamic Context

Use `!` prefix for shell commands that execute when command loads:

```markdown
- Current branch: !`git branch --show-current`
- File count: !`find . -name "*.py" | wc -l`
```

### Arguments

Access command arguments with `$ARGUMENTS` placeholder:

```markdown
Process the following: $ARGUMENTS
```

### Body Structure Requirements

1. **Title** - Clear command name
2. **Current State** - Dynamic context (optional but recommended)
3. **Task** - What the command accomplishes
4. **Workflow** - Step-by-step execution
5. **Output Format** - Expected response structure
6. **Options** - Available flags/modes (if applicable)

### Tool Restrictions

Restrict tools with `allowed-tools` frontmatter:

```yaml
allowed-tools: Read, Grep, Glob
allowed-tools: Bash(git:*), Bash(npm:*)
```

### Quality Checklist

- [ ] Description is concise and action-oriented
- [ ] Dynamic context provides useful state information
- [ ] Workflow steps are clear and numbered
- [ ] Bash commands are shown for reference
- [ ] Output format is well-defined
- [ ] Options/flags documented if applicable
- [ ] No placeholder text remains
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 197kUpdated Claude CodeCodexVerifiedInstall