Ship It! 🐿️

VerifiedCaution

Finalize and ship changes with quality checks, commits, and PR creation.

Sby Skills Guide Bot
DevOpsIntermediate
8/24/2026
Claude Code
#git-workflow#pull-requests#commit-messages#quality-checks#branch-safety

Recommended for

Automated summary

This skill drives an eight-step shipping workflow that gathers change context, runs quality checks, verifies the branch, and prepares commits and the pull request.

Strengths

  • Enforces a strict 8-step sequence with a progress counter shown before each step and approval checkpoints through AskUserQuestion
  • Detects commits on master/main and offers branch-creation options, previewing destructive operations such as git reset --hard before running them
  • Separates inline markdown snippet failures (warnings only) from program example test failures (mandatory blockers)
  • Scans conversation history to skip lint/build checks already performed and to ground commit messages in the user's stated goal

Limitations

  • Requires uncommitted changes in a git repository; the provided SKILL.md is truncated, so push and PR creation are only broadly described
  • Branch naming is hardcoded to the personal prefix `CamSoper/`
  • Depends on Claude Code-specific mechanisms (AskUserQuestion, `shipit:references:*` files) and does not port directly to other agents
  • Quality checks appear tailored to a specific docs site layout (content/docs/, static/programs/) and are not configurable
When to use it

Use it when your edits are finished and you want a guided path from uncommitted changes to a pushed branch and an opened pull request.

When not to use it

Avoid it if you need unattended CI-style automation, or if you are not working in a git repository with Claude Code.

Security analysis

Caution
Quality score88/100

The skill performs legitimate git workflow operations with multiple user confirmation checkpoints and previews. The most concerning command is `git reset --hard`, which is destructive, but it is gated behind explicit user choice and a safety preview. No data exfiltration, obfuscation, or arbitrary remote code execution is instructed.

Findings
  • β€’Executes git commands including `git reset --hard origin/master`, which can discard all local changes.
  • β€’Pushes commits to remote repositories, potentially making unintended changes public.
  • β€’Automates commit and PR creation, which could include sensitive or unintended files if the user approves incorrectly.
How this analysis is made

Examples

Ship current changes
/shipit
Commit and open a PR
I'm done editing the docs pages β€” run the quality checks, commit everything, push the branch and open a pull request.
Get off master safely
I just realized I've been making changes directly on master. Walk me through shipping this properly on a new branch.

description: Finalize and ship changes with quality checks, commits, and PR creation

Ship It! 🐿️

Use this when: You're ready to commit your work and create a pull request.

Performs comprehensive quality checks (lint, build, code compilation), creates meaningful commits, and handles the complete workflow from staging to PR creation with multiple approval checkpoints.


Usage

/shipit

Finalizes your current work by running quality checks, committing changes, pushing to remote, and creating a pull request.

Required: Uncommitted changes in the working directory

Works with: All file types (documentation, code, tests, examples)

Special handling: Detects and prevents master branch commits, tests inline code snippets, validates program examples, and scans conversation history to avoid redundant quality checks.


Process

CRITICAL SUCCESS CRITERIA: Complete all 8 steps in sequence. Every step is mandatory and serves a critical purpose in the workflow. DO NOT SKIP ANY STEP OR END THE WORKFLOW PREMATURELY!

Step Counter: Display progress before each step as: [Step X/8] followed by the step heading. This helps users track progress through the workflow.

References: This skill uses detailed reference files. Always follow the detailed instructions in these referenced documents when applicable:

  • shipit:references:quality-checks - Quality check procedures and code testing
  • shipit:references:commit-messages - Commit message style guidelines

[Step 1/8] Context Gathering

Purpose: Understand what's changed and check for next steps from previous work.

Actions:

  1. Run git status --short to see all changes
  2. Run git branch --show-current to verify current branch
  3. Scan last 5 conversation messages for "next steps" or "TODO" mentions
  4. Categorize changed files:
    • Documentation (content/docs/, content/product/)
    • Blog posts (content/blog/)
    • Program examples (static/programs/)
    • Tests (_test., test_*, tests/)
    • Infrastructure/config
    • Other

