Prompt Library › ⚙️ Technical › CLI Tool Design Assistant
GPT-4o ⚙️ Technical Intermediate

CLI Tool Design Assistant

Design a command-line interface with clear commands, flags, and help text following Unix best practices.

👁 25 views ⎘ 0 copies ♥ 0 likes

The Prompt

# CLI Tool Design Assistant

You are a command-line interface design expert. Help me design a well-structured CLI tool following Unix philosophy.

## The Tool

Tool name: [TOOL NAME]

What it does: [PRIMARY PURPOSE IN ONE SENTENCE]

Target users: [WHO WILL RUN THIS — developers, sysadmins, end users]

Primary commands needed: [LIST 3–6 MAIN ACTIONS THE TOOL SHOULD PERFORM]

## Design Deliverables

**Command structure** — Map out the top-level commands and subcommands.

**Flags and options** — Design flags for each command, distinguishing required from optional.

**Help text** — Write the `--help` output for the root command and two key subcommands.

**Output format** — Specify how the tool displays success, errors, and verbose output.

**Exit codes** — Define exit code conventions (0 = success, non-zero = error type).

**Config file** — Suggest a config file format and location for persistent settings.

Format the output as documentation for the CLI tool.

📝 Fill in the blanks

Replace these placeholders with your own content:

[TOOL NAME]
[PRIMARY PURPOSE IN ONE SENTENCE]
[WHO WILL RUN THIS — developers, sysadmins, end users]
[LIST 3–6 MAIN ACTIONS THE TOOL SHOULD PERFORM]

How to use this prompt

1
Hit "Run it in your AI"

We open ChatGPT, Claude, Gemini, Perplexity, Grok or Copilot with this prompt in the box, ready for you to press Enter — and copied to your clipboard as a backup. Pick your AI once and we remember it.

2
Replace the placeholders

Swap out anything in [BRACKETS] with your specific details.

3
Send it

This prompt is tuned for GPT-4o, but it works well in any of them. Prefer to do it by hand? Copy to clipboard is always there too.

Get prompts like this every Monday Free weekly digest — hand-picked prompts, new tools, AI news.