The scope of a README
GitHub defines a README as a file that shares important information about a project. It is often one of the first things a repository visitor sees. It can explain why the project is useful, what people can do with it, and how they can use it.
According to GitHub, README files commonly contain the following information:
- What the project does
- Why the project is useful
- How users can get started with the project
- Where to get help
- Who maintains and contributes to the project
Open Source Guides also notes that a README covers more than usage. The file can explain why the project is important and what users can do with it. The project's goals, how contributions are handled, and license and attribution information can also be included here.
Describe the project and its use
Open Source Guides lists what the project does and why it is useful among the questions a README can answer. GitHub also identifies these two topics as information commonly found in the file. A README can be used to communicate the project's function and benefits to the reader.
What users can do with the project and how they can use it also fall within the scope of a README. Open Source Guides lists the project's goals among the topics that can be explained in the same file. How contributions are handled is another question a README can answer.
According to the guide, a project owner who only wants to show their work may not want to accept contributions. This choice can be stated in the README. If the project is not ready for production, that can also be stated in the file. Open Source Guides lists an unfinished project or a lack of interest in contributions among valid reasons to write a README.
GitHub lists who maintains the project and who contributes to it among the information commonly included in a README. This information can be shared in the same file alongside what the project does and how users can get started.
Include getting started and help information
GitHub lists how users can get started with the project among the information commonly included in a README. Open Source Guides also identifies getting started as one of the questions the file can answer. Such a section addresses how to get started alongside the explanation of what the project does.
Where to get help can also be explained in a README. GitHub lists this information among common topics. Open Source Guides treats where someone who needs help can turn as a question the README can answer.
According to GitHub, a README should contain the information developers need to start using and contributing to the project. It points to wikis for longer explanations. Information needed to get started can be included in the README, while longer explanations can go in the wiki.
Place license and contribution information
According to Open Source Guides, license and attribution information can be covered in a README. How contributions are managed can also be explained in the same file. If contributions are not accepted, stating this is also among the information a README can cover.
GitHub discusses the README alongside the repository license, citation file, contribution guidelines, and code of conduct. According to GitHub, these files communicate project expectations and help manage contributions. The README is part of this structure; the other files cover their respective topics.
Open Source Guides states that an open license allows people to use, copy, modify, and contribute to the project. The guide says that a project published openly should have a license. Information about the license can be provided in the README.
Explain participation steps in the CONTRIBUTING file
According to Open Source Guides, a CONTRIBUTING file tells people how they can participate in a project. It can include how to submit a bug report and propose a new feature. It can also explain how to set up the working environment and run tests.
Alongside technical details, a CONTRIBUTING file can include expectations about contributions. Open Source Guides gives the types of contributions sought as an example. The file can also explain how contributors should or should not communicate with project owners.