Skip to content
Skills Library
DevOps & cloud · Automation

ci

/ci

Wire a repository's CI pipeline to deploy to Gagarin Cloud on push — mint a scoped deploy credential, store it as a secret, and write the workflow. Use when the user asks to set up continuous deployment, automate deploys, or deploy from GitHub Actions or another CI system to Gagarin.

Repository
plugin ↗
Licence
MIT
Last repository change
13.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Wire a repository's CI pipeline to deploy to Gagarin Cloud on push — mint a scoped deploy credential, store it as a secret, and write the workflow. Use when the user asks to set up continuous deployment, automate deploys, or deploy from GitHub Actions or another CI system to Gagarin.

Original author description

Wire a repository's CI pipeline to deploy to Gagarin Cloud on push — mint a scoped deploy credential, store it as a secret, and write the workflow. Use when the user asks to set up continuous deployment, automate deploys, or deploy from GitHub Actions or another CI system to Gagarin.

How it works

  1. The order
  2. Rules that are not negotiable
  3. What the credential can and cannot do
  4. Finishing
Original SKILL.md headings · 95 lines, 915 words
SKILL.md preview
---
name: ci
description: Wire a repository's CI pipeline to deploy to Gagarin Cloud on push — mint a scoped deploy credential, store it as a secret, and write the workflow. Use when the user asks to set up continuous deployment, automate deploys, or deploy from GitHub Actions or another CI system to Gagarin.
---

You wire this repository's CI to deploy to Gagarin Cloud on push.

Read the `gagarin` skill of this plugin before anything else: its **"Setting up
CI"** section is the recipe. What follows is the order of work and the rules
you must not break. If your host offers subagents, run the rest of this in one:
it is a long procedure, and the main conversation only needs its report.

Everything here runs on the machine that holds the repository. If you cannot
run commands where you are (ChatGPT on the web, for instance), hand the user
the recipe instead — the `gg creds create` line and the workflow — and say
which secret to set where. Do not try to do it over the MCP tools: no tool
there hands out a secret, by design.

## The order

1. **`gg whoami`** — you need a working credential to mint one from. If there is
   none, stop and tell the user to run this plugin's `setup` skill
   (`/gagarin:setup` in Claude Code).
2. **Find out what CI they use.** Look for `.github/workflows/`, `.gitlab-ci.yml`,
   `.buildkite/`, `cloudbuild.yaml`. Ask if it is ambiguous. Do not assume GitHub.
   `git remote get-url origin` says where the repository lives.
3. **Check the forge CLI.** On GitHub that is `gh auth status`; on GitLab,
   `glab auth status`. If it is missing or not signed in, say so before minting
   anything: ask the user to install it and run `gh auth login` / `glab auth
   login` themselves, or to set the secret by hand (see below). Do not sign in
   for them.
4. **Confirm the project and service names** and which branch should deploy.
   Read `.gagarin.json` at the repository root first — the note of which
   project this is, if a deploy left one — then `gg status` or `gg projects`
   rather than guessing. If the two disagree, the API is right. Do not write
   the note here if it is absent: that is the deploy's job, and there may be
   no project yet.
5. **Mint a credential straight into the secret store**, named for where it
   will live (`"github actions: <owner>/<repo>"`) — the one-line pipe in the
   rule below, never `gg creds create` on its own, which prints it.
6. **Write the workflow.** Install gg, `gg registry login`, build and push
   tagged with the commit, deploy, then `gg status`.
