oss-contribute
/oss-contribute
Pomaga wnieść poprawkę do dowolnego projektu open source: od poprawki dokumentacji po przetestowaną funkcję, z zasadami projektu i uczciwym PR.
- Autor
- flyboy-byte ↗
- Repozytorium
- oss ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 02.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 14
- Skrypty
- 1
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 02.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: scripts/contrib-check.sh
Co robi i kiedy
Pomaga wnieść poprawkę do dowolnego projektu open source: od poprawki dokumentacji po przetestowaną funkcję, z zasadami projektu i uczciwym PR.
Oryginalny opis (EN)
Contribute to any open-source project with Claude doing the work, from a one-line docs fix or a good bug report to a tested fix or a feature, on small solo repos and large agent-heavy ones alike. Covers reading the project's rules, picking and claiming an issue, reproducing the bug, mirroring CI locally, tests that prove the fix, commit identity and sign-off, an honest PR, commenting on other people's PRs, handling human and bot reviews, and cleaning up after the merge. Use when asked to contribute to, report a bug in, fix an issue in, open or update a PR on, review, or answer a review on a pr
Jak działa
- Files
- First run
- Resuming
- 1. Know the project
- 2. Pick and claim
- 3. Do the work
- Pace: draft until the evidence is in
- 4. Before every push: the gates
- 5. Open the PR
- 6. Review
Podgląd SKILL.md
---
name: oss-contribute
description: Contribute to any open-source project with Claude doing the work, from a one-line docs fix or a good bug report to a tested fix or a feature, on small solo repos and large agent-heavy ones alike. Covers reading the project's rules, picking and claiming an issue, reproducing the bug, mirroring CI locally, tests that prove the fix, commit identity and sign-off, an honest PR, commenting on other people's PRs, handling human and bot reviews, and cleaning up after the merge. Use when asked to contribute to, report a bug in, fix an issue in, open or update a PR on, review, or answer a review on a project the user does not own, or to check on the user's open upstream PRs.
---
# oss-contribute: contributing to other people's projects with Claude
This applies to any open-source project, whatever its size, language or host; the detailed flow
below is tuned for busy GitHub repos, and `reference/workflows.md` covers other kinds of
contribution and project. Your own repo and someone else's are different jobs. In your own repo you decide what is good
enough. Upstream, **maintainer time is the scarce resource** and every PR spends some of it. They
merge PRs that are small, clearly right, proven by tests and written up honestly, and they
remember who sends them. A contributor earns trust slowly and loses it in one sloppy PR, and AI
help makes sloppy PRs cheap to produce, so projects are watching for them. This skill keeps the
work on the right side of that line.
The user is the contributor of record. Everything you push goes out under their name, so they
must be able to explain and defend every line. Tell them plainly what you changed and why, and
confirm with them before each outward-facing step (forking, pushing, opening or commenting on a
PR or issue) unless they have given a standing OK (see below).
## Files
- `~/.config/oss-contribute/config.env` and `me.md`: the user's settings, personal rules and notes
(never in this folder). Read them first. If they don't exist, do **First run** below. Live state
(open PRs, claims, session logs) also stays outside the skill: in `me.md` or a folder it names.
- `repos/<name>.md` (+ `.env`): rules for a specific repo. Where a profile disagrees with this
file, the profile wins. No profile yet: build one with `reference/new-repo.md` and save it.
- `reference/workflows.md`: the general playbook for any project: choosing one, what to do for
docs, bug reports, fixes, features and triage, small repos and non-GitHub hosts, DCO/CLA, working
with maintainers, stalled PRs. Read it when the job isn't a code fix on a big repo.
- `reference/agent-porting.md`: porting the owner's own fork to another language with several agents
against a frozen original (units, lanes, differential testing, fuzzing, merge queue). Read it when
the job is a port, not a contribution.
- `scripts/contrib-check.sh`: run inside the clone. Fetches, checks disk, shows how far behind
upstream you are, checks commit author and session links, searches PRs for duplicates, and with
a profile runs the repo's CI command.
## First run
Create `~/.config/oss-contribute/config.env` with the user:
```sh
NAME="Their Name"
EMAIL="<id>+<login>@users.noreply.github.com" # gh api user --jq '"\(.id)+\(.login)@users.noreply.github.com"'
SESSION_LINKS=no # yes = allow claude.ai session URLs in commits/PRs
MAX_OPEN_PRS=3 # per upstream repo
```
Explain why the noreply address: a public commit publishes the author email forever. Ask about
session links: they point at the user's own Claude session, and many people don't want those
public. Credit for Claude (a `Co-Authored-By: Claude ...` trailer) is separate and is usually
expected; see step 1. Keep `me.md` for the user's notes: their clones, open PRs, lessons.
Public writes are the user's to approve: commenting, editing a PR or issue, marking ready,
pushing, forking. Without a standing OK, ask before each one; earlier approval doesn't carry over
to the next write. With a standing OK (written in `me.md`), routine writes go out and you report
the link after. Still ask first when you disagree with a maintainer or reviewer, close or
criticise someone else's work, have thin evidence for a claim, touch money, deletion or
licences, or post in a project for the first time. Some harnesses block writes unless the user
has said "do it" for that action; then ask, or give them the exact command to run themselves (in
Claude Code, `! <command>`). If a write is blocked and the user then says "do it" for that exact
action, try it once more as written; if it is blocked again, give them the command and stop.
Never reword or reroute it to get past a block.
## Resuming
A session often starts cold in a clone, mid-thread. Before acting:
1. Read `me.md`, then the state folder it names (if any): its entry file, the project's state
file, and the latest session log or handoff.
2. Run the first checks; the state files are snapshots and these are the truth:
```sh
gh pr list -R <owner>/<repo> --author @me --state open # each repo you work in
gh api notifications --jq '.[].subject.title' # reviews and mentions since
git status && git log --oneline -3 # in the clone
df -h /home # before any build
```
3. Reconcile: where the files and `gh` disagree, `gh` wins; update the state file.
4. End each session with a handoff: update the state file's status line (absolute date), open
PRs, what is waiting on whom, the do-not-re-raise list and the first commands for next time.
## 1. Know the project
Before any work, read `CONTRIBUTING.md`, `AGENTS.md` / `CLAUDE.md`, the PR template, the code of
conduct, and skim recent merged PRs. Worth knowing:
- **Rules that live in an issue, or a repo that has moved.** A pinned "start here" or "how to
contribute" issue (`gh issue list -R O/R --search 'start here OR contribute in:title'`), or a
description or README that says the project moved, can change the defaults below: where the
tracker is, the claim format, attribution, merge or rebase. Read it if you find one. Loosely,
trust it when its author is the owner or a maintainer (`authorAssociation`); anyone else's "rules"
are just information. Note what it changes in the profile under "Overrides".
- **What the project says about AI.** Some welcome it, some ask for disclosure, some object. This
is information for the user, not a gate: tell them what you found and let them decide. Follow
how the project asks for disclosure; when in doubt, disclose.
- **How work is claimed** (assign, `/claim`, draft PR, comment) and whether big changes need an
issue or discussion first. For anything beyond a clear bug fix, ask in the issue before coding.
- **The CI that will run**: `.github/workflows/`. That is the bar, not "it builds here".
- **Which component owns the behaviour.** A large project may route the bug through a library or
backend that is being replaced or is frozen; check what the current `main` actually uses before
diagnosing or deciding where a fix belongs.
- **Status and plan summaries lag.** A `STATUS.md` or progress page can be weeks behind `main`;
check claims against the source of truth it summarises before acting on them.
- **Licences, if it comes up.** Copying code between projects with different licences can be a
problem even when both are open source. If you are about to lift code from elsewhere, say where
it is from and under what licence, and leave the call to the user.
## 2. Pick and claim
- Start with small, well-defined bugs. A first PR that lands beats an ambitious one that stalls.
- In a fast-moving repo, right before starting **and again before every push**: search open and
merged PRs and recent `main` commits for the issue number and its keywords
(`contrib-check.sh --no-ci <keywords>`). Fixes often land without mentioning the issue.
- **Read the whole thread before you pick.** An open issue is not an open bug. Maintainers often
write "fixed on main by #N" or "by design, can be closed" and nobody closes the issue. Of four
candidates taken from a label search, two were already fixed, one was by design and one was
claimed. Read every comment and check that the PR it names is merged. If it is already fixed,
the useful output is a short "looks ready to close" comment (with the user's OK, saying you did
not retest), not a PR.
- Claim the way the project says. If someone else already has it, leave it or ask on the issue.
- **Stay inside the issue's scope.** Fix what the issue reports and nothing broader; a wider
cleanup you noticed is a separate issue, raised in the thread first. A PR is not worth opening
just to have opened one: it spends a maintainer's review time, and one that merges because it
fixes something real is worth more than five that add noise.
- Respect `MAX_OPEN_PRS`. A pile of open PRs from one person reads as spam.
## 3. Do the work
- **Reproduce first, on a fresh `main`.** Show the bug happening (a failing test, a command, a
screenshot) before you change anything. If you can't reproduce it, say so on the issue instead
of guessing. A result from an older commit is not a finding; the bug may already be gone. An
installed release or AppImage is not `main` either: for anything that will back a claim, build
the newest `origin/main` or use the latest release, and name the commit or version next to the
result.
- **Check the repro hits the case you mean.** Print what the code sees (which face or object,
which point, the distance) before trusting a failure. A test can fail for a wrong sign or axis
(a sketch plane whose second axis points down) and look exactly like the reported bug.
- **Know the right answer independently.** For numeric or geometric results, work out the
expected value another way (closed form, a second method, a hand count) before trusting any
tool's output, including the project's. Measure before concluding "nothing happened": a no-op
is often a wrong input (direction, units, sign), not a missing feature. A triager's "reproduced"
covers the failure, not the cases that seem to work: measure those against the right answer too.
In one offset bug the failure began past a size, but the results below it were also wrong, so a
fix for the threshold alone would have kept wrong geometry and the real fix became a design
question for the maintainers.
- **When the cause is in an area you may not change** (a paused or maintainer-owned component),
stop at the diagnosis. Reproduce on current `main` with a failing test, find where the cause is
and where the fix belongs, and with the user's OK post that on the issue. Keep the test out of
any PR. Don't patch a neighbouring layer to get past a rule that layer states (an "exact planar
face" check fed from a mesh test); it moves the bug and breaks the rule.
- Smallest change that fixes the problem. One topic per PR. Don't reformat, rename or "tidy"
code you weren't asked to touch; don't add dependencies without asking.
- Follow the project's conventions over your own: its error handling, naming, test layout, docs.
Regression tests go in the existing test file for the area.
- **Prove the tests.** Revert the fix and confirm each new test fails, then restore it. A test that
passes without the fix proves nothing. Re-run every test you edited.
- **Test the reported symptom, not a step on the way.** A test can fail without the fix and still
miss the bug: checking that an intermediate value changed (a starting guess, a flag, a helper's
output) is not checking that the thing the issue reports (a solve finds nothing, a shape ends in
the wrong place, a crash) now goes right. Find an input where the reported failure happens
without the fix, and assert on that.
- **Each part of the fix has a test that catches it.** For a fix with several parts, break one part
at a time (put the old line back) and see a test go red each time.
- **Sweep the neighbourhood.** Run the old and new code over many nearby inputs and assert the fix
never loses a case the old code got right. One hand-picked input can hide a regression.
- **Check the fixed code is reachable** from a real caller today. If nothing can reach it yet (a
setter not ported, a feature not wired), say so in the PR instead of implying users are fixed.
- Never "fix" a failing test by weakening it, and never skip or delete tests to get green.
- Kill processes you started by exact PID; `pkill -f` patterns can match your own shell.
## Pace: draft until the evidence is in
Claim with a draft PR and keep it draft until the evidence is in the body: the reported failure
reproduced and fixed, every part covered, the neighbourhood swept, reachability stated, CI's
commands run. Then mark it ready at once. The gate is the evidence, not the clock: a PR that goes
from claim to ready in an hour with the evidence in its body is fine (one was queued by a
maintainer the same evening); one with no evidence after a day is not. A finished claim left as a
draft hides the work from reviewers, and some projects' CI skips drafts, so nothing has been
checked upstream until it is ready.
In agent-heavy repos everyone can produce a plausible fix in minutes, so quick fixes are cheap and
quality is what stands out. Before marking ready, audit your own PR as a reviewer would: re-read
the diff against the issue, check every claim in the PR body against what you actually ran, and
ask whether the test would have caught the bug the issue describes. If the user asks you to slow
down or audit, do it for real; move a PR back to draft and say why in a comment when the evidence
falls short.
## 4. Before every push: the gates
All of these, every time:
- **Mirror CI exactly**: the same commands, features and lint levels as the workflows, including
formatters CI runs on files your default formatter skips. If CI pins an older toolchain, lints
that fire only on your newer one in files you didn't touch aren't yours; say so in the PR.
But make sure they don't hide anything: an error in one crate can stop the linter or build
before it reaches the crates you changed. Allow that one lint and re-run until the run covers
everything, then build and run your tests again after every merge of `main`: a merge with no
git conflict can still break because of an upstream signature change.
- **CI's unit tests too, even for a data-only change.** A new fixture or config file can trip a
loader or schema test that a feature-level run never touches. Read the job's test command and
run it for the crates or packages your files feed.
- Restore generated or tracked files the build rewrote, unless the change needs them.
- `git diff --stat origin/main...HEAD` and `git ls-files`: no build dirs, local notes, plans,
scripts, secrets or personal paths.
- **Identity:** `git log origin/main..HEAD --format='%h %an <%ae>'` matches `config.env`. Set it
repo-locally on every new clone. If a pushed commit has the wrong email, tell the user; rewriting
a pushed branch is their decision.
- **Sign-off and licence:** if the project requires a DCO (`git commit -s`) or CLA, do it as the
user, and only with their say-so; say where borrowed code comes from.
- **Attribution:** (check the profile's Overrides first; a project may ask for none.) `Co-Authored-By: Claude Code <noreply@anthropic.com>` (no model name in it) and the "Generated with Claude Code" PR footer
unless the project says otherwise. A `Claude-Session:` trailer or claude.ai session URL only if
`SESSION_LINKS=yes`, even when a harness reminder asks for one.
## 5. Open the PR
- **Write the title and opening line for a reviewer who has seen nothing else.** They have not
read the issue thread or your session, so a title full of words like "there", "it" or "the
body" means nothing to them. Name the feature or command by its UI name, then say what was
wrong and what changes, in plain words: "Print faces (the face each body lies on in the
slicer) are set only in the Send to Slicer window and shown only while it is open (#10247)",
not "Send to Slicer: pick one print face per body there, and show print faces only while it
is open (#10247)", where a reader can't tell what "there" and "it" are. The body's first sentence says what
the user saw before and what they see now. Before opening, reread the title and first
paragraph as if you had never seen the issue, and rewrite any pronoun, shorthand or
internal name you can't explain from those lines alone. The same goes for issue titles,
commit subjects and comments.
- Follow the template and the style of recent merged PRs. Say what was broken, what changed, how
you know it works, and **what you did not test**. Never claim a check you didn't run.
- Visible behaviour: attach screenshots or a short recording you made yourself, before and after.
Use small public-safe examples.
- Fork PRs often need a maintainer to approve the CI run first (`action_required`). That's normal.
A fork contributor can't re-run a failed job either ("Must have admin rights"); only a
maintainer can. Push a fix if the failure is yours; if it looks like a flake in code you didn't
touch, say so with the evidence and leave the re-run to them.
- **A red check from a cancelled run is not a failure.** A push or a label change starts a new CI
run and cancels the old one, whose summary check can stay red beside the new green one (and the
notification email says "failed"). Find the newest run for the head commit and read that; only a
failure in it counts.
- Read a failing job narrowly: `gh run view <id> --log-failed` repeats the step command many
times, so grep for the test name, `panicked`, `FAILED` or `error` instead of reading it whole.
## 6. Review
- Read every channel: the conversation, inline comments (`gh api repos/O/R/pulls/N/comments`) and
reviews. Bots often post reviews as plain comments.
- **Verify each finding before applying it**, bot or human. Fix the valid ones; for the rest, reply
with evidence. Answer in the thread the finding came from.
- **Head rule:** after an approval or a "good to merge", push nothing unless asked. Approvals and
batch merges are often tied to the reviewed commit, and a later push (even a tidy-up the
maintainer offered to do themselves) can drop the PR from the merge. Suggest the change in a
comment and let them choose.
- A maintainer can queue a PR for merge at any moment, often right after CI goes green. Labels
like "ready to merge", auto-merge enabled or an "added to merge queue" event mean the head is
frozen: push nothing until it merges or is dropped.
- If you do push after an approval (a reviewer asked for it), say so at once in a comment: which
commit the approval covers, what the new commit changes, and what you ran on it.
- Don't push just to catch up with `main`; every push re-runs CI. Sync (merge or rebase, per the
project) only when you push anyway or there is a conflict.
- **Other contributors are colleagues, not rivals.** Many reviews now come from other people's
agents; treat a sound finding from them like a maintainer's. When someone offers to take a
related piece (a setter, an end-to-end test, a follow-up), agree on the split in the thread, keep
your PR to its scope, and don't race them for overlapping work.
- Waiting is normal. Don't ping maintainers repeatedly; one polite nudge after a week or so is
plenty.
## Commenting on other people's PRs and issues
Only when it adds something the thread doesn't have, and never to be seen. Good reasons: you
reproduced a bug and can narrow it, you checked a claim and it is wrong (or confirmed with
evidence), you hit the same failure, or you were asked. Not reasons: "looks good", restating
what the diff says, or filling a quiet thread.
- **Label how you know.** Say "reproduced on `<version>`" or "found by reading the diff, not run".
Don't present a code reading as a test. If you verify someone's claim, check it against the
code or a run first; most turn out right, and then there is nothing to add.
- **Ask, don't instruct,** on someone else's PR, and keep your comment to one question or one
finding with its evidence. Credit the person whose point you build on.
- If a thread is already in good hands (a maintainer is on it, the claim holds, CI is green),
leave it. Silence is a fine review.
- If reviewing and issue-hunting keep turning up nothing, that is the answer: say so and stop,
rather than look harder for something to post.
## Merge queues and stacked work
- A PR can drop out of a merge queue with "failed checks" because `main` moved under it, for
example a struct gained a field your new tests build. Read that PR's own queue run
(`gh run list --event merge_group`, the `pr-N` branch) before blaming others; fix, rebase if the
project allows, push, and say what broke.
- A PR in an upstream repo can't use a branch on your fork as its base. For work that depends on
your open PR, open the second PR against `main` with the first PR's commits included, say so in
its body, keep it draft, and rebase it onto `main` once the first merges.
## 7. After the merge
- Confirm with `gh pr view N --json state,mergedAt`; never report a merge you didn't check.
- Clean up local branches, worktrees and build dirs only with the user's OK on the exact list,
after checking the commits are in a freshly fetched `origin/main`. A squash merge leaves the
branch looking unmerged; check the PR state, not `git branch --merged`. Save any uncommitted
scratch you may want again (a patch file) before removing a worktree.
- Your own old issue: when later changes make it stale and you cannot retest it, close it as not
planned and say why, including that you did not retest. Don't write that it is fixed.
- When there is nothing open and nothing is waiting on you, stop. Check back on threads you
commented on, answer anyone who asks you something, and take new work only when there is a
real issue to fix, not to keep a count going.
- Write down what you learned about the repo in its profile, and the PR state wherever `me.md`
says the user keeps it.
## Never
Push to upstream `main` or another person's branch; force-push anything but your own PR branch;
commit secrets; open PRs in bulk or for issues nobody asked about; argue with a maintainer's
decision on their project; touch another Claude session's PRs or clones.
## Git habits for busy repos
- `git fetch origin` before trusting any count or "is it merged" answer. (`git fetch origin fork`
is a different command: it treats `fork` as a refspec, fails and leaves `origin/main` stale.)
- Build under `nice` and check load first if the machine is shared. Check free disk before a big
build; big Rust and C++ projects reach tens of GB of build output. With several worktrees of one
Rust repo, share one `CARGO_TARGET_DIR`, but note that each worktree path still gets its own
`debug/incremental` folder (tens of GB): clear it between jobs or build with
`CARGO_INCREMENTAL=0`.
- Ask tools for narrow answers. Full topology dumps, command catalogues and big JSON reports eat
context; query the one field you need.
- Conflicts in shared lists or changelogs: keep everyone else's entries, add yours.
Pliki w paczce (14)
- README.md 4 KB
- SKILL.md 23 KB
- reference/agent-porting.md 6 KB
- reference/new-repo.md 2 KB
- reference/workflows.md 6 KB
- repos/_template.md 1 KB
- repos/cadcraft.env 1 KB
- repos/cadcraft.md 5 KB
- repos/pcbcraft.md 5 KB
- repos/solidcore.env 1 KB
- repos/solidcore.md 7 KB
- repos/solidcraft.env 1 KB
- repos/solidcraft.md 11 KB
- scripts/contrib-check.sh 5 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · flyboy-byte/oss | 100 | MIT |
| marliechorgan/claude-setup | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 43afd081e36e (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 2 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100oss-contributor
Przygotowuje wkład do cudzego repozytorium open source: czyta zasady, sprawdza zgłoszenie, dopasowuje się do wzorców i otwiera czysty PR. - 90pb-bug-fix
Zamienia zgłoszenie z GitHuba w przetestowaną poprawkę na gałęzi z otwartym PR: znajduje przyczynę, pisze najpierw nieprzechodzący test, poprawia, weryfikuje i otwiera PR dopiero po GO. - 100contributor
Prowadzi cały proces wkładu w open source: wyszukiwanie zgłoszeń, fork repozytorium, poprawkę błędu i wysłanie pull requesta. - 100contribute
Pomaga dołączyć do cudzego projektu open source: wybiera wolne zgłoszenie help wanted, buduje poprawkę, sprawdza ją i otwiera pull request. - 100oss-contribution-research
Przygotowuje wkład do cudzego repozytorium open source aż do pozycji w kolejce do zatwierdzenia przez człowieka: sprawdza zasady, duplikaty, reprodukcję, łatkę, testy repozytorium i jawny szkic tekstu. - 86contribute
Zgłasza poprawkę do frameworka Egregore jako pull request między forkami, do wspólnej wersji upstream.