一键导入
setup-cicd
Sets up GitHub Actions CI/CD, Dockerfile, deployment configuration, and monitoring. Used by DevOps agent after SECURITY_REVIEW passes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Sets up GitHub Actions CI/CD, Dockerfile, deployment configuration, and monitoring. Used by DevOps agent after SECURITY_REVIEW passes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | setup-cicd |
| description | Sets up GitHub Actions CI/CD, Dockerfile, deployment configuration, and monitoring. Used by DevOps agent after SECURITY_REVIEW passes. |
存量项目适配:以下技术规范是全新项目的默认推荐。 若
docs/arch-decision.md或项目已有 CI/CD 配置(如.github/workflows/、vercel.json、Dockerfile、k8s/), 以现有基础设施为准,不得强制引入新的部署平台。
容器 Docker + Docker Compose(开发)
CI/CD GitHub Actions
部署 Vercel(前端)/ Fly.io 或 Railway(后端 Bun)
密钥管理 GitHub Secrets + OIDC(无长期密钥)
监控 Sentry(错误)+ Vercel Analytics / OpenTelemetry
日志 Pino + Axiom 或 Loki
# .github/workflows/ci.yml
name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with: { bun-version: latest }
- run: bun install --frozen-lockfile
- run: npx biome check --reporter=github . # Lint + Format
- run: bun run typecheck # tsc --noEmit
- run: bun test --coverage # Unit tests
- uses: codecov/codecov-action@v4
e2e:
runs-on: ubuntu-latest
needs: quality
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- uses: actions/setup-node@v4
with: { node-version: 20 }
- run: bunx playwright install --with-deps
- run: bun run build
- run: bun run start &
env:
DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }}
BETTER_AUTH_SECRET: ${{ secrets.BETTER_AUTH_SECRET }}
- run: bunx playwright test
- uses: actions/upload-artifact@v4
if: failure()
with: { name: playwright-report, path: playwright-report/ }
security:
runs-on: ubuntu-latest
needs: quality
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- run: bun audit --audit-level=high
- name: Secret scan
uses: trufflesecurity/trufflehog@main
with: { path: ./, only-verified: true }
deploy:
runs-on: ubuntu-latest
needs: [e2e, security]
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Deploy FE to Vercel
uses: amondnet/vercel-action@v25
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
vercel-args: '--prod'
- name: Deploy BE to Fly.io
uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
FROM oven/bun:1-alpine AS base
WORKDIR /app
FROM base AS deps
COPY package.json bun.lockb ./
RUN bun install --frozen-lockfile --production
FROM base AS build
COPY package.json bun.lockb ./
RUN bun install --frozen-lockfile
COPY . .
RUN bun run build
FROM base AS release
COPY --from=deps /app/node_modules ./node_modules
COPY --from=build /app/dist ./dist
COPY --from=build /app/src ./src
ENV NODE_ENV=production
USER bun
EXPOSE 3000/tcp
ENTRYPOINT ["bun", "run", "src/index.ts"]
.env.example)# Database
DATABASE_URL="postgresql://user:password@host:5432/db?sslmode=require"
# Auth
BETTER_AUTH_SECRET="32+ 字符随机字符串"
BETTER_AUTH_URL="https://yourdomain.com"
# OAuth(可选)
GITHUB_CLIENT_ID=""
GITHUB_CLIENT_SECRET=""
# Monitoring
SENTRY_DSN=""
# Frontend
NEXT_PUBLIC_APP_URL="https://yourdomain.com"
// instrumentation.ts(Next.js 15)
import * as Sentry from '@sentry/nextjs'
Sentry.init({
dsn: process.env.SENTRY_DSN,
environment: process.env.NODE_ENV,
tracesSampleRate: process.env.NODE_ENV === 'production' ? 0.1 : 1.0,
})
.env.example 包含所有必需变量/health 配置docs/deploy-plan.mddocs/deploy-plan.md 输出完成后:
→ 通知 Orchestrator 推进到 DEPLOY_PREP(最终部署确认,MANUAL 节点)→ 用户确认后 → DONE
全流程自動模式:從當前狀態一路推進到 DONE,無需人為干預確認。自動推進 MANUAL 節點、派發 Agent、處理失敗回滾,直到項目完成。支持傳入需求描述,自動注入後續流程。
快速修復模式:徹底分析問題後直接寫修復代碼。不走 pipeline,不生成文檔。適用於緊急 bug 修復或小範圍改動。
统一的 Jira 问题处理中心。提供:ensureConnected() 确保连接可用(MCP/curl 双通道 + 多源凭证 + 缓存)、getIssue() 获取完整 ticket 上下文(含图片分析)、writeBack() 回写结果到 Jira。被 autopilot/hotfix/feature 调用,所有 Jira 相关逻辑集中在此。
增量功能模式:等同於 /autopilot feature,跳過 Arch/Design 階段,適合在現有項目上添加新功能。
Universal environment checker. Detects missing tools, services, and configurations BEFORE starting any work phase. Always asks user before installing anything. Used by Designer (Stitch), FE, and BE agents. Modules: A = Stitch MCP (Designer), B = Backend env (BE), C = Frontend env (FE).
Implements backend APIs using Bun, Hono, Drizzle ORM, tRPC v11, better-auth. Load this skill when BE agent needs implementation details.