contributing-conventions
Skill7 starsChanged 3 days agoMITView on GitHub
CONTRIBUTING.md: dev setup, tests, pre-commit and CI. TRIGGER when: creating or editing `CONTRIBUTING.md`; scaffolding a project; a change adds a dev dependency, pre-commit hook or CI job; user asks how contributors set up the repo or where to document the CI. SKIP when: writing `README.md` (`readme-conventions`).
1 other project uses a version of this.
Adopted by
Most recently taken up by
- leroyguillaume/skillsword for word, first seen Nov 22, 2026
Other versions1 project uses a version of this.
Word for word · 1
- leroyguillaume/skills★ 7100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository54 other files it gives its agents.
- adr-conventionsSkill
- api-conventionsSkill
- architecture-conventionsSkill
- argocd-conventionsSkill
- ci-conventionsSkill
- config-conventionsSkill
- councilSkill
- cryptography-conventionsSkill
- dependency-update-conventionsSkill
- diagram-conventionsSkill
- docker-conventionsSkill
- documentation-conventionsSkill
- frontend-conventionsSkill
- github-actions-conventionsSkill
- github-issue-conventionsSkill
- github-pr-conventionsSkill
- github-repo-settingsSkill
- gitlab-ci-conventionsSkill
- helm-conventionsSkill
- herdr-core-delegationSkill
- herdr-delegationSkill
- herdr-tui-delegationSkill
- kopf-conventionsSkill
- kubernetes-operator-conventionsSkill
- logging-conventionsSkill
- logo-conventionsSkill
- mise-conventionsSkill
- ollama-conventionsSkill
- openssf-conventionsSkill
- pr-conventionsSkill
- pre-commit-conventionsSkill
- project-metadata-conventionsSkill
- python-async-conventionsSkill
- python-conventionsSkill
- readme-conventionsSkill
- release-script-conventionsSkill
- release-supply-chain-conventionsSkill
- renovate-ci-conventionsSkill
- rest-conventionsSkill
- rust-build-conventionsSkill
- rust-conventionsSkill
- rust-http-conventionsSkill
- security-policy-conventionsSkill
- signal-handling-conventionsSkill
- sql-conventionsSkill
- starlight-conventionsSkill
- systemd-conventionsSkill
- system-user-conventionsSkill
- task-conventionsSkill
- terraform-conventionsSkill
- topic-splittingSkill
- ui-copy-conventionsSkill
- web-layout-conventionsSkill
- yaml-conventionsSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Keep it operational: commands, not philosophy — a CI or tooling choice gets its *why* in one line, no more — and in English …
- Very specific: line 119
If a test needs fixtures, seed data, or a docker compose up first, that command belongs in this section too — a contributor should never …
- Very specific: line 125
Every repo has a .pre-commit-config.yaml with the baseline hooks and those for each technology in use (pre-commit-conventions).
- Very specific: line 155
Describe the pipeline that actually exists: Read .github/workflows/*.yaml (or the equivalent) and document what's there — never a generic …
- Distinctive: line 187
Keep the *why* to a line. That the release job builds on native runners and takes twelve minutes is CI documentation.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CONTRIBUTING conventions
A CONTRIBUTING.md answers one question: "I want to change this code — how
do I get a working setup and land a green PR?" It is the contributor's
counterpart to the README's user view, and it is linked from the README (see
readme-conventions).
Keep it operational: commands, not philosophy — a CI or tooling choice gets
its why in one line, no more — and in English (documentation-conventions).
Mandatory structure
The opening names the issue tracker, by URL, as the place for bug reports
and feature requests, and sends a vulnerability to SECURITY.md instead
when the repository has one (security-policy-conventions): a reporter
reads the top of this file, not its last section.
# Contributing
<One or two sentences: where bug reports and feature requests go, and the short version.>
## Development setup
## Running the tests
## Pre-commit hooks
## Continuous integration
## Submitting a change
## ReleasingReleasing only when the project cuts releases; every other section is
mandatory.
1. Development setup — what to install
Everything a contributor needs that a user does not. The README covers running the project; this covers building on it.
- List the tooling, and how to get it: mise, which installs everything
else — the toolchain,
pre-commit, and any binary the hooks or tests shell out to (mise-conventions). Linkmise.tomlrather than copying its versions. If a hook needs a binarymise.tomldoes not list, the contributor discovers it as a cryptic failure: add it there. A repo without amise.tomlyet lists each tool, links the file that pins it, and gets amise.tomlproposed. Give the bootstrap as a copy-pasteable sequence, in order, from a fresh clone:
mise trustmise installtask setupOne command per fenced block, no
$prompt, no interleaved output.- Every install command covers macOS and Linux —
readme-conventionscarries the rule and the example. - Say what "it works" looks like — the one command that proves the setup is good, and point at the test section below for the rest.
- Do not restate the README. How to run the project, its environment
variables, its config — those live in the README. Link to it:
See [README.md](README.md#getting-started) for running the project. - Mention the editor/LSP setup only when it is genuinely required (a
pyrightconfig.json, a rust-analyzer setting the code depends on), never as a list of the maintainer's favourite plugins.
2. Running the tests
The test commands live here, not in the README — running the suite is a contributor's loop, not a user's. Give them verbatim, from the repo's actual tooling:
The whole suite, the one command that must be green before a PR:
uv run pytestA subset, because nobody runs the full suite on every save — a single file, a single test, a marker or feature flag:
uv run pytest tests/test_parser.py::test_rejects_empty_input- The categories that exist and how they differ — unit vs integration vs end-to-end — and crucially what each one needs: a running database, a cluster, a container runtime, credentials for a sandbox account. A test suite that silently requires Docker is a contributor's lost afternoon.
- How to run the slow or optional ones, and how they're excluded by default (a marker, a feature, an environment variable).
- Coverage, when CI measures it (
ci-conventions):task coverage, where its HTML report lands, and the threshold only when the project has one. - What is expected of a new change: tests for new behaviour, a regression test for a fix. Say it once, here.
If a test needs fixtures, seed data, or a docker compose up first, that
command belongs in this section too — a contributor should never have to
reverse-engineer a failing test to discover it needed a service.
3. Pre-commit — the gate
Every repo has a .pre-commit-config.yaml with the baseline hooks and those
for each technology in use (pre-commit-conventions); this section is how a
contributor lives with it.
pre-commit installis part of the setup, and say plainly that hooks must pass before a commit is pushed.Give the two commands: the whole repo, and re-running a single hook while iterating.
pre-commit run --all-filespre-commit run <hook-id> --all-files- Link
.pre-commit-config.yamlfor the hook list rather than copying it, and explain only the hooks whose failure needs explaining — a binary to install, a fix that is not re-running, a stage--all-filesskips. A short table (hook → what it checks → how to fix) beats prose for those; formatters mostly fix themselves on re-run, linters don't. - Say that
--no-verifyandSKIP=are not the fix. A red hook is a real finding; the answer is to fix the code or, if the rule is genuinely wrong for this repo, to change the configuration in the same PR and say why. - Note that the same hooks run in CI (see below), so skipping locally only moves the failure somewhere slower.
4. Continuous integration — what runs and why
Describe the pipeline that actually exists. Read
.github/workflows/*.yaml (or the equivalent) and document what's there —
never a generic "we run tests on every PR" that drifts from reality within a
month.
For each workflow, link the file and cover what it is for, what it blocks,
and how to reproduce it locally — one line of purpose, never its steps,
which the file holds (documentation-conventions). Its triggers are in the file; mention one
only where it would surprise a contributor (a path filter that skips a job on
their PR, a schedule that fails with no change of theirs). A table carries
this well:
| Workflow | Purpose | Reproduce locally |
| --- | --- | --- |
| [`quality.yaml`](.github/workflows/quality.yaml) | quality gate | `pre-commit run --all-files` |
| [`coverage.yaml`](.github/workflows/coverage.yaml) | test coverage report, not required | `task coverage` |
| [`build.yaml`](.github/workflows/build.yaml) | image build and scan | `docker build .` |
| [`security.yaml`](.github/workflows/security.yaml) | CVE scan of the code and the latest release | `trivy fs .` |
| [`release.yaml`](.github/workflows/release.yaml) | image publish | — |Then, in a few lines:
- Which checks are required to merge, and which are informational.
- The local equivalent of every blocking check — a contributor should never need to push to find out whether it passes. If a check genuinely has no local equivalent (a signed publish, a cluster-integration job), say so explicitly rather than leaving people guessing.
- What secrets or permissions the pipeline needs, by name and purpose only — never a value, never a token, not even a truncated one. Fork PRs usually can't see them; say which jobs are therefore skipped.
- Keep the why to a line. That the release job builds on native runners and
takes twelve minutes is CI documentation; why it uses them instead of QEMU
is one sentence here or in the workflow file's header comment — never
ARCHITECTURE.md, which leaves the CI out.
5. Submitting a change
Short and concrete:
- Branch naming, if the repo has a convention.
- Commit style — imperative, lowercase subject; point at the existing
git log --onelineas the reference rather than inventing rules. - PR expectations — green CI, documentation updated in the same PR, and
the labels the repo uses (see
github-pr-conventions). The testing expectation is stated once, in the test section; don't repeat it here. - How reviews happen and who to ping, when there is an actual answer.
6. Releasing — only when the project cuts releases
How a maintainer cuts one, commands only: the release script to run and what
it asks before pushing, and which CI workflow publishes from the tag. The
script is the only supported way to release — say so here
(release-script-conventions).
Links
Relative inside the repo, an https:// URL outside it. Link the workflow and
config files described, so a hook is one click from its definition.
Keeping it honest
- Update it in the same change that adds a dev dependency, a hook, or a CI job. A setup section that misses a newly required binary costs every future contributor the same twenty minutes.
- Never duplicate the README or
ARCHITECTURE.md. One home per fact; link across. Setup and gates here, usage in the README, design reasoning inARCHITECTURE.md(seearchitecture-conventions). - Every command must work from a fresh clone, in the order written. Run them if you can.
- Skip the boilerplate. A code of conduct is a separate file
(
CODE_OF_CONDUCT.md) if the user wants one — don't inline a template, and don't add one unasked.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

