Claude / your favourite LLM coding agent can help you design this and will be good at helping you unpack risks and hazards. Good luck!