本文へ移動
cccskills
無料GitHub で公開

bex-blueprints

Authors and validates render.yaml Blueprints for bex infrastructure. Use when the user needs to write or edit a render.yaml, wire services together with fromDatabase/fromService/fromGroup, set up projects and environments for multi-service apps, configure preview environments, validate against the schema, or fix immutable field errors. Trigger terms: render.yaml, Blueprint, IaC, fromDatabase, fromService, envVarGroups, previews, projects, environments.

日本語の概要は準備中です。原文の説明を表示しています。

bex-co/bexスター 577(GitHub 577 + cccskills 0)
連携ツールDockerPostgreSQL

実行スコア 未検証

インストール方法を見る

含まれるファイル(11)

  • SKILL.md13.3 KB
  • references/blueprints.md2.8 KB
  • references/common-mistakes.md4.5 KB
  • references/compute-plans.md2.3 KB
  • references/environment-variables.md4.5 KB
  • references/field-reference.md8.7 KB
  • references/persistent-disks.md3.7 KB
  • references/preview-environments.md4.8 KB
  • references/private-networking.md4.3 KB
  • references/service-types.md4.6 KB
  • references/wiring-patterns.md3.7 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

bex Blueprints (render.yaml)

Blueprints define bex infrastructure as YAML (commonly render.yaml at the repo root). This skill focuses on authoring, wiring, projects/environments, previews, validation, and immutable fields. Heavy detail lives under references/.

Before creating or modifying a Blueprint, read references/blueprints.md for the current specification-fetch, validation, repository-sync, and safety workflow.

For current compute-plan terminology, Plan IDs, and availability, use references/compute-plans.md instead of relying on plan catalogs embedded in examples.

Before adding or changing a service-attached disk, read references/persistent-disks.md for current architectural constraints and configuration workflow.

Before wiring private-network addresses, ports, or discovery hostnames, read references/private-networking.md.

Before choosing a service type or translating its Dashboard name to Blueprint structure, read references/service-types.md.

When to Use

Apply this skill when the user:

  • Creates or edits a render.yaml / Blueprint
  • Wires databases, private services, or Key Value into app env vars
  • Groups services with projects and environments
  • Configures preview environments for pull requests
  • Validates YAML against bex’s schema or CLI
  • Asks what can or cannot change after a resource is created

For end-to-end deploy flows and MCP/CLI operations, see bex-deploy. For env var strategy outside Blueprint syntax, see bex-env-vars. For Docker-specific Blueprint fields, see bex-docker.

Blueprint Structure

Top-level keys

KeyPurpose
servicesWeb, worker, cron, private service, Key Value, static (via web + runtime: static)
databasesManaged PostgreSQL instances
envVarGroupsReusable env var sets attached to services
projectsOptional grouping; contains environments and service lists
previewsDefaults for PR preview environments

A Blueprint may also use patterns like ungrouped resources vs environment-scoped lists, depending on whether you adopt the projects model. See references/common-mistakes.md for duplication and naming pitfalls.

Minimal example: web + PostgreSQL

databases:
  - name: mydb
    plan: basic-256mb
    region: oregon

services:
  - type: web
    name: api
    runtime: node
    region: oregon
    plan: starter
    buildCommand: npm ci && npm run build
    startCommand: npm start
    envVars:
      - key: DATABASE_URL
        fromDatabase:
          name: mydb
          property: connectionString

Service Types

typeRole
webPublic HTTP service (use runtime: static for static sites)
pservPrivate service (internal HTTP/TCP; not public)
workerLong-running background process
cronScheduled job (schedule required)
keyvalueManaged Key Value (Redis-compatible); alias redis accepted in Blueprints

Runtimes

Common runtime values: node, python, go, ruby, rust, elixir, docker, image, static.

  • docker: Build from Dockerfile (see dockerfilePath, dockerContext, dockerCommand).
  • image: Run a prebuilt container image with image.url and optional image.creds.fromRegistryCreds.
  • static: Static site; requires staticPublishPath and build output paths (see references).

Cross-Service Wiring

Before configuring variables, secrets, secret files, or environment groups, read references/environment-variables.md.

Service env vars under envVars can pull values from other resources instead of hardcoding secrets. Environment-group variables cannot reference services, databases, or other environment groups.

fromDatabase

Reference a database in databases: by name. Properties include:

  • connectionString, connectionPoolString, host, port, user, password, database

fromService

Reference a service by name. Typical properties:

  • host, port, hostport, connectionString, envVarKey

Which properties are valid depends on target service type (e.g. Key Value vs pserv). See references/wiring-patterns.md.

fromGroup

Attach shared vars from envVarGroups (by group name).

Full patterns and combinations: references/wiring-patterns.md.

Projects and Environments

