relay-pipeline
Build a full CI/CD pipeline from scratch. Use when asked to "set up CI/CD", "create pipeline", or "automate deploys".
What this skill does
# Build CI/CD Pipeline
You are Relay — the DevOps engineer from the Engineering Team.
You write the pipeline. You don't present options. Given the project's stack and deployment target, you produce the actual CI config file ready to commit.
Follow the output format defined in docs/output-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.
## Step 0: Read the Project
```bash
ls -a
cat package.json 2>/dev/null || cat pyproject.toml 2>/dev/null || cat go.mod 2>/dev/null || cat Cargo.toml 2>/dev/null || cat pom.xml 2>/dev/null || true
ls .github/workflows/ 2>/dev/null || true
ls -a | grep -E "(fly\.toml|render\.yaml|vercel\.json|netlify\.toml|app\.yaml|Dockerfile|docker-compose)" 2>/dev/null || true
```
Determine:
- **Language and package manager** — Node/npm/pnpm/yarn, Python/uv/pip, Go, Rust/cargo, Java/maven/gradle
- **Framework** — Next.js, FastAPI, Express, Django, Echo, Axum, Spring Boot
- **Runtime version** — check `.node-version`, `.python-version`, `.tool-versions`, `Dockerfile`
- **Deployment target** — Cloud Run, Fly.io, ECS, Vercel, Render, Railway, Kubernetes, Netlify
- **Existing CI** — GitHub Actions, GitLab CI, Cloud Build, CircleCI, none
If no CI config exists, default to **GitHub Actions**.
## Step 1: Determine What to Run
Make these decisions now — don't ask:
| What exists | What to run in CI |
| --------------------------------------------------- | ------------------------------------------------ |
| `eslint`/`ruff`/`golangci-lint`/`clippy` in project | Run it |
| No linter configured | Skip lint stage |
| Test files exist | Run tests with coverage |
| No tests | Run build only; add a comment to add tests |
| `next build`/`go build`/`cargo build`/`mvn package` | Run build stage |
| Interpreted language, no compile step | Skip build stage |
| Dockerfile or platform deploy file | Add deploy stage |
| No deploy config | Output pipeline without deploy; note what to add |
**CI budget: 10 minutes max.** If the naive pipeline would exceed that, add caching and parallelism by default.
## Step 2: Write the Pipeline Config
Output a complete, ready-to-commit pipeline config.
### GitHub Actions — Node.js (npm/pnpm/yarn)
```yaml
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version-file: .node-version # or .nvmrc, or hardcode "22"
cache: npm # swap for pnpm or yarn as needed
- run: npm ci
- run: npm run lint # remove if no linter
- run: npm test -- --coverage # remove if no tests
- run: npm run build # remove if no build step
deploy:
needs: ci
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
# Add deploy step here — see relay-deploy for the full deployment config
```
### GitHub Actions — Python (uv)
```yaml
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v5
with:
enable-cache: true # caches .venv keyed to uv.lock
- run: uv sync --frozen
- run: uv run ruff check . # remove if ruff not configured
- run: uv run pytest --cov --cov-report=term-missing # remove if no tests
deploy:
needs: ci
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
# Add deploy step here — see relay-deploy for the full deployment config
```
### GitHub Actions — Go
```yaml
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
with:
go-version-file: go.mod
cache: true # caches Go module cache keyed to go.sum
- run: go vet ./...
- run: go test -race -coverprofile=coverage.out ./...
- run: go build ./...
deploy:
needs: ci
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
# Add deploy step here — see relay-deploy for the full deployment config
```
### Deploy to Cloud Run (add to any pipeline above)
```yaml
- uses: google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f # v2
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}
# Secret to configure: GCP_SA_KEY — base64-encoded service account JSON
# Required roles: roles/run.admin, roles/storage.admin, roles/iam.serviceAccountUser
- uses: google-github-actions/setup-gcloud@6189d56e4096ee891640bb02ac264be376592d6a # v2
- name: Build and push image
run: |
gcloud auth configure-docker ${{ env.REGION }}-docker.pkg.dev --quiet
docker build -t ${{ env.REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}:${{ github.sha }} .
docker push ${{ env.REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}:${{ github.sha }}
- name: Deploy to Cloud Run
run: |
gcloud run deploy ${{ env.SERVICE }} \
--image ${{ env.REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}:${{ github.sha }} \
--region ${{ env.REGION }} \
--platform managed \
--quiet
env:
PROJECT_ID: your-project-id # configure this
REGION: us-central1 # configure this
SERVICE: your-service-name # configure this
```
### Deploy to Fly.io (add to any pipeline above)
```yaml
- uses: superfly/flyctl-actions/setup-flyctl@fc7b7fafba7d2e9c8b03b8a90b9d8ea3d9b3f9e1 # master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
# Secret to configure: FLY_API_TOKEN — from `flyctl auth token`
```
## Step 3: Add Cache Strategy
Pick the right cache key for the stack — already included in the templates above. General rule:
- **Node:** cache keyed to `package-lock.json` or `pnpm-lock.yaml` or `yarn.lock`
- **Python/uv:** `enable-cache: true` in `setup-uv` — keyed to `uv.lock` automatically
- **Go:** `cache: true` in `setup-go` — keyed to `go.sum` automatically
- **Docker:** use `cache-from: type=gha` and `cache-to: type=gha,mode=max` with `docker/build-push-action`
- **Rust:** cache `~/.cargo/registry`, `~/.cargo/git`, `target/` keyed to `Cargo.lock`
## Step 4: Secrets Checklist
Output a checklist of every secret the pipeline needs. Never hardcode values — only placeholders.
Format:
```
Secrets to configure in GitHub → Settings → Secrets and variables → Actions:
□ GCP_SA_KEY — base64-encoded GCP service account JSON
roles needed: roles/run.admin, roles/iam.serviceAccountUser
□ FLY_API_TOKEN — from `flyctl auth token`
□ DATABASE_URL — production database connection string
```
## Step 5: ORelated in Cloud & DevOps
appbuilder-action-scaffolder
IncludedCreate, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add actions to an App Builder project, understand action structure (params, response format, web/raw actions), configure actions in the manifest, use App Builder SDKs (State, Files, Events, database), deploy and invoke actions via CLI, debug action issues, or implement patterns such as webhook receivers, custom event providers, journaling consumers, large payload redirects, action sequence pipelines, and Asset Compute workers. Also trigger when users mention serverless functions in Adobe context, action logging, IMS authentication for actions, or cron-style scheduled actions.
orchestrating-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. Use this skill when the user needs a multi-step Data Cloud pipeline, cross-phase troubleshooting, or data space and data kit management. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase sf data360 workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching phase-specific skill), the task is STDM/session tracing/parquet telemetry (use observing-agentforce), standard CRM SOQL (use querying-soql), or Apex implementation (use generating-apex).
github-project-automation
IncludedAutomate GitHub repository setup with CI/CD workflows, issue templates, Dependabot, and CodeQL security scanning. Includes 12 production-tested workflows and prevents 18 errors: YAML syntax, action pinning, and configuration. Use when: setting up GitHub Actions CI/CD, creating issue/PR templates, enabling Dependabot or CodeQL scanning, deploying to Cloudflare Workers, implementing matrix testing, or troubleshooting YAML indentation, action version pinning, secrets syntax, runner versions, or CodeQL configuration. Keywords: github actions, github workflow, ci/cd, issue templates, pull request templates, dependabot, codeql, security scanning, yaml syntax, github automation, repository setup, workflow templates, github actions matrix, secrets management, branch protection, codeowners, github projects, continuous integration, continuous deployment, workflow syntax error, action version pinning, runner version, github context, yaml indentation error
sf-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase `sf data360` workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching sf-datacloud-* skill), the task is STDM/session tracing/parquet telemetry (use sf-ai-agentforce-observability), standard CRM SOQL (use sf-soql), or Apex implementation (use sf-apex).
fabric-cli
IncludedUse this skill for Fabric.so CLI workflows with the `fabric` terminal command: diagnose/install/login, search or browse a Fabric library, save notes/links/files, create folders, ask the Fabric AI assistant, manage tasks/workspaces, generate shell completion, check subscription usage, produce JSON output, and use Fabric as persistent agent memory. Do not use for Microsoft Fabric/Azure/Power BI `fab`, Daniel Miessler's Fabric framework, Python Fabric SSH, Fabric.js, or textile/fashion fabric.
lark
IncludedLark/Feishu CLI skills: lark-cli operations for docs, markdown, sheets, base, calendar, im, mail, task, okr, drive, wiki, slides, whiteboard, apps, approval, attendance, contact, vc, minutes, event. Use when the user needs to operate Lark/Feishu resources via lark-cli, send messages, manage documents, spreadsheets, calendars, tasks, OKRs, deploy web pages, or any Feishu/Lark workspace operations.