Token导航 LogoToken导航

Agent Skill · 运维和基础设施

constructive-deployment(建设性部署)

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

constructive-deployment 是运维和基础设施类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在运维和基础设施类的 2,449 个 Skill 里排第 1,776。

总安装 399周安装 16GitHub Stars 公开资料未说明下载 129核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:constructive-deployment(建设性部署)
来源仓库:https://github.com/constructive-io/constructive-skills
仓库路径:skills/constructive-deployment
安装命令:
npx skills add https://github.com/constructive-io/constructive-skills --skill constructive-deployment
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/constructive-io/constructive-skills --skill constructive-deployment

这个 Skill 是做什么的

运维和基础设施类 Skill 处理部署、监控、日志和云资源,多数需要较高的执行权限。

用于本地开发和生产部署 Constructive 平台,涵盖 Docker Compose、数据库迁移等。支持运行服务容器、构建镜像及执行数据库迁移任务。适用于理解 Makefile 目标和整体架构,辅助运维自动化流程。需具备 Docker、Node.js 和 pgpm CLI 环境,区分开发与生产操作风险。

constructive-deployment 属于运维和基础设施类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/constructive-deployment

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/constructive-io/constructive-skills --skill co…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

constructive-deployment 怎么安装?

在终端执行 npx skills add https://github.com/constructive-io/constructive-skills --skill constructive…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

constructive-deployment 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

constructive-deployment 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

constructive-deployment 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

constructive-deployment 用的人多吗?

公开数据是累计安装 399 次,近一周安装 16 次,下载 129 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

constructive-deployment 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理运维和基础设施类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

运维和基础设施类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
brainstorming

头脑风暴 · Codex、Claude

3,148,776173,131操作浏览器MIT通过
copywriting

文案写作 · Codex、Claude

1,996,72425,583需要联网MIT通过
openclaw-secure-linux-cloud

OpenClaw secure linux cloud 命令行 · Codex、Claude

1,853,08840接触敏感数据未明确未通过
xget

xget 命令行 · Codex、Claude

1,799,28040执行命令未明确未通过
requesting-code-review

代码审查请求 · Codex、Claude

1,590,144173,103权限未标注MIT通过
constructive-deployment

建设性部署 · 本页

399—接触敏感数据未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Constructive Deployment

How to deploy the Constructive platform — local development with Docker Compose, database migrations with pgpm, and production container builds.

When to Apply

Use this skill when:

  • Setting up the Constructive monorepo for local development
  • Running Docker Compose services (Postgres, MinIO, API servers)
  • Building the Constructive Docker image
  • Deploying database migrations to local or remote Postgres
  • Understanding the Makefile targets and service architecture

Local Development Setup

Prerequisites

  • Docker and Docker Compose
  • Node.js 22+ with pnpm
  • pgpm CLI (available from the constructive monorepo)

Quick Start

# 1. Start Postgres and MinIO containers
make up
# OR: docker-compose up -d

# 2. Bootstrap database roles (ensure PG env vars are loaded — see pgpm skill, references/env.md)
pgpm admin-users bootstrap --yes

# 3. Deploy all database modules
pgpm deploy --createdb --workspace --all --yes

Stopping

# Stop and remove containers + volumes
make down
# OR: docker-compose down -v

Docker Compose Services

Core Services (docker-compose.yml)

ServiceContainerImagePortPurpose
postgrespostgresghcr.io/constructive-io/docker/postgres-plus:175432PostgreSQL database
miniominiominio/minio9000S3-compatible object storage

Postgres credentials: postgres / password (local dev only)

Application Services (docker-compose.jobs.yml)

ServiceContainerPortPurpose
constructive-admin-serverconstructive-admin-server3002Internal admin GraphQL API (header-based routing)
constructive-serverconstructive-server3000Public GraphQL API (domain-based routing)
send-email-linksend-email-link—Email function (invite, password reset, verification)

Running Application Services

The application services require a built Docker image:

# Build the constructive image
docker-compose -f docker-compose.jobs.yml build

# Start all application services
docker-compose -f docker-compose.jobs.yml up -d

Postgres Images