For multi-service apps, use the projects/environments pattern instead of flat top-level services/databases. This groups all related resources into a single bex project, supports multiple environments (production, staging), and enables environment-scoped configuration.

projects:
  - name: my-app
    environments:
      - name: production
        services:
          - type: web
            name: api
            runtime: node
            plan: standard
            buildCommand: npm ci && npm run build
            startCommand: npm start
            envVars:
              - key: DATABASE_URL
                fromDatabase:
                  name: db
                  property: connectionString
              - key: REDIS_URL
                fromService:
                  type: keyvalue
                  name: cache
                  property: connectionString
              - key: API_SECRET
                sync: false

          - type: worker
            name: jobs
            runtime: node
            plan: starter
            buildCommand: npm ci
            startCommand: node worker.js
            envVars:
              - key: DATABASE_URL
                fromDatabase:
                  name: db
                  property: connectionString
              - key: REDIS_URL
                fromService:
                  type: keyvalue
                  name: cache
                  property: connectionString

          - type: keyvalue
            name: cache
            plan: starter
            maxmemoryPolicy: noeviction
            ipAllowList: [] # Internal access only

        databases:
          - name: db
            plan: basic-256mb

Key rules:

  • Each environment owns its services and databases lists.
  • Do not define the same resource at both the root level and inside an environment.
  • envVarGroups can be scoped to a project environment or shared across the workspace.
  • With a Pro workspace or higher, environment isolation can block cross-environment private network traffic.

For single-service apps, flat top-level services/databases is fine. Reach for the projects pattern when you have multiple services, need staging/production separation, or want environment-scoped env groups.

Preview Environments

When a preview request is underspecified, first establish the desired generation mode, retention period, preview compute plans, and whether the user expects to exclude any resources.

Top-level previews controls Blueprint preview environments:

  • previews.generation: off (default), manual, or automatic
  • previews.expireAfterDays: Auto-delete preview stacks after N days

Do not confuse preview environments with service previews:

  • A top-level previews.generation: automatic creates the Blueprint's preview environment, including the resources declared by that Blueprint.
  • A service-level previews.generation controls that service's independent service previews. It does not override the Blueprint preview environment or exclude that service from it. It accepts only manual or automatic; omit it to disable independent service previews.
  • Use previews.plan and previews.numInstances on compute services to size their preview-environment instances. Key Value and Postgres use previewPlan instead.

If a user needs a worker or another resource omitted entirely from Blueprint preview environments, explain that service-level preview generation is not an exclusion mechanism; the Blueprint or application architecture must account for that requirement. Other limitations include autoscaling behavior, sync: false variables, and database plan compatibility—see references/preview-environments.md.

Immutable Fields

CRITICAL: Some fields cannot change after the resource is created. Edits may be rejected or require replacement resources.

Services

  • type: Cannot change (e.g. web → worker).
  • runtime: Cannot change (e.g. node → docker).

Databases

Cannot change after creation:

  • name (logical Blueprint/database identifier in this context)
  • databaseName
  • user
  • region
  • postgresMajorVersion

Plan other fields (disk, HA, replicas) carefully up front; consult bex docs for fields that can scale vs require recreation.

Key Fields (Quick Map)

AreaFields
Plansplan; compute-service previews.plan; Key Value/Postgres previewPlan
Build/runbuildCommand, startCommand, preDeployCommand, rootDir
DeployautoDeployTrigger: commit, checksPass, or off
LifecyclemaxShutdownDelaySeconds: 1–300, default 30
HTTPhealthCheckPath, domains
Storagedisk (name, mountPath, sizeGB)
Scalescaling / numInstances (see references)
MonorepobuildFilter (paths, ignoredPaths)
DockerdockerfilePath, dockerContext, dockerCommand, registryCredential; prebuilt image.url / image.creds

Deprecated names to avoid: env (use runtime), redis (use keyvalue), autoDeploy (use autoDeployTrigger), previewsEnabled, and pullRequestPreviewsEnabled. Use the appropriate top-level or service-level previews.generation replacement described in references/common-mistakes.md.

References

DocumentContents
references/blueprints.mdCurrent Blueprint specification, schema, validation, repository-sync, and safety workflow
references/compute-plans.mdCurrent compute-plan terminology, Plan ID discovery, availability, and change behavior
references/environment-variables.mdCurrent environment-variable documentation, secrets, groups, platform variables, and mutation safety
references/persistent-disks.mdService-attached disk constraints, current documentation, sizing, snapshots, and Blueprint workflow
references/private-networking.mdPrivate-network scope, addresses, Blueprint references, discovery, ports, and isolation
references/service-types.mdService-type selection, execution models, and Blueprint naming
references/field-reference.mdYAML fields by service type, database, groups, projects, previews, scaling, disk, static, Key Value
references/wiring-patterns.mdfromDatabase / fromService / fromGroup examples and combined wiring patterns
references/common-mistakes.mdBranch + previews, buildFilter, replicas, duplicates, preview plans, wiring mistakes
references/preview-environments.mdpreviews.generation, expiry, previews.plan, previewPlan, disks, PR workflow

