| name | github |
| description | GitHub commands for issues, PRs, code reviews, and shipping. Use when developer needs to create issues, create/update PRs, address review comments, or ship experimental changes. Use when developer says "create issue", "open PR", "review comments", "resolve feedback", or "ship changes". |
| user-invocable | true |
| argument-hint | issue|pull-request|code-review|ship [action] [args] [-y] |
/github $ARGUMENTS
GitHub workflow commands.
Usage
/github
issue create Conversational issue creation
issue update Update existing issue
pull-request create Create PR from current branch
pull-request update [n] Update PR title and description
code-review resolve [n] Resolve code review feedback
ship Ship experimental changes (issue → branch → commit → PR)
-y, --yes Skip confirmations
| Argument | Format | Default | Effect |
|---|
command | Positional (1st token) | — | Entity to operate on (issue, pull-request, code-review, ship) |
action | Positional (2nd token) | — | Subcommand (e.g., create, update, resolve). Can be omitted when only one action exists (code-review defaults to resolve) |
args | Positional (remaining tokens) | — | Passed to the subcommand (e.g., PR number) |
-y, --yes | Flag | false | Skip all confirmation gates |
Rules
See references/rules.md — applies to ALL github operations.
Instructions
Step 1: Parse Arguments
Extract from $ARGUMENTS:
- First non-flag token →
command (one of: issue, pull-request, code-review, ship)
- If
command has subcommands: next token → action. If omitted and only one action exists for the command, default to it (e.g., code-review defaults to resolve)
- Remaining non-flag tokens → passed to the subcommand as positional args (e.g., PR number)
-y or --yes anywhere → skip all confirmation gates
If no command is provided, list the available commands and ask the developer which one to run.
If the command or action is not recognized, show:
Unknown command <command> <action>. Available commands: issue create, issue update, pull-request create, pull-request update, code-review resolve, ship.
Step 2: Route to Subcommand
Read the command-specific instruction file and follow it exactly:
Examples
Example 1: Create an issue
User says: /github issue create (or /github issue)
Actions:
- Ask developer to describe the problem or feature
- Refine into structured issue with acceptance criteria
- Confirm and create via issue tracker
Result: Created issue #42: https://github.com/org/repo/issues/42
Example 2: Create a PR
User says: /github pull-request create
Actions:
- Resolve issue number from branch name
- Fetch issue details
- Generate PR title and description
- Confirm and create PR
Result: Created PR #43: https://github.com/org/repo/pull/43
Example 3: Ship experimental changes
User says: /github ship
Actions:
- Analyze uncommitted changes on main
- Create issue, branch, commit, and PR in sequence
- Each step uses the appropriate skill or tool
Result: Issue, branch, commit, and PR created in one flow
Troubleshooting
Error: gh CLI not found
Cause: GitHub CLI is not installed.
Solution: Run the SETUP.md post-install steps or install manually: brew install gh (macOS), winget install GitHub.cli (Windows).
Error: gh not authenticated
Cause: gh auth status shows not logged in.
Solution: Run gh auth login to authenticate.
Error: No PR found for current branch
Cause: pull-request update or code-review resolve was used but no PR exists for the branch.
Solution: Create a PR first with /github pull-request create.