Prompt Engineering
& LLM Guides
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.
Fix Laravel 419 CSRF Token Mismatch Error
A real fix for the Laravel 419 CSRF token mismatch error — session cookie settings, SPA/Axios setup, and when to actually use the except array.
OpenAI Function Calling in a Laravel App
How to wire OpenAI function calling into a Laravel backend so an LLM can trigger real actions, plus the validation and loop-depth safeguards you actually need.
Fix Git's Merge Unrelated Histories Error
Git's 'refusing to merge unrelated histories' error explained: the real --allow-unrelated-histories fix, and when re-cloning is better instead.
AI Prompt to Document an Undocumented API
Turn a day of writing API docs by hand into an hour of review with the right AI prompt structure for documenting undocumented REST endpoints.
GitHub Actions SSH Deploy: Permission Denied
GitHub Actions SSH deploy failing with Permission denied (publickey)? Here is the real cause -- a corrupted key -- and the fix that actually works.
AI Code Review Prompt for Laravel PRs
A structured AI code review prompt that actually catches Laravel-specific bugs like mass assignment and N+1 queries, instead of generic AI praise.
PHP-FPM: Dynamic vs OnDemand vs Static
PHP-FPM's pm mode decides how much RAM your server burns at idle. Here's dynamic vs ondemand vs static compared, with the numbers that matter.
pgvector vs Pinecone for Node.js Embeddings
pgvector vs Pinecone for Node.js apps: when Postgres vector search beats a dedicated vector database, with real code and a clear recommendation.
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.