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

FileAnswersWhere the convention is described
CONTRIBUTING.mdHow to build, run tests, format code and submit a pull requestGitHub Docs on community health files
CODE_OF_CONDUCT.mdExpected behaviour and how reports are handledContributor Covenant, a widely adopted template
SECURITY.mdWhere to send a private vulnerability report and what response to expectGitHub Docs; OpenSSF guidance on coordinated disclosure
LICENSEThe terms contributions are accepted underSPDX License List; choosealicense.com
CODEOWNERSWho reviews which part of the treeGitHub 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.

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

  1. Add LICENSE first; without it, outside contributions are legally unclear.
  2. Add SECURITY.md with a private channel, such as the platform's private vulnerability reporting feature.
  3. Write CONTRIBUTING.md by actually following it on a clean machine.
  4. Adopt a code of conduct and fill in the enforcement contact.
  5. Link all of them from the README's last section.

Related reading: permissive and copyleft licences compared and the glossary.

Related pages