← 返回 Skills 市场
emersonbraun

Devops Deploy

作者 Emerson Braun · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
124
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install eb-devops-deploy
功能描述
Deploy applications and set up infrastructure. Use this skill when the user mentions: deploy, CI/CD, Docker, containerize, put this online, GitHub Actions, p...
使用说明 (SKILL.md)

DevOps & Deploy — Ship It and Keep It Running

You are a pragmatic DevOps engineer for solo founders. You set up deployments that are simple to operate, affordable at low scale, and reliable enough that the founder can sleep at night. You don't over-engineer — you automate what matters and skip what doesn't.

Core Principles

  1. Ship fast, automate later — Manual deploy is fine for week 1. Automate by week 4.
  2. Managed services over self-hosted — Don't run your own Postgres unless you have a reason.
  3. One command to deploy — If deployment takes more than one command, it needs a script.
  4. Environments: production + preview — Staging is nice-to-have. Preview deploys per PR are better.
  5. Monitor the basics — Uptime, error rate, response time. Everything else is optional at first.

Platform Selection

Platform Best For Free Tier Cost at Scale
Vercel Next.js, frontend-heavy Generous Can get expensive at scale
Railway Full-stack, databases, workers $5/month credits Predictable usage-based
Fly.io Global distribution, containers Limited Good price/performance
Render Simple apps, static sites Free for static Moderate
AWS (via SST) Maximum control, complex infra 12 months free tier Pay-per-use
Coolify Self-hosted PaaS (own VPS) Free (self-hosted) Just VPS cost

Default recommendation for solo founders: Vercel (frontend) + Railway (backend + DB) or Vercel for full-stack Next.js.

The Deployment Setup

Step 1: Dockerfile (if needed)

FROM node:20-slim AS base
WORKDIR /app

# Install dependencies
COPY package.json package-lock.json ./
RUN npm ci --production

# Copy source
COPY . .
RUN npm run build

# Run
EXPOSE 3000
CMD ["node", "dist/index.js"]

Multi-stage build for smaller images:

FROM node:20-slim AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build

FROM node:20-slim AS runner
WORKDIR /app
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./
EXPOSE 3000
CMD ["node", "dist/index.js"]

Step 2: GitHub Actions CI/CD

# .github/workflows/deploy.yml
name: Deploy

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
          cache: 'npm'
      - run: npm ci
      - run: npm run lint
      - run: npm test

  deploy:
    needs: test
    if: github.ref == 'refs/heads/main'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      # Platform-specific deploy step here

Step 3: Environment Variables

# .env.example (committed to git — template only)
DATABASE_URL=postgresql://user:pass@localhost:5432/mydb
JWT_SECRET=change-me-in-production
STRIPE_SECRET_KEY=sk_test_...
RESEND_API_KEY=re_...

# .env (NEVER committed)
# Copy .env.example and fill in real values

Rules:

  • .env.example in git with placeholder values
  • .env in .gitignore
  • Production secrets in platform's environment settings (never in git)
  • Rotate secrets every 90 days

Step 4: Domain & SSL

Most platforms handle SSL automatically. For custom domains:

  1. Buy domain (Namecheap, Cloudflare, Porkbun)
  2. Point DNS to platform (CNAME or A record)
  3. Enable SSL (automatic on Vercel, Railway, Fly.io)
  4. Force HTTPS redirect

Step 5: Monitoring (The Minimum)

What Tool Free Tier
Uptime BetterUptime, UptimeRobot Yes
Error tracking Sentry 5K events/month
Logs Platform built-in Yes
Analytics PostHog, Plausible PostHog: 1M events/month

Setup: error tracking first (Sentry), uptime second, everything else when you have users.

When to Consult References

  • references/deployment-guides.md — Platform-specific deploy guides (Vercel, Railway, Fly.io, AWS), Docker optimization, database backup strategies, rollback procedures, zero-downtime deployments

Anti-Patterns

  • Don't deploy Friday afternoon — Just don't.
  • Don't skip health checks — Every service needs a /health endpoint.
  • Don't ignore logs — If you're not reading logs, you're flying blind.
  • Don't manual deploy to production — After week 1, automate it.
  • Don't put secrets in Docker images — Use environment variables.
  • Don't skip backups — Automated daily DB backups. Test restoring monthly.
安全使用建议
This appears to be a legitimate deployment guide, but it contains several things to be careful about: - The guide references many secrets (DATABASE_URL, JWT_SECRET, STRIPE keys, and implicit AWS credentials) but the skill does not declare or manage them — be sure you understand which credentials are required and never paste secrets into chat or commit them to git. Use platform environment settings or a secrets manager. - The references instruct installing CLIs with npm -g and piping remote scripts (curl | sh). Do not run remote install scripts without verifying the source and checksum; prefer package manager installs from trusted sources or manual review of the script. - Backup and restore examples use pg_dump and aws s3 cp. Those commands move sensitive data; confirm the target S3 buckets, IAM permissions, and encryption policies before running. Avoid hard-coded bucket names and test restores in a safe environment. - If you want the agent to act (run commands), require explicit confirmation and provide only the minimal, scoped credentials needed (use temporary keys or pre-scoped IAM roles). Consider requesting the skill author to list required env vars and provide safer install alternatives or checksums for remote installers. If the maintainer can supply an explicit list of required credentials, secure install instructions (or checksums), and safer alternatives to piping remote scripts, that would reduce the risk and could change this assessment to benign.
功能分析
Type: OpenClaw Skill Name: eb-devops-deploy Version: 1.0.0 The skill bundle provides standard DevOps deployment templates and best practices for platforms like Vercel, Railway, and Fly.io. The instructions in SKILL.md and references/deployment-guides.md focus on legitimate automation, security-conscious environment variable management, and routine maintenance tasks (like backups and health checks) without any evidence of malicious intent or data exfiltration.
能力标签
cryptocan-make-purchases
能力评估
Purpose & Capability
The name/description (deploy apps, CI/CD, Docker, hosting) align with the SKILL.md and the included platform-specific guides; the instructions and examples are consistent with a DevOps/deploy helper for solo founders.
Instruction Scope
The instructions include commands that perform sensitive operations (pg_dump, aws s3 cp, psql restores), install CLIs (npm i -g, curl | sh install scripts), and reference many secrets (DATABASE_URL, JWT_SECRET, STRIPE_SECRET_KEY, AWS access implicitly). The skill does not declare or constrain those secrets and gives blunt 'run this' install patterns (curl | sh) that increase risk if executed without review.
Install Mechanism
There is no formal install spec, but the guide instructs installing CLIs via npm -g and a remote install script (curl -L https://fly.io/install.sh | sh). Download-and-execute patterns are high-risk unless provenance and checksums are provided; the skill gives no guidance about validating those installs.
Credentials
The skill declares no required environment variables or credentials, yet the documentation repeatedly references many secrets and provider credentials (DATABASE_URL, AWS usage for backups, STRIPE keys, platform logins). That mismatch means the skill could lead users to run sensitive operations without the skill explicitly documenting needed credentials or permissions.
Persistence & Privilege
The skill is instruction-only, has no install script or always:true flag, and does not request persistent presence or modify other skills/config; autonomous invocation is default but not combined with other privilege escalations here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install eb-devops-deploy
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /eb-devops-deploy 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of eb-devops-deploy — a practical deployment skill for solo founders. - Provides clear, opinionated DevOps guidance for common deployment and infrastructure tasks. - Includes platform recommendations (Vercel, Railway, Fly.io, etc.) with pros, cons, and costs. - Offers sample Dockerfiles, GitHub Actions CI/CD pipelines, and .env management practices. - Details best practices for domains, SSL, monitoring, and security essentials. - Highlights anti-patterns and pitfalls to avoid for reliable solo founder deployments.
元数据
Slug eb-devops-deploy
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Devops Deploy 是什么?

Deploy applications and set up infrastructure. Use this skill when the user mentions: deploy, CI/CD, Docker, containerize, put this online, GitHub Actions, p... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 124 次。

如何安装 Devops Deploy?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install eb-devops-deploy」即可一键安装,无需额外配置。

Devops Deploy 是免费的吗?

是的,Devops Deploy 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Devops Deploy 支持哪些平台?

Devops Deploy 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Devops Deploy?

由 Emerson Braun(@emersonbraun)开发并维护,当前版本 v1.0.0。

💬 留言讨论