I’m not sure how good you are at scripting/programming, but you’re going to find out that “prompt engineering” is only a bullshit term until you realize that you can write scripts that go through a process on your behalf, going back and forth with the LLM like a conversation, to produce an outcome.
Example: I wrote a script that generates Mage: the Awakening 2e and Werewolf: the Forsaken 2e character sheets. In it, when you make certain choices at some steps, future steps transform. To elaborate, you choose a concept, then Attributes, Skills, Skill Specialties, and so on. Eventually, you get at Merits. Merits are like these modular, one-off things that you buy with a limited number of points. But most of them have prerequisites; you can’t take Quick Draw unless you have a Wits rating at 3 or higher. So if the character doesn’t have that, my script literally excludes that Merit from being chosen.
So the prompt is never really the same, not just in that my script offers the character sheet so far at each step, but in that each step, the prompt itself transforms programmatically to ensure that the returned content is within the confines of the chargen rules.
I consistently start these little side projects with TTRPG shit for two reasons. One, I love TTRPG shit, but also two, TTRPG shit tends to be notoriously complicated and abstruse. If you can play TTRPGs and really understand the rules, you can learn the IRS code. These games are legit idiot filters.