Skip to content
Back to skills

Ci Pipeline

ASecurity

Push current branch and return the pipeline tracking URL (GitLab or GitHub Actions)

  • 7,588 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added May 27, 2026
data-aibashgit

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add FlorianBruniaux/claude-code-ultimate-guide --skill ci-pipeline --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ci Pipeline?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ci Pipeline
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/florianbruniaux-ci-pipeline/badge)](https://www.skillsdirectory.com/skills/florianbruniaux-ci-pipeline)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ci-pipeline
description: Push current branch and return the pipeline tracking URL (GitLab or GitHub Actions)
allowed-tools: [Bash]
model: haiku
effort: low
disable-model-invocation: true
---

# /ci-pipeline: Push and trigger pipeline

Pushes the current branch and returns the pipeline tracking link. Never force-push: this skill takes no flags.

## Process

```bash
BRANCH=$(git branch --show-current)

# 1. Safety checks
if echo "$BRANCH" | grep -qE "^(main|master|production)$"; then
  echo "❌ Direct push to $BRANCH is not allowed. Create a feature/fix branch."
  exit 1
fi

# 2. Check for uncommitted changes
UNCOMMITTED=$(git status --porcelain | wc -l | tr -d ' ')
if [ "$UNCOMMITTED" -gt 0 ]; then
  echo "⚠️  $UNCOMMITTED uncommitted file(s):"
  git status --short
  echo ""
  echo "Commit first with /commit or git add + git commit"
  exit 0
fi

# 3. Push
echo "Pushing → origin/$BRANCH"
if ! git push origin "$BRANCH" 2>&1; then
  echo "❌ Push failed. No pipeline was triggered by this run."
  exit 1
fi
echo "✅ Push OK"
```

## Pipeline URL

Run this step only if the block above printed `✅ Push OK`. If the push failed or was skipped (uncommitted files), stop and report that.

### GitLab CI

```bash
REMOTE=$(git remote get-url origin 2>/dev/null || echo "")
WEB_URL=$(echo "$REMOTE" | sed 's/git@gitlab\.com:/https:\/\/gitlab.com\//' | sed 's/\.git$//')
echo ""
echo "   Pipeline: $WEB_URL/-/pipelines?ref=$BRANCH"

# Live status via glab (if installed)
if command -v glab &>/dev/null; then
  sleep 3
  glab ci status --branch "$BRANCH" 2>/dev/null || true
fi
```

### GitHub Actions

```bash
REMOTE=$(git remote get-url origin 2>/dev/null || echo "")
WEB_URL=$(echo "$REMOTE" | sed 's/git@github\.com:/https:\/\/github.com\//' | sed 's/\.git$//')
echo ""
echo "   Actions: $WEB_URL/actions?query=branch%3A$BRANCH"

# Live status via gh (if installed)
if command -v gh &>/dev/null; then
  sleep 5
  gh run list --branch "$BRANCH" --limit 3 2>/dev/null || true
fi
```

## Expected output

```
Pushing → origin/feat/add-payment-retry

Enumerating objects: 12, done.
...

✅ Push OK
   Pipeline: https://gitlab.com/org/my-app/-/pipelines?ref=feat/add-payment-retry

Pipeline status (after 3s):
  ⏳ lint       running
  ⏸️  test       waiting
  ⏸️  deploy     waiting
```

## Usage

```
/ci-pipeline
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data-ai →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.