# Pr Submit

> Create a PR from local changes using git + gh (or API) safely, without pushing to main/master. Use when this capability is needed.

- Skill: `tomevault-io/pr-submit` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/pr-submit`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/pr-submit/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/pr-submit

---


# PR Submission (git + gh)

Use this skill when you need to turn local changes into a GitHub PR safely in CI or local shells.

## Preconditions
- Working tree has the intended changes.
- You have `GH_TOKEN` available (recommended in CI).

## Steps
1) Sync base branch:
   - `git fetch origin`
   - `git checkout main`
   - `git reset --hard origin/main`

2) Create a unique branch:
   - `git checkout -b iflow/<category>-<id>`

3) Commit changes:
   - `git add -A`
   - `git commit -m "<type>: <short summary>"`

4) Push branch:
   - `git push -u origin iflow/<category>-<id>`

5) Create PR with gh:
   - `gh pr create --title "<type>: <summary>" --body "Summary:\n- ...\n\nRisks:\n- ...\n\nTests:\n- ..." --base main --head iflow/<category>-<id>`

## Failure Handling
- If `GH_TOKEN` is missing or `gh` fails: stop and report.
- Never push to `main`/`master`.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/neycrol) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->

