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انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“ساعدني في نقل سير عمل GitHub Actions الخاص بي إلى Depot CI، وشغّل واحداً منها للتحقق من أنه يعمل.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
depot-ci: دليل كامل
نقل نظام CI إلى مزوّد جديد يعني عادةً إعادة كتابة ملفات خط الأنابيب، وإعادة إدخال الأسرار، وتخمين سبب فشل التشغيل. تمنح هذه المهارة الوكيل مسارًا واضحًا لتنفيذ هذا العمل مع Depot CI. يشغّل Depot CI سير العمل على حوسبة Depot نفسها، ويقبل صياغة GitHub Actions، لذلك تُعد ملفات سير العمل الحالية نقطة بداية وليست شيئًا يجب التخلص منه.
تعلّم المهارة الوكيل أداة سطر أوامر Depot: نقل سير العمل، واستيراد الأسرار والمتغيرات، وبدء التشغيلات، وقراءة الحالة والسجلات والتشخيصات عند حدوث عطل. وهي موجّهة إلى المطورين والفرق الصغيرة التي تستخدم GitHub Actions بالفعل وتريد تجربة Depot CI، أو التي تعمل على Depot وتريد من الوكيل التعامل مع الأوامر الروتينية والتصحيح.
حالات الاستخدام
تجربة Depot CI إلى جانب GitHub Actions
لديك خمسة سير عمل في .github/workflows وتريد رؤيتها تعمل على Depot. يشغّل الوكيل معالج النقل، فينسخ سير العمل المتوافق إلى .depot/workflows ويترك .github دون تغيير. ثم يعمل النظامان على كل commit، فتتمكن من مقارنة النتائج قبل التحويل.
نقل الأسرار دون نسخها يدويًا
تشير سير العمل لديك إلى عشرات الأسرار والمتغيرات، ولا تريد إعادة كتابتها. يشغّل الوكيل خطوة الاستيراد، التي تستخدم سير عمل لمرة واحدة على فرع مؤقت لقراءة القيم الحالية وتحميلها في Depot CI. يمكن إضافة أي قيمة مفقودة واحدة تلو الأخرى.
معرفة سبب فشل التشغيل
يفشل سير عمل منقول على Depot لكنه ينجح على GitHub. يعرض الوكيل أحدث التشغيلات، ويتحقق من حالة التشغيل الفاشل، ويقرأ سجلاته، ويشغّل أمر التشخيص. ويمكنه كذلك فتح جلسة SSH داخل التشغيل، فترى السبب بدل التخمين.
خطوة بخطوة
- 1ثبّت المهارة بوضع مجلدها في ~/.claude/skills/depot-ci/ (أو في .claude/skills/ الخاص بمشروعك)، وتأكد من تثبيت أداة سطر أوامر Depot وتسجيل الدخول إليها.
- 2في لوحة تحكم Depot، انتقل إلى Settings ثم GitHub Code Access، واربط تطبيق Depot Code Access GitHub App بمستودعك.
- 3إذا كنت عضوًا في عدة منظمات Depot، اطلب من الوكيل التحقق من المنظمة الحالية أولًا بالأمر depot org show، ثم بدّل المنظمة إذا لزم الأمر.
- 4اطلب من الوكيل تشغيل depot ci migrate، واختر سير العمل المراد نسخه، ثم استورد الأسرار والمتغيرات بالأمر depot ci migrate secrets-and-vars.
- 5اطلب من الوكيل بدء سير عمل واحد بالأمر depot ci run وإعلامك بالنتيجة. إذا فشل، اطلب منه قراءة السجلات وتشخيص التشغيل.
مثال
ماذا تطلب
“انقل سير عمل GitHub Actions الخاصة بي إلى Depot CI، واستورد الأسرار، ثم شغّل .depot/workflows/ci.yml وأخبرني إن كان ينجح.”
ما الذي ستحصل عليه
يتحقق الوكيل من منظمتك، ويشغّل معالج النقل وينسخ سير العمل إلى .depot/workflows. ثم يستورد الأسرار والمتغيرات، ويبدأ ci.yml بالأمر depot ci run. يُبلغك بالحالة النهائية، وإذا فشلت خطوة، ينقل أسطر السجل ذات الصلة ويقترح حلًا.
نصائح
- ✓يُبقي النقل المجلد .github/ في مكانه، فيعمل كل سير عمل على GitHub وDepot معًا. ستُنفَّذ سير العمل التي لها آثار جانبية، مثل النشر أو رفع الملفات الناتجة، مرتين. عطّل هذه السير أو قيّدها على أحد النظامين أولًا.
- ✓إذا لم يتمكن الوكيل من العثور على سير العمل، فتحقق من المنظمة قبل أي شيء آخر. تستهدف الأوامر المنظمة الافتراضية ما لم تمرر --org مع المعرّف الصحيح.
- ✓اطلب مخرجات JSON عندما تريد من الوكيل معالجة النتائج. تقبل معظم أوامر depot ci الخيار -o json، وهو أسهل على الوكيل من قراءة النص المنسّق.
بدائل
- github-pr-workflow
اختر هذه المهارة إذا كان هدفك تجهيز طلبات السحب ومراجعتها على GitHub، لا تغيير النظام الذي يشغّل CI لديك.
- git-workflow-and-versioning
اختر هذه المهارة إذا كانت المشكلة في حفظ العمل وإنشاء الفروع وتجنب التعارضات في Git، لا في إعدادات CI.
- dependency-doctor
اختر هذه المهارة إذا كانت البنايات تفشل بسبب ملفات الاعتماديات مثل package.json أو requirements.txt، لا بسبب إعداد CI.
أسئلة وأجوبة
هل ستتوقف سير عمل GitHub Actions الخاصة بي عن العمل بعد النقل؟
لا. ينسخ النقل سير العمل إلى .depot/workflows ويترك .github/ دون تغيير، لذلك تستمر في العمل على GitHub أيضًا. ستحدث عمليات النشر والآثار الجانبية الأخرى على النظامين معًا حتى تعطّل أحدهما.
هل أحتاج إلى حساب Depot لاستخدام هذه المهارة؟
تعمل المهارة عبر أداة سطر أوامر Depot، ويعمل Depot CI على حوسبة Depot، لذلك تحتاج إلى منظمة Depot. كما تربط تطبيق Depot Code Access GitHub App من لوحة تحكم Depot.
ماذا لو كنت عضوًا في أكثر من منظمة Depot؟
تحقق من المنظمة الحالية بالأمر depot org show، وبدّل بينها بالأمر depot org switch. يمكنك أيضًا إضافة --org مع معرّف المنظمة إلى أمر واحد، وهذا مفيد عندما يكون المستودع في منظمة أخرى.
كيف تعمل
يستخدم الوكيل أداة سطر أوامر 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 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.
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. Mostdepot cisubcommands accept the-oshorthand, butdepot tests,depot ci secrets, anddepot ci varsaccept only the long--outputform.
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:
- Checks that the Depot Code Access app is installed and configured.
- Discovers all workflows in
.github/workflows/and analyzes each for Depot CI compatibility. - Copies selected workflows to
.depot/workflows/with inline corrections and comments, and copies local actions from.github/actions/to.depot/actions/. - 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
- الترخيص
- —
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
depot-container-builds
41kيساعد وكيلك على بناء صور Docker على بُنّاة Depot البعيدين، بما في ذلك الصور متعددة المنصات والدفع إلى السجلات وإصلاح أخطاء البناء.
depot-github-runners
41kيساعد وكيلك على نقل مهام GitHub Actions إلى مشغّلات Depot المُدارة، واختيار أحجامها وتسمياتها، وإصلاح مشاكل إعدادها.
editing-agents-md
41kيساعد وكيلك على تحديد ما إذا كانت القاعدة تنتمي إلى ملف AGENTS.md أو CLAUDE.md، وكتابتها بطريقة تُتَّبع دون تضخيم الملف.
formatting-slack-messages
41kيساعد وكيلك على بناء رسائل Slack ونوافذ الحوار وشاشات الصفحة الرئيسية بتخطيط واضح، ومراجعتها وفق قواعد Slack الحالية.
مهارات مشابهة
openclaw-update
394kيساعد وكيلك على تحديث بوابة OpenClaw Gateway الموجودة، مع اختيار طريقة التحديث المناسبة لطريقة تثبيتها والحفاظ على جلستك.
diagnose-gateway
394kيساعد وكيلك على معرفة سبب فشل بوابة OpenClaw Gateway عبر فحص الإعدادات والقنوات والمنافذ دون تغيير أي شيء.
crabbox-apps
394kيساعد وكيلك على فتح تطبيق وتشغيله على جهاز سحابي مؤقت، ثم عرض واجهته في الشريط الجانبي للدردشة.