Skip to main content
ClaudeWave
Slash Command2.7k estrellas del repoactualizado 7d ago

ship

The `/ship` command automates the pull request workflow by committing all changes, pushing the current branch, creating or updating a GitHub PR, and running local validation with an additional push if validation generates new commits. Use this when ready to submit work for review and ensure it passes validation checks before opening the PR.

Instalar en Claude Code
Copiar
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/moltis-org/moltis/HEAD/.claude/commands/ship.md -o ~/.claude/commands/ship.md
Después abre una sesión nueva de Claude Code; el slash command carga automáticamente.

ship.md

Run the one-shot ship flow from this repository:

1. Commit all files.
2. Push current branch.
3. Create PR if missing (or reuse current branch PR).
4. Run local validation.
5. Push again if validation auto-created a commit.

## Command

Use:

```bash
./scripts/ship-pr.sh $ARGUMENTS
```

## Notes

- This command refuses to run on `main`/`master` by design.
- You can run plain `/ship` with no arguments.
- If args are omitted, commit message / PR title / PR body are auto-generated from changed files and branch.
- Set `SHIP_BASE_BRANCH=...` before running if you need a base branch other than `main`.