I stopped writing prompts. I write the repo. A developer describes shifting from prompt engineering to context engineering, embedding documentation and conventions directly in the repository to improve AI coding assistance. The approach involves writing reasons rather than rules, which generalizes better and keeps documentation accurate. Originally published on indiecore.net. For about a year I got better at asking. Longer prompts, worked examples, careful phrasing, a private collection of formulations that seemed to work. It helped for a while and then it stopped helping, and what bothered me was the inconsistency: the same request would produce good work on a Monday and something mediocre on a Thursday. The reason is obvious in hindsight and was invisible at the time. On Monday I'd been in the same files for an hour and the session knew the codebase. On Thursday I'd opened a fresh one and asked the same question of something that knew nothing about the project. The prompt was never the variable. There's a name for the shift now — prompt engineering giving way to context engineering , tuning the whole information environment rather than the request. Written up at industry scale it sounds like a programme of work. For one person with a small repo it collapses to something much smaller: whatever you'd have to explain to a competent new contributor on their first morning, write it down, in the repo, near the work. The pleasant surprise is that this is all documentation you should have written anyway. It just never paid for itself before, because you were the only reader. content/blog/README.md is the guide to writing a post on this site. It exists because I kept re-explaining the same things to myself after a few weeks away. It carries a frontmatter table: | Field | Required | Notes | |---|---|---| title | yes | Build fails without it. Aim for under 48 characters — the site name is appended. | date | yes | YYYY-MM-DD . Controls ordering. | draft | no | true keeps it out of the site, sitemap and RSS entirely. | It has the four post shapes that work here, each with a skeleton. It has the rule about where images live. And it has this, which I'll come back to: Prefer anchors over line numbers. head and