ablevarghese/ios-claude-toolkit/pipeline-cicd

Claude Code and agent skill by ablevarghese/ios-claude-toolkit

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Set up CI, GitHub Actions, automate builds, continuous integration. GitHub Actions CI/CD pipeline configuration for iOS apps — build/test/deploy workflows, caching strategies, quality gates, release automation. Trigger on: 'add CI to this project', 'configure GitHub Actions', 'CI is failing', 'optimize build pipeline', 'automate TestFlight deploys', 'add a workflow', 'manage CI secrets', or any CI/CD infrastructure work. For what Fastlane lanes do (build/sign/upload), use velocity-fastlane instead.

Install

npx vskill@latest install ablevarghese/ios-claude-toolkit/pipeline-cicd

SKILL.md

The same SKILL.md was published earlier as ablevarghese/ios-claude-toolkit/pipeline-cicd.

PIPELINE - CI/CD & Build Automation

Iron Law: "CI failures must be investigated immediately -- a broken pipeline blocks the entire team."

Configure and manage GitHub Actions workflows for continuous integration and deployment. Handle build automation, test execution, quality gate enforcement, caching, and release pipelines for iOS apps.

Project Discovery: Before executing, determine project-specific values (project name, scheme, bundle ID, target) from project configuration files (CLAUDE.md, project.yml, .xcodeproj, Package.swift). These are referred to as {PROJECT_DIR} (directory containing the Xcode project), {PROJECT} (Xcode project name), and {SCHEME} (build scheme) throughout this skill. If the project uses XcodeGen, the generate command runs from {PROJECT_DIR}.

Rationalizations (Do Not Skip)

RationalizationWhy It's WrongRequired Action
"We don't need CI yet, the team is small"CI catches bugs that no team size is immune to: missing files not in git, environment-specific failures, broken tests you forgot to run. Solo developers benefit from CI just as much as teams of 50.Set up a basic PR validation workflow. 15 minutes of setup. Catches bugs before they ship.
"Manual testing is sufficient"Manual testing is inconsistent, unscalable, and unrepeatable. It catches what you think to test, not what fails. Automated CI catches regressions you didn't expect.Automate the test suite in CI. Manual testing supplements automated testing; it never replaces it.
"CI is too slow, it blocks our velocity"Slow CI is a symptom, not a cause. Fix it with caching, parallelism, and selective triggers -- don't remove it. Shipping bugs is slower than waiting for CI.Optimize: cache SPM dependencies, parallelize test categories, use path-based triggers to skip unnecessary work.
"We'll add CI when the team grows"By then, the codebase has no test discipline, no quality gates, and no deployment automation. Retrofitting CI into a mature project without it is 10x harder than setting it up early.Start with CI on day one. Even a 5-line workflow that runs xcodebuild build catches compilation errors.
"Secrets in the workflow file are fine for now"They're in git history forever. Even if you remove them in the next commit, anyone with repo access can see them in the history.Use GitHub Actions encrypted secrets exclusively. Never hardcode credentials in YAML.
"We'll investigate that CI failure later""Later" means "never." A red CI pipeline normalizes failure. Within a week, the team ignores CI results entirely, and it becomes useless.Investigate immediately. Fix it or revert the breaking commit. CI must be green to merge.
"Caching isn't worth the complexity"SPM resolution and Xcode compilation are the two slowest CI steps. Caching SPM dependencies alone can save 2-5 minutes per run. Over 10 PRs/day, that's 30-50 minutes.Cache SPM packages using Package.resolved as the cache key. It's 5 lines of YAML.

Red Flags -- STOP

  • No CI validation on pull requests -- If PRs can be merged without automated checks, bugs will be merged. This is not a question of "if" but "when."
  • Secrets hardcoded in workflow files -- Even in private repos, hardcoded secrets are a security incident waiting to happen. Repository access changes, forks happen, history is permanent.
  • No caching configured -- Every CI run downloading dependencies from scratch wastes time and money. SPM resolution alone can take 3-5 minutes on clean builds.
  • No quality gates (tests, lint, coverage) -- A CI pipeline that only builds without testing is a false sense of security. It catches compilation errors but misses logic bugs, which are the majority of production issues.
  • CI failures ignored or "expected" -- If the team says "oh that test is flaky, ignore it," the pipeline has lost trust. Fix flaky tests or delete them. Every red check must be meaningful.

Behavioral Enforcement

Phase Gate: CI FAILURE INVESTIGATION

When CI fails, cannot retry until:

  • [ ] Error message read and understood
  • [ ] Root cause identified (not just "it failed")
  • [ ] Fix applied to address root cause

Hard Stop: "Just retry" is not a fix. If CI failed, there's a reason. Retrying without investigating means: (a) you'll waste another CI run, (b) the same failure will happen again. Investigate FIRST, fix, THEN retry.

Counter: CI fails on same issue #1-2: investigate and fix. #3: The pipeline configuration has a structural problem. Review the workflow YAML, not just the code.

Phase Gate: WORKFLOW CHANGE

Cannot modify CI/CD workflow until:

  • [ ] Current workflow behavior understood (what triggers it, what it does)
  • [ ] Change tested locally where possible (act, nektos/act for GitHub Actions)
  • [ ] Rollback plan exists (previous workflow version in git)
Self-Audit
  1. If CI fails, did I investigate before retrying?
  2. Are all secrets referenced in the workflow actually configured in the repo?
  3. Are caches properly keyed (won't serve stale data)?
  4. Would a new contributor's first PR trigger the correct workflow?
Required Output Artifact

Every CI/CD change must produce:

  • The workflow YAML diff with explanation of what changed and why
  • Validation that secrets are configured (names confirmed, not values)
  • Confirmation of a successful CI run after the change
  • Cache key strategy documented (what busts the cache, what doesn't)

When NOT to Use This Skill

  1. Writing or debugging Fastlane lanes -- This skill configures when and where Fastlane runs. For what Fastlane does (lane configuration, signing, uploading), use the velocity-fastlane skill.
  2. Application build settings and Xcode configuration -- CI workflows invoke build tools but don't configure them. For .xcodeproj settings, project.yml, or build configuration changes, work in those files directly.
  3. Infrastructure and server deployment -- This skill covers iOS app CI/CD. For backend deployments (Supabase, AWS, GCP), use the appropriate infrastructure tools.
  4. Local development automation -- For local build scripts, Makefiles, and developer convenience scripts, work in the project's scripts directory. CI workflows are for the CI environment.
  5. Git branching strategy and release management -- CI automates what happens on branches. The branching strategy (trunk-based, gitflow, etc.) is a team process decision, not a CI concern.

Decision Framework

What CI/CD capability do I need?
+-- Validate code quality on PRs?
| |
| +-- Basic (build + test) --> PR Validation workflow
| +-- Comprehensive (build + test + lint + coverage + security) --> Full Quality workflow
| +-- With matrix (multiple Xcode versions) --> Matrix Build workflow
|
+-- Deploy a build?
| |
| +-- To TestFlight (beta testers)?
| | +-- On every merge to main? --> CD workflow (push trigger on main)
| | +-- On demand? --> Manual trigger workflow (workflow_dispatch)
| | +-- On version tag? --> Release workflow (tag trigger v*)
| |
| +-- To App Store?
| | +-- Always manual approval gate --> workflow_dispatch + environment protection
| |
| +-- To Firebase App Distribution?
| +-- For rapid iteration --> CD workflow with firebase lane
|
+-- Run scheduled tasks?
| |
| +-- Nightly regression suite --> Schedule workflow (cron)
| +-- Dependency vulnerability check --> Schedule + Dependabot
| +-- Performance baseline monitoring --> Schedule with benchmark lane
|
+-- Optimize existing CI?
|
+-- Slow builds? --> Add caching (SPM, DerivedData, Homebrew)
+-- Unnecessary runs? --> Add path-based triggers
+-- Flaky tests? --> Fix the tests (not the CI)
+-- High costs? --> Self-hosted runners for macOS

Standard Operating Procedures

SOP-1: PR Validation Workflow
yaml
# .github/workflows/ci.yml
name: CI
on:
pull_request:
branches: [main, develop]
# Only run when relevant files change
paths:
- '**.swift'
- '**.xib'
- '**.storyboard'
- '**/project.yml'
- '**/Package.swift'
- '**/Package.resolved'
- '.github/workflows/ci.yml'
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true # Cancel previous runs for the same PR
jobs:
build-and-test:
runs-on: macos-15 # Use specific version, not macos-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.2' # Pin Xcode version for reproducibility
- name: Cache SPM Dependencies
uses: actions/cache@v4
with:
path: |
{PROJECT_DIR}/.build
~/Library/Developer/Xcode/DerivedData/**/SourcePackages
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Cache Homebrew
uses: actions/cache@v4
with:
path: |
~/Library/Caches/Homebrew
/usr/local/Cellar/swiftlint
/usr/local/Cellar/xcodegen
key: ${{ runner.os }}-brew-${{ hashFiles('.github/workflows/ci.yml') }}
- name: Install Tools
run: |
brew install swiftlint xcodegen || true
- name: Generate Project
run: cd {PROJECT_DIR} && xcodegen generate
- name: Lint
run: cd {PROJECT_DIR} && swiftlint lint --strict --reporter github-actions-logging
- name: Run Tests
run: |
cd {PROJECT_DIR}
fastlane test_comprehensive
- name: Upload Test Results
if: always() # Upload even on failure
uses: actions/upload-artifact@v4
with:
name: test-results
path: |
{PROJECT_DIR}/fastlane/test_output/
{PROJECT_DIR}/build/reports/

Why each step matters:

  • concurrency.cancel-in-progress: Force-pushing to a PR branch cancels the previous run, saving CI minutes.
  • paths: Only run CI when relevant files change. Documentation changes don't need a build.
  • Pinned Xcode version: macos-latest changes over time, causing surprise failures.
  • Cache SPM: SPM resolution is 2-5 minutes. With cache, it's <10 seconds.
  • if: always() on artifact upload: When tests fail, the test output is the most important artifact. Don't skip it.
SOP-2: Release Workflow (TestFlight)
yaml
# .github/workflows/release.yml
name: Release to TestFlight
on:
push:
tags: ['v*'] # Trigger on version tags: v1.0.0, v1.1.0-beta.1
workflow_dispatch: # Also allow manual trigger
inputs:
version_bump:
description: 'Version bump type'
required: true
type: choice
options: [patch, minor, major]
jobs:
release:
runs-on: macos-15
timeout-minutes: 45
environment: production # Requires manual approval if configured
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Full history for version tagging
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.2'
- name: Install Tools
run: brew install xcodegen || true
- name: Generate Project
run: cd {PROJECT_DIR} && xcodegen generate
- name: Run Full Test Suite
run: cd {PROJECT_DIR} && fastlane test_comprehensive

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ablevarghese/ios-claude-toolkit/pipeline-cicd/badge)](https://verified-skill.com/skills/ablevarghese/ios-claude-toolkit/pipeline-cicd)

Something wrong with this skill or its page? Tell us.