git-code-shipit

A guided Git workflow for reviewing code changes, creating commits, checking quality, and pushing them to GitHub. Git is the tool used to track code history, while GitHub hosts shared code repositories.

In plain words
What is it for?
Use it to prepare changes, choose how to group commits, update documentation, run checks, push to GitHub, and report the result.
Why use it?
It reduces the chance of committing incomplete, poorly documented, or unsafe changes. It also adds checkpoints before changes are sent to the shared repository.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/oakensoul/nextjs-cursor-prompts/git-code-shipit
Clone the repo
git clone --depth 1 https://github.com/oakensoul/nextjs-cursor-prompts

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 3,021 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.03021
Opus 5 $0.00000 $0.01510
Sonnet 5 $0.00000 $0.00604
Haiku 4.5 $0.00000 $0.00302

Measured 2d ago against content hash a48aa765e2f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

git-code-shipit scanned grade A with 0 findings against 26 rules in 11 categories โ€” prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency โ€” measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/prompts/git/git-code-shipit.mdc ยท 362 lines

How it starts

The opening of the file, as written. The whole thing โ€” 362 lines โ€” stays where its author put it; the contents beside it link to each section on GitHub.

Git Code Ship It - Complete Workflow Orchestrator

๐Ÿšข This is the ultimate "Ship It" command - a comprehensive git workflow that takes you from code changes to GitHub push with complete quality validation and documentation.

๐ŸŽฏ SHIP IT OBJECTIVES:

  1. ORCHESTRATE complete git workflow from preparation through push
  2. ENSURE comprehensive quality at every phase with zero tolerance for failures
  3. PROVIDE detailed reporting of all operations and validations
  4. MAINTAIN safety checkpoints with clear go/no-go decisions
  5. DELIVER production-ready code to GitHub with confidence

๐Ÿšข SHIP IT WORKFLOW PHASES:

Phase 1: PREPARATION    โ†’ Analyze, document, plan
Phase 2: COMMIT         โ†’ Validate, execute, verify  
Phase 3: PUSH           โ†’ Quality gates, security, deploy
Phase 4: CONFIRMATION   โ†’ Success report, monitoring

๐Ÿ“‹ COMPLETE SHIPIT PROCESS:

๐Ÿ” PHASE 1: PREPARATION

Following .cursor/prompts/git/git-code-prep.mdc

Comprehensive Change Analysis:
  • Analyze all modifications - Files changed, features added, bugs fixed
  • Determine commit strategy - Single vs. multiple commits, logical grouping
  • Update documentation - Changelog, README, API docs, sitemap
  • Plan commit messages - Conventional commit format preparation
  • Execute initial quality checks - Precommit hooks, linting, type checking
Phase 1 Success Criteria:
  • Change analysis complete - Full understanding of modifications
  • Documentation updated - Changelog, LLMs.mdc, sitemap current
  • Commit strategy planned - Clear execution plan prepared
  • Initial quality gates pass - Precommit hooks successful
  • Files staged appropriately - Correct staging for planned commits
๐Ÿšจ Phase 1 Checkpoint:

CONTINUE TO PHASE 2? [GO/NO-GO]

  • If NO-GO: Stop, address preparation issues, re-run Phase 1

โœ… PHASE 2: COMMIT EXECUTION

Following .cursor/prompts/git/git-code-commit.mdc

Read the full file on GitHub ยท 362 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen ยท 362 lines ยท 0 tokens per session scan A a48aa765e2f6

Subscribe to this mod's changes

git-code-shipit is a cursor rule published in the GitHub repository oakensoul/nextjs-cursor-prompts (4 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,021 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.