CONTRIBUTING.md template
CONTRIBUTING.md tells new contributors where to ask, how to set up the project and what a mergeable pull request looks like. Copy the example below to the root of your repository, replace Acme, the commands and the review promise with yours, and GitHub links it on new issues and pull requests.
Updated
Files
# Contributing to Acme
Thanks for helping. This guide explains how to report problems, set up the project and get a
change merged.
## Ask a question or report a bug
- Questions go to [Discussions](https://github.com/acme/acme/discussions).
- Bugs go to [Issues](https://github.com/acme/acme/issues/new/choose). Search first, then use the
bug report form and include the steps to reproduce.
- Security problems go through [private vulnerability reporting](SECURITY.md), never a public
issue.
## Set up the project
You need Node.js 24 and Docker.
```bash
git clone https://github.com/acme/acme.git
cd acme
npm ci
cp .env.example .env
docker compose up -d --wait
npm run dev
```
The app runs at `http://localhost:3000`. Run `npm test` to check that your setup works.
## Make a change
1. For anything larger than a small fix, open an issue first so we can agree on the approach.
2. Create a branch from `main`, such as `fix/login-redirect`.
3. Write a test that fails without your change.
4. Run `npm run lint`, `npm run typecheck` and `npm test`. All three must pass.
5. Update the documentation in `docs/` when behavior changes.
## Commit messages
We use [Conventional Commits](https://www.conventionalcommits.org): `type(scope): description`,
such as `fix(auth): keep the redirect after sign-in`. Types are `feat`, `fix`, `docs`, `refactor`,
`test` and `chore`.
## Open a pull request
- Fill in the pull request template, including how to test the change.
- Keep one change per pull request. Small pull requests get reviewed faster.
- A maintainer reviews within a week. Address comments with new commits; we squash on merge.
## Code of conduct
Everyone taking part follows our [Code of Conduct](CODE_OF_CONDUCT.md).
## License
By contributing, you agree that your contributions are licensed under the project's
[MIT License](LICENSE).Save with your agent
Run this command to add Sniptide to Claude Code in the current project. Open /mcp in Claude Code and sign in to Sniptide. Once the server shows as connected, use the prompt below to save a private copy in your library.
claude mcp add --scope local --transport http sniptide https://app.sniptide.com/api/mcpRead https://sniptide.com/templates/contributing-md.json and use create_snippet to save its files as a private Sniptide snippet titled "CONTRIBUTING.md template". Keep the file names and contents from the JSON.Where GitHub shows it
Put the file in the repository root, .github/ or docs/. GitHub links it when someone opens a new issue or pull request, and in the repository's Contributing tab. Setting guidelines for contributors
What each section does
Section | What it settles | When to change it |
|---|---|---|
Ask a question or report a bug | Where each kind of message goes, so issues stay for bugs. | When you add or remove a channel, such as a Discord server. |
Set up the project | The commands from clone to a running app. | Each time setup changes. Try it in a fresh clone each quarter. |
Make a change | When to open an issue first, and the checks that must pass. | When CI adds a check. |
Commit messages | The commit format, if you enforce one. | Remove it if you don't use a convention. |
Open a pull request | What reviewers expect and how long a review takes. | Keep the review time honest. A missed promise costs more than none. |
Code of conduct and License | The rules for behavior and the license contributions fall under. | When either file changes. |
Name the response time you can actually keep. "Within a week" tells a contributor when to follow up.
Variant: a small project
For a library with one maintainer, three sections are enough:
# Contributing
Bug reports and pull requests are welcome. For a new feature, open an issue first.
## Develop
`npm ci`, then `npm test`. Add a test for every change.
## Release
Maintainers release from `main` with `npm version` and `npm publish`.Link the setup steps from your README instead of repeating them, so there is one place to update.