ImageUse Case
ghcr.io/constructive-io/docker/postgres-plus:17Recommended — includes all extensions needed by constructive
pyramation/postgres:17Lightweight alternative with common extensions

PostgreSQL 17+ is required for security_invoker views. Older images will fail with "unrecognized parameter security_invoker" errors.

Database Deployment

Deploy to Local Database

Prerequisite: Ensure PostgreSQL is running and PG env vars are loaded. See pgpm skill (references/docker.md) and pgpm skill (references/env.md).
pgpm deploy --createdb --workspace --all --yes

Deploy to Remote Database

Point pgpm at a remote Postgres instance via environment variables:

export PGHOST=remote-host.example.com
export PGPORT=5432
export PGUSER=postgres
export PGPASSWORD=secure-password
export PGDATABASE=constructive

pgpm deploy --workspace --all --yes

Verify Deployment

pgpm verify

Revert (Rollback)

# Revert last change
pgpm revert --yes

# Revert to a tagged release
pgpm revert --to @v1.0.0 --yes

# Revert everything
pgpm revert --all --yes

Docker Image Build

The Constructive monorepo builds a multi-stage Docker image:

Build Stages

  1. build stage — Node.js 22, installs pnpm, runs pnpm install --frozen-lockfile and pnpm run build
  2. constructive stage — Runtime image with built artifacts, PostgreSQL client, and CLI shims

CLI Shims

The Docker image exposes three CLI commands:

CommandMaps To
constructivenode /app/packages/cli/dist/index.js
cncnode /app/packages/cli/dist/index.js
pgpmnode /app/pgpm/pgpm/dist/index.js

Building Locally

docker build -t constructive:dev .

Makefile Targets

TargetCommandPurpose
make updocker-compose up -dStart Postgres + MinIO
make downdocker-compose down -vStop and clean up
make sshdocker exec -it postgres /bin/bashShell into Postgres container
make rolespgpm admin-users bootstrap/addBootstrap database roles
make installdocker exec postgres /sql-bin/install.shRun install script in container

Environment Variables

Server Configuration

VariableDescriptionExample
API_IS_PUBLICtrue for public API, false for admin (header-based)true
API_EXPOSED_SCHEMASComma-separated schemas to expose via GraphQLmetaschema_public,services_public
API_ANON_ROLEPostgreSQL role for unauthenticated requestsanonymous
API_ROLE_NAMEPostgreSQL role for authenticated requestsauthenticated
API_ENABLE_SERVICESEnable services schema (admin only)true
API_META_SCHEMASMeta schemas for validation and routingmetaschema_public,services_public
SERVER_HOSTServer bind address0.0.0.0
SERVER_ORIGINCORS origin*
SERVER_TRUST_PROXYTrust reverse proxy headerstrue
SERVER_STRICT_AUTHEnforce strict authenticationfalse

Database Connection

VariableDescriptionDefault
PGHOSTPostgreSQL hostlocalhost
PGPORTPostgreSQL port5432
PGUSERPostgreSQL userpostgres
PGPASSWORDPostgreSQL passwordpassword
PGDATABASETarget database name—

Admin vs Public API

The Constructive platform runs two API servers:

  • Admin server (API_IS_PUBLIC=false, port 3002) — uses header-based routing (X-Api-Name, X-Database-Id, X-Meta-Schema). Used internally by the Constructive admin UI.
  • Public server (API_IS_PUBLIC=true, port 3000) — uses domain-based routing. Serves external client applications.

Networking

All Docker Compose services share the constructive-net network, allowing inter-service communication by container name (e.g., postgres:5432 from within the constructive-server container).

Troubleshooting

IssueCauseFix
Port 5432 in useAnother Postgres instance runningStop it or change the port in docker-compose.yml
security_invoker errorPostgres version < 17Use postgres-plus:17 or pyramation/postgres:17 image
role "authenticated" does not existMissing bootstrapRun pgpm admin-users bootstrap --yes
Container not on networkNetwork mismatchCheck docker network ls for constructive-net
Build fails at pnpm installLockfile mismatchRun pnpm install locally first to update lockfile

平台分布

Codex

33.79%
按下载量换算44

Claude

33.61%
按下载量换算43

Cursor

19.84%
按下载量换算26

Gemini CLI

9.13%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills