Back to Skills

cli

verified

CLI guidelines. Use whenever using the Bash tool, which is almost always. Also use when you see "command not found: __zoxide_z" errors.

View on GitHub

Marketplace

motlin-claude-code-plugins

motlin/claude-code-plugins

Plugin

code

productivity

Repository

motlin/claude-code-plugins
3stars

plugins/code/skills/cli/SKILL.md

Last Verified

January 24, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/motlin/claude-code-plugins/blob/main/plugins/code/skills/cli/SKILL.md -a claude-code --skill cli

Installation paths:

Claude
.claude/skills/cli/
Powered by add-skill CLI

Instructions

# CLI Guidelines

## Directory Navigation

- I replaced `cd` with `zoxide`. Use `command cd` to change directories
  - This is the only command that needs to be prefixed with `command`
  - Don't prefix `git` with `command git`
- Try not to use `cd` or `zoxide` at all. It's usually not necessary with CLI commands
  - Don't run `cd <dir> && git <subcommand>`
  - Prefer `git -C <dir> <subcommand>`

## Flag Names

Prefer long flag names when available:

- Don't run `git commit -m`
- Run `git commit --message` instead

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
505 chars