Skip to the content.

UX Writing Technical Specification API Docs Technical Documentation Knowledge Base Translation English Installation Guides Help Docs Troubleshooting Handbooks Support Docs Project Docs Portuguese Release Notes German SDK Product Discovery UX Design Spanish Copywriting Microcopy Educational Material Localization User Guides

Code of Conduct template


The Code of Conduct template includes:

You might also consider using the ../our-team/template-our-team.md template to let your community members know who they can contact to report a Code of Conduct violation. This document is useful beyond Code of Conduct violations. It is a core document that helps you clearly communicate who belongs to your open source project or organization.


{Include your project’s opening statement of purpose in this section. Replace your own project’s name in the indicated placeholder text. You are welcome to customize or reword this boilerplate text as needed. Alternatively, you can write your own project’s statement of purpose from scratch.}

{Project name} and its members, contributors, sponsors, and leaders pledge to make participation in our community a positive, inclusive, and safe experience for all. {Project name} encourages contributions from everyone who shares our goals and wants to participate in a healthy, constructive, and professional manner.

This Code of Conduct aims to support a community where all people should feel safe to participate, to introduce new ideas, and to inspire others. This includes everyone, regardless of: ability, age, background, body size or type, caste, disability (either visible or invisible), education, ethnicity, family status, gender, gender identity and expression, geographic location, level of experience, marital status, nationality or national origin, native language, personal appearance, race, religion, sexual identity and orientation, socio-economic status, or any other dimension of diversity.

Openness and respectful collaboration are core values at {Project name}. We are committed to being a community that everyone feels good about joining, and we will always work to treat everyone well. No matter how you identify yourself or how others perceive you, you are welcome. We gain strength from diversity and actively seek participation from those who enhance it.

These guidelines exist to enable all {Project name} community members to collaborate effectively. As such, this document outlines both expected behavior and behavior that will not be tolerated. The Code of Conduct isn’t an exhaustive list of things that you must do or can’t do. Rather, take it in the spirit in which it’s intended. It’s a set of guidelines to make it easier to enrich our community.

Expected behavior

We expect our members, contributors, and leaders to:

Behavior that will not be tolerated

The following behaviors are unacceptable within our community, whether they occur online, offline, privately, or publicly:

Consequences of unacceptable behavior

Unacceptable behavior from any {Project name} community member, contributor, sponsors, or leaders will not be tolerated. We expect everyone to comply with requests to stop unacceptable behavior immediately.

If any community member engages in unacceptable behavior, any community member or moderator should report the incident to the {Project name} {link to your community moderators document community moderators}. The moderators will investigate the incident to determine the incident’s severity and overall impact to the community. See our {link to your Code of Conduct response plan} for more details.

Depending on the risk and impact level, the moderators may respond by requiring:

The action taken is at the discretion of the {Project name} {link to your community moderators document community moderators}. Participants are expected to comply immediately, and further action may be taken in case a participant does not comply.

Every community member is entitled to one appeal using the same process for reporting a Code of Conduct incident. Community members are expected to comply with the requested action while appeals are being considered. After an appeal has been resolved, the decision is considered final.

Reporting an incident

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to one of the {Project name} {link to your community moderators document community moderators}. If you would like to discuss your concerns or if you have personally experienced unacceptable behavior, please reach out to a community moderator as soon as possible.

We encourage reaching out to a community moderator, even if you are unsure whether something counts as a Code of Conduct incident or even if the situation is merely something you observed and did not happen to you directly.

Please reach out as soon as possible if:

Addressing Code of Conduct reports

All complaints will be reviewed and investigated promptly and fairly. If possible, community moderators will recuse themselves in cases where there is a conflict of interest. See our {link to your Code of Conduct response plan} for more details.

An internal record will be kept of all incidents. However, all community leaders are obligated to respect the privacy and security of the reporter of any incident. In some cases, community moderators may determine that a public statement will need to be made. If that’s the case, the identities of all victims and reporters will remain confidential unless those individuals instruct us otherwise.

If you feel you have been unfairly accused of violating these guidelines, please follow the same process for reporting a Code of Conduct incident.

Where this Code of Conduct applies

These guidelines apply to all members of the {Project name} and to all {Project name} activities, including but not limited to:

While this Code of Conduct applies specifically to the {Project name}’s work and community, it is possible for actions taken outside of the{Project name}’s online or in-person spaces to have a deep impact on community health if it concerns the {Project name} or its members in some way. The Code of Conduct moderators reserve the right to consider communications or actions that occur outside of official {Project name} spaces if they have a demonstrated impact on one or more community members.

{Include a list of links to related resources, such as your Code of Conduct Response Plan and the Our Team page where you list who can be contacted to report Code of Conduct incidents. You can also include additional information, such as links to articles that explain the rationale behind your Code of Conduct.}

Back