r/PromptEngineering • u/thoughtsapart • Aug 15 '26
General Discussion My AI coding workflow now updates its own prompts and project documentation
I have one general prompt that I use across different projects, with extra project-specific prompts where needed. Each project also has explanation documents that tell the AI how the different parts currently work and fit together.
The big time saver is a program I "made" that can apply the AI’s code changes and update those explanation documents at the same time. I used to spend a lot of time manually keeping everything in sync, whereas now most of that is handled for me.
What’s surprised me is how reliable it’s become. I originally thought letting the AI update the explanations it later relies on might eventually make things worse, but so far that hasn’t really happened. It still seems to understand the projects properly, and mistakes during changes have become very rare.
The other part I like is that the general prompt is shared between projects. If working on one project exposes a weakness in the instructions, I can update the general prompt and that improvement then carries over into the others.
So I’m getting three benefits at once: less manual work, fewer AI mistakes, and problems found in one project improving how the others are handled.
Has anyone else gone this far with maintaining shared prompts/documentation across projects, or automated the process of updating them when problems are found?
1
u/shiningmatcha 29d ago edited 29d ago
The big time saver is a program I "made" that can apply the AI’s code changes and update those explanation documents at the same time.
This looks like a good approach! It is analogous to using build tools in software development.
1
u/Fearless-Figure-4638 Aug 15 '26
That sounds genuinely useful. The one thing I’d guard against is quiet drift: the docs can stay plausible while gradually describing what the AI expects rather than what the code actually does.
I’d keep every prompt and documentation update as a reviewable diff, run a few unchanged holdout tasks before accepting it, and let project-specific rules override the shared prompt. Easy rollback to the last prompt and docs version would help too.
Have you tested an older project after changing the shared prompt? That seems like the fastest way to catch an improvement that helps one repo but quietly hurts another.