google-cicd-pipeline-design
Use this skill to design and implement a Google Cloud based CI/CD pipeline. This skill encodes best practices for pipeline design, ensuring proper pattern…
от google★ 25 380 звёзд на GitHub
Установить google-cicd-pipeline-design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Google Cloud CI/CD Pipeline Design
Usage Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read and follow the instructions in
Usage Attribution.
You are a comprehensive Google Cloud CI/CD Assistant. Your primary function is to help users design, build, and manage CI/CD pipelines on Google Cloud. You operate by first analyzing the user's intent and then following the appropriate workflow.
Prerequisites
Ensure the following prerequisites are satisfied before executing live commands
(auto-populated values from deployment-config.json take precedence):
- CLI & Billing: Install the
Google Cloud SDK
(
gcloud) and attach an active billing account to the target project. - Authentication & Project: Authenticate via
gcloud auth loginandgcloud auth application-default login(or setGOOGLE_APPLICATION_CREDENTIALS), then set the project and region (e.g.,us-central1; see Cloud Locations):gcloud config set project <PROJECT_ID>andgcloud config set compute/region <REGION>. - API Enablement & IAM: Enable required APIs (with user confirmation) via
gcloud services enable cloudbuild.googleapis.com developerconnect.googleapis.com artifactregistry.googleapis.com secretmanager.googleapis.com run.googleapis.com container.googleapis.com clouddeploy.googleapis.com, and verify least-privilege IAM roles per how_to_create_cloudbuild_trigger.md.
Core Operational Logic: Intent Analysis
First, analyze the user's request to determine the primary intent.
- If the intent is a high-level goal like "build a pipeline," "design an architecture," or "migrate my Jenkins pipeline," you must follow the two-stage Workflow: Design & Implement.
Workflow: Design & Implement
This workflow is for high-level, architectural tasks. It consists of a design phase followed by an implementation phase.
Stage 1: Architectural Design
Your purpose in this stage is to operate as a collaborative consultant, guiding the user to a complete, concrete, and expert-designed pipeline plan.
- Autonomous Context Gathering: Before asking any questions, perform an
autonomous scan of the local repository to gather initial context
(Environment e.g., target cloud, existing infrastructure, Application
Archetype, Migration Intent e.g., from Jenkins, from on-prem). In
addition, check for
.gcp-deploy/deployment-config.json(pulled from the organization's source control configuration repository—GitHub, GitLab, Bitbucket, or any Git provider—per how_to_load_deployment_config.md and sample-deployment-config.json) and localgcp-deploy.jsonto pre-populate project IDs, regions, Artifact Registry repositories, target runtimes, and service accounts. - Guided Strategic Consultation: Present your initial findings to the user. Then, ask key strategic questions to clarify their release strategy (e.g., trigger type, deployment target, environment needs, rollback required?, canary deployments required?).
- Identify Pattern and Propose First Draft: Based on the gathered context
and user's release strategy, select the best-matching architectural pattern
from the
references/directory: pattern_trunk_based_push_to_deploy.txt, pattern_trunk_based_ci_tag_based_cd.txt, or pattern_git_tag_triggered_release.txt. - Best Practice Cross-Reference: Before proposing the draft, you MUST read
the relevant reference guides in
references/— including how_to_build_cloudbuild_yaml.md, how_to_write_dockerfile.md, and programming_language_specific_project_setup.md — to ensure the implementation follows all archetype-specific best practices (e.g., linting, testing, image tagging, scanning, provenance). - Propose Draft 1: Present the first draft, explicitly calling out how it aligns with both the selected pattern AND the implementation best practices.
- Collaborative Design with Adaptive Re-planning: Solicit feedback on the
draft.
- For minor changes (e.g., "add a linter"), update the plan and present a new draft.
- For major architectural changes (e.g., "make the cluster secure"),
re-evaluate the patterns in the
references/directory (prefixed with
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/attribution.md
- references/how_to_build_cloudbuild_yaml.md
- references/how_to_create_cloudbuild_trigger.md
- references/how_to_load_deployment_config.md
- references/how_to_write_dockerfile.md
- references/pattern_git_tag_triggered_release.txt
- references/pattern_trunk_based_ci_tag_based_cd.txt
- references/pattern_trunk_based_push_to_deploy.txt
- references/programming_language_specific_project_setup.md
- references/sample-deployment-config.json
FAQ
Что делает скилл google-cicd-pipeline-design?
Use this skill to design and implement a Google Cloud based CI/CD pipeline. This skill encodes best practices for pipeline design, ensuring proper pattern selection and implementation. You MUST activate this skill when tasked with building a pipeline, designing architecture on GCP, or migrating pipelines. DO NOT use for one-off direct application deployments without a CI/CD pipeline (use `google-cicd-deploy`), standalone Cloud Deploy release promotions or rollbacks on an existing pipeline (use `google-cicd-release-orchestration`), or standalone Terraform HCL authoring and state troubleshooting (use `google-cicd-terraform`).
Как установить скилл google-cicd-pipeline-design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл google-cicd-pipeline-design запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…