Prompt Library 💻 Coding & Dev Build a CLI Developer Tool
Any 💻 Coding & Dev Advanced

Build a CLI Developer Tool

Design and build a polished CLI tool for any developer workflow task.
👁 5 views ⎘ 0 copies ♥ 0 likes

The Prompt

Build a complete CLI tool for developers with the following:

Tool name: [name]
What it does: [describe the purpose]
Primary user: [describe the developer who will use this]
Language: [Python / Node.js / Go / Bash / Rust / other]
Commands needed: [list each command and what it does]
Configuration: [config file / environment variables / interactive prompts / flags]
Output format: [coloured terminal output / JSON / files / other]
Installation method: [pip / npm / brew / single binary]
Interactive mode: [yes / no]

Build the complete tool:

PROJECT STRUCTURE:
- Full directory layout
- Dependency list
- Entry point and binary configuration

CLI FRAMEWORK SETUP:
- Recommended CLI framework (Click / Typer / Commander / Cobra) with justification
- Main entry point
- Command registration
- Help text system

EACH COMMAND IMPLEMENTATION:
For each command provide:
- Full implementation code
- Argument and option definitions
- Validation logic
- Core functionality
- Progress indicators for long operations
- Success and error output

CONFIGURATION SYSTEM:
- Config file format and location
- Config read/write helpers
- Default values
- Config validation
- Environment variable overrides

OUTPUT AND UX:
- Colour scheme (success / warning / error / info)
- Progress bars or spinners
- Table formatting for list output
- Verbose and quiet modes
- Machine-readable output flag (--json)

ERROR HANDLING:
- Error types and exit codes
- User-friendly error messages
- Debug mode for stack traces

TESTING:
- Unit tests for core logic
- Integration tests for CLI commands
- Mocking filesystem and network

PACKAGING AND DISTRIBUTION:
- Package configuration
- Build script
- Installation instructions
- README for the tool

📝 Fill in the blanks

Replace these placeholders with your own content:

[name]
[describe the purpose]
[describe the developer who will use this]
[Python / Node.js / Go / Bash / Rust / other]
[list each command and what it does]
[config file / environment variables / interactive prompts / flags]
[coloured terminal output / JSON / files / other]
[pip / npm / brew / single binary]
[yes / no]

How to use this prompt

1
Copy the prompt

Click "Copy Prompt" above to copy the full prompt text to your clipboard.

2
Replace the placeholders

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

3
Paste into Any

Open your preferred AI assistant and paste the prompt to get started.