Command Palette

Search for a command to run...

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

setup-fastlane

БесплатноЗапускает вложенные скриптыНе проверен

Set up Fastlane for an iOS or macOS app, or check that an existing Fastlane setup still works. Use this whenever a project has a fastlane/Fastfile, Gemfile or…

greenstevesterот greenstevester★ 43 звезды на GitHub17 установок в других каталогах

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

Fastlane Setup and Health Check

This skill does one of two jobs, and the environment check below decides which:

  • Check an existing setup. The project already has a Fastfile or a Gemfile. Confirm it still loads, report what passed, and change nothing.
  • New setup. No Fastfile or Gemfile yet. Install fastlane and write the config files.

Environment Check

!bash "${CLAUDE_SKILL_DIR}/scripts/env-check.sh" 2>&1 || true

Argument given to the skill (may be empty): $ARGUMENTS

The check searches from the current folder, up to six folders deep, so a session that starts at a repo root still finds an app folder like project/product/ios-app. The argument is not passed to the line above, because a backtick in it would break the skill load. If the argument names a folder, or the check found nothing or the wrong project, rerun it with the app folder:

bash "${CLAUDE_SKILL_DIR}/scripts/env-check.sh" path/to/app-folder

Read the MODE: line, then follow the matching section. Use the bundle ID the check labels as the app's. Test targets have their own IDs (.tests, .uitests), and a plain grep of project.pbxproj often returns one of those first. If the check lists several candidates, ask the user which one is the app.


Check an Existing Setup

Use this when the check prints MODE: CHECK EXISTING SETUP. The project's Fastlane setup is someone's working configuration, so the job is to confirm it loads. Don't write an Appfile or a Fastfile, don't run fastlane init, and don't edit the Gemfile.

1. Use the project's own bundler and fastlane

When a Gemfile lists fastlane, the Gemfile.lock decides which fastlane version runs, and bundler is the only thing that honours it. A bare fastlane command runs whichever copy is first on PATH, usually Homebrew's /opt/homebrew/bin/fastlane, and skips the pinned one. A check run that way proves nothing about the project's setup.

Run bundler at the version in the BUNDLED WITH line at the bottom of Gemfile.lock. The check prints it. For BUNDLED WITH 2.4.22, the commands start with bundle _2.4.22_.

2. Run under the right Ruby

The Bash tool in Claude Code often starts with macOS System Ruby (/usr/bin/ruby, Ruby 2.6) first on PATH, even when the user's terminal uses Homebrew Ruby. Gems installed for Homebrew Ruby don't load under System Ruby. Bundler then fails with Bundler::GemNotFound, extensions are not built, or Could not find 'bundler' (2.4.22).

If the check flagged System Ruby, tell the user, and put Homebrew Ruby first in PATH for each command only:

PATH="/opt/homebrew/opt/ruby/bin:$PATH" bundle _2.4.22_ check --dry-run

(Intel Macs use /usr/local/opt/ruby/bin.) Never edit ~/.zshrc, ~/.zprofile, ~/.bash_profile or any other shell config file; the user decides how their shell starts. Don't install gems into System Ruby either, and never with sudo.

3. Run the checks

From the folder that holds fastlane/ (the check prints the exact commands):

PATH="/opt/homebrew/opt/ruby/bin:$PATH" BUNDLE_FROZEN=true bundle _2.4.22_ check --dry-run
PATH="/opt/homebrew/opt/ruby/bin:$PATH" BUNDLE_FROZEN=true FASTLANE_SKIP_UPDATE_CHECK=1 \
  bundle _2.4.22_ exec fastlane lanes
  • BUNDLE_FROZEN=true makes bundler refuse to rewrite Gemfile.lock.
  • --dry-run stops bundle check from writing the lockfile when it passes.
  • FASTLANE_SKIP_UPDATE_CHECK=1 hides fastlane's "new version available" banner.
  • fastlane lanes loads fastlane, its plugins and the Fastfile, so a broken or missing gem in that set shows up here. It runs no lane. A gem that an action loads only when it runs (for example mini_magick for frameit) shows up only when that lane runs, so say so in the report.

If the project has no Gemfile, run FASTLANE_SKIP_UPDATE_CHECK=1 fastlane lanes instead.

If bundle check says gems are missing, as it will after a pull request bumps a gem, ask the user before installing them. BUNDLE_FROZEN=true bundle _2.4.22_ install installs the gems on this Mac and leaves Gemfile.lock alone.

If the pinned bundler isn't installed for Homebrew Ruby, ask before running PATH="/opt/homebrew/opt/ruby/bin:$PATH" gem install bundler -v 2.4.22.

4. Report and stop

Report each check as passed or failed, with the versions used. The values below are an example from one project; report the ones you found:

Check Result
Ruby /opt/homebrew/opt/ruby/bin/ruby 4.0.x (System Ruby was first on PATH)
Bundler 2.4.22, from BUNDLED WITH
bundle check passed
fastlane (from Gemfile.lock) 2.232.2
fastlane lanes passed, 26 lanes

Then list anything that needs the user's decision, such as missing gems or a bundler version to install. Leave the project's files as they were.


New Setup

Use this when the check prints MODE: NEW SETUP.

Step 1: Install Fastlane

With no Gemfile in the project, install fastlane with Homebrew:

``

Полный SKILL.md на GitHub

Установить setup-fastlane в Claude Code и Claude Desktop

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

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

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

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

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

Bash
Read
Write
Edit
Glob

Вложенные файлы

scripts/env-check.sh

FAQ

Что делает скилл setup-fastlane?

Set up Fastlane for an iOS or macOS app, or check that an existing Fastlane setup still works. Use this whenever a project has a fastlane/Fastfile, Gemfile or Gemfile.lock and the task touches them, even if nobody says "setup". That covers testing a dependency-bot pull request (Dependabot, Renovate) that bumps a gem in Gemfile.lock, any Gemfile or Gemfile.lock change, reinstalling bundler, bundler errors (Bundler::GemNotFound, "extensions are not built", "Could not find 'bundler'"), `bundle exec fastlane` failing, and fastlane that won't load or won't list its lanes. Also use it for a first-time setup that installs fastlane, writes the Appfile and Fastfile, and finds the app's bundle ID and team ID.

Как установить скилл setup-fastlane?

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

Скилл setup-fastlane запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить setup-fastlane с