Output: Display summary of changes with file counts per category


[Step 2/8] Quality Checks

Run context-aware quality checks. Scan conversation history to skip redundant checks (lint/build), test inline code snippets in markdown files, and run full tests for program examples.

See shipit:references:quality-checks for complete procedures, detection patterns, compilation commands, and error handling.

Critical distinctions:

  • Inline snippet failures: warnings only (docs often have partial examples)
  • Program test failures: mandatory blockers (must be full working examples)

Display summary and ask user to proceed with AskUserQuestion.


[Step 3/8] Branch Verification

Purpose: Prevent accidental commits to master branch.

Actions:

  1. Check current branch: git branch --show-current

  2. If on master or main:

    • Display warning with current git status
    • Use AskUserQuestion with options:
      1. Create new branch from current state (Recommended)
        • Prompts for branch name with format: CamSoper/{descriptive-name}
        • Runs: git checkout -b CamSoper/{name}
      2. Reset to origin/master and create clean branch
        • Warns this will discard all changes
        • Runs: git reset --hard origin/master
        • Then prompts for branch name and creates it
      3. Cancel (I'll handle manually)
        • Exits the skill
  3. If on feature branch:

    • Display: "[Step 3/8] Skipped - already on feature branch {branch-name}"
    • Continue to Step 4

Safety: Always preview destructive operations (like reset --hard) before executing.


[Step 4/8] Commit Preparation

Generate 3 meaningful commit message suggestions based on:

  • git diff --stat output
  • Conversation context (user's stated goal from last 10 messages)
  • Recent commit style (git log --oneline -5)
  • File types changed

See shipit:references:commit-messages for message format, prefix guidelines, and generation strategies.

Present suggestions with AskUserQuestion (3 options + custom message).

All messages include: Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>


[Step 5/8] Commit Preview

Purpose: Preview exactly what will be committed before execution.

Display preview:

Ready to commit:
Branch: CamSoper/add-mcp-docs

Files to be committed:
  M content/docs/ai/mcp-server/index.md
  M content/docs/ai/_index.md
  A static/images/mcp-diagram.png

Commit message:
─────────────────────────────────────────
Add MCP server documentation for AI features

Documents the new Model Context Protocol integration for Claude.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
─────────────────────────────────────────

Commands that will run:
  git add content/docs/ai/mcp-server/index.md content/docs/ai/_index.md static/images/mcp-diagram.png
  git commit -m "$(cat <<'EOF'
  Add MCP server documentation for AI features

  Documents the new Model Context Protocol integration for Claude.

  Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
  EOF
  )"

Ask for confirmation:

  • Use AskUserQuestion with options:
    1. Commit (Recommended) - Proceed to Step 6
    2. Edit message - Return to Step 4 to select different message
    3. Cancel - Exit without committing

If "Edit message": Loop back to Step 4

If "Cancel": Exit skill with message about uncommitted changes


[Step 6/8] Push Changes

Purpose: Commit and push changes to remote.

Actions (execute sequentially):

  1. Stage specific files:

    git add file1.md file2.ts file3.png ...
    

    Never use git add . or git add -A - always list specific files

  2. Commit with heredoc:

    git commit -m "$(cat <<'EOF'
    {commit message from Step 5}
    
    Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
    EOF
    )"
    
  3. Check remote tracking:

    git rev-parse --abbrev-ref @{u} 2>/dev/null
    

    If fails (no tracking branch): Need to push with -u

  4. Push to remote:

    # If no tracking branch:
    git push -u origin {branch-name}
    
    # If tracking branch exists:
    git push
    
  5. Verify push:

    git status
    

    Should show "Your branch is up to date with 'origin/{branch}'"

Display confirmation:

