Prompt Engineering
& LLM Guides
Practical guides on writing better prompts, cutting token costs and building with LLM APIs, for ChatGPT, Claude and Gemini users.
AI Prompt for Unit Tests on Legacy Code
The exact AI prompt for unit tests I use on untested legacy PHP functions, built around real guarantees instead of a vague write-tests request.
AI Refactoring: Breaking Up a God Class
A real AI refactoring workflow for breaking up a legacy god class safely: the prompts that work, and the ones that quietly break production.
AI Prompt to Write Unit Tests for Legacy PHP
Learn how to write an AI prompt that generates real unit tests for legacy PHP code, including the hidden edge cases a generic prompt misses.
5 AI Prompts to Refactor Messy Code
5 AI prompts that turn vague refactor requests into mergeable code — name the exact smell, protect behavior, and lock in tests before you touch anything.
Stay ahead of the curve
Get the latest prompt engineering strategies, token optimization tricks, and platform updates delivered straight to your inbox once a month. No spam.