7. **Tell them what to check** on the first run — and, once they have pushed,
   watch it with the forge CLI (the skill's "Watch the first run").

## Rules that are not negotiable

- **Never run `gg login` in CI, and never copy this machine's credential into
  it.** A pipeline gets one of its own.
- **The minted secret must never reach the transcript, a file, or your output.**
  `gg creds create` prints it to stdout alone on its line, everything else to
  stderr, precisely so it can be piped without touching disk:

  ```sh
  gh secret set GAGARIN_TOKEN --body "$(gg creds create --name "github actions: acme/web" 2>/dev/null)"
  ```

  On GitLab, the same shape:

  ```sh
  glab variable set GAGARIN_TOKEN --masked --value "$(gg creds create --name "gitlab ci: acme/web" 2>/dev/null)"
  ```

  Run it as one command. Do not capture it into a shell variable you later echo,
  do not print it "to confirm", and do not write it into a file — not even a
  temporary one. It is shown once; Gagarin keeps only a hash. If the user needs
  it again they revoke and mint another.
- **No signed-in forge CLI means you do not mint it.** There is no route from
  here to the secret store that skips your output. Hand the user the
  `gg creds create --name "…"` command to run in their own terminal and say
  where in the CI settings to paste it.
- **`gg registry login` is not optional** before any `gg build --push`,
  `gg push` or `gg registry copy`. Docker has no idea what a Gagarin credential
  is until it runs, and the failure without it is a `401` out of `docker push`.
- **Tag with the commit, explicitly.** `${{ github.sha }}` is what makes a
  deploy reproducible and a rollback explicable. `gg build` with no tag uses
  the short hash only when the checkout is clean and falls back to the clock
  otherwise, and a pipeline that writes a file before building is not clean —
  so never leave the tag to it in CI.
- **`gg status` at the end is a report, not a gate.** Do not write a polling
  loop in CI. If they want a gate, gate on their own health check against the
  service's address.

## What the credential can and cannot do

Say this to the user explicitly, because it is the reason this is safe: what you
minted **can deploy but cannot destroy** — no flag turns that on — it **expires**
(90 days by default, 365 maximum, never "never"), and it **cannot mint another**.
Tell them the expiry date and that rotating means minting the new one, updating
the secret, then `gg creds revoke <id>`.

## Finishing

Report which secret you set, where, what the workflow does on which branch, and
when the credential expires. Do not trigger a deploy to test it unless the user
asks — that is their push to make. If they push while you are here and the
forge CLI is signed in, watch the run to the end and report how it finished,
with the failing step's log if it failed, then `gg status`.

Versions

RepositoryScoreLicence
This page · gagarin-cloud/plugin100MIT
A7-studio/jobmigo100MIT
andriiklymiuk/corgi100MIT
kamoca-labs/docker100MIT
pawangai/pawang-agents100MIT
agentic-dev3o/devx-plugins100MIT
chachamaru127/claude-code-harness100MIT
onsi/ginkgo100MIT
vale-cli/agent-tools100MIT

Database snapshot: 13.11.2026 · package version 6b420b507fc9 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90setup
    Get this machine ready to deploy on Gagarin Cloud — install the gg CLI if it is missing, sign in, and check the rest of the toolchain (docker, git, gh or glab). Use when the user asks to set up, install or configure Gagarin, or when gg is not found.
  • 91gagarin
    Deploy and operate applications on Gagarin with the gg CLI — ship a service from a Dockerfile, provision postgres, qdrant, valkey, iggy, rabbitmq, s3 or external-credential resources, wire what may reach what, put a service on the internet, give CI its own credential, start jobs…
  • 95memstack-deployment-ci-cd-pipeline
    Use this skill when the user says 'CI/CD', 'GitHub Actions', 'pipeline', 'continuous integration', 'continuous deployment', 'ci-cd-pipeline', 'automate deploys', or needs to set up automated build, test, and deployment pipelines. Do NOT use for one-time manual deployments.
  • 100fastapicloud-deploy
    Prepare and deploy FastAPI apps to FastAPI Cloud. Use when the user asks to deploy a project, create, link, or update a FastAPI Cloud app, log in before deployment, set up CI/CD, a GitHub Actions deploy workflow, or GitHub-linked auto-deploys, manage deploy tokens, validate…
  • 100netlify-deploy
    Create, configure, and manage Netlify deploys from code — reach for this when setting up Git continuous deployment, running netlify deploy or netlify deploy --prod from the CLI, writing netlify.toml deploy contexts, adding a Deploy to Netlify button, wiring build hooks,…
  • 100github-actions
    GitHub Actions CI/CD. Covers workflows, jobs, and deployment. Use for automating builds, tests, and deployments. USE WHEN: user mentions "github actions", "workflow", "ci/cd", ".github/workflows", "actions/checkout", "github workflow", asks about "automate tests", "deploy on…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.