agentleFS
younesbagyounesbag/aql/.claude/skills/ship/SKILL.md

ship

Skill8 starsChanged 34 days agoMITView on GitHub

تسليم أي تغيير في مستودع العقل الثاني — بوابة البناء، كومِت بنموذج المشروع، دفع الفرع وفتح PR، والتحقق من نشر Vercel حتى READY مع كتيّب أعطال النشر. استخدمها بعد اكتمال أي مهمة كود، أو عند طلب «سلّم»، «ادفع»، «انشر»، «commit». Use to ship/commit/push a completed change in this repo, open a PR, and verify the Vercel deployment when one exists.

  • Reads credentials
  • Commits and pushes

194 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ios-sync, open-gstack-browser and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Saqlain-811Skill

    ios-sync

    Regenerate the iOS debug bridge against the latest upstream gstack templates. (gstack)

    Also in 6 projects that use this

  • seek888Skill

    open-gstack-browser

    Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".

    Also in 10 projects that use this

  • ayudaySkill

    setup-deploy

    Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".

    Also in 19 projects that use this

  • ShreyRaviSkill

    landing-report

    Read-only queue dashboard for workspace-aware ship. Shows which VERSION slots are currently claimed by open PRs, which sibling Conductor workspaces have WIP work likely to ship soon, and what slot /ship would pick next. No mutations — just a snapshot. Use when asked to "landing report", "what's in the queue", "show me open PRs", or "which version do I claim next". (gstack)

    Also in 9 projects that use this

  • zebbernSkill

    debug-fix

    Find and fix a bug or issue — from any source (GitHub issue, error message, user report, or observed behavior)

    Also in 4 projects that use this

  • ramybarsoumSkill

    document-release

    Post-ship documentation update. Reads all project docs, cross-references the diff, updates README/ARCHITECTURE/CONTRIBUTING/CLAUDE.md to match what shipped, polishes CHANGELOG voice, cleans up TODOS, and optionally bumps VERSION. Use when asked to "update the docs", "sync documentation", or "post-ship docs". Proactively suggest after a PR is merged or code is shipped.

    Also in 23 projects that use this

The file

Files
SKILL.md

تسليم تغيير (ship)

الدستور (CLAUDE.md) يوجب: لا يُعلَن النجاح قبل بلوغ النشر READY (إن كان لديك نشر Vercel)، ولا يُسلَّم تغيير قبل بوابة البناء. هذه المهارة هي المسار كاملاً. سير العمل: فرع لكل تغيير ثم pull request — لا push مباشر إلى main.

تنبيه: على ويندوز قد يرتدّ cwd الصدفة بعد كل نداء — ابدأ أوامرك بـcd إلى جذر المستودع. تحذيرات CRLF عند الكومِت طبيعية.

١. بوابة النطاق

git status --short
git branch --show-current
  • أنت على فرع تغييرك (ليس main)؟ إن لم تكن: git switch -c <اسم-يصف-الأثر>.
  • كل ملف في القائمة مقصود؟ إن ظهر ما لا تعرفه — توقّف وافحصه قبل أي إضافة.
  • احذف كل المؤقتات قبل المتابعة: rm -f _smoke-*.mjs _diag-*.mjs.
  • لا ملفات .env* ولا مفاتيح ولا ملفات data/ المعبّأة بمعلومات شخصية ضمن ما سيُضاف.

٢. بوابة البناء

npm run build 2>&1 | grep -E "(Compiled|Failed|error TS|Type error|Error:|✓)" | head -25
npm run lint
  • النجاح = سطر ✓ Compiled successfully بلا أخطاء نوع، وlint بلا أخطاء جديدة. أي خطأ → أصلحه أولاً؛ إن تطلّب الإصلاح كسر قرار محسوم (دستور §٢) → صعّد (دستور §٦).
  • استثناء وحيد: تغيير يمسّ ملفات md/توثيق فقط — يجوز تخطي البناء.
  • تحذير NFT عن تتبّع data/ معروف وحميد.

٣. الإضافة والكومِت

الإضافة بمسارات صريحة — لا git add -A، والمسارات ذات الأقواس تُقتبس وجوباً:

