# Gh Stack:submit

> Push code to remote and create or update stacked PRs using gh-stack. REPLACES git push and gh pr create — never use those directly. Triggers: 'push', 'push my changes', 'ship it', 'send this up', 'submit', 'update PRs', 'create PR', 'push stack', 'send PRs'.

- Skill: `luan/gh-stack-submit` (Agent Skill)
- Install (CLI): `npx skillmds@latest add luan/gh-stack-submit`
- Raw SKILL.md: https://api.skillmd.com/api/skills/luan/gh-stack-submit/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: luan (https://skillmd.com/u/luan)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/luan/gh-stack-submit

---


# Submit

Push gh-stack branches and create/update PRs.

## Modes

| Mode | Command | When |
|------|---------|------|
| **Default** | `gh stack push` | Push only, no PR creation |
| Create PRs | `gh stack submit --auto` | User says "create PR" / "create PRs" |
| Draft PRs | `gh stack submit --auto --draft` | User says "draft PR" / "draft PRs" |

## Steps

1. **Check stack health**: `gh stack view --json 2>&1`
   - If any branch has `needsRebase: true`, run `Skill(gh-stack:restack)` first.

2. **Submit**:
   ```bash
   gh stack push 2>&1          # default: push only
   gh stack submit --auto 2>&1 # create PRs
   ```

3. **PR descriptions** (create modes only):
   When creating new PRs, run `Skill(pr-descr)` for each newly created PR. Skip for push-only mode.

4. **Report**: list GitHub PR URLs from stderr output.

