Code restructuring: chat prompts