sotrali/color-converter ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple Python command line tool that converts colors between hex, RGB, CMY, CMYK, HSL, and HSV.

I want to be able to paste in one color or a few colors and get the converted values back in a clean terminal output. It should be forgiving about input, so if I type something messy like rgb(50, 100, 200) or just a rough string with the numbers in it, it can still figure out the color unless I need to override the input format with a flag. Hex should still require the hash symbol.

Please also make it work with files, so I can read a file full of mixed color formats and write the converted results to another file, with an option to append instead of overwrite. It should have a help message and feel like a practical little CLI utility I can run directly with Python. If you need to check current docs for any color math details, go ahead and look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab