/oss-contrib:prep-prfrom oss-contrib
Prepares a PR for an upstream open source project by reading CONTRIBUTING.md, matching recent merged PRs, checking quality bar, scope, tests, and rebase status, then filling the PR template.
Ships in oss-contrib. Installing the plugin adds it to Claude Code.
git rev-parse --abbrev-ref HEADgh repo view --json parent -q '.parent | "\(.owner.login)/\(.name)"' 2>/dev/null || echo "not a fork"cat CONTRIBUTING.md 2>/dev/null | head -100 || cat .github/CONTRIBUTING.md 2>/dev/null | head -100 || echo "no CONTRIBUTING.md"cat .github/PULL_REQUEST_TEMPLATE.md 2>/dev/null || cat .github/pull_request_template.md 2>/dev/null || echo "no PR template"git diff $(git merge-base HEAD upstream/main 2>/dev/null || git merge-base HEAD origin/main 2>/dev/null || git merge-base HEAD main)...HEAD --statgh pr list --state merged --limit 3 --json title,body -q '.[] | "\(.title)\n\(.body | .[0:300])\n---"' 2>/dev/null || echo "gh unavailable"Prepare a PR for upstream review. Do not create it automatically.
upstream/main?[component] Description title format, verify template-rendering tests use create_task_instance_of_operator.Upstream: <owner/repo>
Quality bar: <pass/fail + reason>
Scope: <narrow/wide + any drive-by files>
Tests: <match/mismatch + what>
Rebase: <up-to-date/behind-by-N>
PR template: <filled/missing/N-A>
Ready: <yes/no>
Blockers: <list or "none">
---
PROPOSED TITLE: <title>
PROPOSED BODY:
<filled template or shape>
Co-Authored-By trailers.What the command file sets; muted values are Claude Code's defaults
pull-request, open-source, contribution, template-compliance
7-day visitors to each command page
npx claudepluginhub sagargupta16/claude-skills --plugin oss-contrib2 commands in this plugin