Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Mobile CI/CD

БесплатноБез исполняемых скриптовНе проверен

Writes and hardens CI/CD pipelines for Android, iOS and Flutter on GitHub Actions and GitLab CI: Gradle and xcodebuild builds, lint and tests, signing from…

ahmadhussain0335от ahmadhussain0335139 установок в других каталогах

Об этом скилле

Mobile CI/CD

Build pipelines that a senior mobile engineer would trust with the signing keys: fast feedback on every pull request, reproducible signed release builds from tags, and no path for untrusted code to reach a secret or a store account.

When to use

  • The user asks to set up, fix, speed up or review CI for an Android, iOS, Flutter or KMP app.
  • A workflow file (.github/workflows/*.yml), .gitlab-ci.yml, Fastfile, Matchfile or Gradle signing config is being added or changed.
  • Release automation: Play Console upload, TestFlight, Firebase App Distribution, version numbering.
  • A security review of an existing pipeline (secret exposure, unpinned actions, broad token permissions).

Not for: app-level security such as storage or network hardening (use mobile-security), or writing the merge request that ships the pipeline (use mobile-merge-request).

Workflow

  1. Inventory the project before writing YAML.
    • Platforms, build system, flavors or schemes, module layout, existing lint and test tasks.
    • Existing CI files, Gemfile / Fastfile, libs.versions.toml, Package.resolved, pubspec.lock.
    • Where releases go today (Play track, TestFlight, Firebase App Distribution) and who approves them.
  2. Agree the pipeline shape with the user (see table below). Ask before choosing store tracks, distribution groups or approval rules; do not guess them.
  3. Load the matching reference and adapt its workflow instead of writing from memory: Android on GitHub Actions, iOS on GitHub Actions, Flutter on GitHub Actions, GitLab CI.
  4. Write the verify job first (lint, static analysis, unit tests, coverage gate). It runs on every PR and never sees a secret.
  5. Write the release job second: tag or manual trigger only, protected environment:, signing from secrets into the runner temp dir, upload to the store or distribution service.
  6. Harden: top-level permissions: contents: read, SHA-pinned actions, concurrency group, timeouts, secrets passed through env: only, untrusted event data never interpolated into run:.
  7. Validate locally where possible: actionlint for syntax and expression errors, zizmor for workflow security findings, and a dry run on a branch with the release job disabled.
  8. Deliver the files plus the list of required secrets and the manual setup steps (see Output format). Never ask the user to paste secret values into the conversation.

Pipeline shape

Trigger Jobs Secrets
pull_request verify (lint, detekt/ktlint/SwiftLint/analyze, unit tests, coverage gate), debug build None
push to main verify, QA build to Firebase App Distribution or TestFlight internal Distribution only, via environment:
push tag v* or workflow_dispatch verify, signed release build, store upload Signing and store, via environment: with required reviewers

Run iOS jobs only when iOS files change (paths: filters). macOS runner minutes cost several times more than Linux minutes.

Rules

1. Every action is pinned to a full commit SHA

Tags are mutable. A compromised tag runs attacker code with your secrets.

# BAD: tag can be moved to a malicious commit
- uses: actions/checkout@v7
- uses: some-org/upload-thing@main

# GOOD: immutable commit, human-readable version in the comment
# (the SHA below is a placeholder, resolve the real one before use)
- uses: actions/checkout@<full-40-char-commit-sha> # vX.Y.Z
  • Resolve a tag to its commit: git ls-remote https://github.com/actions/checkout 'refs/tags/vX.Y.Z*' (use the ^{} line for annotated tags) or gh api repos/actions/checkout/commits/vX.Y.Z --jq .sha.
  • Keep pins fresh with Dependabot, which updates the SHA and the comment together:
# .github/dependabot.yml
version: 2
updates:
  - package-ecosystem: github-actions
    directory: /
    schedule:
      interval: weekly
  • Container images are pinned by digest (image@sha256:<digest>), tools by exact version (Gemfile.lock, firebase-tools@<x.y.z>).

2. The token gets the least privilege, granted per job

# BAD: default token may have write access to the whole repo
on: pull_request
jobs:
  test: ...

# GOOD: read-only by default, escalate only where needed
permissions:
  contents: read

jobs:
  distribute:
    permissions:
      contents: read
      id-token: write   # OIDC to a cloud provider, nothing else
  • Set persist-credentials: false on actions/checkout unless a later step pushes with the token.

3. Secrets never reach untrusted code

Secrets are not passed to pull_request runs from forks. Do not "fix" that by switching triggers.

# BAD: runs fork code with secrets and a write token
on: pull_request_target
jobs:
  build:
    steps:
      - uses: actions/checkout@<sha> # vX.Y.Z
Полный SKILL.md на ClawHub

Установить Mobile CI/CD в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Mobile CI/CD?

Writes and hardens CI/CD pipelines for Android, iOS and Flutter on GitHub Actions and GitLab CI: Gradle and xcodebuild builds, lint and tests, signing from secrets, fastlane, Play and TestFlight upload, Firebase App Distribution, caching and SHA-pinned actions. Use when setting up, fixing, speeding up or reviewing a mobile pipeline, workflow YAML, .gitlab-ci.yml or Fastfile.

Как установить скилл Mobile CI/CD?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Mobile CI/CD запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Mobile CI/CD с