CONTRIBUTING.md Template
CONTRIBUTING.md with ways to contribute, tested dev setup, branch and Conventional Commits rules, proposals, review SLAs, DCO 1.1 or CLA, AI-assisted contributions, security
Anleitung: Public repos. The "run the gates" section saves review rounds.
Vorschau
Contributing to [Project name]
Contribution guide (CONTRIBUTING.md) for an open-source project: how to ask questions, report bugs and request features, set up a development environment, make and submit a change, what review looks like, the sign-off or licence agreement for contributions, the rules for AI-assisted contributions, and where to report security issues. GitHub links a CONTRIBUTING.md placed in
.github/, the repository root ordocs/when people open issues and pull requests. The guide also covers the contribution-process controls OSPS-GV-03.01 and OSPS-GV-03.02 of the OpenSSF Open Source Project Security Baseline (version 2026-08-28). Replace every[bracketed]value and every row marked Example. Worked examples use Brindlemark, a fictional open-source Markdown desktop editor. This is a documentation format, not legal advice.
Document control
| Field | Value |
|---|---|
| Document ID | [CONTRIB-001] |
| Version | [1.0] |
| Status | [Draft / In review / Approved / Superseded] |
| Owner | [@maintainer] |
| Approvers / reviewers | [@maintainers-team] |
| Last updated | YYYY-MM-DD |
| Classification | Public |
| Project licence | [Example: MIT] |
| Contribution agreement | [DCO 1.1 sign-off / CLA name and version / None] |
| Related | Code of Conduct (dev/code-of-conduct), Governance (dev/governance), Security Policy (dev/security-policy), Bug Report (dev/bug-report), Feature Request (dev/feature-request), Pull Request (dev/pull-request), Changelog (dev/changelog) |
Revision history
| Version | Date | Author | Change |
|---|---|---|---|
| 1.0 (Example) | YYYY-MM-DD | [@maintainer] | First version: DCO sign-off, AI-assisted contribution rules, tested setup for macOS and Linux |
| [x.y] | YYYY-MM-DD | [@name] | [Change summary] |
1. Welcome and ways to contribute
Thank you for your interest in [Project name]. Contributions of every kind are welcome: code, documentation, translations, design, testing, triage and answering questions. Everyone who takes part agrees to follow our Code of Conduct, which is based on the Contributor Covenant 3.0.
| Contribution | Where to start |
|---|---|
| First code change | Issues labelled [good first issue] |
| Documentation | [docs/ folder, issues labelled documentation] |
| Translations | [Example: our translation platform project page] |
| Triage | Reproduce new bug reports and add the missing details |
| Questions and support | [Discussions forum or chat link]; see also SUPPORT.md |
2. Questions, bugs and feature requests
- Questions: ask in [Discussions / forum / chat], not in the issue tracker.
- Bugs: search existing issues first, then open a new issue with the bug report form. Include the version, the steps to reproduce, the expected and the actual result.
- Feature requests: open an issue with the feature request form. Describe the problem you want solved before the solution you have in mind. Large changes need a proposal first (section 5).
- Security vulnerabilities: do not open a public issue. Follow SECURITY.md.
3. Development setup
3.1 Prerequisites
| Tool | Version | Notes |
|---|---|---|
| [Example: Node.js] | [Example: 24 LTS] | [Use the version in .nvmrc] |
| [Example: pnpm] | [Example: 10.x] | [Enable with Corepack] |
| [Example: Git] | [2.40 or later] |
3.2 Get the code and run it
Clone your fork, install the dependencies and start the development server:
git clone https://github.com/[org]/[repo].git
cd [repo]
pnpm install
pnpm dev
3.3 Run the checks
Run the same checks the continuous integration runs before you push:
pnpm typecheck && pnpm lint && pnpm test && pnpm build
If a step fails on a clean clone, that is a bug in this guide: please open an issue.
4. Making a change
- Fork the repository and create a branch from
[main], named[type]/[short-description], for examplefix/pdf-wide-tables. - Keep the change focused on one concern. Separate refactoring from behaviour changes.
- Follow the existing code style; the linter and formatter settings in the repository are the reference. See [coding standards link] for the rest.
- Add or update tests for every behaviour change, and update the documentation that describes it.
- Add an entry under [Unreleased] in CHANGELOG.md if users will notice the change.
4.1 Commit messages
We use [Conventional Commits 1.0.0]: a type, an optional scope, and a short summary in the imperative mood.
| Type | Use for | Example |
|---|---|---|
feat | A new feature | feat(export): add DOCX export |
fix | A bug fix | fix(export): keep wide tables on the PDF page |
docs | Documentation only | docs: explain plugin loading order |
refactor | Code change with no behaviour change | refactor(editor): extract cursor helpers |
test | Tests only | test(export): cover 12-column tables |
chore | Build, tooling, dependencies | chore: update linter config |
The specification itself defines feat and fix; the other types are common conventions that
this project adopts. Mark a backward-incompatible change with ! after the type or scope (for
example feat(api)!: rename plugin hooks) or with a BREAKING CHANGE: footer, and describe the
migration in the changelog.
5. Proposals for larger changes
Open a proposal before you start work on any change that adds a public API, changes a file format,
adds a runtime dependency, or would take more than [a few days] to build. Use [an issue labelled
proposal / an RFC in rfcs/], following the RFC template (dev/rfc). Decisions on proposals
follow GOVERNANCE.md.
6. Pull requests and review
Open the pull request against [main] and fill in the pull request template: what changed, why,
how you tested it, and screenshots for user interface changes. Link the issue it closes.
| Rule | Value |
|---|---|
| Approvals required | [Example: 1 maintainer; 2 for changes to the plugin API or the release pipeline] |
| Code owners | [Example: reviewers are requested automatically from CODEOWNERS] |
| Continuous integration | All required checks must pass |
| First response target | [Example: within 5 working days] |
| Inactive pull requests | [Example: closed after 30 days without activity, and can be reopened] |
| Merge method | [Example: squash merge, with the pull request title as the commit message] |
Review comments are about the change, not the person. If you disagree with a review, explain your reasoning; if you cannot agree, a maintainer decides as described in the governance document.
7. Contribution licensing: DCO or CLA
By contributing, you agree that your contribution is licensed under the project licence ([Example: MIT]), as described in LICENSE.
Option A, Developer Certificate of Origin (DCO) 1.1. Every commit must carry a sign-off line
certifying that you have the right to submit the work under the project licence, as set out in
the DCO 1.1 text at https://developercertificate.org/. Add it with git commit -s, which appends
a line in this form:
Signed-off-by: Ana Example <ana@example.org>
Use your real name or the name you are known by in the community, and an email address you control. A [DCO check] blocks pull requests with unsigned commits.
Option B, Contributor License Agreement (CLA). Before your first pull request can be merged, you sign the [CLA name and version] at [link]. If you contribute as part of your job, your employer may need to sign the corporate version.
8. AI-assisted contributions
You may use AI coding assistants when you prepare a contribution, under these rules:
| ID | Rule |
|---|---|
| AI-01 | You are responsible for every line you submit. Review, understand and test it as if you wrote it yourself. |
| AI-02 | Disclose substantial AI assistance in the pull request description, naming the tool, for example "Drafted with an AI assistant, reviewed and tested by me". |
| AI-03 | Make sure you have the right to submit the output under the project licence, and that it does not copy code under an incompatible licence. Your DCO sign-off or CLA covers AI-assisted work too. |
| AI-04 | Do not submit generated pull requests, issues or review comments in bulk. Maintainers may close low-effort generated submissions without review. |
| AI-05 | Do not paste private data, secrets or undisclosed vulnerability details into external AI services. |
Example: Brindlemark accepts AI-assisted pull requests with disclosure, and declines AI-generated translations that a fluent speaker has not reviewed.
9. Security issues
Never report a security vulnerability in a public issue, pull request or discussion. Use the private channel in SECURITY.md ([Example: GitHub private vulnerability reporting or security@brindlemark.example]). If you find a vulnerability while working on a contribution, stop and report it privately first.
10. Recognition
Contributors are credited in [the release notes / a CONTRIBUTORS file / the all-contributors table]. Regular contributors can be nominated as committers or maintainers as described in GOVERNANCE.md.
Standard and licence note
Based on the GitHub documentation on contributor guidelines and community health files (docs.github.com, checked October 2026), the contribution-process controls OSPS-GV-03.01 and OSPS-GV-03.02 of the OpenSSF Open Source Project Security Baseline version 2026-08-28 (baseline.openssf.org), the Developer Certificate of Origin 1.1 (developercertificate.org, The Linux Foundation, cited by name and link, not reproduced) and Conventional Commits 1.0.0. The code of conduct it links is based on the Contributor Covenant 3.0 (contributor-covenant.org, CC BY-SA 4.0). The text of this guide is original. Check each source for a newer version before you publish. This is not legal advice; agree the DCO or CLA choice with whoever handles legal matters for your project. Template licence: MIT.
Ähnliche Vorlagen
Architecture Decision Record (ADR) Template
Lightweight Nygard-style ADR: status, context, decision, consequences, alternatives, related decisions, lifecycle and log
Software & EngineeringAGENTS.md Template for AI Coding Agents
Repository instructions for AI coding agents: setup, build and test commands, conventions, architecture map, PR and security rules
Software & EngineeringAI Coding Assistant Policy Template
Policy for AI coding assistants and agents: autonomy levels, tool register, secrets, sandboxing, review of generated code, provenance, OWASP ASI and SSDF mapping