mattmireles/Flatty — reverse-engineered prompt

Reverse engineered prompt

Build me a simple command line tool for Mac called Flatty that turns an entire local folder or GitHub repo into one clean text file I can upload to Claude or ChatGPT. I want it to walk the project, include all normal text code files, and skip junk like binaries, images, build output, hidden files, .git, .DS_Store, node_modules, and vendor. The output should be easy for an LLM to read, with basic project info, a readable repo tree, and then each included file separated clearly with its contents.

Make the normal flow super easy, so I can just cd into a project and run flatty. Save the result into Documents/flatty with the project name, version, and a timestamp in the filename. On macOS, also copy the full flattened text to the clipboard and reveal the file in Finder automatically.

I also want optional filtering, so I can pass one or more patterns and choose whether files match any pattern or all patterns, based on filename or file contents. Include a simple install script, plus a safer install option with checksum verification.

Want more depth? Deep Reverse