Skip to content
Open {re}Source

    Open {re}Source

    Repository File Templates

    Published
    2026-10-03
    Updated
    2026-10-07

    Every file the guide tells you to add to a repository, in the smallest version that works. Copy one, replace YOUR_ORG, YOUR_REPO, YOUR_DOCS_OWNER and the other placeholders, and cut what you won’t keep. Each template links to the chapter that explains why it says what it says.

    The templates are released under CC0 1.0. Paste them anywhere, with no attribution. The rest of the site stays under CC BY-SA 4.0.

    There’s no code of conduct here. Use the Contributor Covenant, version 3.0 as of October 2026, and put your contact line in it. It’s CC BY 4.0, so it keeps its attribution.

    Unzip it into a new folder and copy the files you need. Each file sits at the path it goes to in the repository, and .github/ is a hidden folder on macOS and Linux. In a brand-new repository, you can unzip it at the root.

    Download all the templates (zip)
    • README.md: What it does, how to install it, a first example, how to contribute. One screen.
    • CONTRIBUTING.md: The reply you would otherwise retype: before you start, set up, pull requests, review.
    • SECURITY.md: Supported versions, a private way to report, and a promise about timing.
    • GOVERNANCE.md: Roles, how decisions are made, how to become a committer, how to step down.
    • bug.yml: A bug report form that asks for the version, the expectation and the steps to reproduce.
    • config.yml: Turns off blank issues and sends questions and vulnerabilities to the right place.
    • pull_request_template.md: What changes, how to test it, a short checklist.
    • CHANGELOG.md: A Keep a Changelog skeleton with an Unreleased section.
    • CODEOWNERS: Default owners, plus one owner for the docs and one for CI.
    • ARCHIVED.md: The notice to put above the README when the project is archived: status, alternative, migration.

    Section 01 of 10

    README.md#

    What it does, how to install it, a first example, how to contribute. One screen.

    Goes in README.md. Used in The Files That Turn a Repository Into a Project.

    # Project name
    
    One sentence: what it does and for whom.
    
    [![CI](https://github.com/YOUR_ORG/YOUR_REPO/actions/workflows/ci.yml/badge.svg)](https://github.com/YOUR_ORG/YOUR_REPO/actions/workflows/ci.yml)
    [![License](https://img.shields.io/github/license/YOUR_ORG/YOUR_REPO)](LICENSE)
    
    ![A screenshot or a short GIF of the project at work](docs/screenshot.png)
    
    ## Install
    
    ```sh
    # the one command that installs it
    ```
    
    ## Usage
    
    ```sh
    # the smallest example that does something useful
    ```
    
    Expected output:
    
    ```text
    what the reader should see
    ```
    
    ## Documentation
    
    Link to the docs, or to `docs/` if they live in the repository.
    
    ## Contributing
    
    Issues and pull requests are welcome. Read [CONTRIBUTING.md](CONTRIBUTING.md) first.
    
    ## License
    
    [MIT](LICENSE)

    Section 02 of 10

    CONTRIBUTING.md#

    The reply you would otherwise retype: before you start, set up, pull requests, review.

    Goes in CONTRIBUTING.md. Used in The Files That Turn a Repository Into a Project.

    # Contributing
    
    Thanks for taking the time. This page is the short version of how to send a change.
    
    ## Before you start
    
    - For a bug, search the [open issues](../../issues) first. If it's new, open one with the steps to reproduce.
    - For a feature or a larger change, open an issue and wait for a reply before writing code. It saves you a rejected pull request.
    - Small fixes (a typo, a broken link) can go straight to a pull request.
    
    ## Set up
    
    ```sh
    git clone https://github.com/YOUR_ORG/YOUR_REPO.git
    cd YOUR_REPO
    # install the dependencies
    # run the tests
    ```
    
    ## Send a pull request
    
    1. Fork the repository and create a branch from `main`.
    2. Make the change. Add or update a test when behavior changes.
    3. Run the tests and the linter locally.
    4. Open the pull request and fill in the template.
    
    We squash-merge, so the pull request title becomes the commit message. Write it like `fix(parser): handle empty input`.
    
    ## Review
    
    A maintainer replies within a week. If nothing has happened after that, comment on the pull request once.
    
    ## AI tools
    
    You may use AI tools to contribute. Say so in the pull request description when a tool wrote a significant part of your change. You're responsible for what you send: run it, and be ready to explain every line in your own words. The full text this section comes from is in [a policy you can copy](https://openresource.dev/guide/ai/contribution-policy/).
    
    ## Questions
    
    Ask in [Discussions](../../discussions), not in issues.
    
    ## Code of conduct
    
    Everyone taking part follows the [code of conduct](CODE_OF_CONDUCT.md).

    Section 03 of 10

    SECURITY.md#

    Supported versions, a private way to report, and a promise about timing.

    Goes in SECURITY.md. Used in The Files That Turn a Repository Into a Project.

    # Security policy
    
    ## Supported versions
    
    | Version | Supported                 |
    | ------- | ------------------------- |
    | 2.x     | Yes                       |
    | 1.x     | Security fixes until DATE |
    | < 1.0   | No                        |
    
    ## Report a vulnerability
    
    Please don't open a public issue.
    
    Use [private vulnerability reporting](https://github.com/YOUR_ORG/YOUR_REPO/security/advisories/new), or write to security@example.org.
    
    Include the affected version, the steps to reproduce, and what an attacker gains.
    
    ## What to expect
    
    - We acknowledge your report within 3 working days.
    - We send a first assessment within 10 working days.
    - We agree on a disclosure date with you. The default is 90 days after the report, sooner once a fix is released.
    - We credit you in the advisory unless you ask us not to.

    Section 04 of 10

    GOVERNANCE.md#

    Roles, how decisions are made, how to become a committer, how to step down.

    Goes in GOVERNANCE.md. Used in Governance: Who Decides, and How to Write It Down.

    # Governance
    
    ## Roles
    
    | Role        | Who                                        | Can                                         |
    | ----------- | ------------------------------------------ | ------------------------------------------- |
    | Contributor | Anyone                                     | Open issues and pull requests               |
    | Committer   | Listed in [CODEOWNERS](.github/CODEOWNERS) | Review and merge pull requests              |
    | Maintainer  | Listed in [MAINTAINERS.md](MAINTAINERS.md) | Release, change the roadmap, add committers |
    
    ## How decisions are made
    
    - Most decisions happen in the pull request or the issue, by lazy consensus: if nobody objects within 5 working days, it goes ahead.
    - A change to the public API, the license or this document needs an approval from a majority of the maintainers.
    - If maintainers disagree, they vote. A tie is broken by the project lead.
    
    ## Becoming a committer or a maintainer
    
    - A committer has had several pull requests merged over at least 3 months. A maintainer nominates them, and the maintainers approve.
    - A maintainer is a committer who has reviewed other people's work for at least 6 months. Current maintainers vote.
    
    ## Stepping down
    
    Maintainers who are inactive for 6 months are moved to emeritus. They can come back by asking.
    
    ## Changing this document
    
    Open a pull request. It needs the approval described above for governance changes.

    Section 05 of 10

    bug.yml#

    A bug report form that asks for the version, the expectation and the steps to reproduce.

    Goes in .github/ISSUE_TEMPLATE/bug.yml. Used in The Files That Turn a Repository Into a Project.

    name: Bug report
    description: Something doesn't work as documented.
    labels: ['bug', 'needs triage']
    body:
      - type: markdown
        attributes:
          value: |
            Thanks for the report. Search the [open issues](../issues) first: yours may already be there.
      - type: input
        id: version
        attributes:
          label: Version
          description: Output of `project --version`.
          placeholder: 2.4.1
        validations:
          required: true
      - type: textarea
        id: expected
        attributes:
          label: What did you expect to happen?
        validations:
          required: true
      - type: textarea
        id: actual
        attributes:
          label: What happened instead?
          description: Paste the error message or the output.
          render: shell
        validations:
          required: true
      - type: textarea
        id: reproduce
        attributes:
          label: Steps to reproduce
          description: The smallest set of steps, or a link to a repository that reproduces it.
          placeholder: |
            1. Run `…`
            2. …
        validations:
          required: true
      - type: textarea
        id: environment
        attributes:
          label: Environment
          description: Operating system, runtime version, anything that might matter.

    Section 06 of 10

    config.yml#

    Turns off blank issues and sends questions and vulnerabilities to the right place.

    Goes in .github/ISSUE_TEMPLATE/config.yml. Used in The Files That Turn a Repository Into a Project.

    blank_issues_enabled: false
    contact_links:
      - name: Question or idea
        url: https://github.com/YOUR_ORG/YOUR_REPO/discussions
        about: Ask questions and share ideas in Discussions, not in issues.
      - name: Security vulnerability
        url: https://github.com/YOUR_ORG/YOUR_REPO/security/advisories/new
        about: Report vulnerabilities privately. Don't open a public issue.

    Section 07 of 10

    pull_request_template.md#

    What changes, how to test it, a short checklist.

    Goes in .github/pull_request_template.md. Used in The Files That Turn a Repository Into a Project.

    ## What changes, and why
    
    <!-- One or two sentences. Link the issue: Closes #123 -->
    
    ## How to test
    
    <!-- Commands to run, pages to open, what to look at. -->
    
    ## Checklist
    
    - [ ] I read [CONTRIBUTING.md](../CONTRIBUTING.md)
    - [ ] Tests added or updated
    - [ ] Docs updated
    - [ ] Breaking change (describe the migration above)
    
    ## AI tools
    
    - [ ] I didn't use AI tools for this change, or only for line completion.
    - [ ] I used: <!-- tool and what for -->. I reviewed, ran and can explain every line.

    Section 08 of 10

    CHANGELOG.md#

    A Keep a Changelog skeleton with an Unreleased section.

    Goes in CHANGELOG.md. Used in The Files That Turn a Repository Into a Project.

    # Changelog
    
    All notable changes to this project are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/), and the project follows [Semantic Versioning](https://semver.org/).
    
    ## [Unreleased]
    
    ### Added
    
    - A new thing.
    
    ## [1.0.0] - YYYY-MM-DD
    
    ### Added
    
    - First public release.
    
    [Unreleased]: https://github.com/YOUR_ORG/YOUR_REPO/compare/v1.0.0...HEAD
    [1.0.0]: https://github.com/YOUR_ORG/YOUR_REPO/releases/tag/v1.0.0

    Section 09 of 10

    CODEOWNERS#

    Default owners, plus one owner for the docs and one for CI.

    Goes in .github/CODEOWNERS. Used in The Files That Turn a Repository Into a Project.

    # The last matching pattern wins. Owners are asked to review pull requests that touch these paths.
    
    # Default owners for everything
    *             @YOUR_ORG/maintainers
    
    # Documentation
    /docs/        @YOUR_DOCS_OWNER
    
    # CI and release automation
    /.github/     @YOUR_ORG/maintainers

    Section 10 of 10

    ARCHIVED.md#

    The notice to put above the README when the project is archived: status, alternative, migration.

    Goes in top of README.md. Used in Burnout, Succession and the End of a Project.

    > [!WARNING]
    > **This project is archived and no longer maintained.** The last release was VERSION on YYYY-MM-DD. It receives no bug fixes or security updates, and issues and pull requests are closed.
    >
    > - **Alternative:** [NAME](https://example.org), which covers the same ground and is maintained.
    > - **Migration guide:** [docs/migrating.md](docs/migrating.md)
    > - **Keep using it?** The license lets you fork it. If you do, open an issue and we'll link your fork here.

    Guide contents

    10 modules, 47 chapters. Each module stands on its own.

    1. 01What Is Open Source?6 chapters
      1. 00Overview
      2. 01Definition of Open Source
      3. 02Brief History of Open Source
      4. 03The Significance of Open Source
      5. 04Ten Successful Projects and What to Steal From Them
      6. 05The Many Shapes of Open Source
      7. 06Benefits of Open Source
    2. 02Getting Started5 chapters
      1. 00Overview
      2. 01Source Code Hosting Platforms: GitHub and the Alternatives
      3. 02Finding Open-Source Software to Use
      4. 03Reading a Repository in Five Minutes
      5. 04Open Source Etiquette: Talking to Strangers Who Owe You Nothing
      6. 05Git and GitHub Basics You Actually Need
    3. 03Contributing7 chapters
      1. 00Overview
      2. 01Finding a Project to Contribute To
      3. 02Your First Contribution, Step by Step
      4. 03How to Write a Bug Report That Gets Fixed
      5. 04Non-Code Contributions Maintainers Actually Want
      6. 05Getting Involved in the Open Source Community
      7. 06Building a Portfolio with Open-Source Contributions
      8. 07Overcoming Challenges in Open-Source Contributions
    4. 04Creating5 chapters
      1. 00Overview
      2. 01Choosing a Project Idea
      3. 02Planning Your Project
      4. 03Creating Your Project
      5. 04The Files That Turn a Repository Into a Project
      6. 05Community From Day One
    5. 05Licensing & Legal6 chapters
      1. 00Overview
      2. 01Choosing a License: Four Questions and a Table
      3. 02License Compatibility: What You Can Combine, and the Tools That Check
      4. 03Relicensing: The Source-Available Wave, and the Forks That Answered
      5. 04CLA or DCO: What You Sign When You Contribute
      6. 05Licenses for Things That Aren't Code: Docs, Fonts, Hardware, Data and Models
      7. 06Trademarks, Names and Logos: What Your License Doesn't Cover
    6. 06Maintaining9 chapters
      1. 00Overview
      2. 01What a Maintainer Actually Does
      3. 02Saying No: Five Replies That Keep Contributors Coming Back
      4. 03Reviewing Pull Requests: What to Check, What to Say, When to Close
      5. 04Running a Community Without It Running You
      6. 05Governance: Who Decides, and How to Write It Down
      7. 06Security for Maintainers: Before, During and After the First Report
      8. 07AI Crawlers and Your Project's Infrastructure
      9. 08Managing Project Dependencies
      10. 09Burnout, Succession and the End of a Project
    7. 07Promoting2 chapters
      1. 00Overview
      2. 01Introduction to Project Promotion
      3. 02Building a Strong Project Identity
    8. 08Financing3 chapters
      1. 00Overview
      2. 01Importance and Challenges of Financing Open-Source Projects
      3. 02Understanding Funding Models
      4. 03Effective Fundraising Strategies
    9. 09Open Source at Work2 chapters
      1. 00Overview
      2. 01License Compliance at Work: The Policy, the Notices and the SBOM
      3. 02Vulnerabilities in What You Ship: Triage, Upstream Fixes and the CRA
    10. 10Open Source & AI2 chapters
      1. 00Overview
      2. 01AI-Assisted Contributions: Write the Policy Your Project Needs
      3. 02Contributing with AI Tools Without Annoying Maintainers