A Directory of Contributor Guideline Files, and Who Defines Them
A package with outside contributors needs a few plain-text files that answer the same questions every newcomer asks: how do I set up the project, how should I behave, where do I report a vulnerability, and do I need to sign anything? This directory lists each file type, what it should say, and which public source documents the convention.
The core files
| File | Answers | Where the convention is described |
|---|---|---|
CONTRIBUTING.md | How to build, run tests, format code and submit a pull request | GitHub Docs on community health files |
CODE_OF_CONDUCT.md | Expected behaviour and how reports are handled | Contributor Covenant, a widely adopted template |
SECURITY.md | Where to send a private vulnerability report and what response to expect | GitHub Docs; OpenSSF guidance on coordinated disclosure |
LICENSE | The terms contributions are accepted under | SPDX License List; choosealicense.com |
CODEOWNERS | Who reviews which part of the tree | GitHub and GitLab documentation |
What a useful CONTRIBUTING file contains
Keep it practical. A newcomer should be able to go from clone to a passing test run by following it literally. Good sections include prerequisites with exact tool versions, a single command to run the suite, the commit message style if your release tooling depends on one, and what kind of changes you will not accept. That last point saves everyone time; a maintainer who quietly declines feature requests outside the project's scope creates more frustration than one who writes the boundary down.
## Running the tests
npm ci
npm test
## Commit messages
We use Conventional Commits (feat:, fix:, docs:) because
our changelog is generated from them.
Sign-off and licence agreements
Two mechanisms exist for recording that a contributor has the right to submit their code.
- Developer Certificate of Origin (DCO). A short statement, maintained under the Linux Foundation, that the contributor certifies by adding a
Signed-off-by:line to each commit (git commit -s). It is lightweight and needs no separate paperwork. - Contributor Licence Agreement (CLA). A signed agreement, often used by companies that steward projects, that may grant broader rights than the outbound licence. It adds friction, so decide whether you genuinely need it. If in doubt, ask a lawyer rather than copying another project's CLA.
Code of conduct: adopting versus enforcing
Adding the Contributor Covenant text takes a minute. The part that matters is the enforcement section: a real contact address that someone reads, and a description of what happens after a report. A code of conduct with a dead mailbox is worse than none, because it promises a process that does not exist. Small projects can name a single maintainer and a backup.
Setting these up in one sitting
- Add
LICENSEfirst; without it, outside contributions are legally unclear. - Add
SECURITY.mdwith a private channel, such as the platform's private vulnerability reporting feature. - Write
CONTRIBUTING.mdby actually following it on a clean machine. - Adopt a code of conduct and fill in the enforcement contact.
- Link all of them from the README's last section.
Related reading: permissive and copyleft licences compared and the glossary.