/skills:githubfrom skills
This skill should be used when interacting with GitHub repositories via the gh CLI (remote actions like issue/PR management) and standard git CLI (local actions like status checks, staging files, committing history). Includes safe commit patterns to prevent corruption during simultaneous agent work. Requires git and an authenticated gh session for remote operations.
Ships in skills. 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.
Read when SKILL.md points to them; scripts run unread.
All GitHub operations require:
gh auth statusreferences/github_metadata.md)gh auth status
If not authenticated, instruct the user to run gh auth login before proceeding.
Issue creation via gh_create_issue.sh takes the repository's GraphQL node ID (base64), not owner/name. See references/github_metadata.md for the lookup command and issue type IDs.
Retrieve the repository node ID from references/github_metadata.md:
gh api graphql -f query='{ repository(owner: "<OWNER>", name: "<REPO>") { id } }' --jq '.data.repository.id'
Passing <OWNER>/<REPO> here fails with "Could not resolve to a node with the global id".
Choose the most appropriate issue type based on the request. Use conventional commit prefixes for titles (e.g., feat:, fix:, docs:, chore:). Issue type IDs are per-repository, not universal — the table in references/github_metadata.md shows example values only. Always verify the target repo's actual IDs with the lookup query there before creating an issue; a mismatch fails with "Issue type cannot be found in this organization".
Build a Markdown body file containing:
Required for all types:
## Summary: A single user story sentence (e.g., > As a [role], in order to [goal], I would like to [feature].)Conditional sections:
Issues requiring fixes (bugs):
## Behavior: Current broken behavior and reproduction steps## Details: Implementation contextIssues for new feature implementations:
## Proposed signature: The proposed R function signature and argument descriptions## Behavior: Expected behavior, edge cases## Details: Package requirements and implementation notesOptional sections (all types):
## References: Links to external documentation or related code./scripts/gh_create_issue.sh <repoNodeID> "<title>" /tmp/issue_body.md <issueTypeID>
<repoNodeID>: the repository's GraphQL node ID (base64), from the lookup above.Reference: For detailed GraphQL queries and ID lookups, consult references/github_metadata.md.
gh issue view <number> # View specific issue
gh issue list # List all issues
gh issue comment <number> --body "comment text"
gh CLI is installed: gh --versiongh auth statusgit statusIf uncommitted changes exist, ask the user whether to commit, stash, or discard them.
git branch --show-currentgit remote show origin | grep "HEAD branch"git log origin/main..HEAD --onelinegit diff origin/main..HEAD --statWhen implementing a specific GitHub issue:
Read the issue: gh issue view <number>
Verify authentication and repository ID
Check/create branch using pattern fix-{number}-{description}:
main: use usethis::pr_init("fix-{number}-{description}") or fall back to git checkout -b fix-{number}-{description}Run development workflow:
tdd-workflow for test-first developmentr-code for function design and implementationdocument skill when new exports require documentationvignette skill when user-facing workflows need vignettesVerify implementation:
devtools::test()Commit and push changes — follow an edit → stage loop, never git add -A:
After each file change, stage it immediately:
git status --short # Confirm only your files changed
git diff --name-only # Verify the staged path matches
git add R/foo.R # Stage the specific file you edited
Why this pattern: git add -A stages everything in the working tree, including files modified by other concurrent agents. The edit→stage loop ensures commits contain only your changes and never corrupt another agent's work. Commit when all planned edits are staged:
git commit -m "fix: resolve issue with foo (#42)"
git push -u origin HEAD
IMPORTANT: Read and use the PR template at .github/pull_request_template.md. The PR body format must strictly match the template structure.
gh pr create --title "PR_TITLE" --body-file /tmp/pr-body.md --base main
--draft flagCode Quality
Testing
devtools::test())Documentation
Metadata & Process
Closes #123)gh pr edit --add-reviewer USERNAME # Add reviewer
gh pr edit --add-label "bug" # Add label
gh pr review # Submit review (approve, request changes, or comment)
Important: The agent should never merge or close a PR. Instead:
references/github_metadata.mdimplement-issue skill (for detailed development steps)tdd-workflow skillr-code skilldocument skillvignette skillWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub pbulsink/skills --plugin skills16 skills in this plugin
/agent-md-refactorRefactor bloated AGENTS.md, CLAUDE.md, or similar agent instruction files to follow progressive disclosure principles. Splits monolithic files into organized, linked documentation./app-screenshotThis skill should be used when capturing screenshots of R Shiny apps for documentation — vignettes, READMEs, and app tours. Covers driving a live app with shinytest2's AppDriver, isolating demo state from real data, and producing numbered PNGs ready to embed./documentThis skill should be used when documentation for R package functions is requested or required./generate-agents-mdGenerate a project-specific AGENTS.md file by analyzing the local R package structure. Reads DESCRIPTION, catalogs /R/, /.github/, tests/testthat/, and vignettes/ directories, reverse-engineers architecture from R/*.R roxygen docs, and produces a structured template emphasizing Standard Workflow for AI agents./grill-meThis skill should be used when the user wants to stress-test their thinking before committing resources. Triggers on phrases like "grill me," "challenge my plan," "stress-test this idea," "help me think through a decision," "poke holes in my approach," or any request to rigorously evaluate plans, decisions, designs, or ideas — even if the user does not explicitly mention those terms./implement-issueThis skill should be used when asked to implement, work on, or fix a specific GitHub issue number. Wraps the standard development workflow with GitHub-specific setup (issue reading, branch creation) and completion steps (commit, push, PR creation). Uses standard git CLI for local operations and gh CLI for remote actions.