I have been utilizing artificial intelligence to enhance and optimize my codebases. After evaluating various models, applications, and editors, I find the claude.ai interface with a Pro Account to be the most effective. Here’s the approach I’ve developed to achieve optimal results:
This gist contains a carefully crafted prompt and a script designed to convert your entire Laravel codebase (excluding the resources folder, which can be easily added if needed) into a TXT file with the following structure:
<File Start: ./path/filename.extension> Content of file <End File: ./path/filename.extension>
To implement this method:
- Create a new CLAUDE Project
- Download promptgenerator.sh to your project’s directory (or bin) and execute it: ./promptgen.sh laravel-app
- In your CLAUDE project, upload the generated .txt file (located in ~/Prompts) to “Project Knowledge”
- Copy the contents of the Prompt.MD file provided below and use it as “Project Instructions”
- If you encounter usage limits due to frequent use, I am currently exploring options to integrate this with LibreChat using the CLAUDE API
This method has proven highly effective in my work. It is particularly useful for comprehensive codebase reviews and identifying potential oversights.
I welcome your feedback and suggestions. Please feel free to contact me through Github or Twitter (@diogogpinto).