/vocdoni-contributing:contributingfrom vocdoni-contributing
Use whenever starting work on a change in a repository, or writing or posting a pull request or merge request description, an issue, a code review, a review comment or a commit message, or answering review comments on a pull request, on GitHub, GitLab or any other git host, through gh, glab or the web, including as one step of a larger task, and when an epic issue needs several pull requests. Sets how to tie the work to an issue (find one, or open one before the PR), how to stack an epic's PRs on each other with gh stack instead of opening them all against the base branch, how to introduce yourself and say whether the user asked for or reviewed the post, length limits and structure for PRs, issues and reviews, how to post a review, and how to reply to and resolve the review threads you address.
Ships in vocdoni-contributing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
These rules cover the issue that tracks your work and everything you write on the git host for the user: pull or merge request descriptions, issues, reviews, review comments and commits.
Start every PR description, issue, review and comment you post with one line saying which model you are and how {owner} stands behind the post. {owner} is the login of the host CLI's user (gh api user -q .login, glab api user | jq -r .username), else git config user.name.
Judge each post separately. When the user asks for a PR, only the PR is asked for: the tracking issue you open for it and your later replies to reviewers are not, so they take the second line. So does anything you post while the user is away (a loop, a scheduled or headless run). Showing the user the text before you post it makes it the first line. If you can't tell which applies, use the second line.
Don't sign off at the end.
Don't add a Co-authored-by trailer for yourself to commits. The person running you answers for the change.
Every change that ends in a PR links to an issue, so the work can be found later and isn't done twice. When you start, look for one that already covers it: the issue the user named, one linked from the branch (a host development link, or a name like 58-fix-x) or from its open PR, else a search of the repository's issues, closed ones included (gh issue list --state all --search "<keywords>", glab issue list --all --search "<keywords>"). Reopen a fitting issue that was completed if the problem is back; if it was closed as not planned, tell the user before going on. If none fits, open one following the rules below just before you open the PR. When the work will not end in a PR, ask the user before opening an issue.
Link the issue from the PR description: Closes #N when the PR finishes it, Refs #N when it is one part. When an issue exists but there is no PR, put the same line in the final commit message. Questions, reviews and other work that changes nothing need no issue. If the repository has issues disabled, or you cannot search or create them, say so and carry on without one.
Keep descriptions under ~15 lines of markdown, code blocks included: what changed and why, any non-obvious decisions, how it was tested, and one usage example if the change has a user-facing surface. Skip anything the diff or README already says.
When an issue is an epic that takes several PRs, stack them: the first PR targets the base branch (main, develop) and each later one targets the branch of the PR before it. Don't open them all against the base branch: each then repeats or conflicts with the others' changes, reviewers can't see what is new in each, and every merge forces a rebase of the rest. Keep each PR to one reviewable step, and link the epic from each with Refs #N.
On GitHub, manage the stack with the gh stack extension (gh extension install github/gh-stack) rather than chaining bases by hand:
gh stack init --base develop epic-1-api # first branch, on the base branch
gh stack add epic-2-ui # each next branch, on top of the last
gh stack submit # push all, open or retarget the PRs, link them as a stack
gh stack rebase # after fixing a lower PR, cascade the change up
gh stack merge --squash # once the whole stack is approved
gh stack merge merges every PR up to the one you pick into the base branch in one all-or-nothing operation, so you never squash one PR and then rebase and retarget each one above it. Merge only once every PR being merged is reviewed. To turn branches already open against the base branch into a stack, gh stack init --base <base> <branch>... adopts them bottom to top; then gh stack rebase and gh stack submit. Without the extension, or on GitLab, set each PR's base to the previous branch (gh pr create --base <prev>, glab mr create --target-branch <prev>) and merge from the bottom up, rebasing the rest after each merge.
Keep issues under ~15 lines of markdown too, code blocks included. Open with the problem in a sentence or two. For a bug, add what happens, what should happen and the shortest way to reproduce it. For a feature, add why it's needed and what "done" looks like. Then add pointers to the relevant code, PRs or issues, and a proposed approach if there's one. Quote only the log lines that matter, label guesses as guesses, and skip anything the title already says.
Each finding takes about three sentences: what's wrong, what it breaks, and the fix. Don't walk through every step of the reasoning or restate what the diff shows. Mark nits with "Nit:" and keep them shorter still. The review's summary body follows the same rule.
Post a review you were asked to publish as a review, not as a plain comment, and mark it "Approve" or "Request changes" depending on its outcome (on GitLab: approve, or leave the blocking threads unresolved). Write a bare @name only for a real login you mean to notify.
When you answer review comments on your own PR, close each thread you handled: reply in it with the fix (the commit, or one line on what changed) or with why you are not making the change, then resolve it. Resolve it either way, so the user doesn't have to resolve every thread by hand. Leave threads you didn't handle open, and never resolve threads on a PR you are reviewing. These thread replies skip the introduction line. On GitHub, resolving takes the GraphQL API:
# unresolved threads on PR N, with their IDs
gh api graphql -F owner='{owner}' -F repo='{repo}' -F pr=N -f query='
query($owner:String!,$repo:String!,$pr:Int!){repository(owner:$owner,name:$repo){pullRequest(number:$pr){
reviewThreads(first:100){nodes{id isResolved path line comments(first:1){nodes{body}}}}}}}' \
--jq '.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved | not)'
# reply in a thread, then resolve it
gh api graphql -F id=PRRT_xxx -f body='Fixed in abc1234.' -f query='
mutation($id:ID!,$body:String!){addPullRequestReviewThreadReply(input:{pullRequestReviewThreadId:$id,body:$body}){comment{id}}}'
gh api graphql -F id=PRRT_xxx -f query='
mutation($id:ID!){resolveReviewThread(input:{threadId:$id}){thread{isResolved}}}'
On GitLab, reply with glab api -X POST "projects/:id/merge_requests/N/discussions/<discussion_id>/notes" -f body='...', then resolve with glab api -X PUT "projects/:id/merge_requests/N/discussions/<discussion_id>?resolved=true".
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub vocdoni/skills --plugin vocdoni-contributing