/devops-pipeline:ci-all [--skip-tests | --e2e]from devops-pipeline
Runs local tests, type checks, pushes the current branch, and returns the CI pipeline URL. Use before opening a PR. Supports Python, Node, and Rust stacks with GitLab/GitHub pipeline detection.
Ships in devops-pipeline. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Runs everything in order: local tests → type check → push → pipeline URL.
One /ci-all replaces: manual tests + git push + copying the pipeline URL. It pushes, so it runs only when you invoke it.
if [ -f "uv.lock" ]; then STACK="python"
elif [ -f "pnpm-lock.yaml" ]; then STACK="node"
elif [ -f "package-lock.json" ]; then STACK="node-npm"
elif [ -f "Cargo.toml" ]; then STACK="rust"
else STACK="unknown"
fi
echo "Stack: $STACK"
Refuse to run on main, master or production: tell the user to switch to a feature branch.
Run each command on its own and stop at the first failure: a failing step means do not push.
Python (uv/pytest):
uv run pytest --tb=short -q
# Failure → STOP + print failing tests
Node (pnpm/vitest):
pnpm vitest run
pnpm tsc --noEmit
# Failure → STOP
Node (npm):
npm test
# Only when tsconfig.json exists:
npx --no-install tsc --noEmit
# Failure (including a missing test script) → STOP
Rust:
cargo test --quiet 2>&1
Unknown stack, or no test command that ran: STOP and do not push. Tell the user which stack was detected and that nothing was tested.
If --skip-tests is passed → skip to step 2. If --e2e is passed, also run the project's E2E command when the repo defines one (for example a test:e2e script), and say so when none exists.
BRANCH=$(git branch --show-current)
[ -n "$BRANCH" ] || { echo "STOP: detached HEAD, nothing pushed"; exit 1; }
# Verify commits exist to push
AHEAD=$(git rev-list --count origin/$BRANCH..HEAD 2>/dev/null || echo "1")
if [ "$AHEAD" = "0" ]; then
echo "Branch already up to date on origin."
elif ! git push origin "$BRANCH"; then
echo "STOP: git push failed"
exit 1
fi
# The branch on origin must be at the commit that was tested
REMOTE_SHA=$(git ls-remote --heads origin "refs/heads/$BRANCH" | cut -f1)
[ "$REMOTE_SHA" = "$(git rev-parse HEAD)" ] || { echo "STOP: origin/$BRANCH is not at HEAD"; exit 1; }
echo "PUSH_OK"
Run this step only if Step 2 printed PUSH_OK. Otherwise show the push error, print no pipeline URL, and stop.
BRANCH=$(git branch --show-current)
REMOTE=$(git remote get-url origin)
WEB_URL=$(echo "$REMOTE" | sed 's/git@gitlab\.com:/https:\/\/gitlab.com\//' | sed 's/\.git$//')
echo "Pipeline: $WEB_URL/-/pipelines?ref=$BRANCH"
# Optional: live status via glab CLI
if command -v glab &>/dev/null; then
sleep 3
glab ci status --branch "$BRANCH" 2>/dev/null || true
fi
BRANCH=$(git branch --show-current)
REMOTE=$(git remote get-url origin)
WEB_URL=$(echo "$REMOTE" | sed 's/git@github\.com:/https:\/\/github.com\//' | sed 's/\.git$//')
echo "Actions: $WEB_URL/actions?query=branch%3A$BRANCH"
# Optional: live status via gh CLI
if command -v gh &>/dev/null; then
sleep 5
gh run list --branch "$BRANCH" --limit 3 2>/dev/null || true
fi
CI: my-app (Node/Vitest)
──────────────────────────
① Local tests
✅ 47 passed in 8.2s
② Type check
✅ No errors
③ Push
✅ origin/feat/my-feature
④ Pipeline
🔗 https://gitlab.com/org/my-app/-/pipelines?ref=feat/my-feature
Next step: open a PR or MR on the forge.
If tests fail:
CI: my-api (Python/pytest)
────────────────────────────
① Local tests
❌ 2 failed
FAILED tests/test_orders.py::TestOrderService::test_refund_validation
AssertionError: expected 400, got 500
→ Fix tests before pushing. Pipeline not triggered.
/ci-all
/ci-all --skip-tests # push without re-running tests
/ci-all --e2e # include E2E tests (if configured)
Target: $ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
haikumediumThree short reads, in order
npx claudepluginhub florianbruniaux/claude-code-plugins --plugin devops-pipeline13 skills in this plugin
/canaryPost-deploy monitoring: watch production after a deploy and alert on regressions/ci-pipelinePush current branch and return the pipeline tracking URL (GitLab or GitHub Actions)/ci-statusShow the CI pipeline status for the active branch (GitLab CI or GitHub Actions), or for a given MR or PR number. Use when asked whether CI passed, is running, or failed./ci-testsRun the test suite for the current repo, auto-detecting Python (pytest/uv), Node (vitest/pnpm), or Rust (cargo test)Other plugins' skills for the same job