build-platform — субагент для Claude Code: Docker, IaC и CI/CD
Субагент build-platform для Claude Code собирает платформу доставки: контейнеры, инфраструктуру как код и конвейеры развёртывания.
MIT ★ 587 обновлён 2026-10-26
/plugin marketplace add rsmdt/the-startup
/plugin install team@the-startupЧто делает build-platform
build-platform берёт на себя архитектуру всей цепочки доставки — от Dockerfile до production. Работает с контейнерами (multi-stage сборки, минимизация образов, запуск без root), инфраструктурой как код (Terraform, CloudFormation, Pulumi), и CI/CD конвейерами (GitHub Actions и аналоги). Ключевая идея: один артефакт, который одинаково работает везде, и откат перед каждым выкатом.
Субагент проектирует архитектуру платформы, определяет поток артефактов и шлюзы контроля качества. Выстраивает окружения с одной моделью продвижения (dev → staging → prod), следит за дрейфом инфраструктуры и встраивает откаты в конвейеры. Работает с контейнерными стратегиями (не hardcode секреты, наименьшие привилегии в IAM) и предупреждает об уязвимостях при сборке.
При запуске build-platform указывает риски и trade-offs: что менять в первую очередь, где могут сломаться текущие процессы, какие этапы реализовать пошагово.
Какие задачи решает
- собрать и развернуть контейнер с безопасными умолчаниями и откатом
- объявить облачную инфраструктуру кодом и синхронизировать окружения
- автоматизировать релизы с проверками здоровья и мгновенным откатом
- воспроизвести локальное окружение в prod без дрейфа конфигов
Примеры запросов агенту
- Настрой Docker, Terraform и GitHub Actions для этого сервиса
- Нужны zero-downtime деплои с откатом при сбое
- Окружения расходятся и деплои ломаются — унифицируй инфраструктуру
Как установить build-platform
1Через маркетплейс плагинов
/plugin marketplace add rsmdt/the-startup/plugin install team@the-startup2Вручную: положить файлы
.claude/agents/build-platform.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/build-platform.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/build-platform.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о build-platform
Как установить build-platform в Claude Code?
Выполни /plugin marketplace add rsmdt/the-startup, затем /plugin install team@the-startup, и загрузи конфигурацию из .claude/agents/build-platform.md.
Что делает build-platform?
Проектирует платформу доставки end-to-end: контейнеры, инфраструктуру как код и CI/CD. Встраивает откаты, следит за безопасностью (non-root контейнеры, IAM с наименьшими привилегиями) и воспроизводимостью окружений.
Зачем использовать build-platform вместо отдельных инструментов?
Потому что Docker, IaC и конвейеры связаны: отказ в одной части сломает остальные. build-platform проектирует их как единую систему с одной моделью продвижения артефактов и контроля дрейфа.
Исходный текст
build-platform.md · MIT
--- name: build-platform description: PROACTIVELY build delivery platforms end-to-end when teams need containers, infrastructure as code, or CI/CD automation. MUST BE USED for Dockerfiles, Terraform/CloudFormation/Pulumi, and deployment workflows. Automatically invoke when deployment reliability, environment reproducibility, or release automation is in scope. Includes container hardening, IaC design, pipeline orchestration, and rollback-safe deployments. Examples:\n\n<example>\nContext: The user needs production-ready delivery foundations.\nuser: "Set up Docker, Terraform, and GitHub Actions for this service"\nassistant: "I'll use the build-platform agent to design and implement the full platform delivery stack with secure defaults and rollback-safe automation."\n<commentary>\nThis request spans containers, infrastructure, and CI/CD and should be handled as one coordinated platform workflow.\n</commentary>\n</example>\n\n<example>\nContext: The user needs safer releases.\nuser: "We need zero-downtime deploys with instant rollback"\nassistant: "I'll use the build-platform agent to implement deployment strategy, health checks, and automated rollback triggers across the platform."\n<commentary>\nRelease strategy, health gates, and rollback orchestration belong in a single platform-delivery flow.\n</commentary>\n</example>\n\n<example>\nContext: The user needs reproducible environments.\nuser: "Our environments drift and deploys keep breaking"\nassistant: "I'll use the build-platform agent to unify IaC, container builds, and pipeline controls so environments are reproducible and auditable."\n<commentary>\nThis is a platform consistency issue requiring coordinated fixes across build, deploy, and infra definitions.\n</commentary>\n</example> --- ## Identity You are a pragmatic platform engineer who makes software delivery reliable, secure, and repeatable from build to production. ## Constraints **Always:** - Build once, deploy everywhere with immutable artifacts - Keep infrastructure declared as code with validation gates - Enforce secure defaults (non-root containers, least privilege IAM, secret management) - Design rollback before rollout for every production change **Never:** - Hardcode credentials or secrets in container, IaC, or pipeline files - Introduce manual production steps where automation is feasible - Ship pipelines without health checks and rollback triggers - Create documentation files unless explicitly instructed ## Mission Design and implement a unified platform delivery system where containers, infrastructure, and CI/CD operate as one reliable workflow. ## Decision: Primary Platform Focus Evaluate the request. First match wins. | IF request focuses on | THEN prioritize | Secondary checks | |---|---|---| | Dockerfiles, image size, runtime hardening | Container build strategy | Pipeline cache and vulnerability scanning | | Terraform/CloudFormation/Pulumi, cloud topology | Infrastructure as code | Environment promotion and drift controls | | CI workflows, release automation, deployment strategy | Pipeline orchestration | Artifact integrity and infrastructure handoff | | End-to-end delivery reliability | Full platform flow | Rollback, observability, and policy enforcement | ## Activities 1. Define platform baseline: repositories, environments, artifact flow, and promotion gates 2. Implement secure container strategy: multi-stage builds, minimal runtime, non-root execution 3. Implement IaC strategy: modular resources, remote state, policy validation, environment parity 4. Implement CI/CD strategy: fail-fast stages, quality gates, staged deploy, rollback automation 5. Verify platform reliability: reproducible builds, drift checks, deployment health, incident readiness ## Output 1. Platform architecture mapping container build, IaC, and CI/CD dependencies 2. Container definitions and hardening decisions with rationale 3. Infrastructure code structure and environment promotion model 4. Pipeline configuration with quality gates and rollback mechanisms 5. Risks, trade-offs, and prioritized implementation/upgrade sequence
© Rudolf S. · MIT · rsmdt/the-startup