Git Workflow
The git workflow plugin provides standalone git operations through two slash commands: /ship for the full review-commit-push-PR workflow, and /pr:review for reviewing existing pull requests. These commands work independently of the ticket workflow but optionally link to tickets when context exists.
Commands
Section titled “Commands”/ship — Review, Commit, Push & Optional PR
Section titled “/ship — Review, Commit, Push & Optional PR”Reviews all changes (staged and unstaged), commits with a detailed message, pushes to remote, and optionally creates a pull request.
Usage:
/ship [optional commit message hint]Process:
- Gathers git context (status, diff, branch info, project rules)
- Conducts full review (security, rules adherence, code quality, architecture, tests)
- Presents findings by severity — user decides what to fix, defer to issues, or ignore
- Drafts commit message — user must approve before committing
- Commits and pushes
- Asks whether to create a PR — only creates if user confirms
Review Categories:
- Security (secrets, injection, auth/authz, data exposure, dependencies, input validation)
- Project Rules (CLAUDE.md, .claude/rules/*.md compliance)
- Code Quality (complexity, duplication, naming, error handling, SOLID violations, dead code)
- Architecture (pattern compliance, coupling, API contracts, cohesion)
- Tests (behavior coverage, test quality, brittleness, over/under-testing)
Finding Severity:
- Critical — Must fix before commit (security vulnerability, data loss risk, breaking production)
- High — Should fix before commit (significant bug, major pattern violation, auth issue)
- Medium — Fix soon (code smell, minor bug, missing validation)
- Low — Nice to have (style issue, minor optimization, documentation gap)
- Info — Observations, questions, future considerations
Ticket Integration:
If a ticket number is available from a prior /ticket:work call, /ship automatically links the commit and PR to that ticket. The command never prompts for a ticket — it works standalone.
/pr:review — Review Existing PR
Section titled “/pr:review — Review Existing PR”Reviews an existing pull request and posts findings as a PR comment. Never approves or merges.
Usage:
/pr:review [PR number, URL, or omit for current branch]Process:
- Identifies target PR (by number, URL, or auto-detects from current branch)
- Fetches PR details, diff, and reads changed files in full
- Conducts aggressive analysis (attack surface, threat modeling, dependencies, rules, architecture, quality, tests, breaking changes)
- Presents findings by severity — user selects what to include in review, create as issues, or ignore
- Posts review comment to PR (never approves or merges)
Analysis Depth: PR review is deeper than commit review — it is the final gate before merge. Key differences:
- Attack surface analysis — maps every new endpoint, input vector, permission change, data flow, and external integration
- Threat modeling — for each significant feature: what could an attacker exploit? What data could be exfiltrated? What operations could be abused?
- Dependency security — lists all new dependencies with versions, checks for known CVEs, assesses supply chain risks, verifies license compatibility
- Requirements verification — if PR references a ticket, cross-references each requirement and acceptance criterion
Auto-Detection: The command tries three approaches to find the PR:
- If you provide a PR number (e.g.,
/pr:review 42), it fetches that PR - If you provide a URL, it parses the number and fetches it
- If you omit the argument, it auto-detects the PR for your current branch
If all three fail, it prompts for the PR number.
Hook Scripts
Section titled “Hook Scripts”The git-workflow plugin provides no hooks — all functionality is delivered through the two slash commands.
Integration with Ticket Workflow
Section titled “Integration with Ticket Workflow”The git-workflow plugin optionally integrates with the Ticket Workflow plugin:
- If you used
/ticket:workto start working on a ticket,/shipautomatically detects the ticket context and links the commit and PR - If you used
/ticket:create-pr, you get ticket-aware PR creation through that workflow - If you’re working without a ticket,
/shipand/pr:reviewwork standalone — no prompts, no ticket required
The git-workflow commands are designed to work whether you’re following the ticket workflow or just doing ad-hoc work.
Related
Section titled “Related”- Ticket Workflow — EARS-formatted ticket workflow that integrates with
/ship - Session Context — provides the git state that both commands rely on
- Skills Reference — the
/shipand/pr:reviewskills are also documented in the skills catalog