Install any skill in seconds. Free to start, no credit card required.
Get Started Free →End-to-end open source contribution workflow: from scanning issues to submitting PRs. Use this skill whenever the user wants to contribute to an open source project, find issues to fix, submit a pull request, fork a repo to contribute, fix a GitHub issue, or mentions 'open source contribution'. Also trigger when they provide a GitHub repo URL and ask about contributing, say things like 'help me submit a PR', 'find good first issues', 'I want to contribute to X', or mention fixing bugs in someone
.claude/skills/majiayu000-contributor/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 94% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 87% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 143% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 267% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 180% | 0% |
Automated open source contribution workflow that takes you from a GitHub repo URL to merged PRs, with built-in safeguards against common contribution failures.
Open source contributions fail for predictable reasons: fixing in the wrong layer (your PR gets closed because the maintainer preferred an upstream fix), colliding with other contributors, not following project conventions, or over-engineering a simple fix. This workflow prevents each of those failures through systematic pre-checks.
Before writing any code, gather intelligence about the project and its contribution landscape.
Ask the user for:
pydantic/pydantic-ai)Use gh CLI to find issues worth contributing to:
bash# Get open issues with metadata gh issue list -R <owner>/<repo> --state open --limit 50 \ --json number,title,labels,assignees,comments # Check for competing PRs on each candidate gh pr list -R <owner>/<repo> --state open \ --search "<issue_number> in:title,body"
Filter criteria (apply in order):
bug, good first issue, help wantedFor each candidate issue, read the full comment thread:
bashgh issue view <number> -R <owner>/<repo> --json body,comments
Extract:
This is the single most common failure mode. Before committing to any fix:
bash# Check if maintainers reference another repo gh issue view <number> -R <owner>/<repo> --json comments \ | grep -i "upstream\|genai-prices\|separate repo\|other repo" # Check related repos for recent PRs mentioning this issue gh pr list -R <owner>/<related-repo> --state open --limit 10 \ --json title,body | grep -i "<issue_number>\|<issue_keywords>"
If there's any signal the fix belongs elsewhere, stop and ask the user before proceeding.
Never submit a PR cold. Always communicate your intent first.
Before writing code, leave a comment on the issue with your proposed approach. This serves two purposes: it claims the work (politely), and it gives maintainers a chance to redirect you before you waste effort.
Template:
Hi, I've been looking into this and traced the root cause to <X>.
Before I open a PR, I wanted to confirm the preferred approach:
A) <approach A — e.g., fix in this repo by modifying X>
B) <approach B — e.g., upstream fix in related-repo>
I can implement either direction. Happy to adjust based on your preference.Wait for maintainer response before proceeding to code. If no response after 24-48 hours on an active project, proceed with the most conservative approach (smallest scope fix in the current repo).
Plan to open as a Draft PR first. Convert to ready-for-review only after:
bashgh repo fork <owner>/<repo> --clone --remote cd <repo>
Don't assume main. Check what recent merged PRs target:
bashgh pr list -R <owner>/<repo> --state merged --limit 10 \ --json baseRefName,mergedAt
Use the most common baseRefName from recent merges.
Check these files in order (read whichever exist):
CONTRIBUTING.md
.github/CONTRIBUTING.md
.github/PULL_REQUEST_TEMPLATE.md
.github/PULL_REQUEST_TEMPLATE/Extract:
bashls .github/workflows/
Read the CI config to know what checks will run on your PR. Identify the commands for:
Follow the project's documented setup process. Run the full test suite once to establish a passing baseline before making any changes.
bashgit checkout -b fix/issue-<number>-<short-desc> <base-branch>
Run the project's test suite. All existing tests must pass. Your new test must also pass. If the project has type checking or linting, run those too.
Language-specific verification:
pytest, mypy, ruff (or whatever the project uses)npx tsc --noEmit, project test commandcargo check && cargo testgo build ./... && go test ./...If the project uses pre-commit hooks:
bashpre-commit run --all-files
Fix any issues before committing.
bash# Configure author git config user.name "<user's name>" git config user.email "<user's email>" # Commit with DCO sign-off git commit -s -m "<type>: <description> Fixes #<issue-number>"
Rules:
Fixes #<number> or Closes #<number> to auto-linkGenerated by Claude, Co-Authored-By: claude, or any AI attributionbashgit push -u origin fix/issue-<number>-<short-desc>
Create a Draft PR following the project's template:
bashgh pr create --draft --title "<type>: <short description>" \ --body "$(cat <<'EOF' ## Summary <1-2 sentences describing the fix> Fixes #<issue-number> ## Changes - <bullet points of what changed> ## Test plan - <how this was tested> EOF )"
Don't panic. Common reasons and responses:
| Reason | Response | |--------|----------| | Fix moved upstream | Ask to contribute to the upstream repo instead | | Approach rejected | Ask what approach they'd prefer, offer to redo | | Duplicate | Acknowledge, offer to help review the other PR | | Scope too large | Offer to split into smaller PRs |
Template for closed PRs:
Thanks for the feedback. I understand the fix direction has shifted to <X>.
Would it be helpful if I submitted a PR to <upstream-repo> instead?
Happy to contribute wherever it's most useful.Address review feedback promptly. Make each revision a new commit (don't squash during review — the maintainer may want to see the evolution). Only squash if the maintainer asks.
These are real failure modes from production contributions:
main when the project develops on dev. Prevention: Phase 3.2 branch detection.| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 18,800 | 4,242 | -77% | 1 | 1 | 0% | 3,014 | 2,805 | -7% | 0 | 0 | — |
case-02 | fail→pass | 14,141 | 13,953 | -1% | 1 | 1 | 0% | 2,485 | 4,828 | +94% | 0 | 0 | — |
case-03 | fail→pass | 16,406 | 15,935 | -3% | 1 | 1 | 0% | 2,791 | 5,211 | +87% | 0 | 0 | — |
case-04 | pass→pass | 17,715 | 17,029 | -4% | 1 | 1 | 0% | 2,703 | 5,091 | +88% | 0 | 0 | — |
case-05 | pass→pass | 17,589 | 16,809 | -4% | 1 | 1 | 0% | 3,160 | 5,824 | +84% | 0 | 0 | — |
case-06 | pass→pass | 12,855 | 9,375 | -27% | 1 | 1 | 0% | 2,340 | 4,113 | +76% | 0 | 0 | — |
case-07 | fail→fail | 12,753 | 7,064 | -45% | 1 | 1 | 0% | 1,963 | 3,509 | +79% | 0 | 0 | — |
case-08 | fail→pass | 9,731 | 7,845 | -19% | 1 | 1 | 0% | 1,453 | 3,532 | +143% | 0 | 0 | — |
case-09 | pass→pass | 9,293 | 3,943 | -58% | 1 | 1 | 0% | 1,558 | 3,012 | +93% | 0 | 0 | — |
case-10 | fail→pass | 4,768 | 2,637 | -45% | 1 | 1 | 0% | 764 | 2,805 | +267% | 0 | 0 | — |
case-11 | fail→pass | 7,454 | 6,484 | -13% | 1 | 1 | 0% | 1,195 | 3,348 | +180% | 0 | 0 | — |
case-12 | pass→pass | 2,955 | 2,243 | -24% | 1 | 1 | 0% | 483 | 2,734 | +466% | 0 | 0 | — |
case-13 | pass→pass | 3,404 | 3,756 | +10% | 1 | 1 | 0% | 538 | 3,007 | +459% | 0 | 0 | — |
case-14 | pass→pass | 9,162 | 5,410 | -41% | 1 | 1 | 0% | 1,520 | 3,221 | +112% | 0 | 0 | — |
case-15 | pass→pass | 9,814 | 9,354 | -5% | 1 | 1 | 0% | 1,499 | 3,895 | +160% | 0 | 0 | — |
case-16 | pass→pass | 10,045 | 3,289 | -67% | 1 | 1 | 0% | 1,543 | 2,868 | +86% | 0 | 0 | — |
case-17 | pass→pass | 8,835 | 4,669 | -47% | 1 | 1 | 0% | 1,308 | 3,122 | +139% | 0 | 0 | — |
case-18 | fail→pass | 12,194 | 3,833 | -69% | 1 | 1 | 0% | 1,863 | 2,963 | +59% | 0 | 0 | — |
case-19 | pass→pass | 11,955 | 8,276 | -31% | 1 | 1 | 0% | 1,947 | 3,744 | +92% | 0 | 0 | — |
case-20 | pass→pass | 4,592 | 2,691 | -41% | 1 | 1 | 0% | 767 | 2,809 | +266% | 0 | 0 | — |
case-21 | pass→pass | 7,136 | 2,994 | -58% | 1 | 1 | 0% | 1,083 | 2,740 | +153% | 0 | 0 | — |
case-22 | pass→pass | 6,286 | 3,436 | -45% | 1 | 1 | 0% | 1,097 | 2,911 | +165% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +27 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.