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…
от 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,Matchfileor 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
- 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.
- Agree the pipeline shape with the user (see table below). Ask before choosing store tracks, distribution groups or approval rules; do not guess them.
- 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.
- Write the verify job first (lint, static analysis, unit tests, coverage gate). It runs on every PR and never sees a secret.
- 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. - Harden: top-level
permissions: contents: read, SHA-pinned actions, concurrency group, timeouts, secrets passed throughenv:only, untrusted event data never interpolated intorun:. - Validate locally where possible:
actionlintfor syntax and expression errors,zizmorfor workflow security findings, and a dry run on a branch with the release job disabled. - 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) orgh 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: falseonactions/checkoutunless 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
Установить 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), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub