跳到正文
Skillpedia
部署与云(DevOps)41k · #6810

depot-ci

它能做什么

本技能指导智能体设置并运行 Depot CI 工作流。适合希望把 GitHub Actions 工作流迁移到 Depot,并检查运行情况的开发者。

适用场景

  • ✓当你想把现有的 GitHub Actions 工作流迁移到 Depot CI 时。
  • ✓当你需要运行 Depot CI 工作流,或管理其机密和变量的时候。
  • ✓当 Depot CI 运行失败,你想读取日志并找出原因的时候。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/PostHog/posthog/blob/master/.agents/skills/depot-ci/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我把 GitHub Actions 工作流迁移到 Depot CI,并运行一次以确认其正常工作。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体使用 Depot 命令行工具迁移工作流文件、运行它们,并检查状态和日志。只有在需要时,它才会查阅详细的命令参考。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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

常见问题

我需要重写工作流吗?

本技能介绍了迁移现有 GitHub Actions 工作流的命令,因为 Depot CI 支持该语法。

它可以管理机密吗?

可以。本技能涵盖 Depot CI 机密和变量的管理。

它能说明运行失败的原因吗?

可以。本技能涵盖列出运行记录、检查状态、读取日志和诊断运行问题的命令。

详情

作者的原始描述

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

热度

GitHub 星标
41k
排名
#6810
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能