Skip to content

Resource · Guide or article

Your Code of Conduct

This short piece explains why a project should adopt a code of conduct and how maintainers can enforce one fairly. It is useful background for stories about handling inappropriate behavior or protecting someone who raised a concern.

Reviewed

Open the original: Your Code of Conduct (opens the original site in a new tab)

Practice this topicOpens the practice interviewer in Behavioral / STAR mode; choose a question there.

Add to a roadmap

Keep this resource with a roadmap you follow. It appears as your own extra resource; the roadmap's steps don't change and it doesn't count toward your tracked steps.

Source content: English

Facilitate healthy and constructive community behavior by adopting and enforcing a code of conduct.

PrepKit overview

PrepKit editors wrote and reviewed this overview from the source repository. It is not text from the resource itself.

Suited to
The source does not state a level
Format
Guide

What it covers

  • Lists what a code of conduct should define: where it applies, to whom, consequences, and how to report.
  • Recommends deciding enforcement before any violation, including a private reporting channel and a backup contact.
  • Enforcement steps: gather context and other perspectives first, then choose a public warning, a private conversation, suspension or a ban.
  • Stresses that the maintainer, not the reporter, handles contact with the person reported, and asks consent before copying reporters in.

How to use it

PrepKit study advice, not a claim made by the source.

Think of a real time you saw behavior that made someone uncomfortable in a team, class, community or job. Write down what you observed, how you found out more before acting, what you did and how you protected the person who spoke up. If you did nothing, say what you learned and would do now.

Scope and limitations

Not an interview guide; it addresses project maintainers. Enforcement advice is general and does not cover workplace HR processes or law. The adoption figure it gives for the Contributor Covenant is unverified by PrepKit.

Access and format

Web article on opensource.guide, in English and free to read online; the text comes from the Open Source Guides repository, licensed CC BY 4.0.

Reviewed by PrepKit on Oct 2, 2026. Listing source commit: e7ac98e94600

Evidence behind this overview
  • _articles/code-of-conduct.md

Pages that include this

Get the PrepKit newsletter

Optional. You don't need it to use PrepKit.

How we handle your email