This already exists in Discourse, when a new user starts typing their first reply or topic. Give it a try.
Also the new user PM that every new user gets covers community guidelines as well, the third of three bullets in that PM says:
- We believe in civilized community behavior at all times.
