Back to prompts
Write a command-line tool with the following specification: Tool name: [name] Purpose: [what does it do?] Language: [e.g. Node.js / Python / Go / Bash] Commands to support: [list the main commands and what each does] Input: [what does the user pass in — flags, arguments, stdin, config file?] Output: [what does it produce — stdout, files, formatted table, JSON?] Error handling requirements: [how should it handle bad input, missing files, network failures?] Implement: 1. Main entry point with argument parsing 2. Each command as a separate function/module 3. Help text for each command (--help flag) 4. Coloured output where appropriate (success / warning / error states) 5. Exit codes: 0 for success, non-zero for errors — document which codes mean what 6. Config file support (if applicable): how to read from a config file vs. CLI flags Also provide: - Installation instructions - 3 example usage commands with expected output
How to use this prompt
- 1Copy the prompt using the button above.
- 2Open your AI tool (ChatGPT, Claude, Midjourney, etc.)
- 3Paste and customize any variables in the prompt.
- 4Generate your result.