git add "app/(app)/content/actions.ts" lib/content/analyze.ts

الكومِت عبر heredoc (لا -m متعدد الأسطر بأساليب الصدفة المتباينة):

git commit -m "$(cat <<'EOF'
<عنوان أثرٍ ≤ ٧٢ حرفاً — ماذا تغيّر للمستخدم/النظام>

<المشكلة وسببها الجذري — سطران>
<العلاج ولماذا هذا الشكل — سطران>
- <ملف>: <ما تغيّر فيه>
- <ملف>: <ما تغيّر فيه>

تحقّق حيّ: <الأدلة الرقمية — نتائج smoke، نسب استهلاك، سطر سجل مقتبس>

Co-Authored-By: <سطر النموذج إن كانت بيئة التشغيل تمليه>
EOF
)"

قواعد الرسالة:

  • العنوان يصف الأثر لا الفعل («عرض الأخطاء بالعربية الدقيقة بدل نصّ Next.js العامّ» لا «تعديل actions.ts»).
  • إصلاح عطل إنتاج؟ اقتبس سطر السجل الحاسم في الجسم (دستور §٥-و).
  • «تحقّق حيّ:» إلزامي متى وُجد تحقق — وإن لم يوجد فاذكر لماذا (توثيق فقط، إلخ).

٤. الدفع وفتح الـPR

git push -u origin HEAD
gh pr create --fill   # أو افتح الـPR من الواجهة؛ الوصف يكرّر «تحقّق حيّ:» ويسمّي ما لم يُتحقَّق منه

الدمج بعد المراجعة وفق سياسة المستودع — لا تدمج تغييرك بنفسك دون موافقة المشرفين.

٥. التحقق من النشر (إن كان لديك نشر Vercel؛ إلزامي للتغييرات الكودية)

Vercel ينشئ نشر معاينة (preview) لكل PR، ونشر إنتاج عند الدمج إلى main.

  1. حدّد المشروع: المعرّفات في .vercel/project.json المحلي (غير مرفوع إلى git؛ أنشئه بـvercel link). لا تكتب معرّفات مشروعك في ملفات المستودع.
  2. اجلب أحدث نشر لفرعك عبر أدوات Vercel (MCP: list_deployments ثم get_deployment) أو CLI: vercel ls / vercel inspect <url>.
  3. حسب readyState:
    • READY وحقل commit sha في بيانات النشر يطابق كومِتك → انتقل للتقرير.
    • BUILDING/QUEUED → البناء يستغرق ~٣٠–٦٠ ثانية عادة. انتظر قليلاً ثم أعد الاستعلام؛ لا حلقات استعلام محمومة.
    • ERROR → اقرأ errorCode/errorMessage وسجلّ البناء، وطبّق الكتيّب أدناه.
    • READY لكن الـsha قديم → النشر الجديد لم يظهر بعد؛ أعد قائمة النشرات وابحث عن كومِتك.

كتيّب أعطال النشر

errorCode / العرضالسببالإجراء
invalid_max_durationmaxDuration > ٣٠٠ على خطة Hobbyأعده ≤ ٣٠٠ وسلّم تصحيحاً — ولا تعتبر مشكلة المهلة محلولة (التوليد الطويل مكانه طابور العامل)
فشل بناء (تجميع/أنواع)فرق بيئة أو ملف غير مدفوعاقرأ سجلّ البناء الفعلي — لا تخمّن
فشل لسبب خارجي (انقطاع Vercel)ليس كودكأبلغ المشرفين بالحالة وأعد المحاولة لاحقاً — لا تعدّل كوداً سليماً

فشل النشر يعني أن الإنتاج بقي على النشر السابق — الموقع لم ينكسر، لكن تغييرك غير حيّ. لا تقرير نجاح.

٦. التقرير

موجزاً: hash الكومِت ورابط الـPR + الأثر بجملة + دليل التحقق (نتيجة البناء، حالة النشر READY، أرقام smoke إن وُجدت) + أي قرار اتخذته بنفسك ضمن صلاحياتك + أي اقتراح تحسين (اقتراحاً لا تنفيذاً — دستور قاعدة ٢).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.