mufeedvh/code2prompt ? reverse-engineered prompt
Reverse engineered prompt
Build me a Rust command line tool that takes a folder full of code and turns it into one clean prompt I can paste into ChatGPT or Claude.
I want it to scan the project, respect my gitignore, show the source tree, and bundle the important files into a readable format. It should let me include or skip files with simple patterns, count tokens so I can see if I’m close to the limit, and either copy the result to my clipboard or save it to a text file.
It would be great if I can customize the output with a template, and if it can also include git info like diffs or branch details when needed. Make it fast, friendly from the terminal, and useful for both quick one off prompts and more advanced context prep. If anything about the current docs or best practices has changed, look up the latest info online and follow that.
Are you gonna build this?
make sure you review the code using coderabbit