.claude/skills/gh/SKILL.md
GitHub operations using gh CLI for any repository. Use when the user asks to "create pr", "create pull request", "view pr", "check ci", "pr status", "list prs", "create issue", "view issue", "search code", or any other GitHub-related operations. Handles PR creation with proper base branch detection, template support, and project conventions.
npx skillsauth add salemove/android-sdk-widgets ghInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Manage GitHub workflows using the gh CLI.
Use this skill when the user asks to:
When creating a PR:
Verify current branch and changes:
git branch --show-current
git status
Check if branch is pushed:
git log @{u}.. 2>/dev/null || echo "Branch not pushed"
Push if needed:
git push -u origin $(git branch --show-current)
Detect parent branch (if base not specified):
Find the parent branch from which the current branch was created:
PARENT_BRANCH=$(git show-branch -a 2>/dev/null | grep '\*' | grep -v "$(git rev-parse --abbrev-ref HEAD)" | head -n1 | sed 's/.*\[\(.*\)\].*/\1/' | sed 's/[\^~].*//' | sed 's/remotes\/origin\///')
# Fall back to common default branches if detection fails
if [ -z "$PARENT_BRANCH" ]; then
for branch in development develop main master; do
if git show-ref --verify --quiet refs/remotes/origin/$branch; then
PARENT_BRANCH=$branch
break
fi
done
fi
Create PR:
Check if a PR template exists and use it, otherwise open in browser:
if [ -f .github/PULL_REQUEST_TEMPLATE.md ]; then
gh pr create --title "Brief title (under 70 chars)" --base "$PARENT_BRANCH" --template .github/PULL_REQUEST_TEMPLATE.md
else
gh pr create --title "Brief title (under 70 chars)" --base "$PARENT_BRANCH" --web
fi
Base branch logic:
Template handling:
.github/PULL_REQUEST_TEMPLATE.md exists: Use --template flag to fill it via CLI--web flag to open browser for manual description# View specific PR
gh pr view 123
# View PR in browser
gh pr view 123 --web
# List open PRs
gh pr list
# List PRs by author
gh pr list --author @me
# Check CI/CD status
gh pr checks 123
# View PR status
gh pr status
# View comments on PR
gh pr view 123 --comments
# Add comment to PR
gh pr comment 123 --body "Your comment here"
# Create issue
gh issue create --title "Issue title" --body "Issue description"
# View issue
gh issue view 456
# List open issues
gh issue list
# Search issues
gh issue list --search "keyword"
# Search code in current repository
gh search code "search term"
# Search code in specific repository
gh search code --repo owner/repo "search term"
# List recent commits on current branch
git log --oneline -10
# View specific commit
gh pr view <commit-sha>
Examples:
.github/PULL_REQUEST_TEMPLATE.md, use the --template flag--web flag to open browser for manual description--body - always use template or browserdevelopment, develop, main, or master) if parent branch detection failsIf gh is not authenticated:
Run: gh auth login
Follow browser-based OAuth flow
If gh is not installed:
macOS: brew install gh
Or download from: https://cli.github.com/
--template if .github/PULL_REQUEST_TEMPLATE.md exists, otherwise use --web--body parameter: Always use template or browser for PR descriptionstools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.