Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)41k · #6810

depot-ci

Skill này làm gì

Skill này hướng dẫn agent AI thiết lập và chạy quy trình Depot CI. Skill dành cho lập trình viên muốn chuyển quy trình GitHub Actions sang Depot và kiểm tra các lần chạy diễn ra thế nào.

Khi nào nên dùng

  • ✓Khi bạn muốn chuyển các quy trình GitHub Actions hiện có sang Depot CI.
  • ✓Khi bạn cần chạy một quy trình Depot CI hoặc quản lý bí mật và biến của nó.
  • ✓Khi một lần chạy Depot CI thất bại và bạn muốn đọc nhật ký và tìm nguyên nhân.

Liên kết skill

https://github.com/PostHog/posthog/blob/master/.agents/skills/depot-ci/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/PostHog/posthog/blob/master/.agents/skills/depot-ci/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Giúp tôi chuyển các quy trình GitHub Actions sang Depot CI và chạy thử một quy trình để kiểm tra nó hoạt động.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent dùng công cụ dòng lệnh Depot để chuyển các tệp quy trình, chạy chúng, và kiểm tra trạng thái và nhật ký. Nó chỉ tham khảo tài liệu lệnh chi tiết khi cần.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Depot CI

Depot CI is a programmable CI system for engineers and agents. Workflows in Depot CI run entirely on Depot compute with built-in job visibility, debuggability, and control. GitHub Actions is the first syntax Depot CI supports: migrate your existing GitHub Actions workflows, and get fast, reliable runs on optimized infrastructure.

This SKILL.md covers the core workflow plus the most common commands. Detailed flag tables, JSON output shapes, and less-common commands live in focused files under references/, pointed to from the relevant sections below. Load a reference file only when you need the detail it contains.

<!-- PostHog-local section. Keep it when resyncing from upstream; see UPSTREAM.md. -->

PostHog addition: read references/posthog-check-run-semantics.md before you reason about what a Depot CI run reports to GitHub. It covers what Depot CI and GitHub Actions each post for a skipped, empty-matrix or continue-on-error job, how GitHub and the Trunk merge queue score those conclusions, and how the two engines differ on check naming and reruns. This repo runs Depot CI workflows out of .depot/workflows/ alongside GitHub Actions, so both engines report on the same commit. Depot posts each check from one of three GitHub apps. The "Which app posts a Depot check" section of references/posthog-check-run-semantics.md lists the apps and how to match their checks.

<!-- End PostHog-local section. -->

Architecture

Three subsystems: compute (provisions and executes work), orchestrator (schedules multi-step workflows, handles dependencies), GitHub Actions parser (translates Actions YAML into orchestrator workflows). The system is fully programmable.

Common flags

Nearly every depot ci command (and depot tests) accepts:

  • --org <id>: organization ID, required when the user belongs to multiple organizations (see Org Context Check below).
  • --token <token>: Depot API token.
  • -o, --output json: machine-readable output, useful for agents and scripting. Most depot ci subcommands accept the -o shorthand, but depot tests, depot ci secrets, and depot ci vars accept only the long --output form.

Per-command tables in the reference files omit these to cut noise; assume they're available.

Org Context Check for Multi-Org Users

If a user belongs to multiple organizations, before setup/migration or if CI commands can't find expected workflows, verify Depot org context first:

depot org show              # Current org ID
depot org list              # Orgs the user belongs to
depot org switch <org-id>   # Option A: switch default org for this shell/session

# Option B: keep current org and target explicitly per command
depot ci run --org <org-id> --workflow .depot/workflows/ci.yml

Use --org <org-id> when the workflow/repo lives in a different org than the current default.

Getting Started

1. Install the Depot Code Access GitHub App

Depot dashboard → Settings → GitHub Code Access → Connect to GitHub. (If you've used Claude Code on Depot, this may already be installed.)

2. Migrate workflows

depot ci migrate

This interactive wizard:

  1. Checks that the Depot Code Access app is installed and configured.
  2. Discovers all workflows in .github/workflows/ and analyzes each for Depot CI compatibility.
  3. Copies selected workflows to .depot/workflows/ with inline corrections and comments, and copies local actions from .github/actions/ to .depot/actions/.
  4. Detects secrets and variables referenced in workflows and prints next steps for importing them.

Your .github/ directory is untouched, so workflows run in both GitHub and Depot simultaneously. Warning: workflows that cause side effects (deploys, artifact updates) will execute twice.

3. Import secrets and variables

depot ci migrate secrets-and-vars

This creates and runs a one-shot GitHub Actions workflow on a temporary branch that reads your existing secrets and variables and imports them into Depot CI. You can also add them manually with depot ci secrets add / depot ci vars add (see Managing Secrets and Variables below).

For migration detail (the preflight/workflows/secrets-and-vars subcommands, their flag tables, exactly what gets transformed, and manual setup), read references/migration.md.

Managing Secrets and Variables

Secrets (referenced as ${{ secrets.NAME }}, encrypted, never rea

Câu hỏi thường gặp

Tôi có cần viết lại các quy trình không?

Skill mô tả một lệnh chuyển cho các quy trình GitHub Actions hiện có, vì Depot CI hỗ trợ cú pháp đó.

Nó có quản lý bí mật không?

Có. Skill bao gồm việc quản lý bí mật và biến của Depot CI.

Nó có thể cho biết vì sao một lần chạy thất bại không?

Có. Skill bao gồm các lệnh liệt kê lần chạy, kiểm tra trạng thái, đọc nhật ký và chẩn đoán một lần chạy.

Chi tiết

Mô tả gốc của tác giả

Configures and manages Depot CI, a drop-in replacement for GitHub Actions that runs workflows entirely within Depot. Use when migrating GitHub Actions workflows to Depot CI, running `depot ci migrate`, managing Depot CI secrets and variables, running workflows with `depot ci run`, debugging Depot CI runs with `depot ci run list`, `depot ci status`, `depot ci logs`, `depot ci diagnose`, or `depot ci ssh`, inspecting test results with `depot tests` or run artifacts with `depot ci artifacts`, checking workflow compatibility, or understanding Depot CI capabilities. Also use when the user mentions

repo: PostHog/posthog

Độ phổ biến

Sao GitHub
41k
Vị trí xếp hạng
#6810
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự