원클릭으로
create-github-pr
// Create GitHub pull requests using the gh CLI. Use when the user wants to create a new PR, submit code for review, or open a pull request. Trigger keywords - create PR, pull request, new PR, submit for review, code review.
// Create GitHub pull requests using the gh CLI. Use when the user wants to create a new PR, submit code for review, or open a pull request. Trigger keywords - create PR, pull request, new PR, submit for review, code review.
| name | create-github-pr |
| description | Create GitHub pull requests using the gh CLI. Use when the user wants to create a new PR, submit code for review, or open a pull request. Trigger keywords - create PR, pull request, new PR, submit for review, code review. |
Create pull requests on GitHub using the gh CLI.
gh CLI must be authenticated (gh auth status)<issue-number>-<description>/<username>Run the local pre-commit task before opening a PR:
mise run pre-commit
Before creating a PR, verify:
You're not on main - Never create PRs directly from main:
# Should NOT be "main"
git branch --show-current
Branch follows naming convention - Format: <issue-number>-<description>/<initials>
# Example: 1234-add-pagination/jd
git branch --show-current
Consider squashing commits - For cleaner history, squash related commits before pushing:
# Squash last N commits into one
git reset --soft HEAD~N
git commit -m "feat(component): description"
Ensure your branch is pushed to the remote:
git push -u origin HEAD
Basic PR creation (opens editor for description):
gh pr create
With title and body:
gh pr create --title "PR title" --body "PR description"
PR titles must follow the conventional commit format:
<type>(<scope>): <description>
Types:
feat - New featurefix - Bug fixdocs - Documentation onlyrefactor - Code change that neither fixes a bug nor adds a featuretest - Adding or updating testschore - Maintenance tasks (CI, build, dependencies)perf - Performance improvementScope is typically the component name (e.g., evaluator, cli, sdk, jobs).
Examples:
feat(evaluator): add support for custom rubricsfix(jobs): handle timeout errors gracefullydocs(sdk): update authentication examplesrefactor(models): simplify deployment logicchore(ci): update Python version in pipelineUse Closes #<issue-number> in the body to auto-close the issue when merged:
gh pr create \
--title "Fix validation error for empty requests" \
--body "Closes #123
## Summary
- Added validation for empty request bodies
- Returns 400 instead of 500"
For work-in-progress that's not ready for review:
gh pr create --draft --title "WIP: New feature"
gh pr create --title "Title" --label "area:cli" --label "topic:security"
Default target is main. To target a different branch:
gh pr create --base "release-1.0"
PR descriptions must follow the project's PR template structure:
## Summary
<!-- 1-3 sentences: what this PR does and why -->
## Related Issue
<!-- Fixes #NNN or Closes #NNN -->
## Changes
<!-- Bullet list of key changes -->
## Testing
<!-- What testing was done? -->
- [ ] `mise run pre-commit` passes
- [ ] Unit tests added/updated
- [ ] E2E tests added/updated (if applicable)
## Checklist
- [ ] Follows Conventional Commits
- [ ] Commits are signed off (DCO)
Populate the testing checklist based on what was actually run. Check boxes for steps that were completed.
gh pr create \
--title "feat(cli): add pagination to sandbox list" \
--body "$(cat <<'EOF'
## Summary
Add `--limit` and `--offset` flags to `openshell sandbox list` for pagination.
## Related Issue
Closes #456
## Changes
- Added `offset` and `limit` query parameters to the sandbox list API call
- Default limit is 20, max is 100
- Response includes `total_count` field
## Testing
- [x] `mise run pre-commit` passes
- [x] Unit tests added/updated
- [ ] E2E tests added/updated (if applicable)
## Checklist
- [x] Follows Conventional Commits
- [x] Commits are signed off (DCO)
EOF
)"
| Option | Description |
|---|---|
--title, -t | PR title (use conventional commit format) |
--body, -b | PR description |
--reviewer, -r | Request review from user |
--draft | Create as draft (WIP) |
--label, -l | Add label (can use multiple times) |
--base, -B | Target branch (default: main) |
--head, -H | Source branch (default: current) |
--web | Open in browser after creation |
The command outputs the PR URL and number.
Display the URL using markdown link syntax so it's easily clickable:
Created PR [#123](https://github.com/OWNER/REPO/pull/123)
If the user asks to wait for a green CI before posting the RFR, use this snippet to monitor the workflow run:
# Watch the latest workflow run for the current branch
gh run watch
Or poll manually:
RUN_ID=$(gh run list --branch "$(git branch --show-current)" --limit 1 --json databaseId --jq '.[0].databaseId')
gh run watch "$RUN_ID"
Manually dispatch and iterate on the Release Canary workflow that smoke-tests published OpenShell artifacts (install.sh on macOS/Ubuntu/Fedora, Helm chart on kind) after each Release Dev publish. Use when changing `.github/workflows/release-canary.yml`, validating a release before tagging, debugging a canary failure, or reproducing a canary job locally. Trigger keywords - release canary, release-canary, canary failed, canary dispatch, test release canary, post-release smoke, install.sh canary, helm chart canary, kind canary, dispatch canary.
Debug why an OpenShell gateway deployment is unhealthy, unreachable, or unable to create sandboxes. Use when the user has a gateway health failure, Docker/Podman runtime issue, Helm install failure, Kubernetes scheduling issue, TLS secret issue, VM driver issue, or sandbox startup problem. Trigger keywords - debug gateway, gateway failing, deployment failing, helm install failing, cluster health, gateway health, gateway not starting, health check failed, sandbox pending, docker driver, podman driver, vm driver.
Start up, tear down, and configure the local Kubernetes development environment for OpenShell. Uses k3d (Docker-backed k3s) + Skaffold + Helm. Covers cluster lifecycle, optional add-ons (Keycloak OIDC, Envoy Gateway), and port mappings. Trigger keywords - local k8s, local cluster, k3d, skaffold, helm dev, start cluster, stop cluster, tear down cluster, delete cluster, create cluster, helm:k3s, helm:skaffold, local dev environment, dev cluster, k8s dev, envoy gateway local, keycloak local.
Given a GitHub issue number, plan and implement the work described in the issue. Operates iteratively - creates an implementation plan, responds to feedback, and only builds when the 'state:agent-ready' label is applied. Includes tests, documentation updates, and PR creation. Trigger keywords - build from issue, implement issue, work on issue, build issue, start issue.
Investigate a plain-language problem description by deeply exploring the codebase, then create a structured GitHub issue with technical findings. Prequel to build-from-issue — maps vague ideas to concrete, buildable issues. Trigger keywords - spike, investigate, explore, research issue, technical investigation, create spike, new spike, feasibility, codebase exploration.
Guide agents through using the OpenShell CLI (openshell) for sandbox management, gateway registration, provider configuration, policy iteration, BYOC workflows, and inference routing. Covers basic through advanced multi-step workflows. Trigger keywords - openshell, sandbox create, sandbox connect, logs, provider create, policy set, policy get, image push, forward, port forward, BYOC, bring your own container, use openshell, run openshell, CLI usage, manage sandbox, manage provider, gateway add, gateway select.