Token导航 LogoToken导航

Agent Skill · 运维和基础设施

using-bitrise-ci(使用 Bitrise CI)

using-bitrise-ci 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

using-bitrise-ci 是运维和基础设施类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在运维和基础设施类的 2,449 个 Skill 里排第 1,338。

总安装 649周安装 26GitHub Stars 3下载 210核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:using-bitrise-ci(使用 Bitrise CI)
来源仓库:https://github.com/bitrise-io/agent-skills
仓库路径:skills/using-bitrise-ci
安装命令:
npx skills add https://github.com/bitrise-io/agent-skills --skill using-bitrise-ci
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/bitrise-io/agent-skills --skill using-bitrise-ci

这个 Skill 是做什么的

运维和基础设施类 Skill 处理部署、监控、日志和云资源,多数需要较高的执行权限。

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。通过 npx skills add 命令从指定 GitHub 仓库安装使用。

安装前需确认权限范围、维护状态及是否触发联网或文件操作。using-bitrise-ci 属于运维和基础设施类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/using-bitrise-ci

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/bitrise-io/agent-skills --skill using-bitrise-…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

using-bitrise-ci 怎么安装?

在终端执行 npx skills add https://github.com/bitrise-io/agent-skills --skill using-bitrise-ci。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

using-bitrise-ci 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

using-bitrise-ci 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

using-bitrise-ci 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

using-bitrise-ci 用的人多吗?

公开数据是累计安装 649 次,近一周安装 26 次,下载 210 次,GitHub 3 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

using-bitrise-ci 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理运维和基础设施类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

运维和基础设施类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
brainstorming

头脑风暴 · Codex、Claude

3,148,776173,131操作浏览器MIT通过
copywriting

文案写作 · Codex、Claude

1,996,72425,583需要联网MIT通过
openclaw-secure-linux-cloud

OpenClaw secure linux cloud 命令行 · Codex、Claude

1,853,08840接触敏感数据未明确未通过
xget

xget 命令行 · Codex、Claude

1,799,28040执行命令未明确未通过
requesting-code-review

代码审查请求 · Codex、Claude

1,590,144173,103权限未标注MIT通过
using-bitrise-ci

使用 Bitrise CI · 本页

6493接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Using Bitrise CI

Contents

  • Tools (Authentication, MCP, API, CLI)
  • Core concepts
  • Creating projects
  • Working with bitrise.yml (Structure, Components, Docker Containers)
  • Troubleshooting builds

Automated access

Authentication

An access token is required to interact with Bitrise in automated ways (API, MCP etc.). Users can create a personal or workspace access token. It should be stored securely.

MCP server

The Bitrise MCP server is available online at https://github.com/bitrise-io/bitrise-mcp, or it can be run locally. It requires authentication with a token using the Authorization: Bearer {token} header. When the MCP server is available, prefer it to the API or other tools.

API

The Bitrise REST API allows managing various Bitrise resources. The detailed reference is available here. The API requires authentication with a PAT with the Authorization: {PAT} header (without Bearer).

CLI

Bitrise CLI is useful when working on a local environment. It doesn't interact with Bitrise resources, but helps with editing and validating bitrise.yml, and allows running workflows locally. It supports Mac and Linux.

To install, use brew install bitrise or check the Releases page for other options.

Local runs expect bitrise.yml at the root of the working directory, with an optional .bitrise.secrets.yml containing sensitive inputs.

Common commands:

# Output the list of available commands
bitrise help

# Start local workflow editor UI
bitrise :workflow-editor

# Validate bitrise.yml
bitrise validate -c {config_path}

# List available workflows
bitrise workflows

# Run a workflow locally
bitrise run {workflow_id}

Core concepts

Workspaces are the top-level units of organizing projects and their members.

A project is a container for the DevOps process. Projects can contain CI configuration (also called *apps* by some tools) to run builds based on a git repository.

Steps are individual build tasks that can have inputs and outputs to allow configuration and interacting with other steps. Steps can be found in the Step Library.

Step bundles are reusable collections of steps that can be included in multiple workflows to reduce duplication.

Workflows are sequences of steps executed in order on a runner machine. Triggering a workflow starts a build, which produces a log, and optionally downloadable files (artifacts) and/or test results.

Builds run on a virtual machine for a stack (a combination of specific versions of an OS and additional software tools), on the specified machine type that describes the hardware resources requested. Available machine types depend on the selected stack. Use the bitrise:list_available_stacks tool or the /available-stacks API endpoint to get the options.

Pipelines allow creating complex processes from workflows with dependencies, parallel or sequential execution, sharding and sharing files.

Containers (execution and service) allow Steps and Step bundles to run in isolated Docker environments or alongside background Docker services. Linux-only — not supported on macOS stacks.

Environment variables (envs for short) are configuration variables that can be defined on various levels and are passed to components as inputs. See this page for built-in envs available during builds.

Secrets are envs with protected values: they are stored encrypted, and are redacted in build logs.

These components are configured via the bitrise.yml file stored in the git repository or the Bitrise website.

Creating projects

Prerequisites

The source needs to be available as a git repository online. Repository access can be configured via service users or a GitHub App. The user needs to connect with a provider via the UI first.

Workflow

Make sure to surface any errors that occur during the process, don't leave the user with the impression that everything went OK, as critical functionality might be broken.

Use the following checklist:

  • Determine the source repository
  • Determine the workspace to add the project
  • Select a default branch and verify that it exists in the remote repository.
  • Register the app
  • If the repository is private, register SSH keys
  • Finish the app setup
  • Update bitrise.yml. Verify that it is valid first.

Register the app using the bitrise:register_app tool or the /apps/register API endpoint. Unless instructed otherwise, create the project as private.

Registering SSH keys can be done via the bitrise:register_ssh_key tool or the /apps/{app-slug}/register-ssh-key API endpoint. Use the app_slug received from the previous step.

Finish the app setup with the bitrise:finish_bitrise_app tool or the /apps/{app-slug}/finish API endpoint. Specify a project type (default is other) and a stack to run builds on.

Updating bitrise.yml: Upload the contents of bitrise.yml if it is stored on Bitrise (This is the default for newly created apps, /apps/{app-slug}/bitrise.yml/config API request can be used to check for existing apps). Otherwise this step can be skipped as bitrise.yml is version controlled in the source repo.

Detailed documentation is available here.

Adding a project interactively from CLI

If the user prefers so, the bitrise-add-new-project tool can be used. This requires a Bitrise account and a checked out git repository.

Working with bitrise.yml

By default, bitrise.yml is stored on Bitrise servers and not read from the source repository. It is possible to switch to storing it in the repository, allowing version control, reviews etc. This can be done via the /apps/{app-slug}/bitrise.yml/config API endpoint.

Best Practices

  • Always plan first: design the high-level process via workflows, then break them down into steps.
  • Use clear, descriptive names for pipelines, workflows, step bundles and other resources.
  • Use Secret env vars for API keys, tokens, passwords, certificate passphrases. Use regular env vars for app names, bundle IDs, version numbers, feature flags.
  • Store secrets in Bitrise web UI for cloud builds
  • NEVER commit .bitrise.secrets.yml.

Structure

See Schemastore for the JSON schema or this page a complete reference.

  • format_version is a required field describing the configuration schema version (use "25" for latest features)
  • default_step_lib_source is also required, it describes where steps should be loaded from unless specified otherwise. Use https://github.com/bitrise-io/bitrise-steplib.git as value.
  • containers defines Docker execution and service containers available to Steps and Step bundles (Linux only)
  • step_bundles, workflows and pipelines list the entities described above (formatted as a map with ID as key)
  • app can be used to define app-level envs: app: envs: - PROJECT_NAME: MyApp - BUNDLE_ID: com.example.myapp - VERSION: 1.0.0
  • meta block is required for running builds on Bitrise: meta: bitrise.io: stack: linux-docker-android-22.04

Building Workflows

Workflows contain a list of steps with optional configuration and conditions.

  • The most common sequence is get sources -> build -> test -> publish or deploy.
  • To get the sources from a repository, start a workflow with the activate-ssh-key and git-clone steps.
  • Test results are automatically reported from certain built-in steps. For other tools, the custom-test-results-export is needed to convert the results, and deploy-to-bitrise-io to upload them to Bitrise for reporting. Details here.
  • Dependencies can be cached between builds for better performance. Popular package managers have dedicated caching steps, others require manual configuration. Details here.

Example:

format_version: "25"
meta:
  bitrise.io:
    stack: linux-docker-android-22.04
workflows:
  ci:
    steps:
    - activate-ssh-key@4:
        run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
    - git-clone@8: {}
    - restore-cache@2:
        inputs:
        - key: cache-key-{{ .Branch }}
    - android-unit-test@1:
        inputs:
        - project_location: $PROJECT_LOCATION
        - variant: $VARIANT
    - android-build-for-ui-testing@0:
        inputs:
        - variant: $VARIANT
        - module: $MODULE
    - virtual-device-testing-for-android@1:
        inputs:
        - test_type: instrumentation
    - android-lint@0:
        inputs:
        - variant: "$VARIANT"
    - android-build@1:
        inputs:
        - project_location: "$PROJECT_LOCATION"
        - module: "$MODULE"
        - variant: "$VARIANT"
    - deploy-to-bitrise-io@2: {}
    - slack@3:
        inputs:
        - channel: "#build-notifications"
        - webhook_url: "$SLACK_WEBHOOK"
    - save-cache@1:
        inputs:
        - key: cache-key-{{ .Branch }}
    triggers:
      push:
      - branch: '*'
      pull_request:
      - target_branch: 'main'
      - comment:
          regex: '.*trigger (b|B)itrise.*'
Using steps
  • Prefer official steps to other sources. When no dedicated step is available for an action, use script: - script@1: title: Print build info inputs: - content: | echo "Building branch: $BITRISE_GIT_BRANCH"
  • Use the bitrise:step_search tool or the /search-steps endpoint to find steps.
  • When specifying steps, lock to the major version (e.g. git-clone@8), this guards against breaking changes but allows bug fixes. Use the step search tools to verify.
  • Use the bitrise:step_inputs tool or the /step-inputs endpoint to get data about the step inputs.
Conditional Step Execution

Use run_if to control Step execution based on conditions:

- slack@3:
    run_if: .IsBuildFailed
    inputs:
      - webhook_url: $SLACK_WEBHOOK_URL
      - text: "Build failed on ${BITRISE_GIT_BRANCH}"

Available expressions: .IsBuildFailed, .IsCI, .IsPR, {{getenv "VAR" | ne ""}}

Step bundles

When the same sequence of steps appears in multiple workflows, extract them into a step bundle to optimize the workflows. Step bundles can be referenced with the bundle:: prefix, and can be configured with inputs/outputs like steps. It is possible to nest step bundles.

Example:

step_bundles:
  install_deps:
    inputs:
    - cache_key: "npm-cache-{{ checksum "package-lock.json" }}"
    - npm_command: install
    steps:
    - restore-cache@2:
        inputs:
        - key: $cache_key
    - npm@1:
        inputs:
        - command: $npm_command
workflows:
  ci:
    steps:
    - git-clone@8: {}
    - bundle::install_deps:
        inputs:
        - cache_key: "npm-cache"
    - deploy-to-bitrise-io@2: {}

ALWAYS prefer step bundles to the obsolete before_run or after_run constructs when creating new workflows, leave them in existing ones.

Docker Containers

Docker containers let Steps and Step bundles run in isolated Docker environments or alongside background services. Linux-only — not supported on macOS stacks.

Containers are defined at the top level under a containers key and referenced from individual Steps or Step bundles.

Execution containers

Run a Step inside a specific Docker image using type: execution:

containers:
  node-21:
    type: execution
    image: node:21.6
    ports:
      - 3000:3000
    envs:
      - NODE_ENV: ci
    credentials:
      username: $DOCKER_USERNAME
      password: $DOCKER_PASSWORD

Reference from a Step with execution_container (string shorthand, or object form to set options):

workflows:
  ci:
    steps:
      - script@1:
          execution_container: node-21          # string shorthand: reuse existing instance
          inputs:
            - content: node --version
      - script@1:
          execution_container:
            node-21:
              recreate: true                    # object form: discard and start fresh
          inputs:
            - content: node --version

Key behaviors:

  • Closest-wins inheritance: a Step uses its own execution_container definition first, then the parent Step bundle's, then the grandparent's. Only one execution container activates per Step.
  • Usage-side override: when referencing a Step bundle, setting execution_container at the call site overrides the container defined inside the bundle definition. Override priority is: Step-level > bundle call-site > bundle definition. step_bundles: run-tests: execution_container: ruby # bundle definition default steps: - script@1: inputs: - content: bundle exec rspec workflows: ci: steps: - bundle::run-tests: execution_container: ruby-3-3 # call-site overrides the definition
  • File sharing: /bitrise, /root/.bitrise, and /tmp are shared between all containers and the host. Default working directory is /bitrise/src.
  • Container reuse: containers are reused across steps by default; use the object form with recreate: true to force a fresh instance (see example above).
Service containers

Run background Docker services (databases, HTTP servers, etc.) alongside Steps using type: service:

containers:
  postgres:
    type: service
    image: postgres:16
    ports:
      - 5432:5432
    envs:
      - POSTGRES_PASSWORD: $POSTGRES_PASSWORD
    credentials:
      username: $DOCKER_USERNAME
      password: $DOCKER_PASSWORD
      server: us-central1-docker.pkg.dev
    options: >-
      --health-cmd pg_isready
      --health-interval 10s

Reference from a Step with service_containers (mix of string shorthand and object form):

workflows:
  ci:
    steps:
      - script@1:
          service_containers:
            - postgres:
                recreate: true    # object form: discard and start fresh
            - redis               # string shorthand: reuse existing instance

Key behaviors:

  • Additive inheritance: service containers accumulate from all ancestor Step bundle levels — unlike execution containers, they are not overridden by the nearest parent.
  • Usage-side override: setting service_containers at the bundle call-site overrides the service containers defined inside the bundle definition.
  • Networking: all service containers share a bitrise Docker network.

- When the Step uses an execution container: access services by container ID as hostname (e.g., http://postgres:5432). - When the Step runs directly on the host: access services via localhost (e.g., http://localhost:5432).

Credentials

Store Docker registry credentials as Secrets and reference them in the credentials block (username, password, and optionally server for non-Docker Hub registries).

Unsupported options

The --network, --volume (-v), and --entrypoint Docker options are not supported in the options field.

Legacy with: group

An older syntax uses a with: block inside the steps list, with container (string) and services (list of strings) properties. Do not use this for new configurations — it cannot be mixed with the step-based execution_container/service_containers syntax in the same bitrise.yml.

Building custom Docker images

Use the docker-build-push step to build and push a custom image during a workflow, which can then be referenced as a container image in subsequent builds.

Building pipelines

Design multi-workflow processes with dependencies, parallelism, sharding and artifact sharing. See pipelines.md for full details.

ALWAYS prefer using explicit dependencies with depends_on when creating new pipelines. Use stages only when editing an existing pipeline that already contains them.

Triggers

Workflows and pipelines can specify conditions for events from the source repository that should start builds.

Triggers can be set on each pipeline or workflow. Multiple triggers can be added, and each can specify multiple conditions. All pipelines/workflows that have a matching trigger item will be started.

Examples:

workflows:
  workflow-tests:
    triggers:
      push:
      # Exact match
      - branch: "release"
pipelines:
  pipeline-build:
    workflows: {}
    triggers:
      push:
      # Using a wildcard
      - branch: "*"
      # Multiple conditions
      - branch: release
        changed_files: path/to/library-a/.*
      tag:
      # Regex
      - name:
          regex: '^\d\.\d\.\d$'
Legacy format

The top-level trigger_map tag contains an ordered list of items. For an incoming event, the first matching item will start a build with the specified pipeline/workflow. ALWAYS prefer the new format when creating a new bitrise.yml file, only use trigger_map when already present.

Modular YAML

On enterprise plans, it is possible to split bitrise.yml into multiple files to reflect organizational or code structure, and to reduce conflicts. See details here.

Example:

format_version: "25"
include:
  - _workflows/shared.yml
  - _workflows/ios.yml
  - _workflows/android.yml

Verifying results

Use this workflow:

  1. Validate the YML file(s). For large files, use the CLI if installed, or the API by streaming the file into cURL.
  • bitrise validate -c bitrise.yml
  • bitrise:validate_bitrise_yml MCP tool
  • /validate-bitrise-yml API endpoint
  1. If validation fails:

- Review error messages carefully - Fix the issues - Run validation again

  1. Only proceed when validation passes
  2. Test locally if possible: bitrise run {workflow_id}

Troubleshooting builds

  1. Check the build logs.
  2. Identify failing steps (there can be multiple) and find errors in their output.
  3. Determine whether the failure was because of a problem with the configuration (invalid stack, incorrect order etc.) or the source (tests, linting etc.)
  4. If it's a configuration issue: don't remove failing steps. Verify that the right step is used and fix its configuration. Ask clarifying questions if necessary. In general, do not edit or remove unrelated parts of the configuration.

Useful Links

平台分布

Codex

37.57%
按下载量换算79

Claude

28.28%
按下载量换算59

Cursor

18.55%
按下载量换算39

Gemini CLI

9.37%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills