Command Palette

Search for a command to run...

Назад к скиллам
скилл № 33079

circleci

Use when the user asks about CircleCI, .circleci/config.yml, orbs, executors, workflows, contexts, save_cache/restore_cache, test splitting, parallelism…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить circleci в Claude Code и Claude Desktop

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

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

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

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

CircleCI

Purpose

Define CI/CD pipelines using CircleCI configuration with workflows, jobs, orbs, caching strategies, and parallel execution for fast, reliable builds.

Agent Protocol

Trigger

"CircleCI", "circleci config", "orb", "executors", "CircleCI runner", "test splitting", "dynamic config".

Input Context

Languages, test suite duration, executor needs (Docker, machine, macOS, Arm), contexts/secrets, monorepo layout.

Output Artifact

.circleci/config.yml and orb usage. No file unless requested.

Response Format

Executor: {docker|machine|macos|windows|self-hosted runner}
Workflow: {jobs and dependencies}
Caching: {cache key template}
Parallelism: {test splitting by timings}
Config: {.circleci/config.yml snippet}

Architecture Decision Trees

Executor Selection

Executor Speed Best For Limitations
Docker Fast (<30s start) Standard builds Container-only, limited to Docker
Machine Slow (~60s start) Docker-in-Docker, full VM More expensive, fewer concurrent jobs
macOS Slow iOS/macOS builds Apple-only, limited parallelism
Windows Moderate .NET, Windows-specific Limited images, slower startup
GPU (Linux) Fast ML/DL training Expensive, limited availability

Caching Strategy

Strategy Save Key Restore Keys Use Case
Lockfile hash v1-deps-{{ checksum "package-lock.json" }} v1-deps- Node.js, Go, Rust
Multiple deps v1-deps-{{ arch }}-{{ .Branch }}-{{ checksum "..." }} v1-deps-{{ arch }}- Cross-platform, multiple deps
Fallback chain v1-{{ .Branch }}-{{ .Revision }} v1-{{ .Branch }}-, v1-master- Caching across branches
No-cache clean Skip cache None Clean builds after dependency changes

Test Splitting Methods

Method Command Best For
Timing-based circleci tests split --split-by=timings Uneven tests, rebalance over runs
Name-based circleci tests split --split-by=name Equal test distribution
File-size circleci tests split --split-by=filesize Integration tests with different sizes
Custom Manual glob + assignment Specific test grouping requirements

Workflow Triggers

Trigger Type When to Use Configuration
Push to branch Default CI on: [push]
Pull request Review validation on: [pull_request]
Schedule Nightly, weekly, monthly triggers: - schedule: {cron: "0 2 * * *"}
Manual approval Production deploy type: approval in workflow
Pipeline parameter Conditional triggers parameters: [deploy: {type: boolean}]

Quick Start

config.yml with default Docker executor → checkout → restore_cache → install deps → run tests → save_cache → store_artifacts → workflow with lint-test-deploy stages.

Core Workflow

Step 1: Standard Configuration

# .circleci/config.yml
version: 2.1

orbs:
  node: circleci/[email protected]
  aws-cli: circleci/[email protected]
  slack: circleci/[email protected]

parameters:
  deploy-prod:
    type: boolean
    default: false

executors:
  node-executor:
    docker:
      - image: cimg/node:22.0
    resource_class: medium
  machine-executor:
    machine:
      image: ubuntu-2204:current
    resource_class: medium

commands:
  setup-dependencies:
    steps:
      - node/install-packages:
          pkg-manager: npm
      - run:
          name: Verify dependencies
          command: |
            npm audit --audit-level=high
            npx license-checker --summary
  build-app:
    steps:
      - run: npm run build
      - persist_to_workspace:
          root: .
          paths:
            - dist/
            - node_modules/

jobs:
  lint:
    executor: node-executor
    steps:
      - checkout
      - setup-dependencies
      - run: npm run lint

  test:
    executor: node-executor
    parallelism: 4
    steps:
      - checkout
      - setup-dependencies
      - run:
          name: Run tests with splitting
          command: |
            circleci tests glob "tests/**/*.test.ts" | \
              circleci tests run --command="xargs npx jest --ci --runInBand" \
              --split-by=timings
      - store_test_results:
          path: test-results/
      - store_artifacts:
          path: test-results/
          destination: test-reports

  build:
    executor: machine-executor
    steps:
      - checkout
      - setup-dependencies
      - build-app
      - run:
          name: Build Docker image
          command: |
            docker build -t myapp:$CIRCLE_SHA1 .
            echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
            docker push myapp:$CIRCLE_SHA1
      - store_artifacts:
          path: dist/
          destination: build-output

  deploy-staging:
    executor: machine-executor
    steps:
      - attach_workspace:
          at: .
      - aws-cli/setup:
          aws-access-key-id: AWS_ACCESS_KEY_ID
          aws-secret-access-key:
Полный SKILL.md на GitHub

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

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

Без ограничений — скилл может использовать любой инструмент.

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

  • references/circleci-advanced.md
  • references/circleci-fundamentals.md
  • references/config-structure.md
  • references/context-environment.md
  • references/kubernetes-integration.md
  • references/orb-ecosystem.md

FAQ

Что делает скилл circleci?

Use when the user asks about CircleCI, .circleci/config.yml, orbs, executors, workflows, contexts, save_cache/restore_cache, test splitting, parallelism, self-hosted runners, or SSH debug. Produces CircleCI configs. Not for GitHub Actions (use github-actions) or GitLab CI (use devops-gitlab-ci).

Как установить скилл circleci?

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

Скилл circleci запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить circleci с