_legacy/cicd/ci-cd-automation/SKILL.md
GitHub Actions、Fastlane、Bitriseを活用したCI/CDパイプライン構築。自動ビルド、テスト実行、コード署名、TestFlight配布、App Store申請まで、開発からリリースまでの完全自動化ガイド。
npx skillsauth add gaku52/claude-code-skills ci-cd-automationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
このSkillは、CI/CD自動化の全てをカバーします:
このガイドで学べること: CI/CDパイプライン設計、GitHub Actions設定、Fastlane活用、自動デプロイ 公式で確認すべきこと: 最新のCI/CD機能、セキュリティアップデート、パフォーマンス最適化
GitHub Actions Documentation - GitHub公式CI/CD
Fastlane Documentation - iOS/Android自動化ツール
GitLab CI/CD - GitLab統合CI/CD
CircleCI Documentation - CI/CDプラットフォーム
┌──────────────┐
│ Push/PR │
└──────┬───────┘
│
┌──────▼───────┐
│ Lint │ SwiftLint, SwiftFormat
└──────┬───────┘
│
┌──────▼───────┐
│ Build │ Xcode Build
└──────┬───────┘
│
┌──────▼───────┐
│ Test │ Unit + UI Tests
└──────┬───────┘
│
┌──────▼───────┐
│ Coverage │ カバレッジレポート
└──────┬───────┘
│
┌──────▼───────┐
│ Deploy │ TestFlight (mainブランチのみ)
└──────────────┘
詳細: guides/01-pipeline-design.md
PR作成時:
→ Lint → Build → Unit Tests → Security Scan
→ レビュー待ち
mainマージ時:
→ 全テスト → Build Archive → TestFlight → Slack通知
タグプッシュ時:
→ 全テスト → Production Build → App Store → Release Notes
詳細: guides/02-advanced-pipeline.md
name: iOS CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
build-and-test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.2'
- name: Cache SPM
uses: actions/cache@v3
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
- name: Build
run: xcodebuild build -scheme YourApp -destination 'platform=iOS Simulator,name=iPhone 15'
- name: Test
run: xcodebuild test -scheme YourApp -destination 'platform=iOS Simulator,name=iPhone 15'
詳細: guides/03-github-actions-basics.md
詳細ガイド:
# Fastlane インストール
gem install fastlane
# 初期化
fastlane init
# プラグインインストール
fastlane add_plugin badge
fastlane add_plugin changelog
詳細: guides/07-fastlane-setup.md
default_platform(:ios)
platform :ios do
desc "Run tests"
lane :test do
run_tests(scheme: "YourApp")
end
desc "Build and upload to TestFlight"
lane :beta do
increment_build_number
build_app(scheme: "YourApp")
upload_to_testflight
slack(message: "New beta build available!")
end
desc "Release to App Store"
lane :release do
increment_version_number
build_app(scheme: "YourApp")
upload_to_app_store
slack(message: "New version released!")
end
end
詳細:
# SPM依存関係
- uses: actions/cache@v3
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
# CocoaPods
- uses: actions/cache@v3
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
# Derived Data
- uses: actions/cache@v3
with:
path: ~/Library/Developer/Xcode/DerivedData
key: ${{ runner.os }}-derived-data
詳細: references/caching-strategy.md
# GitHub Secrets使用
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
APP_STORE_CONNECT_API_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY }}
詳細: references/secrets-management.md
jobs:
lint:
runs-on: macos-latest
# ...
test-ios15:
runs-on: macos-latest
# iOS 15でテスト
test-ios16:
runs-on: macos-latest
# iOS 16でテスト
test-ios17:
runs-on: macos-latest
# iOS 17でテスト
詳細: references/parallel-execution.md
| 原因 | 解決策 |
|------|--------|
| Xcodeバージョン不一致 | setup-xcode で固定 |
| 依存関係エラー | キャッシュクリア |
| コード署名エラー | Fastlane Match使用 |
詳細: references/troubleshooting.md
→ references/build-optimization.md
→ incidents/testflight-failures/
ci-runner-agent
quickbuild-optimizer-agent
thoroughdeploy-agent
mediumpipeline-debugger-agent
thoroughpipeline-debugger-agent (原因分析)
→ 修正提案
→ ci-runner-agent (再実行)
build-optimizer-agent (ビルド最適化) +
test-optimizer-agent (テスト最適化) +
cache-analyzer-agent (キャッシュ分析)
→ 結果統合 → 最適化計画
# テスト実行
fastlane test
# TestFlight配布
fastlane beta
# App Storeリリース
fastlane release
# スクリーンショット生成
fastlane snapshot
# 証明書同期
fastlane match development
fastlane match appstore
on:
workflow_dispatch:
inputs:
environment:
description: 'Environment'
required: true
type: choice
options:
- development
- staging
- production
# キャッシュクリア
rm -rf ~/Library/Developer/Xcode/DerivedData
rm -rf .build
# Fastlaneログ確認
cat ~/Library/Logs/fastlane/fastlane.log
# GitHub Actions ログダウンロード
gh run view <run-id> --log
🎯 完全ガイド(実践的・網羅的)
構築時
運用時
GitHub Actions ワークフロー
git-workflow - ブランチ戦略との連携testing-strategy - テスト自動実行code-signing - 証明書管理release-process - リリースフローapp-store-submission - App Store申請このSkill自体の変更履歴は CHANGELOG.md を参照
tools
Fundamentals of modern web development. Framework selection (React, Vue, Next.js), project architecture, state management, routing, build tools, and CSS strategy best practices.
development
# React Development — Complete Guide > A comprehensive guide to building modern React applications with TypeScript. Covers fundamentals through advanced patterns, Hooks mastery, TypeScript integration, performance optimization, and algorithm internals. ## Target Audience - Developers new to React who want a solid foundation - Intermediate React developers looking to deepen their understanding of Hooks and TypeScript patterns - Engineers who want to understand React's internal algorithms (Virt
development
# Node.js Development Skill > A practical guide collection for Node.js development. Covers all aspects of Node.js application development, including Express, NestJS, asynchronous patterns, and performance optimization. ## Overview This skill covers the following topics: - **Express & NestJS**: When to use a lightweight framework vs. an enterprise framework - **Asynchronous Patterns**: Promise, async/await, Event Emitter, Streams, Worker Threads, Cluster - **Performance Optimization**: Memory
development
# Backend Development — Complete Guide > A comprehensive guide to backend engineering. Covers the fundamentals of HTTP, REST API design, databases, authentication, environment configuration, and algorithm proofs — everything needed to build robust server-side systems. ## Target Audience - Developers new to backend engineering - Frontend engineers expanding toward full-stack development - Engineers looking to solidify their understanding of server-side fundamentals ## Prerequisites - Basic p