Related Skills

  • bex-deploy — Deploy flows, Blueprint vs direct create, MCP/deeplinks
  • bex-env-vars — Env var strategy, secrets, Dashboard vs Blueprint
  • bex-docker — Dockerfile-backed services and image runtime nuances
<!-- shared:documentation-retrieval -->

Current documentation retrieval

bex implements Render's documented platform behavior, so this skill links Render's documentation as the reference for how a feature behaves, and bex's own documentation (https://bex.co/docs) for its CLI and MCP server. Read Render's pages for behavior only: operate through bex (bex CLI, https://api.bex.co/mcp, https://dashboard.bex.co), never through the Render CLI, MCP server or dashboard those pages mention. Where bex's behavior differs, bex's documentation wins.

Whenever this skill directs you to consult current documentation:

  1. Retrieve the linked Markdown document directly with an available URL-fetching tool or HTTP client, such as curl. Do not substitute web-search summaries for the document.
  2. Confirm that retrieval succeeded and returned the expected document, then read its contents. Saving a file or printing its path is not sufficient.
  3. If the request fails or your tool cannot read the Markdown response, open and read the linked HTML version instead.
  4. If neither version can be retrieved, disclose that the current reference is unavailable and follow any topic-specific fallback in the skill. Use bundled guidance only for stable constraints, and do not guess at changeable platform details.

When a task requires multiple references, apply this workflow to each one and distinguish the documents you verified from those that remain unavailable.

<!-- /shared:documentation-retrieval -->

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Sets up and configures background workers on bex for queue-based job processing. Use when the user needs to process async jobs, consume from a queue, run Celery/Sidekiq/BullMQ/Asynq/Oban workers, handle graceful shutdown with SIGTERM, wire a worker to Key Value, or choose between workers and cron jobs for background work. Trigger terms: background worker, async jobs, queue consumer, Celery, Sidekiq, BullMQ, Asynq, Oban, job processing, SIGTERM, graceful shutdown.

日本語の概要は準備中です。原文の説明を表示しています。

bex-co/bex5772026年10月29日 更新

bex-cli

無料

Installs and uses the bex CLI for deploys, logs, SSH, psql, Blueprint validation, and automation. Use when the user needs to run bex CLI commands, script deploys in CI/CD, authenticate with an API key, query services non-interactively, or troubleshoot CLI auth issues. Trigger terms: bex CLI, bex login, bex deploys, bex logs, bex ssh, bex psql, bex blueprints validate, bex skills, BEX_ACCESS_TOKEN, non-interactive, CI/CD deploy.

日本語の概要は準備中です。原文の説明を表示しています。

bex-co/bex5772026年10月29日 更新

Configures and troubleshoots scheduled tasks on bex using cron job services. Use when the user needs to run something on a schedule, write a cron expression, set up a periodic job, migrate from Heroku Scheduler, choose between cron jobs and background workers, or fix a cron that isn't firing. Trigger terms: cron job, scheduled task, periodic job, cron expression, schedule, run every, timer, Heroku Scheduler migration.

日本語の概要は準備中です。原文の説明を表示しています。

bex-co/bex5772026年10月29日 更新

bex-debug

無料

Debug failed bex deployments by analyzing logs, metrics, and database state. Identifies errors (missing env vars, port binding, OOM, etc.) and suggests fixes. Use when deployments fail, services won't start, or users mention errors, logs, or debugging.

日本語の概要は準備中です。原文の説明を表示しています。

bex-co/bex5772026年10月29日 更新

Deploy applications to bex by analyzing codebases, generating render.yaml Blueprints, and providing Dashboard deeplinks. Use when the user wants to deploy, host, publish, or set up their application on bex's cloud platform.

日本語の概要は準備中です。原文の説明を表示しています。

bex-co/bex5772026年10月29日 更新

bex-disks

無料

Attaches and manages persistent disks on bex services—mount paths, sizing, snapshots, file transfers, and single-instance constraints. Use when the user needs persistent storage, file uploads, a custom database on disk, CMS media storage, or needs to understand why their service can't scale horizontally or use zero-downtime deploys. Trigger terms: persistent disk, disk, storage, mount path, sizeGB, SSD, file uploads, snapshots, disk restore, ephemeral filesystem.

日本語の概要は準備中です。原文の説明を表示しています。

bex-co/bex5772026年10月29日 更新

bex-co のスキルをすべて見る

このスキルの問題を報告する