It's interesting to look at the format of the Django Code of Conduct, although the content would be different since this is for a project instead a forum: https://www.djangoproject.com/conduct/ - including detailed explanations of what it considers important, examples of types of problems, a FAQ explaining the code of conduct, a reporting guide, an enforcement manual, and a changelog.
The Flickr Community Guidelines are also interesting in format: https://www.flickr.com/help/guidelines/ - with many very specific details about acceptable and unacceptable behavior.