Ship Current Branch

VerifiedCaution

Ship current branch with CI, code review, security review, SonarCloud, and merge. Assumes code is already committed and pushed.

Sby Skills Guide Bot
DevOpsAdvanced
7/22/2026
Claude Code
#pull-request#ci-monitoring#sonarcloud#code-review#security-review

Recommended for

Automated summary

Orchestrates an already pushed branch into a review-ready pull request: creates the PR, monitors CI, checks SonarCloud, runs code and security reviews, fixes the findings, then reports.

Strengths

  • Lays out seven explicit phases from PR creation to final CI verification
  • Automatically re-runs CI and SonarCloud after each round of fixes
  • Requires every review finding to be fixed rather than deferred
  • Explicitly forbids merging so the user keeps the final decision

Limitations

  • Assumes code is already committed and pushed, and that the base branch is dev
  • Heavily tied to GitHub tooling (gh), the built-in review and security-review skills, and one specific SonarCloud project
  • Hardcodes a SonarCloud project key (KeplerOps_Ground-Control) that must be adapted
When to use it

Use it when a branch is already pushed and you want it driven through CI, SonarCloud, code review and security review up to a verified PR.

When not to use it

Avoid it on repositories without GitHub Actions, SonarCloud, or the built-in review and security-review skills, or when you expect the agent to merge the PR itself.

Security analysis

Caution
Quality score85/100

The skill orchestrates a legitimate development workflow using git, GitHub CLI, and CI monitoring. It does not include destructive commands, data exfiltration, or obfuscated payloads, but it does perform powerful repository-mutating actions (push, merge) automatically, so caution is warranted.

Findings
  • •Uses git and gh CLI to create PRs, push commits, and merge branches, which can modify remote repositories.
  • •Automatically commits and pushes fixes without explicit user confirmation, though this is within a standard CI/fix workflow.
How this analysis is made

Examples

Shipper la branche courante
Ship the current branch: open a PR against dev, watch CI, fix any SonarCloud issues, run the code and security reviews, fix everything they find, and report the PR URL — do not merge.
Reprise après échec de CI
Run the ship workflow on my current branch. If CI fails, read the failed logs, fix the problem, push and re-run until it is green, then proceed with the reviews.
Vérification complète avant merge
Use the ship skill to get this branch ready for review: green CI, passing SonarCloud quality gate, and all code review and security review findings fixed.

name: ship description: Ship current branch — CI, SonarCloud, code review, security review, fix all issues, merge. Assumes code is already committed and pushed. disable-model-invocation: true

Ship Current Branch

Assumes code is already committed and pushed. Handles: PR creation, CI monitoring, SonarCloud, code review, security review, fixing all issues, and merging.

IMPORTANT: NEVER include Co-Authored-By trailers, agent marketing footers, or any Claude/AI branding in commit messages, PR descriptions, or any other artifacts.

Phase 1: Create PR

  1. Determine the current branch: git branch --show-current
  2. Check if a PR already exists: gh pr list --head <branch> --json number,url
  3. If no PR exists, create one:
    gh pr create --base dev --title "<concise title>" --body "<description>"
    
  4. Note the PR number.

Phase 2: CI Monitor

  1. Find the latest workflow run: gh run list --branch <branch> --limit 1 --json status,conclusion,databaseId
  2. If the run is in progress, watch it: gh run watch <id>
  3. If it failed:
    • Get failed logs: gh run view <id> --log-failed
    • Diagnose and fix the issue.
    • git add, git commit, git push.
    • Go back to step 1.
  4. If it succeeded, proceed.

Phase 3: SonarCloud Check

  1. Wait 60 seconds for SonarCloud analysis to propagate.
  2. Use get_project_quality_gate_status with project key KeplerOps_Ground-Control to check the quality gate.
  3. Use search_sonar_issues_in_projects to find new issues on the current branch.
  4. If issues found:
    • Fix them.
    • git add, git commit, git push.
    • Re-run Phase 2.
  5. If clean, proceed.

Phase 4: Code Review

CRITICAL: You MUST use the Skill tool to invoke the built-in review skill.

  1. Merge dev into the current branch: git fetch origin dev && git merge origin/dev
  2. If there are merge conflicts, resolve them, commit, and push.
  3. Call the Skill tool with skill="review" to invoke the real built-in code review.
  4. After the review completes, fix ALL issues it identified.
    • Do NOT defer ANY issues.
    • Do NOT categorize issues as "low priority" to avoid work.
    • You are an LLM. You have no time constraints. Fix everything.
    • The ONLY reason to stop and escalate to the user is if a fix requires a significant architectural change touching 5+ files outside the current feature scope.
  5. After fixing, re-read all findings and confirm each one was addressed.

Phase 5: Security Review

CRITICAL: You MUST use the Skill tool to invoke the built-in security-review skill.

  1. Call the Skill tool with skill="security-review" to invoke the real built-in security review.
  2. After the review completes, fix ALL issues it identified.
    • Same rules as Phase 4: fix everything, defer nothing.
  3. After fixing, confirm all findings were addressed.

Phase 6: Final Commit & CI

If ANY fixes were made in Phases 4-5:

  1. git add all changed files.
  2. git commit -m "Fix code review and security review findings"
  3. git push
  4. Re-run Phase 2 (CI Monitor).
  5. Re-run Phase 3 (SonarCloud).

Phase 7: Report (DO NOT MERGE)

You MUST NOT merge the PR. You MUST NOT run gh pr merge. The user reviews and merges.

  • Summary of all changes made during the ship process
  • Review findings and what was fixed
  • Security review findings and what was fixed
  • Confirmation: CI green, SonarCloud passed, PR ready for user review
  • PR URL

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-current-branch-mrwak9ce/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-current-branch-mrwak9ce' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/ship-current-branch-mrwak9ce/download' --output '.skill-downloads/ship-current-branch-mrwak9ce/SKILL.md.part' && mv '.skill-downloads/ship-current-branch-mrwak9ce/SKILL.md.part' '.skill-downloads/ship-current-branch-mrwak9ce/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

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/ship-current-branch-mrwak9ce/SKILL.md' && test -s '.skill-downloads/ship-current-branch-mrwak9ce/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/ship' && cp -R '.skill-downloads/ship-current-branch-mrwak9ce' '.claude/skills/ship'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/ship-current-branch-mrwak9ce'

openskills read 'ship-current-branch-mrwak9ce'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

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-current-branch-mrwak9ce/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