βœ“ Committed changes (abc123d)
βœ“ Pushed to origin/CamSoper/add-mcp-docs

If any step fails:

  • Display error
  • Offer to retry or cancel
  • Don't proceed to Step 7 if push failed

[Step 7/8] Create Pull Request

Purpose: Generate and create a pull request with appropriate description.

Actions:

  1. Generate PR description:

    Title: Use first line of commit message (without co-author line)

    Body:

    • Brief summary (1-2 sentences from commit message)
    • Changes included (from git diff --stat master...HEAD)
    • Keep concise (aim for < 500 characters)
    • Include issue references if applicable (e.g., "Fixes #123")
    • No "Generated with Claude Code" footer

    Example:

    Documents the new Model Context Protocol integration for Claude AI features.
    
    ## Changes
    - Added MCP server documentation page
    - Updated AI section index
    - Added architecture diagram
    
  2. Display PR preview:

    Pull Request Preview:
    ─────────────────────────────────────────
    Title: Add MCP server documentation for AI features
    
    Body:
    Documents the new Model Context Protocol integration for Claude AI features.
    
    ## Changes
    - Added MCP server documentation page
    - Updated AI section index
    - Added architecture diagram
    ─────────────────────────────────────────
    
  3. Ask for confirmation:

    • Use AskUserQuestion with options:
      1. Create PR (Recommended) - Execute pr creation
      2. Edit description - Allow custom title/body input, show preview again
      3. Cancel - Exit without creating PR (changes are still committed/pushed)
  4. If "Edit description":

    • Ask for custom title (or keep current)
    • Ask for custom body (or keep current)
    • Show updated preview
    • Loop back to confirmation
  5. If "Create PR":

    gh pr create --title "{title}" --body "$(cat <<'EOF'
    {body}
    EOF
    )"
    

If PR creation fails:

  • Display error (auth issues, network, etc.)
  • Note that changes are still committed and pushed
  • Suggest manual PR creation with URL: https://github.com/pulumi/docs/pull/new/{branch-name}

[Step 8/8] Completion Report

Purpose: Confirm successful completion and provide next steps.

Actions:

  1. Fetch PR details:

    gh pr view --json url,number,title
    
  2. Check for "next steps" in conversation:

    • Scan last 10 messages for mentions of "next steps", "TODO", "follow-up"
    • Extract any action items that were mentioned
  3. Display success message:

    βœ… Successfully shipped your changes!
    
    Pull Request: #17380
    URL: https://github.com/pulumi/docs/pull/17380
    Title: Add MCP server documentation for AI features
    Branch: CamSoper/add-mcp-docs
    
    Next steps:
    - Monitor PR for CI/CD status
    - {any next steps from conversation}
    
  4. Celebrate:

    🐿️ Ship it! Your changes are ready for review.
    

End of skill


Critical Workflow Rules

  1. Progress Display: Always display step number "[Step X/8]" before each heading
  2. Sequential Execution: Never skip ahead - complete each step before moving to next
  3. User Approval: Get explicit approval before destructive actions (Steps 3, 5, 7)
  4. Error Handling: If a step fails, don't proceed - offer retry or cancel
  5. Skip Display: If skipping a step, show "[Step X/8] Skipped - {reason}"
  6. Context Preservation: Store decisions from previous steps to avoid re-asking

Notes

  • This skill respects the /AGENTS.md repository guidelines
  • Commit messages always include co-author attribution for Claude
  • PR descriptions never include "Generated with Claude Code"
  • Branch names follow {GitHub-alias}/{descriptive-name} format
  • All git operations use safe practices (no force push, no destructive defaults)

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/ship-it-mt6req5f/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/ship-it-mt6req5f' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/ship-it-mt6req5f/download' --output '.skill-downloads/ship-it-mt6req5f/SKILL.md.part' && mv '.skill-downloads/ship-it-mt6req5f/SKILL.md.part' '.skill-downloads/ship-it-mt6req5f/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/ship-it-mt6req5f/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills