← ClaudeAtlas

ci-cdlisted

Use when the user asks to create, edit, debug, or optimize CI/CD pipelines, workflow YAML, build/test jobs, deployment automation, matrix builds, caches, permissions, or secrets in GitHub Actions, GitLab CI, CircleCI, Jenkins, or similar systems.
iamtatsuki05/dotfiles · ★ 0 · DevOps & Infrastructure · score 56
Install: claude install-skill iamtatsuki05/dotfiles
# CI/CDスキル CI/CDパイプラインの設計、実装、デバッグ、最適化を効率的に行うためのガイド。 ## 実装前の必須確認 1. **既存のCI/CD設定を確認**: `.github/workflows/`, `.gitlab-ci.yml`, `.circleci/`, `Jenkinsfile` 2. **プロジェクト構成を確認**: 言語、フレームワーク、ビルドツール、テストフレームワーク 3. **デプロイ先を確認**: クラウドプロバイダー、コンテナレジストリ、Kubernetes等 4. **本番影響を確認**: push / pull_request / schedule / workflow_dispatch のどれで動くか、deploy job が本番に触れるか 5. **権限とsecretを確認**: `permissions` は最小権限にし、secret 名は参照だけに留め、値を出力しない 6. **既存workflowの意図を確認**: 無関係な job、branch 条件、cache key、artifact retention を変更しない ## プラットフォーム別クイックスタート ### GitHub Actions ```yaml # .github/workflows/ci.yml name: CI on: push: branches: [main, develop] pull_request: branches: [main] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20' cache: 'npm' - name: Install dependencies run: npm ci - name: Run tests run: npm test - name: Build run: npm run build ``` ### GitLab CI ```yaml # .gitlab-ci.yml stages: - test - build - deploy variables: NODE_VERSION: "20" test: stage: test image: node:${NODE_VERSION} cache: key: ${CI_COMMIT_REF_SLUG} paths: - node_modules/ script: - npm ci - npm test build: stage: build image: node:${NODE_VERSION} script: - npm ci - npm run build artifacts: paths: - dist/ ``` ### CircleCI ```yaml # .circleci/config.yml ve