For your GitHub project
San Dimas Code of Conduct
One line. Universal. Inspired by two time-traveling philosophers. Drop it into your repo and get on with shipping.
The whole thing
Copy it from here or grab the file - either way ends up in your repo.
# San Dimas Code of Conduct
Be excellent to each other! What is the San Dimas Code of Conduct?
A drop-in CODE_OF_CONDUCT.md file for GitHub projects.
One sentence, universal scope, public domain. Drop it into your
repository root and GitHub picks it up automatically.
Why one line?
Most codes of conduct are long, formal, and rarely read in full. This one is the opposite: a phrase short enough to remember, broad enough to cover every reasonable case, friendly enough that nobody feels lawyered at. If your community needs detailed governance, write that. If "treat each other well" is the entire ask, this does the job.
How to use it in your repository
- Click the Download button above (or copy the text from the preview).
-
Save the file as
CODE_OF_CONDUCT.mdin the root of your repository. - Commit and push. GitHub auto-detects the filename and adds a "Code of Conduct" link to the repository community profile.
That's it. Most excellent.
FAQ
- Is this a real code of conduct?
- Yes. GitHub treats any CODE_OF_CONDUCT.md at a repository root as the project's code of conduct. There is no minimum length or required clause list - the filename and location are what matter.
- Will GitHub recognize this file?
- Yes. Once CODE_OF_CONDUCT.md is on your default branch, the repository community profile gains a Code of Conduct link automatically. Nothing else to configure.
- Can I modify it?
- Yes. The file carries no copyright claim. Edit it, extend it, fork it, or use it as-is. No attribution required.